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>
39 lines
3.0 KiB
Plaintext
39 lines
3.0 KiB
Plaintext
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
|