Fix description of the save conf directive (#8337)
The line that said: Note: you can disable saving completely by commenting out all "save" lines was incorrect. Also, note that the save values used in the default redis.conf file are different than the server's defaults, so this PR also addresses this and introduces a potential behavior change for some users.
This commit is contained in:
parent
a29aec9abb
commit
aaf71b380e
33
redis.conf
33
redis.conf
@ -326,30 +326,29 @@ databases 16
|
|||||||
always-show-logo no
|
always-show-logo no
|
||||||
|
|
||||||
################################ SNAPSHOTTING ################################
|
################################ SNAPSHOTTING ################################
|
||||||
#
|
|
||||||
# Save the DB on disk:
|
# Save the DB to disk.
|
||||||
#
|
#
|
||||||
# save <seconds> <changes>
|
# save <seconds> <changes>
|
||||||
#
|
#
|
||||||
# Will save the DB if both the given number of seconds and the given
|
# Redis will save the DB if both the given number of seconds and the given
|
||||||
# number of write operations against the DB occurred.
|
# number of write operations against the DB occurred.
|
||||||
#
|
#
|
||||||
# In the example below the behavior will be to save:
|
# Snapshotting can be completely disabled with a single empty string argument
|
||||||
# after 900 sec (15 min) if at least 1 key changed
|
# as in following example:
|
||||||
# after 300 sec (5 min) if at least 10 keys changed
|
|
||||||
# after 60 sec if at least 10000 keys changed
|
|
||||||
#
|
|
||||||
# Note: you can disable saving completely by commenting out all "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 ""
|
||||||
|
#
|
||||||
save 900 1
|
# Unless specified otherwise, by default Redis will save the DB:
|
||||||
save 300 10
|
# * After 3600 seconds (an hour) if at least 1 key changed
|
||||||
save 60 10000
|
# * After 300 seconds (5 minutes) if at least 10 keys changed
|
||||||
|
# * After 60 seconds if at least 10000 keys changed
|
||||||
|
#
|
||||||
|
# You can set these explicitly by uncommenting the three following lines.
|
||||||
|
#
|
||||||
|
# save 3600 1
|
||||||
|
# save 300 100
|
||||||
|
# save 60 10000
|
||||||
|
|
||||||
# By default Redis will stop accepting writes if RDB snapshots are enabled
|
# By default Redis will stop accepting writes if RDB snapshots are enabled
|
||||||
# (at least one save point) and the latest background save failed.
|
# (at least one save point) and the latest background save failed.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user