-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
95909: allocator: fix priority inversion between replica replace and remove r=AlexTalks a=AlexTalks Previously, when a change in cluster size lowers the effective replication factor (e.g. a system range with RF=5 on a 5-node cluster and 1 or more decommissioning nodes which results in an effective RF=3), the allocator would always compute a needed action of "remove", rather than any higher-priority actions that should be acted upon first, such as to replace any decommissioning/dead replicas. This change modifies the allocator to consider how many replicas are being removed. Epic: CRDB-20924 Release note: None Co-authored-by: Alex Sarkesian <[email protected]>
- Loading branch information
Showing
3 changed files
with
118 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters