Change multi-group startup delay from 0-15 to 1-20 seconds

pull/5484/head
Rene Cannao 1 month ago
parent cf54bff262
commit 40e5d785a6

@ -92,13 +92,11 @@ run_single_group() {
local log_file="${RESULTS_DIR}/${group}.log"
local start_time end_time duration
# Add random delay (0-15 seconds) to stagger infrastructure startup
# Add random delay (1-20 seconds) to stagger infrastructure startup
# This prevents resource contention when running multiple groups in parallel
local delay=$((RANDOM % 15))
if [ "${delay}" -gt 0 ]; then
echo "[$(date '+%Y-%m-%d %H:%M:%S')] ${group}: Waiting ${delay}s to stagger startup..." | tee -a "${log_file}"
sleep "${delay}"
fi
local delay=$((RANDOM % 20 + 1))
echo "[$(date '+%Y-%m-%d %H:%M:%S')] ${group}: Waiting ${delay}s to stagger startup..." | tee -a "${log_file}"
sleep "${delay}"
start_time=$(date +%s)
echo "[$(date '+%Y-%m-%d %H:%M:%S')] STARTING: ${group} (INFRA_ID: ${infra_id})" | tee -a "${log_file}"

@ -3,7 +3,7 @@
"ListenAddress": ":3000",
"MySQLTopologySSLSkipVerify": true,
"MySQLTopologyUser": "root",
"MySQLTopologyPassword": "b566f2c146",
"MySQLTopologyPassword": "35ecf4109c",
"BackendDB": "sqlite",
"SQLite3DataFile": "/var/lib/orchestrator/orchestrator.db",
"RaftEnabled": true,

@ -3,7 +3,7 @@
"ListenAddress": ":3000",
"MySQLTopologySSLSkipVerify": true,
"MySQLTopologyUser": "root",
"MySQLTopologyPassword": "b566f2c146",
"MySQLTopologyPassword": "35ecf4109c",
"BackendDB": "sqlite",
"SQLite3DataFile": "/var/lib/orchestrator/orchestrator.db",
"RaftEnabled": true,

@ -3,7 +3,7 @@
"ListenAddress": ":3000",
"MySQLTopologySSLSkipVerify": true,
"MySQLTopologyUser": "root",
"MySQLTopologyPassword": "b566f2c146",
"MySQLTopologyPassword": "35ecf4109c",
"BackendDB": "sqlite",
"SQLite3DataFile": "/var/lib/orchestrator/orchestrator.db",
"RaftEnabled": true,

Loading…
Cancel
Save