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

@ -1434,6 +1434,7 @@ void initServerConfig() {
server.cluster_enabled = 0;
server.cluster_node_timeout = REDIS_CLUSTER_DEFAULT_NODE_TIMEOUT;
server.cluster_migration_barrier = REDIS_CLUSTER_DEFAULT_MIGRATION_BARRIER;
server.cluster_slave_validity_factor = REDIS_CLUSTER_DEFAULT_SLAVE_VALIDITY;
server.cluster_configfile = zstrdup(REDIS_DEFAULT_CLUSTER_CONFIG_FILE);
server.lua_caller = NULL;
server.lua_time_limit = REDIS_LUA_TIME_LIMIT;