Skip to content

Commit 60782d1

Browse files
committed
add new arg for load testing
Signed-off-by: Michael Oviedo <[email protected]>
1 parent af60c87 commit 60782d1

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

osbenchmark/benchmark.py

+7
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,12 @@ def add_workload_source(subparser):
647647
action="store_true",
648648
help="Stop executing tests if an error occurs in one of the test iterations (default: false).",
649649
)
650+
test_execution_parser.add_argument(
651+
"--load-test",
652+
action="store_true",
653+
help="Run a load test (default: false).",
654+
default=False
655+
)
650656

651657
###############################################################################
652658
#
@@ -920,6 +926,7 @@ def configure_test(arg_parser, args, cfg):
920926
"load_worker_coordinator_hosts",
921927
opts.csv_to_list(args.load_worker_coordinator_hosts))
922928
cfg.add(config.Scope.applicationOverride, "workload", "test.mode.enabled", args.test_mode)
929+
cfg.add(config.Scope.applicationOverride, "workload", "load.test.enabled", args.load_test)
923930
cfg.add(config.Scope.applicationOverride, "workload", "latency.percentiles", args.latency_percentiles)
924931
cfg.add(config.Scope.applicationOverride, "workload", "throughput.percentiles", args.throughput_percentiles)
925932
cfg.add(config.Scope.applicationOverride, "workload", "randomization.enabled", args.randomization_enabled)

osbenchmark/worker_coordinator/worker_coordinator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,7 @@ async def __call__(self, *args, **kwargs):
16141614
await asyncio.sleep(rampup_wait_time)
16151615

16161616
if rampup_wait_time:
1617-
console.println(f" Client id {self.client_id} is running now.")
1617+
self.logger.info(f" Client id {self.client_id} is running now.")
16181618

16191619
self.logger.debug("Entering main loop for client id [%s].", self.client_id)
16201620
# noinspection PyBroadException

0 commit comments

Comments
 (0)