summaryrefslogtreecommitdiff
path: root/src/cluster.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-05-22 16:57:47 +0200
committerantirez <antirez@gmail.com>2014-05-22 16:57:54 +0200
commit39603a7e315f36b51cdd9d0cf20d6d43f66be606 (patch)
treed63852ae06b6f5dd9bc7aeabd365c8783af15c45 /src/cluster.h
parentce374889195bea7c8aefecf994a702f799fe4fd1 (diff)
downloadredis-39603a7e315f36b51cdd9d0cf20d6d43f66be606.tar.gz
Cluster: slave validity factor is now user configurable.
Check the commit changes in the example redis.conf for more information.
Diffstat (limited to 'src/cluster.h')
-rw-r--r--src/cluster.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cluster.h b/src/cluster.h
index 2d6960574..96072cd91 100644
--- a/src/cluster.h
+++ b/src/cluster.h
@@ -14,10 +14,10 @@
/* The following defines are amunt of time, sometimes expressed as
* multiplicators of the node timeout value (when ending with MULT). */
#define REDIS_CLUSTER_DEFAULT_NODE_TIMEOUT 15000
+#define REDIS_CLUSTER_DEFAULT_SLAVE_VALIDITY 10 /* Slave max data age factor. */
#define REDIS_CLUSTER_FAIL_REPORT_VALIDITY_MULT 2 /* Fail report validity. */
#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_DELAY 5 /* Seconds */
#define REDIS_CLUSTER_DEFAULT_MIGRATION_BARRIER 1
#define REDIS_CLUSTER_MF_TIMEOUT 5000 /* Milliseconds to do a manual failover. */