summaryrefslogtreecommitdiff
path: root/redis.conf
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-01-31 11:12:34 +0100
committerantirez <antirez@gmail.com>2014-01-31 11:26:36 +0100
commita7d30681c9977511951432a17a1e0805d303aa4b (patch)
tree80e6549e4f13765912e4f87d15aeed786aa28e91 /redis.conf
parent3ff1bb4b2e146f94672967f1a37bd01b83cd6150 (diff)
downloadredis-a7d30681c9977511951432a17a1e0805d303aa4b.tar.gz
Cluster: configurable replicas migration barrier.
It is possible to configure the min number of additional working slaves a master should be left with, for a slave to migrate to an orphaned master.
Diffstat (limited to 'redis.conf')
-rw-r--r--redis.conf19
1 files changed, 19 insertions, 0 deletions
diff --git a/redis.conf b/redis.conf
index 7fb4e4953..620ff7bf6 100644
--- a/redis.conf
+++ b/redis.conf
@@ -551,6 +551,25 @@ lua-time-limit 5000
#
# cluster-node-timeout 15000
+# Cluster slaves are able to migrate to orphaned masters, that are masters
+# that are left without working slaves. This improves the cluster ability
+# to resist to failures as otherwise an orphaned master can't be failed over
+# in case of failure if it has no working slaves.
+#
+# Slaves migrate to orphaned masters only if there are still at least a
+# given number of other working slaves for their old master. This number
+# is the "migration barrer". A migration barrier of 1 means that a slave
+# will migrate only if there is at least 1 other working slave for its master
+# and so forth. It usually reflects the number of slaves you want for every
+# master in your cluster.
+#
+# Default is 1 (slaves migrate only if their masters remain with at least
+# one master). To disable migration just set it to a very large value.
+# A value of 0 can be set but is useful only for debugging and dangerous
+# in production.
+#
+# cluster-migration-barrier 1
+
# In order to setup your cluster make sure to read the documentation
# available at http://redis.io web site.