redict/tests/cluster
Sokolov Yura 1cab962098
Add cluster-allow-replica-migration option. (#5285)
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: Oran Agra <oran@redislabs.com>
2021-04-04 09:43:24 +03:00
..
tests Add cluster-allow-replica-migration option. (#5285) 2021-04-04 09:43:24 +03:00
tmp Cluster test: add tmp dir to Git repo. 2014-05-26 18:08:12 +02:00
cluster.tcl Fix cluster diskless load swapdb test (#8308) 2021-01-12 09:41:57 +02:00
run.tcl TLS: Connections refactoring and TLS support. 2019-10-07 21:06:13 +03:00