forked from mtusi2026/mtusi2026lab6
45 lines
3.6 KiB
Plaintext
45 lines
3.6 KiB
Plaintext
date: 2026-11-06T11:34:43Z commit: 447a6507f973596e612f40c1484dda922bf0e50d
|
|
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
|
$ env EVIDENCE_DIR=evidence/grade4/failover make failover-evidence SHIFT=0
|
|
sh scripts/failover-evidence.sh "http://127.0.0.1:18086" "0"
|
|
date: 2026-11-06T11:34:43Z commit: 447a6507f973596e612f40c1484dda922bf0e50d
|
|
== before: api replicas (hostname = X-Instance-Id), state, StartedAt, FinishedAt
|
|
60787bbfae10 running started=2026-11-06T11:34:39.928086134Z finished=2026-11-06T11:34:33.549212797Z
|
|
b3d83f79f546 running started=2026-11-06T11:34:40.000869551Z finished=2026-11-06T11:34:33.543407339Z
|
|
$ 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:18086"
|
|
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
|
{"observed_instances_before": 2, "successful_writes": 131, "failed_attempts": 0, "first_recovery_seconds": 2.844}
|
|
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
== after: api replicas
|
|
60787bbfae10 running started=2026-11-06T11:34:39.928086134Z finished=2026-11-06T11:34:33.549212797Z
|
|
b3d83f79f546 exited started=2026-11-06T11:34:40.000869551Z finished=2026-11-06T11:34:48.429366971Z
|
|
== stopped replica: b3d83f79f546; shutdown: signal, drain window with readiness 503, close, exit
|
|
{"event":"Handling signal: term","level":"info","ts":"2026-11-06T11:34:45.913524Z"}
|
|
{"limit":2.0,"event":"service.draining","level":"info","ts":"2026-11-06T11:34:45.938489Z"}
|
|
{"limit":2.0,"event":"service.draining","level":"info","ts":"2026-11-06T11:34:45.977221Z"}
|
|
{"method":"GET","route":"/health/ready","status":503,"request_id":"41dd383e94a3402eb46cbb33a22d66bf","duration_ms":1.036,"event":"request.handled","level":"info","ts":"2026-11-06T11:34:46.188407Z"}
|
|
{"method":"GET","route":"/health/ready","status":503,"request_id":"977969cc9efe4c68b46a1b03730fa3d7","duration_ms":0.288,"event":"request.handled","level":"info","ts":"2026-11-06T11:34:46.560434Z"}
|
|
{"method":"GET","route":"/health/ready","status":503,"request_id":"1d1cd824e63f42d6bc35f8162ac660bd","duration_ms":0.344,"event":"request.handled","level":"info","ts":"2026-11-06T11:34:46.695325Z"}
|
|
{"event":"Shutting down","level":"info","ts":"2026-11-06T11:34:47.938966Z"}
|
|
{"event":"Shutting down","level":"info","ts":"2026-11-06T11:34:47.978946Z"}
|
|
{"event":"service.stopped","level":"info","ts":"2026-11-06T11:34:48.041941Z"}
|
|
{"event":"Finished server process [21]","level":"info","ts":"2026-11-06T11:34:48.045395Z"}
|
|
{"event":"Worker (pid:21) was sent SIGTERM!","level":"info","ts":"2026-11-06T11:34:48.057249Z"}
|
|
{"event":"service.stopped","level":"info","ts":"2026-11-06T11:34:48.081771Z"}
|
|
{"event":"Finished server process [26]","level":"info","ts":"2026-11-06T11:34:48.086046Z"}
|
|
{"event":"Worker (pid:26) was sent SIGTERM!","level":"info","ts":"2026-11-06T11:34:48.158260Z"}
|
|
{"event":"Shutting down: Master","level":"info","ts":"2026-11-06T11:34:48.263693Z"}
|
|
$ scripts/restore.sh
|
|
Container mtusi2026lab6-api-1 Running
|
|
Container mtusi2026lab6-api-2 Starting
|
|
Container mtusi2026lab6-api-2 Started
|
|
Container mtusi2026lab6-api-1 Waiting
|
|
Container mtusi2026lab6-api-2 Waiting
|
|
Container mtusi2026lab6-api-1 Healthy
|
|
Container mtusi2026lab6-api-2 Healthy
|
|
== after restore
|
|
60787bbfae10 running started=2026-11-06T11:34:39.928086134Z finished=2026-11-06T11:34:33.549212797Z
|
|
b3d83f79f546 running started=2026-11-06T11:35:01.309446421Z finished=2026-11-06T11:34:48.429366971Z
|
|
exit_code: 0 elapsed_seconds: 21.152
|