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
@@ -11,7 +11,7 @@ PSQL = $(COMPOSE) exec -T postgres psql -U messenger -d messenger -X -q
|
||||
|
||||
.PHONY: help check validate test load test-persistence test-failover \
|
||||
install lint format typecheck student-test \
|
||||
secrets up down reset-data migrate ps logs restore lb-check \
|
||||
secrets up down reset-data migrate ps logs restore lb-check failover-evidence stack-evidence \
|
||||
persistence-evidence storage-evidence cache-evidence test-faults seed explain
|
||||
|
||||
help:
|
||||
@@ -86,6 +86,12 @@ restore:
|
||||
lb-check:
|
||||
$(PYTHON) scripts/probe.py check --out evidence/lb-check.json
|
||||
|
||||
failover-evidence:
|
||||
sh scripts/failover-evidence.sh "$(BASE_URL)"
|
||||
|
||||
stack-evidence:
|
||||
sh scripts/evidence-stack.sh
|
||||
|
||||
persistence-evidence:
|
||||
sh scripts/persistence-evidence.sh "$(BASE_URL)" > evidence/persistence.txt
|
||||
cat evidence/persistence.txt
|
||||
|
||||
Reference in New Issue
Block a user