Skip to content

Commit

Permalink
Fix capitalized references
Browse files Browse the repository at this point in the history
Signed-off-by: Thane Thomson <connect@thanethomson.com>
  • Loading branch information
thanethomson committed Nov 1, 2021
1 parent 8e95c8b commit ce2dbd6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions cmd/tm-load-test/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ To run the application in a similar fashion to tm-bench (STANDALONE mode):
--broadcast-tx-method async \
--endpoints ws://tm-endpoint1.somewhere.com:26657/websocket,ws://tm-endpoint2.somewhere.com:26657/websocket
To run the application in MASTER mode:
To run the application in COORDINATOR mode:
tm-load-test \
coordinator \
--expect-workers 2 \
Expand All @@ -24,17 +24,18 @@ To run the application in MASTER mode:
--broadcast-tx-method async \
--endpoints ws://tm-endpoint1.somewhere.com:26657/websocket,ws://tm-endpoint2.somewhere.com:26657/websocket
To run the application in SLAVE mode:
To run the application in WORKER mode:
tm-load-test worker --coordinator localhost:26680
NOTES:
* MASTER mode exposes a "/metrics" endpoint in Prometheus plain text format
* COORDINATOR mode exposes a "/metrics" endpoint in Prometheus plain text
* format
which shows total number of transactions and the status for the coordinator
and all connected workers.
* The "--shutdown-wait" flag in MASTER mode is specifically to allow your
* The "--shutdown-wait" flag in COORDINATOR mode is specifically to allow your
monitoring system some time to obtain the final Prometheus metrics from the
metrics endpoint.
* In SLAVE mode, all load testing-related flags are ignored. The worker always
* In WORKER mode, all load testing-related flags are ignored. The worker always
takes instructions from the coordinator node it's connected to.
`

Expand Down
4 changes: 2 additions & 2 deletions pkg/loadtest/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func buildCLI(cli *CLIConfig, logger logging.Logger) *cobra.Command {
var coordCfg CoordinatorConfig
coordCmd := &cobra.Command{
Use: "coordinator",
Short: "Start load test application in MASTER mode",
Short: "Start load test application in COORDINATOR mode",
Run: func(cmd *cobra.Command, args []string) {
logger.Debug(fmt.Sprintf("Configuration: %s", cfg.ToJSON()))
logger.Debug(fmt.Sprintf("Coordinator configuration: %s", coordCfg.ToJSON()))
Expand All @@ -96,7 +96,7 @@ func buildCLI(cli *CLIConfig, logger logging.Logger) *cobra.Command {
var workerCfg WorkerConfig
workerCmd := &cobra.Command{
Use: "worker",
Short: "Start load test application in SLAVE mode",
Short: "Start load test application in WORKER mode",
Run: func(cmd *cobra.Command, args []string) {
logger.Debug(fmt.Sprintf("Worker configuration: %s", workerCfg.ToJSON()))
if err := workerCfg.Validate(); err != nil {
Expand Down

0 comments on commit ce2dbd6

Please sign in to comment.