summaryrefslogtreecommitdiff
path: root/redis.conf
diff options
context:
space:
mode:
authorItamar Haber <itamar@redislabs.com>2021-01-19 20:31:30 +0200
committerGitHub <noreply@github.com>2021-01-19 20:31:30 +0200
commitaaf71b380ed5ef8d5d63f8a60733c35202c5b838 (patch)
treea97f02f2162de724385f27eec6bbb271c78062f5 /redis.conf
parenta29aec9abb8b4ffd030be9e4c8875ddd8ec1357c (diff)
downloadredis-aaf71b380ed5ef8d5d63f8a60733c35202c5b838.tar.gz
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.
Diffstat (limited to 'redis.conf')
-rw-r--r--redis.conf33
1 files changed, 16 insertions, 17 deletions
diff --git a/redis.conf b/redis.conf
index 5f9eed7fe..bb0d70644 100644
--- a/redis.conf
+++ b/redis.conf
@@ -326,30 +326,29 @@ databases 16
always-show-logo no
################################ SNAPSHOTTING ################################
+
+# Save the DB to disk.
#
-# Save the DB on disk:
+# save <seconds> <changes>
#
-# save <seconds> <changes>
+# Redis will save the DB if both the given number of seconds and the given
+# number of write operations against the DB occurred.
#
-# Will save the DB if both the given number of seconds and the given
-# number of write operations against the DB occurred.
+# Snapshotting can be completely disabled with a single empty string argument
+# as in following example:
#
-# In the example below the behavior will be to save:
-# after 900 sec (15 min) if at least 1 key changed
-# after 300 sec (5 min) if at least 10 keys changed
-# after 60 sec if at least 10000 keys changed
+# save ""
#
-# Note: you can disable saving completely by commenting out all "save" lines.
+# Unless specified otherwise, by default Redis will save the DB:
+# * After 3600 seconds (an hour) if at least 1 key changed
+# * After 300 seconds (5 minutes) if at least 10 keys changed
+# * After 60 seconds if at least 10000 keys changed
#
-# 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:
+# You can set these explicitly by uncommenting the three following lines.
#
-# save ""
-
-save 900 1
-save 300 10
-save 60 10000
+# save 3600 1
+# save 300 100
+# save 60 10000
# By default Redis will stop accepting writes if RDB snapshots are enabled
# (at least one save point) and the latest background save failed.