-
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.
storage: prioritize up-replication over dead-replica removal
Previously, dead-replica removal was prioritized over up-replication which could lead to situations in which the up-replication work created by the removal of a dead-replica was starved for a significant period of time. Additionally, dead-replica removal is quite fast in comparison to up-replication so prioritizing it allows a whole bunch of up-replication work to be generated fairly quickly. Now we prioritize up-replication work over dead-replica removal. If a stable cluster (no replication work needed), when a node dies each replicateQueue will alternate between removing a dead replica from a range and bringing that same range back to full replication. Fixes #10476
- Loading branch information
1 parent
09c0f88
commit 419fe71
Showing
2 changed files
with
41 additions
and
41 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