Redis "MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on di

异常详细信息html

1
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.

数据持续写入,读取速度远低于写入速度,故根据网上资料说明:redis

stop-writes-on-bgsave-error yes
 
#默认状况下,若是在RDB snapshots持久化过程当中出现问题,设置该参数后,Redis是不容许用户
进行任何更新操做(set...)。避免人为强制中止redis 快照
 
在客户端输入
config set stop-writes-on-bgsave-error no

这仅仅是让程序忽略了这个异常,使得程序可以继续往下运行,但实际上数据仍是会存储到硬盘失败!spa

解决办法code

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

相关文章
相关标签/搜索