Skip to content

Commit 74812f6

Browse files
committed
stagger delay mins
1 parent 82b95d4 commit 74812f6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scaletest/templates/scaletest-runner/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ data "coder_parameter" "load_scenario_run_concurrently" {
269269
mutable = true
270270
}
271271

272-
data "coder_parameter" "load_scenario_concurrency_staggering" {
272+
data "coder_parameter" "load_scenario_concurrency_stagger_delay_mins" {
273273
order = 25
274-
name = "Load Scenario Concurrency Staggering"
274+
name = "Load Scenario Concurrency Stagger Delay"
275275
type = "number"
276276
default = 3
277277
description = "The number of minutes to wait between starting each load scenario when run concurrently."
@@ -596,7 +596,7 @@ resource "coder_agent" "main" {
596596
SCALETEST_PARAM_CLEANUP_PREPARE : data.coder_parameter.cleanup_prepare.value ? "1" : "0",
597597
SCALETEST_PARAM_LOAD_SCENARIOS : data.coder_parameter.load_scenarios.value,
598598
SCALETEST_PARAM_LOAD_SCENARIO_RUN_CONCURRENTLY : data.coder_parameter.load_scenario_run_concurrently.value ? "1" : "0",
599-
SCALETEST_PARAM_LOAD_SCENARIO_CONCURRENCY_STAGGERING : "${data.coder_parameter.load_scenario_concurrency_staggering.value}",
599+
SCALETEST_PARAM_LOAD_SCENARIO_CONCURRENCY_STAGGER_DELAY_MINS : "${data.coder_parameter.load_scenario_concurrency_stagger_delay_mins.value}",
600600
SCALETEST_PARAM_LOAD_SCENARIO_SSH_TRAFFIC_DURATION : "${data.coder_parameter.load_scenario_ssh_traffic_duration.value}",
601601
SCALETEST_PARAM_LOAD_SCENARIO_SSH_TRAFFIC_BYTES_PER_TICK : "${data.coder_parameter.load_scenario_ssh_bytes_per_tick.value}",
602602
SCALETEST_PARAM_LOAD_SCENARIO_SSH_TRAFFIC_TICK_INTERVAL : "${data.coder_parameter.load_scenario_ssh_tick_interval.value}",

scaletest/templates/scaletest-runner/scripts/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ for scenario in "${SCALETEST_PARAM_LOAD_SCENARIOS[@]}"; do
323323
pid_to_scenario+=(["${pids[-1]}"]="${scenario}")
324324
# Stagger the start of each scenario to avoid a burst of load and deted
325325
# problematic scenarios.
326-
sleep $((SCALETEST_PARAM_LOAD_SCENARIO_CONCURRENCY_STAGGERING * 60))
326+
sleep $((SCALETEST_PARAM_LOAD_SCENARIO_CONCURRENCY_STAGGER_DELAY_MINS * 60))
327327
continue
328328
fi
329329

0 commit comments

Comments
 (0)