Поднять API в нескольких репликах за HAProxy и добавить скрипты отказа реплики и rolling update
This commit is contained in:
Executable
+11
@@ -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
|
||||
Reference in New Issue
Block a user