date: 2026-10-28T18:29:44Z  commit: 24f9d61
== before: api replicas (hostname = X-Instance-Id), state, StartedAt, FinishedAt
196b3a876d81 running started=2026-10-28T18:29:41.187041709Z finished=2026-10-28T18:29:28.219275009Z
8bd1d38428d0 running started=2026-10-28T18:25:38.512082013Z finished=2026-10-28T18:25:25.52109609Z
$ 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:18084" 
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 127, "failed_attempts": 0, "first_recovery_seconds": 3.076}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
== after: api replicas
196b3a876d81 running started=2026-10-28T18:29:41.187041709Z finished=2026-10-28T18:29:28.219275009Z
8bd1d38428d0 exited started=2026-10-28T18:25:38.512082013Z finished=2026-10-28T18:29:47.669441462Z
== stopped replica: 8bd1d38428d0; shutdown: signal, drain window with readiness 503, close, exit
{"event":"Handling signal: term","level":"info","ts":"2026-10-28T18:29:44.898894Z"}
{"event":"Draining for 2.0 s","level":"info","ts":"2026-10-28T18:29:44.961814Z"}
{"event":"Draining for 2.0 s","level":"info","ts":"2026-10-28T18:29:44.977718Z"}
{"method":"GET","route":"/health/ready","status":503,"request_id":"ec593d2f46144036b1dd668ecd5f92ec","duration_ms":0.286,"event":"request.handled","level":"info","ts":"2026-10-28T18:29:45.347641Z"}
{"method":"GET","route":"/health/ready","status":503,"request_id":"c31a3838896d4bf5b00be6a5d1e13aa8","duration_ms":1.492,"event":"request.handled","level":"info","ts":"2026-10-28T18:29:45.711924Z"}
{"method":"GET","route":"/health/ready","status":503,"request_id":"2be83d842d0e4f9bbf38240a90eaffb0","duration_ms":0.413,"event":"request.handled","level":"info","ts":"2026-10-28T18:29:46.217772Z"}
{"event":"Shutting down","level":"info","ts":"2026-10-28T18:29:46.963596Z"}
{"event":"Shutting down","level":"info","ts":"2026-10-28T18:29:46.979906Z"}
{"event":"service.stopped","level":"info","ts":"2026-10-28T18:29:47.071763Z"}
{"event":"Finished server process [8]","level":"info","ts":"2026-10-28T18:29:47.072039Z"}
{"event":"service.stopped","level":"info","ts":"2026-10-28T18:29:47.084542Z"}
{"event":"Finished server process [7]","level":"info","ts":"2026-10-28T18:29:47.084788Z"}
{"event":"Worker (pid:8) was sent SIGTERM!","level":"info","ts":"2026-10-28T18:29:47.087800Z"}
{"event":"Worker (pid:7) was sent SIGTERM!","level":"info","ts":"2026-10-28T18:29:47.199665Z"}
{"event":"Shutting down: Master","level":"info","ts":"2026-10-28T18:29:47.308734Z"}
$ scripts/restore.sh
 Container mtusi2026lab4-api-1  Running
 Container mtusi2026lab4-api-2  Starting
 Container mtusi2026lab4-api-2  Started
 Container mtusi2026lab4-api-1  Waiting
 Container mtusi2026lab4-api-2  Waiting
 Container mtusi2026lab4-api-1  Healthy
 Container mtusi2026lab4-api-2  Healthy
== after restore
196b3a876d81 running started=2026-10-28T18:29:41.187041709Z finished=2026-10-28T18:29:28.219275009Z
8bd1d38428d0 running started=2026-10-28T18:30:00.267276635Z finished=2026-10-28T18:29:47.669441462Z
