redis 问题记录
1、RDB 存储报错
Caused by: io.lettuce.core.RedisCommandExecutionException: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.
RDB写不了,定位了一下,是内存不够。当时也确实只剩下了200+M的内存,是不足以去支撑的redis 去 fork一个线程去做RDB存储的。
停掉一个进程,空出一些内存资源,就好了。(这种情况相对常见,并且在开发环境,才可以这样搞。生产环境这样的资源条件肯定会出问题的呀)
但问题是,如果就是没有内存了,或者说我极限条件下,我不想去做RDB了,我只想把业务往下跑,怎么办呢。
官网上,还提到,有一种可能,还有很多内存,但还是存不了
要存储的东西本身特别大?还是怎的?没细看。对英文现在仿佛有阅读障碍了。