Files
mtusi2026lab2/evidence/hooks.txt
T
ArtyomandClaude Opus 5.5 7f2deec511 Record levels 3 and 4 again after the second review fixes
Every level 3 and 4 record is taken anew on e049c26 from a reset stand:
checks with the upstream diff of the contract, the public tests and the
task (empty) and of .github (only the own CI job), student tests with
the 503 answer to a request cancelled at shutdown, smoke, stack,
storage on the filled database, both failover runs with the
service.draining event, persistence, hooks, faults, limits, lb-check,
the new retry-check, three detection runs, failover-each and both
rolling updates with the database size, a docker stats snapshot and the
tag and id of every replaced image. The clean clone run executes the
launch block of the report verbatim and marks the observations made
between its steps.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V1d3RLHNBBMA6UqBLLJv27
2026-10-30 05:59:38 +03:00

34 lines
1.4 KiB
Plaintext

date: 2026-10-30T02:45:56Z commit: e049c26
$ TARGET_INSTANCE_ID=<hostname реплики> scripts/stop-one.sh; echo exit=$? # seconds — длительность хука (окно вывода из ротации 2 с + остановка)
target=ff81f93e8b0d exit=0 seconds=2.66
ff81f93e8b0d exited exit_code=0 oom=false
fe75c6c37e5a running exit_code=0 oom=false
$ scripts/restore.sh
exit=0
ff81f93e8b0d running
fe75c6c37e5a 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 9 seconds (healthy)
lb mtusi2026lab3-lb-1 Up 11 seconds (healthy)
postgres mtusi2026lab3-postgres-1 Up 11 seconds (healthy)
valkey mtusi2026lab3-valkey-1 Up 11 seconds (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
$ docker compose stop api # обе реплики, LB остаётся
2
$ curl -i -H 'X-Request-Id: no-replica-1' http://127.0.0.1:18083/api/v1/users/me
HTTP/1.1 503 Service Unavailable
x-request-id: no-replica-1
content-length: 93
content-type: application/json
{"error":{"code":"unavailable","message":"No ready API replica","request_id":"no-replica-1"}}
$ make restore
exit=0
after restore: 200