]> git.saurik.com Git - redis.git/blobdiff - redis.conf
By default Redis refuses writes with an error if the latest BGSAVE failed (and at...
[redis.git] / redis.conf
index 4760f291481d9d784e70e088c8c05e33e102ecd5..2b4b6479682bd1c73ffc699a1a4fec2d8f8316cc 100644 (file)
@@ -93,6 +93,21 @@ save 900 1
 save 300 10
 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.
+# This will make the user aware (in an hard way) that data is not persisting
+# on disk properly, otherwise chances are that no one will notice and some
+# distater will happen.
+#
+# If the background saving process will start working again Redis will
+# automatically allow writes again.
+#
+# However if you have setup your proper monitoring of the Redis server
+# and persistence, you may want to disable this feature so that Redis will
+# continue to work as usually even if there are problems with disk,
+# permissions, and so forth.
+stop-writes-on-bgsave-error yes
+
 # Compress string objects using LZF when dump .rdb databases?
 # For default that's set to 'yes' as it's almost always a win.
 # If you want to save some CPU in the saving child set it to 'no' but