-
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.
config: introduce
num_voters
and voter_constraints
This commit introduces two new attributes to zone configs: `num_voters` and `voter_constraints`. These attributes semantically act as subsets of the existing `num_replicas` and `constraints` attributes, in that they apply _only_ to voting replicas. After this change, when `num_voters` is explicitly specified, `num_replicas` indicates the sum of voting and non-voting replicas. Likewise, the existing `constraints` field governs the placement constraints for all replicas (similarly defaulting to just voting replicas if non-voting replicas aren't used), whereas the new `voter_constraints` field governs placement constraints for just the voting replicas. *This retains backwards compatibility* for existing zone configs that do not use these newly added attributes. Note that the set of nodes satisfying `voter_constraints` may not necessarily be a subset of the set of nodes satisfying `constraints`. `voter_constraints` are simply required to be compatible with `constraints`. They can be totally disjoint from the `constraints` (i.e. talk about completely different set of attributes). Release note (sql change): Zone configs now support new attributes `num_voters` and `voter_constraints`. `num_voters` will specify the number of voting replicas. When `num_voters` is explicitly specified, `num_replicas` will be the sum of voting and non-voting replicas. `voter_constraints` will specify the constraints that govern the placement of just the voting replicas, whereas the existing `constraints` attributes will govern the placement of all replicas (voting as well as non-voting).
- Loading branch information
1 parent
ba82208
commit 836f39c
Showing
12 changed files
with
875 additions
and
143 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
Oops, something went wrong.