Cluster: slave validity factor is now user configurable.

Check the commit changes in the example redis.conf for more information.
This commit is contained in:
antirez
2014-05-22 16:57:47 +02:00
parent 308c570e04
commit 33f63ff988
6 changed files with 69 additions and 8 deletions

View File

@ -827,6 +827,7 @@ struct redisServer {
char *cluster_configfile; /* Cluster auto-generated config file name. */
struct clusterState *cluster; /* State of the cluster */
int cluster_migration_barrier; /* Cluster replicas migration barrier. */
int cluster_slave_validity_factor; /* Slave max data age for failover. */
/* Scripting */
lua_State *lua; /* The Lua interpreter. We use just one for all clients */
redisClient *lua_client; /* The "fake client" to query Redis from Lua */