mirror of
https://github.com/fluencelabs/redis
synced 2025-06-25 15:01:33 +00:00
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.
This commit is contained in:
@ -791,6 +791,7 @@ struct redisServer {
|
||||
mstime_t cluster_node_timeout; /* Cluster node timeout. */
|
||||
char *cluster_configfile; /* Cluster auto-generated config file name. */
|
||||
struct clusterState *cluster; /* State of the cluster */
|
||||
int cluster_migration_barrier; /* Cluster replicas migration barrier. */
|
||||
/* 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 */
|
||||
|
Reference in New Issue
Block a user