Redis rdb 文件不断变大 [英] Redis rdb file keeps growing in size
本文介绍了Redis rdb 文件不断变大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的 redis rdb 文件一直在变大,直到 db 无法运行并且连接被拒绝.我意识到这与一些配置设置有关 - 我使用的是默认配置文件.
My redis rdb file keeps growing and growing in size until the db becomes inoperational and connections are refused. I realise this is to do with some config setting - I'm using the default config file.
有什么办法可以防止这种情况发生吗?我不关心不断的备份.
Is there any way I can prevent this ? I'm not to concerned about constant backups.
推荐答案
这个明显在redis.conf中,
this is obviously in the redis.conf,
# Note: you can disable saving at all commenting all the "save" lines.
#
# It is also possible to remove all the previously configured save
# points by adding a save directive with a single empty string argument
# like in the following example:
#
# save ""
save 900 1
save 300 10
save 60 10000
上面的文字在redis.conf中,如果你不想保存rdb文件,注释掉以save开头的三行,如
the text above is in redis.conf, if u don't want to save the rdb file, comment the three line begin with save, such as
# Note: you can disable saving at all commenting all the "save" lines.
#
# It is also possible to remove all the previously configured save
# points by adding a save directive with a single empty string argument
# like in the following example:
#
# save ""
# save 900 1
# save 300 10
# save 60 10000
这篇关于Redis rdb 文件不断变大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文