Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvserver: stop reconciling range count imbalance in the StoreRebalancer
Previously, the `StoreRebalancer` would rebalance ranges off of a node if it had more than the average number of replicas compared to the cluster average. This was undesirable because the `StoreRebalancer` was not respecting the {over,under}fullness thresholds that the replicateQueue does, which could lead to redundant range relocations even in a well balanced cluster. This commit is an opinionated fix to prevent this behavior and an attempt to more clearly delineate the responsibilities of the replica rebalancing aspects of the `StoreRebalancer` and the `replicateQueue`. Noticed while looking into cockroachdb#64064. Release note: None
- Loading branch information