• Sokolov Yura's avatar
    Add cluster-allow-replica-migration option. (#5285) · 1cab9620
    Sokolov Yura authored
    
    
    Previously (and by default after commit) when master loose its last slot
    (due to migration, for example), its replicas will migrate to new last slot
    holder.
    
    There are cases where this is not desired:
    * Consolidation that results with removed nodes (including the replica, eventually).
    * Manually configured cluster topologies, which the admin wishes to preserve.
    
    Needlessly migrating a replica triggers a full synchronization and can have a negative impact, so
    we prefer to be able to avoid it where possible.
    
    This commit adds 'cluster-allow-replica-migration' configuration option that is
    enabled by default to preserve existed behavior. When disabled, replicas will
    not be auto-migrated.
    
    Fixes #4896
    Co-authored-by: default avatarOran Agra <oran@redislabs.com>
    1cab9620
redis.conf 91.5 KB