summaryrefslogtreecommitdiff
path: root/redis.conf
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2013-05-29 11:36:44 +0200
committerantirez <antirez@gmail.com>2013-05-30 11:30:04 +0200
commited599d3aca723d46984871131610f623f09cf0cd (patch)
treec98dd15e9c6e734200c8c9938210d3cac5dec9f5 /redis.conf
parentcbdb2153c5f6d5b7543ae4ebd22a9b3ce5379ef2 (diff)
downloadredis-ed599d3aca723d46984871131610f623f09cf0cd.tar.gz
min-slaves-to-write: don't accept writes with less than N replicas.
This feature allows the user to specify the minimum number of connected replicas having a lag less or equal than the specified amount of seconds for writes to be accepted.
Diffstat (limited to 'redis.conf')
-rw-r--r--redis.conf8
1 files changed, 7 insertions, 1 deletions
diff --git a/redis.conf b/redis.conf
index 258c0554b..10560eb76 100644
--- a/redis.conf
+++ b/redis.conf
@@ -281,7 +281,13 @@ slave-priority 100
#
# For example to require at least 3 slaves with a lag <= 10 seconds use:
#
-# repl-min-slaves-to-write 3 10
+# min-slaves-to-write 3
+# min-slaves-max-lag 10
+#
+# Setting one or the other to 0 disables the feature.
+#
+# By default min-slaves-to-write is set to 0 (feature disabled) and
+# min-slaves-max-lag is set to 10.
################################## SECURITY ###################################