date: 2026-10-28T08:47:27Z  commit: 0796e29
== before: api replicas (hostname = X-Instance-Id), state, StartedAt, FinishedAt
302cfee8f673 running started=2026-10-28T08:47:14.781792917Z finished=2026-10-28T08:47:07.856233678Z
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": 123, "failed_attempts": 0, "first_recovery_seconds": 1.212}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
== after: api replicas
302cfee8f673 exited started=2026-10-28T08:47:14.781792917Z finished=2026-10-28T08:47:28.65076559Z
b582bd503bdd running started=2026-10-28T08:47:14.713654417Z finished=2026-10-28T08:47:07.971063344Z
== stopped replica: 302cfee8f673; last log lines of its process
{"event":"service.stopped","level":"info","ts":"2026-10-28T08:47:28.456077Z"}
{"event":"Application shutdown complete.","level":"info","ts":"2026-10-28T08:47:28.456276Z"}
{"event":"Finished server process [8]","level":"info","ts":"2026-10-28T08:47:28.456336Z"}
{"event":"Worker (pid:7) was sent SIGTERM!","level":"info","ts":"2026-10-28T08:47:28.459598Z"}
{"event":"Worker (pid:8) was sent SIGTERM!","level":"info","ts":"2026-10-28T08:47:28.459755Z"}
{"event":"Shutting down: Master","level":"info","ts":"2026-10-28T08:47:28.568492Z"}
$ scripts/restore.sh
 Container mtusi2026lab3-api-2  Running
 Container mtusi2026lab3-api-1  Starting
 Container mtusi2026lab3-api-1  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:47:14.713654417Z finished=2026-10-28T08:47:07.971063344Z
