Redis RDB文件大小不断增长
我的redis rdb文件的大小一直在增长,直到数据库无法运行并且连接被拒绝为止。我意识到这与某些配置设置有关-我使用的是默认配置文件。
有什么办法可以防止这种情况?我不必担心持续备份。
回答:
这显然在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文件,请在保存的三行注释,例如
# 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文件大小不断增长 的全部内容, 来源链接: utcz.com/qa/435666.html