go不间断的向redis写入内容,由于磁盘空间不足redis无法持久化,go程序直接挂掉,启动几秒后自动挂掉
错误提示如下:
```
panic: 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的问题导致golang程序挂掉,保持go程序正常运行