Redis rdb文件的大小不断增长

时间:2013-12-06 18:13:37

标签: redis

我的redis rdb文件不断增长并且不断增长,直到数据库变得无法运行并且连接被拒绝。我意识到这与一些配置设置有关 - 我正在使用默认的配置文件。

有什么办法可以阻止这个吗?我不关心持续备份。

1 个答案:

答案 0 :(得分:0)

这显然是在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开头,如

#   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