Redis "MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk"問題的解決


異常詳細信息

Exception in thread "main" redis.clients.jedis.exceptions.JedisDataException: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.

數據持續寫入,讀取速度遠低於寫入速度,故根據網上資料說明:

stop-writes-on-bgsave-error yes
 
#默認情況下,如果在RDB snapshots持久化過程中出現問題,設置該參數后,Redis是不允許用戶
進行任何更新操作(set...)。避免人為強制停止redis 快照
 
在客戶端輸入
config set stop-writes-on-bgsave-error no

這僅僅是讓程序忽略了這個異常,使得程序能夠繼續往下運行,但實際上數據還是會存儲到硬盤失敗!

解決辦法

http://www.redicecn.com/html/Linux/20131125/468.html

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM