Files
mtusi2026lab2/evidence/failover-a3536e394b3f.txt
T
ArtyomandClaude Opus 5.5 a9aab2727f Record level 4 evidence and extend the report
Evidence from a freshly recreated stand at the current code: the four
detection cases with their declared maxima, failover-each for both
replicas under k6 at 100 rps (no errors, no balancer retries, the
stopped replica never served during its outage), the 20 round
same-key race, the limits and isolation check with a run against
deliberate violations, and two rolling updates under load: from the
level 3 image, where the old replicas without a drain window caused
54 redispatches and 2 response errors that the balancer retried, and
between two current builds with all counters at zero. Level 3 runs
are refreshed on the new code: smoke, stack view, both failovers with
the drain sequence in the replica log, hooks with the longer stop,
persistence, stack fault tests and own tests with the shutdown and
timeout chain output.

The report gains the shutdown order, the check period and worst
detection per failure with measurements, the timeout chain, rows 4.1
to 4.4, level 4 rows of the failure table, the k6 role, the new
variables and the updated limitations; AGENTS.md lists the commands.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 20:07:51 +03:00

39 lines
3.0 KiB
Plaintext

date: 2026-10-28T16:56:07Z 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:56:05.100393509Z finished=2026-10-28T16:55:52.113620836Z
$ 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": 130, "failed_attempts": 0, "first_recovery_seconds": 2.689}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
== after: api replicas
a3536e394b3f exited started=2026-10-28T16:55:38.101692511Z finished=2026-10-28T16:56:10.104800095Z
27de23496b0f running started=2026-10-28T16:56:05.100393509Z finished=2026-10-28T16:55:52.113620836Z
== stopped replica: a3536e394b3f; shutdown: signal, drain window with readiness 503, close, exit
{"event":"Handling signal: term","level":"info","ts":"2026-10-28T16:56:07.660163Z"}
{"event":"Draining for 2.0 s","level":"info","ts":"2026-10-28T16:56:07.716933Z"}
{"event":"Draining for 2.0 s","level":"info","ts":"2026-10-28T16:56:07.755310Z"}
{"method":"GET","route":"/health/ready","status":503,"request_id":"9015463a87b2431bbba6f0a3804b81ef","duration_ms":1.467,"event":"request.handled","level":"info","ts":"2026-10-28T16:56:08.155658Z"}
{"method":"GET","route":"/health/ready","status":503,"request_id":"ca8d0e81fc814140a89b461975ec2c0c","duration_ms":0.441,"event":"request.handled","level":"info","ts":"2026-10-28T16:56:08.658832Z"}
{"event":"Shutting down","level":"info","ts":"2026-10-28T16:56:09.722798Z"}
{"event":"Shutting down","level":"info","ts":"2026-10-28T16:56:09.757396Z"}
{"event":"service.stopped","level":"info","ts":"2026-10-28T16:56:09.838472Z"}
{"event":"Finished server process [7]","level":"info","ts":"2026-10-28T16:56:09.838854Z"}
{"event":"service.stopped","level":"info","ts":"2026-10-28T16:56:09.862674Z"}
{"event":"Finished server process [8]","level":"info","ts":"2026-10-28T16:56:09.863018Z"}
{"event":"Worker (pid:7) was sent SIGTERM!","level":"info","ts":"2026-10-28T16:56:09.932410Z"}
{"event":"Worker (pid:8) was sent SIGTERM!","level":"info","ts":"2026-10-28T16:56:09.932568Z"}
{"event":"Shutting down: Master","level":"info","ts":"2026-10-28T16:56:10.033607Z"}
$ 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
a3536e394b3f running started=2026-10-28T16:56:23.072055754Z finished=2026-10-28T16:56:10.104800095Z
27de23496b0f running started=2026-10-28T16:56:05.100393509Z finished=2026-10-28T16:55:52.113620836Z