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: convert ZoneConfig to the new format
Converts ZoneConfig to the new format specified in the expressive ZoneConfig RFC. This is intermediate work on cockroachdb#4868. https://github.com/cockroachdb/cockroach/blob/develop/docs/RFCS/expressive_zone_config.md - Allocator and StorePool use []config.Constraint instead of roachpb.Attributes since the new type allows for different types of constraint. - Adds a `ZoneConfigLegacy` struct for upgrades to the new format. - Adds a `ZoneConfigHuman` struct for easier specification on the command line.
- Loading branch information
Showing
25 changed files
with
1,250 additions
and
335 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
replicas: | ||
- attrs: [us-east-1a,ssd] | ||
num_replicas: 1 | ||
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
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.