date: 2026-10-28T16:55:49Z  commit: e00eb6c
== before: api replicas (hostname = X-Instance-Id), state, StartedAt, FinishedAt
a3536e394b3f running started=2026-10-28T16:55:38.101692511Z finished=2026-10-28T16:55:25.134036046Z
27de23496b0f running started=2026-10-28T16:55:20.350443794Z finished=2026-10-28T16:55:07.575185552Z
$ 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": 133, "failed_attempts": 0, "first_recovery_seconds": 2.638}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
== after: api replicas
a3536e394b3f running started=2026-10-28T16:55:38.101692511Z finished=2026-10-28T16:55:25.134036046Z
27de23496b0f exited started=2026-10-28T16:55:20.350443794Z finished=2026-10-28T16:55:52.113620836Z
== stopped replica: 27de23496b0f; shutdown: signal, drain window with readiness 503, close, exit
{"event":"Handling signal: term","level":"info","ts":"2026-10-28T16:55:49.715606Z"}
{"event":"Draining for 2.0 s","level":"info","ts":"2026-10-28T16:55:49.748209Z"}
{"event":"Draining for 2.0 s","level":"info","ts":"2026-10-28T16:55:49.800251Z"}
{"method":"GET","route":"/health/ready","status":503,"request_id":"a5298514a38548218bda2d37c01dada5","duration_ms":0.391,"event":"request.handled","level":"info","ts":"2026-10-28T16:55:49.826086Z"}
{"method":"GET","route":"/health/ready","status":503,"request_id":"5547700c46e843b79f7d7ff06c7a5f2e","duration_ms":0.357,"event":"request.handled","level":"info","ts":"2026-10-28T16:55:50.328563Z"}
{"event":"Shutting down","level":"info","ts":"2026-10-28T16:55:51.748865Z"}
{"event":"Shutting down","level":"info","ts":"2026-10-28T16:55:51.801844Z"}
{"event":"service.stopped","level":"info","ts":"2026-10-28T16:55:51.851863Z"}
{"event":"Finished server process [7]","level":"info","ts":"2026-10-28T16:55:51.852006Z"}
{"event":"service.stopped","level":"info","ts":"2026-10-28T16:55:51.904178Z"}
{"event":"Finished server process [8]","level":"info","ts":"2026-10-28T16:55:51.904314Z"}
{"event":"Worker (pid:7) was sent SIGTERM!","level":"info","ts":"2026-10-28T16:55:51.951844Z"}
{"event":"Worker (pid:8) was sent SIGTERM!","level":"info","ts":"2026-10-28T16:55:51.951924Z"}
{"event":"Shutting down: Master","level":"info","ts":"2026-10-28T16:55:52.052865Z"}
$ 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
a3536e394b3f running started=2026-10-28T16:55:38.101692511Z finished=2026-10-28T16:55:25.134036046Z
27de23496b0f running started=2026-10-28T16:56:05.100393509Z finished=2026-10-28T16:55:52.113620836Z
