Files
mtusi2026lab3/evidence/failover-b582bd503bdd.txt
T
ArtyomandClaude Opus 5.5 957eabdfc3 Record level 3 evidence and fill in the report
Save sanitized outputs from a stand started from a clean state: the
clean clone run, smoke through the balancer, the stack view with the
replica hostnames, ports, networks, limits and the balancer server
states, the probe with two replicas behind one token and the eight
way race on one key, a failover run for each replica with the
container left exited and its graceful shutdown log, the hook
negative cases and the balancer answer without replicas, the
persistence run with StartedAt of every container before and after,
schema, migration rerun, KDF prefix, ignore rules, own tests and the
lab 2 stack fault tests through the balancer, plus the environment.

The report covers the clean clone start, the architecture, the
X-Instance-Id and idempotency decisions, the balancer settings, the
role to service table, the mapping of .env.example to the real
variables, one evidence row per level 3 criterion and the carried
lab 2 minimum, and the failure table for level 3.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 11:53:11 +03:00

31 lines
2.1 KiB
Plaintext

date: 2026-10-28T08:47:47Z commit: 0796e29
== before: api replicas (hostname = X-Instance-Id), state, StartedAt, FinishedAt
302cfee8f673 running started=2026-10-28T08:47:43.609172555Z finished=2026-10-28T08:47:28.65076559Z
b582bd503bdd running started=2026-10-28T08:47:14.713654417Z finished=2026-10-28T08:47:07.971063344Z
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://localhost:18083"
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 118, "failed_attempts": 0, "first_recovery_seconds": 1.726}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
== after: api replicas
302cfee8f673 running started=2026-10-28T08:47:43.609172555Z finished=2026-10-28T08:47:28.65076559Z
b582bd503bdd exited started=2026-10-28T08:47:14.713654417Z finished=2026-10-28T08:47:48.23612871Z
== stopped replica: b582bd503bdd; last log lines of its process
{"event":"service.stopped","level":"info","ts":"2026-10-28T08:47:47.995678Z"}
{"event":"Application shutdown complete.","level":"info","ts":"2026-10-28T08:47:47.995877Z"}
{"event":"Finished server process [8]","level":"info","ts":"2026-10-28T08:47:47.995948Z"}
{"event":"Worker (pid:7) was sent SIGTERM!","level":"info","ts":"2026-10-28T08:47:48.041499Z"}
{"event":"Worker (pid:8) was sent SIGTERM!","level":"info","ts":"2026-10-28T08:47:48.041664Z"}
{"event":"Shutting down: Master","level":"info","ts":"2026-10-28T08:47:48.152563Z"}
$ scripts/restore.sh
Container mtusi2026lab3-api-1 Running
Container mtusi2026lab3-api-2 Starting
Container mtusi2026lab3-api-2 Started
Container mtusi2026lab3-api-2 Waiting
Container mtusi2026lab3-api-1 Waiting
Container mtusi2026lab3-api-2 Healthy
Container mtusi2026lab3-api-1 Healthy
== after restore
302cfee8f673 running started=2026-10-28T08:47:43.609172555Z finished=2026-10-28T08:47:28.65076559Z
b582bd503bdd running started=2026-10-28T08:48:03.240408759Z finished=2026-10-28T08:47:48.23612871Z