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.
This commit is contained in:
antirez
2013-05-29 11:36:44 +02:00
parent fc2587ec6e
commit d0d67f8d42
6 changed files with 77 additions and 2 deletions

View File

@ -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 ###################################