天天看點

Redis :MISCONF Redis is configured to save RDB snapshots

異常

(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.
           
Redis :MISCONF Redis is configured to save RDB snapshots

異常.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
           
Redis :MISCONF Redis is configured to save RDB snapshots

解決方法.png

繼續閱讀