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.
config/storage: per-replica constraints, improved locality handling
This creates a new allowable format for zone config constraints, which lets the user apply different sets of constraints to different numbers of replicas within a zone. See the included tests for what the new format looks like. Fixes cockroachdb#19985 It also improves the handling of localities that are more or less full than one another for some reason outside the system's control (e.g. if one has more nodes than the others or if some constraints have required more ranges to be in one). In such cases, this does a better job of balancing ranges amongst the nodes that are more or less full because we compare them amongst each other now rather than comparing them to the StoreList averages of all the stores in the cluster. Fixes cockroachdb#20751 This also deprecates positive (non-required, non-prohibited) constraints. New positive constraints cannot be set, and existing positive constraints will be ignored. Release note (cli change): Replication zone constraints can now be specified on a per-replica basis, meaning you can configure some replicas in a zone's ranges to follow one set of constraints and other replicas to follow other constraints. Release note (backwards-incompatible change): Positive constraints in replication zone configs no longer work. They have never been documented or officially supported, but will no longer be allowed at all. Any existing positive constraints will be ignored.
- Loading branch information
1 parent
32812f5
commit 93cd1c0
Showing
22 changed files
with
3,493 additions
and
786 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
num_replicas: 1 | ||
constraints: [us-east-1a,ssd] | ||
constraints: [+us-east-1a,+ssd] |
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.