diff options
author | antirez <antirez@gmail.com> | 2013-05-28 16:48:21 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2013-05-30 11:29:58 +0200 |
commit | cbdb2153c5f6d5b7543ae4ebd22a9b3ce5379ef2 (patch) | |
tree | 7a4a2df5d2436b29d49eaa0bbf606f5f7b2bb4fc /redis.conf | |
parent | 888400ebd57c85682edc147bb0f666af29c76d5b (diff) | |
download | redis-cbdb2153c5f6d5b7543ae4ebd22a9b3ce5379ef2.tar.gz |
min-slaves-to-write: initial description of the feature in redis.conf
Diffstat (limited to 'redis.conf')
-rw-r--r-- | redis.conf | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/redis.conf b/redis.conf index 33e7a62e1..258c0554b 100644 --- a/redis.conf +++ b/redis.conf @@ -267,6 +267,22 @@ repl-disable-tcp-nodelay no # By default the priority is 100. slave-priority 100 +# It is possible for a master to stop accepting writes if there are less than +# N slaves connected, having a lag less or equal than M seconds. +# +# The N slaves need to be in "online" state. +# +# The lag in seconds, that must be <= the specified value, is calculated from +# the last ping received from the slave, that is usually sent every second. +# +# This option does not GUARANTEES that N replicas will accept the write, but +# will limit the window of exposure for lost writes in case not enough slaves +# are available, to the specified number of seconds. +# +# For example to require at least 3 slaves with a lag <= 10 seconds use: +# +# repl-min-slaves-to-write 3 10 + ################################## SECURITY ################################### # Require clients to issue AUTH <PASSWORD> before processing any other |