mirror of
https://github.com/fluencelabs/redis
synced 2025-04-28 12:02:14 +00:00
Redis Cluster: hint about validity factor when slave can't failover.
This commit is contained in:
parent
8e491b1708
commit
fe71dffbf2
@ -2624,8 +2624,10 @@ void clusterLogCantFailover(int reason) {
|
|||||||
(mstime() - myself->slaveof->fail_time) < nolog_fail_time) return;
|
(mstime() - myself->slaveof->fail_time) < nolog_fail_time) return;
|
||||||
|
|
||||||
switch(reason) {
|
switch(reason) {
|
||||||
case REDIS_CLUSTER_CANT_FAILOVER_DATA_AGE:
|
case CLUSTER_CANT_FAILOVER_DATA_AGE:
|
||||||
msg = "Disconnected from master for longer than allowed.";
|
msg = "Disconnected from master for longer than allowed. "
|
||||||
|
"Please check the 'cluster-slave-validity-factor' configuration "
|
||||||
|
"option.";
|
||||||
break;
|
break;
|
||||||
case REDIS_CLUSTER_CANT_FAILOVER_WAITING_DELAY:
|
case REDIS_CLUSTER_CANT_FAILOVER_WAITING_DELAY:
|
||||||
msg = "Waiting the delay before I can start a new failover.";
|
msg = "Waiting the delay before I can start a new failover.";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user