date: 2026-10-29T23:44:07Z  commit: b1c80ee
== before: api replicas (hostname = X-Instance-Id), state, StartedAt, FinishedAt
286766bf2b32 running started=2026-10-29T23:44:05.033337427Z finished=2026-10-29T23:43:52.024916004Z
fa81adafcb69 running started=2026-10-29T23:43:39.090674429Z finished=0001-01-01T00:00:00Z
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:18083" 
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 138, "failed_attempts": 0, "first_recovery_seconds": 2.747}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
== after: api replicas
286766bf2b32 running started=2026-10-29T23:44:05.033337427Z finished=2026-10-29T23:43:52.024916004Z
fa81adafcb69 exited started=2026-10-29T23:43:39.090674429Z finished=2026-10-29T23:44:10.137449096Z
== stopped replica: fa81adafcb69; shutdown: signal, drain window with readiness 503, close, exit
{"event":"Handling signal: term","level":"info","ts":"2026-10-29T23:44:07.710976Z"}
{"event":"Draining for 2.0 s","level":"info","ts":"2026-10-29T23:44:07.756678Z"}
{"event":"Draining for 2.0 s","level":"info","ts":"2026-10-29T23:44:07.770491Z"}
{"method":"GET","route":"/health/ready","status":503,"request_id":"2f965d245d53475c9ab43ce9dcab6852","duration_ms":1.826,"event":"request.handled","level":"info","ts":"2026-10-29T23:44:08.165019Z"}
{"method":"GET","route":"/health/ready","status":503,"request_id":"3c719bab920a4a93a5f02879ee7b9956","duration_ms":0.311,"event":"request.handled","level":"info","ts":"2026-10-29T23:44:08.668643Z"}
{"event":"Shutting down","level":"info","ts":"2026-10-29T23:44:09.763079Z"}
{"event":"Shutting down","level":"info","ts":"2026-10-29T23:44:09.774449Z"}
{"event":"service.stopped","level":"info","ts":"2026-10-29T23:44:09.869115Z"}
{"event":"Finished server process [13]","level":"info","ts":"2026-10-29T23:44:09.869290Z"}
{"event":"service.stopped","level":"info","ts":"2026-10-29T23:44:09.877846Z"}
{"event":"Finished server process [14]","level":"info","ts":"2026-10-29T23:44:09.878011Z"}
{"event":"Worker (pid:13) was sent SIGTERM!","level":"info","ts":"2026-10-29T23:44:09.969112Z"}
{"event":"Worker (pid:14) was sent SIGTERM!","level":"info","ts":"2026-10-29T23:44:09.969204Z"}
{"event":"Shutting down: Master","level":"info","ts":"2026-10-29T23:44:10.075447Z"}
$ 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
286766bf2b32 running started=2026-10-29T23:44:05.033337427Z finished=2026-10-29T23:43:52.024916004Z
fa81adafcb69 running started=2026-10-29T23:44:23.064230129Z finished=2026-10-29T23:44:10.137449096Z
