异常
(error) 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.
异常.png
原因
数据持续写入,读取速度远低于写入速度,持续1H以上(中途开了一个较长时间的会,一直写入数据,没管),内存占用量为80%。
由于我目前并未对redis做详细深入理解,故根据网上资料说明:
stop-writes-on-bgsave-error yes
默认情况下,如果在RDB snapshots持久化过程中出现问题,设置该参数后,Redis是不允许用户进行任何更新操作(set...)。避免人为强制停止redis 快照
解决方法
进入redis src目录下
启动客户端:
./redis-cli
输入:
config set stop-writes-on-bgsave-error no
解决方法.png