mit-dci / opencbdc-tx

A transaction processor for a hypothetical, general-purpose, central bank digital currency
Other
891 stars 200 forks source link

Modify parsec-run-local.sh script to run with multiple agents and shards #276

Open rockett-m opened 2 weeks ago

rockett-m commented 2 weeks ago

The script is currently limited to 1 agent and 1 shard. We seek to enable the parsec-run-local.sh to work with many agents and shards.

"This requires adding more lines a la --shard00_endpoint=$IP:5556 --shard00_raft_endpoint=$IP:5557. Those need to be programmatically generated as they need to choose new ports (e.g. sequentially in a loop)" @madars

Thinking about adding command line args on how many agents and shards are desired and handling if those are within allowable bounds, and then generating the arguments accordingly before running like the standard script.

@HalosGhost could you assign this to me? If you could add "enhancement/testing" as a label, that would be great