From b1befe43b4765b69d7b1f4299fc5a8bb63bb1ac3 Mon Sep 17 00:00:00 2001 From: John Smith Date: Mon, 2 Dec 2024 17:33:26 +1030 Subject: [PATCH] chore: Adjust load test machine count --- load-tests/entrypoint.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/load-tests/entrypoint.sh b/load-tests/entrypoint.sh index d93b3e26..bcaaf087 100755 --- a/load-tests/entrypoint.sh +++ b/load-tests/entrypoint.sh @@ -4,15 +4,15 @@ set -e PIDS=() -# Start 10 instances of the machine -for i in $(seq 1 10); do +# Start 5 instances of the machine +for i in $(seq 1 5); do tsx machine.ts & PIDS+=($!) done -# Every 30 seconds, check if all instances are still running +# Every 60 seconds, check if all instances are still running while true; do - sleep 30 + sleep 60 for pid in "${PIDS[@]}"; do kill -0 $pid || exit 1 done