Record which replica stops and which services restart
scripts/failover-evidence.sh lists the api containers by hostname, the X-Instance-Id they answer with, before and after make test-failover, names the container left exited, keeps its last log lines with the gunicorn graceful shutdown, then restores it and lists the replicas again. scripts/evidence-stack.sh records the compose config check, published ports, the missing port of a replica, hostnames, networks, limits, process users, the balancer view of every server and the alternating X-Instance-Id through the balancer, plus the environment and image versions. The persistence and storage evidence scripts now list every replica and the idempotency key table. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
ceb266ed05
commit
ae8fb0a48e
@@ -2,16 +2,13 @@
|
||||
set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
started() {
|
||||
for service in $(docker compose config --services); do
|
||||
id=$(docker compose ps -aq "$service")
|
||||
if [ -n "$id" ]; then
|
||||
printf '%-10s %s\n' "$service" "$(docker inspect --format '{{.State.StartedAt}} {{.State.Status}}' "$id")"
|
||||
fi
|
||||
done
|
||||
for id in $(docker compose ps -aq); do
|
||||
docker inspect --format '{{index .Config.Labels "com.docker.compose.service"}} {{.Config.Hostname}} {{.State.StartedAt}} {{.State.Status}}' "$id"
|
||||
done | sort
|
||||
}
|
||||
echo "date: $(date -u +%FT%TZ) commit: $(git rev-parse --short HEAD)"
|
||||
echo "== before: service StartedAt status"
|
||||
echo "== before: service hostname StartedAt status"
|
||||
started
|
||||
make --no-print-directory test-persistence ACTION_SCRIPT=scripts/restart.sh BASE_URL="${1:-http://localhost:8080}"
|
||||
echo "== after: service StartedAt status"
|
||||
echo "== after: service hostname StartedAt status"
|
||||
started
|
||||
|
||||
Reference in New Issue
Block a user