• antirez's avatar
    Cluster: replica migration with delay. · bf09e58d
    antirez authored
    We wait a fixed amount of time (5 seconds currently) much greater than
    the usual Cluster node to node communication latency, before migrating.
    This way when a failover occurs, before detecting the new master as a
    target for migration, we give the time to its natural slaves (the slaves
    of the failed over master) to announce they switched to the new master,
    preventing an useless migration operation.
    bf09e58d
cluster.h 12.8 KB