Implement Lab 3 grade 4 messenger balancing

This commit is contained in:
2026-11-12 20:48:24 +03:00
parent 0ab3a341aa
commit db070826c0
52 changed files with 1967 additions and 50 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
mkdir -p evidence
load_json=evidence/rolling-update-load.json
load_log=evidence/rolling-update-load.log
update_log=evidence/rolling-update.log
python3 tests/load.py --duration 60 --concurrency 4 --output "$load_json" >"$load_log" 2>&1 &
load_pid=$!
sleep 2
set +e
bash scripts/rolling-update.sh 2>&1 | tee "$update_log"
update_status=${PIPESTATUS[0]}
set -e
if ! wait "$load_pid"; then
printf 'Background load scenario failed; inspect %s.\n' "$load_log" >&2
exit 1
fi
exit "$update_status"