-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Improve cockroach demo nodes feature #39780
Copy link
Copy link
Closed
Labels
A-demoA-partitioningC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Description
Right now, the cockroach demo takes in a --demo-locality argument which accepts a single locality tier for each node in the demo.
It would be better to allow for an arbitrary number of tiers to be assigned to each node, and to avoid abusing the parsing of the Locality flag, as brought up in comments on #39454.
A solution to do this is to use the syntax as follows, where colons separate the localities for each node.
./cockroach demo --nodes=3 --demo-localities=region=us-east1,az=1:region=us-east-1,az=2:region=us-east-1,az=3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-demoA-partitioningC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)