中秋的时候正在外面愉快的在外卖喝着咖啡玩电脑。。。。。。突发 redis 报警从 sentry 应用端曝出的错误
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.
于是又开始愉快的处理问题了,看上去像是执行 rdb 快照持久化的时候出现的问题,上到 redis 机器查看日志定位详细问题
420:M 14 Sep 15:56:27.067 # Can't save in background: fork: Cannot allocate memory 420:M 14 Sep 15:56:33.071 * 10000 changes in 60 seconds. Saving... 420:M 14 Sep 15:56:33.072 # Can't save in background: fork: Cannot allocate memory