diff options
author | antirez <antirez@gmail.com> | 2014-01-31 11:12:34 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-01-31 11:26:36 +0100 |
commit | a7d30681c9977511951432a17a1e0805d303aa4b (patch) | |
tree | 80e6549e4f13765912e4f87d15aeed786aa28e91 /src/cluster.h | |
parent | 3ff1bb4b2e146f94672967f1a37bd01b83cd6150 (diff) | |
download | redis-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 'src/cluster.h')
-rw-r--r-- | src/cluster.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cluster.h b/src/cluster.h index c07b37381..b32916cf6 100644 --- a/src/cluster.h +++ b/src/cluster.h @@ -21,6 +21,7 @@ #define REDIS_CLUSTER_SLAVE_VALIDITY_MULT 10 /* Slave data validity. */ #define REDIS_CLUSTER_FAILOVER_AUTH_RETRY_MULT 4 /* Auth request retry time. */ #define REDIS_CLUSTER_FAILOVER_DELAY 5 /* Seconds */ +#define REDIS_CLUSTER_DEFAULT_MIGRATION_BARRIER 1 struct clusterNode; |