forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
61239: kvserver: handle range-level rebalancing of non-voting replicas r=aayushshah15 a=aayushshah15 First commit from cockroachdb#60029 This PR adds the necessary machinery within the allocator and the plumbing within the replicateQueue to be able to rebalance non-voting replicas. A few things to note are: Voting replicas are allowed to rebalance to nodes that already have a non-voting replica. This will trigger what is, essentially, a metadata operation: flipping the replica type of the corresponding non-voter to a voter and the type of the voter to a non_voter. Notably, this PR changes voter allocation code to also be able to do this. Computation of diversity scores works slightly differently for voting replicas and non-voting replicas. Non-voting replicas compute candidate diversity scores based off of all existing replicas, whereas voting replicas compute candidate diversity scores off of just the set of voting replicas. This PR does not yet add support in the store rebalancer to make rebalancing decisions for non-voting replicas and we don't yet support removal/ replacement of dead and decommissioning non-voters. These things are coming in follow-up PRs. Release justification: necessary for non-voting replicas Release note: None 61373: kvserver, timeutil: fix some Timer user-after-Stops r=andreimatei a=andreimatei Two guys were continuing to use a Timer after Stop()ing it, which is illegal. Release note: None Release justification: Bug fix. Co-authored-by: Aayush Shah <[email protected]> Co-authored-by: Andrei Matei <[email protected]>
- Loading branch information
Showing
12 changed files
with
1,001 additions
and
351 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.