summaryrefslogtreecommitdiff
path: root/src/cluster.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-03-10 09:57:52 +0100
committerantirez <antirez@gmail.com>2014-03-10 09:57:52 +0100
commit0f1f25784f6440f3476609065edfb524e3bbbcf4 (patch)
tree3c921e55d5e82007f89671d6d2224a8c5b3c9ca5 /src/cluster.h
parent0f2597092fdcd17547282bd434e46d3dc8412e23 (diff)
downloadredis-0f1f25784f6440f3476609065edfb524e3bbbcf4.tar.gz
Cluster: better timeout and retry time for failover.
When node-timeout is too small, in the order of a few milliseconds, there is no way the voting process can terminate during that time, so we set a lower limit for the failover timeout of two seconds. The retry time is set to two times the failover timeout time, so it is at least 4 seconds.
Diffstat (limited to 'src/cluster.h')
-rw-r--r--src/cluster.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/cluster.h b/src/cluster.h
index 9581b575e..4fb1cfe8d 100644
--- a/src/cluster.h
+++ b/src/cluster.h
@@ -18,7 +18,6 @@
#define REDIS_CLUSTER_FAIL_UNDO_TIME_MULT 2 /* Undo fail if master is back. */
#define REDIS_CLUSTER_FAIL_UNDO_TIME_ADD 10 /* Some additional time. */
#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
#define REDIS_CLUSTER_MF_TIMEOUT 5000 /* Milliseconds to do a manual failover. */