Files
mtusi2026lab2/openspec/changes/close-lab3-review-gaps/tasks.md
T
ArtyomandClaude Opus 5.5 fa09339388 Report the control runs of track 1
The LB queue does not move the peak of 8x1 (4526, 4677 and 4525 rps for
maxconn 16, 32 and 64, overlapping ranges), and the pool moves it the
other way: 4 connections per worker give 5358 rps, 16 give 3789, while
the lock waiters grow from 14.7 to 102. So the pool is not short, extra
connections only add writers to the hot chat row, which confirms the
coordination cost of the USL fit. On the same CPUs 8x0.5 peaks 7 % below
4x1 and costs 15 % more CPU per request, so the retrograde 8x1 comes from
the number of processes and connections, not from slower vCPUs.

The report also names the cause of the flaky compose up, the WalSync
stall of the dropped attempt, the disturbed control runs, and the
evidence index gets a commit column for track 1. The scenario of the
open change no longer presumes its own outcome.

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

32 lines
2.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## 1. Требования и код
- [x] 1.1 Тест порядка проверок `POST …/messages` для постороннего (`test_request_shape_is_checked_before_access`)
- [x] 1.2 Убрать `# type: ignore` из `shared/entrypoints/errors.py`
- [x] 1.3 `openspec/config.yaml`: `gunicorn_conf.py` в карте модулей
- [x] 1.4 Проверка группы: `make lint`, `make student-test`, `make check`
## 2. Обвязка
- [x] 2.1 `Makefile`: `BASE_URL` по порту `lb`, `API_IMAGE` по каталогу (после переноса лабы 2 — `mtusi-messenger:${COMPOSE_PROJECT_NAME}` в `compose.yaml`), `detection` трижды, `track1-control`
- [x] 2.2 `scripts/evidence-storage.sh` — volumes своего проекта; `scripts/limits.py` — коммит в заголовке
- [x] 2.3 `scripts/scaling.py` — полный stderr сбоя `compose up` в `compose-up-failed.log`
- [x] 2.4 `scripts/failover-each.sh` — `docker ps -a` реплик после хука; `scripts/failover-evidence.sh` — `SHIFT`
- [x] 2.5 `make faults-evidence` заменяет путь репозитория на `<repo>` и падает, если тесты не прошли
- [x] 2.6 Проверка группы: `make lint`, `make check`, `bash -n`/`sh -n` скриптов
## 3. Доказательства на итоговом коде
- [x] 3.1 `evidence/checks.txt`: `make check`, `make validate`, `make lint`
- [x] 3.2 Стенд: `make test`, `make stack-evidence`, `make storage-evidence`, `make failover-evidence` ×2, `make persistence-evidence`, `make test-faults`
- [x] 3.3 `make level4`: limits, lb-check, detection ×3, failover-each, rolling-update, rolling-update `FROM_REV=8d28d45`
- [x] 3.4 `make track1-control`: пул и `maxconn` на 8×1, 8×0,5 против 4×1 (первая попытка размещения отброшена из-за задержек WAL, `aborted/control-cpus-1-*`)
- [x] 3.5 Запуск из чистого clone с нестандартным портом без `BASE_URL`
- [x] 3.6 Повтор 3.1–3.3 и 3.5 после переноса исправлений лабы 2 (`a59e3a3`): уровни «3»/«4» на `b1c80ee`, чистый clone на `f5fea5c`
- [x] 3.7 Проверка группы: все файлы `evidence/` несут коммит не раньше кода
## 4. Отчёт
- [x] 4.1 `REPORT.md`: шапка, таблицы 4.x и отказов, трек (H2, методика, контроль, цифры), ограничения; `evidence/README.md`
- [x] 4.2 Сократить proposal `add-lab3-scaling-cost` до 400 слов
- [x] 4.3 Проверка группы: `make check`, `make lint`, `make student-test`