forked from mtusi2026/mtusi2026lab3
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:
co-authored by
Claude Opus 5.5
parent
6107c1aa34
commit
a9aab2727f
+18
-12
@@ -1,7 +1,12 @@
|
||||
date: 2026-10-28T08:49:44Z commit: 0796e29
|
||||
$ make test-faults BASE_URL=http://localhost:18083 # тесты стенда лабы 2 через балансировщик
|
||||
date: 2026-10-28T16:57:24Z commit: e00eb6c
|
||||
$ make test-faults BASE_URL=http://localhost:18083
|
||||
BASE_URL="http://localhost:18083" .venv/bin/pytest -m stack -v -s student-tests/stack
|
||||
============================= test session starts ==============================
|
||||
platform darwin -- Python 3.14.5, pytest-9.1.1, pluggy-1.6.0
|
||||
rootdir: /Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab3
|
||||
configfile: pyproject.toml
|
||||
plugins: asyncio-1.4.0, anyio-4.15.1
|
||||
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function
|
||||
collected 10 items
|
||||
|
||||
student-tests/stack/test_faults.py гонка 50 регистраций: 201×1, 409×49
|
||||
@@ -9,23 +14,24 @@ student-tests/stack/test_faults.py гонка 50 регистраций: 201×1,
|
||||
.неверный пароль: 401 за 0.012 с
|
||||
неизвестный пользователь: 401 за 0.012 с
|
||||
.logout: 204, затем 401, повтор 401
|
||||
.5 проверок токена: keyspace_hits 394 → 399
|
||||
.5 проверок токена: keyspace_hits 4 → 9
|
||||
.valkey остановлен, действующий токен: 200 за 0.004 с
|
||||
valkey остановлен, неизвестный токен: 401 за 0.002 с
|
||||
valkey остановлен: ready 200, вход 201, выход 503
|
||||
valkey снова запущен: повторный выход 204
|
||||
.рестарт valkey: ключей 28 → 28
|
||||
.рестарт valkey: ключей 25 → 25
|
||||
рестарт valkey: живой 200, отозванный 401
|
||||
.FLUSHALL: живой 200, отозванный 401
|
||||
.postgres остановлен, ready: 503 за 0.003 с
|
||||
postgres остановлен, live: 200 за 0.001 с
|
||||
postgres остановлен, me: 503 за 0.002 с
|
||||
postgres остановлен, stranger: 503 за 0.003 с
|
||||
.postgres остановлен, ready: 503 за 0.004 с
|
||||
postgres остановлен, me: 503 за 0.003 с
|
||||
postgres остановлен, stranger: 503 за 0.002 с
|
||||
postgres остановлен, login: 503 за 0.002 с
|
||||
postgres остановлен, register: 503 за 0.014 с
|
||||
postgres запущен: готовность через 0.3 с, прежний токен 200
|
||||
.рестарт api: готовность через 0.5 с, токен 200
|
||||
expires_at при входе 2026-10-28T09:49:55.730592Z, в БД после рестарта 2026-10-28T09:49:55.730592Z
|
||||
live внутри реплики 200; LB исключил все реплики ещё через 0.61 с
|
||||
live через LB без реплик: 503 за 0.000 с
|
||||
postgres запущен: готовность через 2.1 с, прежний токен 200
|
||||
.рестарт api: готовность через 2.8 с, токен 200
|
||||
expires_at при входе 2026-10-28T17:57:38.249277Z, в БД после рестарта 2026-10-28T17:57:38.249277Z
|
||||
.
|
||||
|
||||
============================= 10 passed in 11.99s ==============================
|
||||
============================= 10 passed in 19.25s ==============================
|
||||
|
||||
Reference in New Issue
Block a user