码迷,mamicode.com
首页 > 数据库 > 详细

Redis "MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk"问题的解决

时间:2016-05-01 00:59:06      阅读:384      评论:0      收藏:0      [点我收藏+]

标签:

异常详细信息

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

 

Redis "MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk"问题的解决

标签:

原文地址:http://www.cnblogs.com/kaituorensheng/p/5417273.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!