Поднять API в нескольких репликах за HAProxy и добавить скрипты отказа реплики и rolling update

This commit is contained in:
2026-11-02 17:20:38 +03:00
parent 951fd0d517
commit c5cdcb3377
9 changed files with 312 additions and 10 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
# Shows which container answers under which X-Instance-Id: the proof on the
# defense that the header values belong to different running processes, and
# which container a failover test actually stopped.
set -eu
cd "$(dirname "$0")/.."
printf '%-12s %-14s %-8s %-16s %s\n' CONTAINER NAME STATE X-INSTANCE-ID IMAGE
sh scripts/api-instances.sh | while read -r id name state alias image; do
printf '%-12s %-14s %-8s %-16s %s\n' "$id" "$name" "$state" "$alias" "$image"
done