Files
mtusi2026lab2/evidence/track1/README.md
T
ArtyomandClaude Opus 5.5 3e63b16ca6 Report track 1 with plots and the checks after the improvement
make plots draws throughput and latency against offered load for both
series and the comparison, CPU per component, peak RPS against API
CPU with the USL fit and the improved 8x1 point, and the utilisation of
every link at each peak; capacity.md tabulates the ceilings.

after-checks.txt holds the level 3 and 4 checks on the new image:
student tests 240 passed, smoke PASS, 20 same-key races of 8 through
the balancer with 160 x 201 and one copy each, failover with 131
writes and no failure in 2.73 s, persistence PASS.

REPORT.md gains the track section: hypotheses as stated before the
runs, the method and its equal-resource rules, both series in tables,
the saturation point with database, balancer and pool figures, the
USL reading, the before and after table, conclusions per hypothesis
and the limits of a shared single host. The idempotent send section
now describes the one-statement write, the evidence table has the
track rows and the commands are in the clean clone section.

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

26 lines
4.3 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 «Цена масштабирования»: сырые данные
| Файл | Что внутри | Чем получен |
| --- | --- | --- |
| `host.txt` | `docker stats --all` всего хоста, контейнеры, версии Docker и образов перед серией A | `make track1-host` |
| `host-others.csv` | раз в 10 с весь период замеров: суммарный CPU чужих контейнеров (стенды других лаб) и самый загруженный из них | цикл `docker stats --no-stream` по контейнерам не из проекта `mtusi2026lab3`, запущенный рядом с сериями |
| `aborted/series-a-1-summary.csv` | первая попытка серии A, прерванная из-за сборки образа соседней лабы: шаги с API 410 % при 1 350 rps и паузами Docker API по 15 мин | `make track1-a` до добавления отбраковки |
| `series-a/summary.csv` | серия A: 1×4, 2×2, 4×1 при 4 CPU / 2 GiB API, строка на прогон | `make track1-a` |
| `series-b/summary.csv` | серия B: 1×1, 2×1, 8×1 по 1 CPU / 512 MiB (4×1 — из серии A) | `make track1-b` |
| `compare/summary.csv` | улучшение: «до» (образ `edc091d`) и «после» на 8×1, чередование по повторам; третий повтор «после» снят отдельно после сбоя `compose up` при работе соседних тестов | `make track1-compare`, затем `python3 scripts/scaling.py --out evidence/track1/compare --configs 8x1 --api-memory 512 --rates 3600,5400,8100 --variant after --repeats 1 --first-repeat 3` |
| `*/disturbed.csv` | отбракованные прогоны (чужой CPU в VM > 1 ядра, разрыв сэмплов > 10 с или k6 дольше нагрузки на 90 с); каждый повторён после 15 с тишины | `scripts/scaling.py` |
| `<серия>/<вариант>-<RxC>_rate<N>_rep<K>/` | сырьё прогона: `k6/summary.json` (итог k6 без токенов), `k6/k6.txt`, `docker_stats.csv`, `vm_stat.csv` (счётчики `/proc/stat` всей VM), `lb_stats.csv` (HAProxy CSV), `pg_activity.csv` (`pg_stat_activity` по state/wait_event), `pg_statements.csv` (топ-20 `pg_stat_statements` за прогон) | `scripts/scaling.py` |
| `plots/*.png`, `plots/capacity.csv`, `plots/capacity.md` | графики и сводка потолков | `make plots` |
| `after-checks.txt` | проверки уровней «3» и «4» на коде с улучшением | команды внутри файла |
Поля `summary.csv`: `rate` — предложенная интенсивность (k6 `constant-arrival-rate`), `ok_rps` — успешные
ответы в секунду в окне замера, `failed_ratio` — доля неуспешных, `dropped_iterations` — итерации, которые k6 не
смог начать (нет свободного VU: система не успевает), `p50/p95/p99_ms` — по всем запросам окна,
`cpu_*` — средний CPU компонента в окне, % одного ядра (`api` — сумма реплик), `cpu_vm` — CPU всей VM Docker,
`cpu_other` — его часть вне контейнеров стенда (соседи, сборки, сеть Docker), `pg_*` — среднее/максимум числа
клиентских соединений PostgreSQL по состоянию раз в секунду (`active`, `idle` — свободные соединения пулов,
`idle_tx` — транзакция открыта и ждёт приложение, `lock` — ждут блокировку строки), `lb_qcur_max` — очередь
HAProxy к backend `api`, `db_mb`/`messages` — размер базы и число сообщений перед прогоном, `gap_s` — наибольший
разрыв между сэмплами, `wall_s` — длительность прогона k6, `saturated` — доля ошибок > 1 %, или сброшенных
итераций > 1 %, или p95 > 500 мс, `disturbed` — прогон отбракован.