Implement lab3 scaling, shared idempotency, failure research and defense guide

This commit is contained in:
2026-10-29 21:36:47 +03:00
parent 0ab3a341aa
commit 99c87315cf
58 changed files with 8860 additions and 24 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
ids=$(docker compose ps -q api)
count=$(printf '%s\n' "$ids" | wc -l | tr -d ' ')
for id in $ids; do
docker stop --time 6 "$id" >/dev/null
docker rm "$id" >/dev/null
docker compose up -d --no-deps --scale api="$count" --wait api >/dev/null
sleep 2
done