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>
This commit is contained in:
Artyom
2026-10-28 20:07:51 +03:00
co-authored by Claude Opus 5.5
parent 6107c1aa34
commit a9aab2727f
46 changed files with 8314 additions and 161 deletions
+11 -11
View File
@@ -1,21 +1,21 @@
date: 2026-10-28T08:48:13Z commit: 0796e29
$ TARGET_INSTANCE_ID=<hostname реплики> scripts/stop-one.sh; echo exit=$? # seconds — длительность хука
target=302cfee8f673 exit=0 seconds=0.68
302cfee8f673 exited exit_code=0 oom=false
b582bd503bdd running exit_code=0 oom=false
date: 2026-10-28T16:56:54Z commit: e00eb6c
$ TARGET_INSTANCE_ID=<hostname реплики> scripts/stop-one.sh; echo exit=$? # seconds — длительность хука (окно вывода из ротации 2 с + остановка)
target=a3536e394b3f exit=0 seconds=2.72
a3536e394b3f exited exit_code=0 oom=false
27de23496b0f running exit_code=0 oom=false
$ scripts/restore.sh
exit=0
302cfee8f673 running
b582bd503bdd running
a3536e394b3f running
27de23496b0f running
$ TARGET_INSTANCE_ID=no-such-replica scripts/stop-one.sh; echo exit=$?
no running api replica answers as no-such-replica
exit=3
$ docker compose ps --format '{{.Service}} {{.Name}} {{.Status}}' # ничего не остановлено
api mtusi2026lab3-api-1 Up 2 seconds (healthy)
api mtusi2026lab3-api-2 Up 13 seconds (healthy)
lb mtusi2026lab3-lb-1 Up About a minute (healthy)
postgres mtusi2026lab3-postgres-1 Up About a minute (healthy)
valkey mtusi2026lab3-valkey-1 Up About a minute (healthy)
api mtusi2026lab3-api-2 Up 16 seconds (healthy)
lb mtusi2026lab3-lb-1 Up 3 minutes (healthy)
postgres mtusi2026lab3-postgres-1 Up 3 minutes (healthy)
valkey mtusi2026lab3-valkey-1 Up 3 minutes (healthy)
$ scripts/stop-one.sh # без TARGET_INSTANCE_ID
scripts/stop-one.sh: line 3: TARGET_INSTANCE_ID: test provides target API instance alias
exit=1