forked from mtusi2026/mtusi2026lab2
Compare commits
91
Commits
lab2
..
2af24d7762
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2af24d7762 | ||
|
|
da2f392442 | ||
|
|
4513d90e48 | ||
|
|
f591fa64e5 | ||
|
|
55b99a24a4 | ||
|
|
3fb741e6a8 | ||
|
|
07965a2fb6 | ||
|
|
57744c532c | ||
|
|
05d69ba6ac | ||
|
|
74a39fa93e | ||
|
|
5c8f605cd3 | ||
|
|
252e3e3ffe | ||
|
|
8a7e027925 | ||
|
|
ef0b9a385e | ||
|
|
0a1f48bd73 | ||
|
|
18de595740 | ||
|
|
7fc911c332 | ||
|
|
66c614426c | ||
|
|
71c643c6d1 | ||
|
|
c376882ce8 | ||
|
|
c5f39dea25 | ||
|
|
72a1e57467 | ||
|
|
472ce5b9ea | ||
|
|
7f2deec511 | ||
|
|
e049c265b8 | ||
|
|
fb6ff87bb3 | ||
|
|
d99a48a5db | ||
|
|
aa1485bd86 | ||
|
|
13e856ebd4 | ||
|
|
5a3e372b08 | ||
|
|
d3ee257df1 | ||
|
|
fa09339388 | ||
|
|
f4833c40c0 | ||
|
|
a67bc6526a | ||
|
|
f5fea5c59c | ||
|
|
b1c80ee544 | ||
|
|
ac15b2ff62 | ||
|
|
a59e3a39a8 | ||
|
|
79a52bab58 | ||
|
|
6fafc8a784 | ||
|
|
e722cb357d | ||
|
|
a02d442085 | ||
|
|
956d24a701 | ||
|
|
16b6b28ea9 | ||
|
|
0ce7d6ecf0 | ||
|
|
d4a3124a32 | ||
|
|
e9242816a5 | ||
|
|
a761b718b8 | ||
|
|
be17939ddb | ||
|
|
e425a9d236 | ||
|
|
e88673dfec | ||
|
|
3e63b16ca6 | ||
|
|
dde113b4ed | ||
|
|
296e070eba | ||
|
|
22f0e6244d | ||
|
|
edc091dbc4 | ||
|
|
3bdc8fad23 | ||
|
|
be19abf364 | ||
|
|
67f6d6866e | ||
|
|
e8804b05d0 | ||
|
|
8ea1996063 | ||
|
|
107fbbbe15 | ||
|
|
d8d551aae4 | ||
|
|
61c0c28a43 | ||
|
|
a9aab2727f | ||
|
|
6107c1aa34 | ||
|
|
e00eb6c878 | ||
|
|
eb04fc10e3 | ||
|
|
3584501de8 | ||
|
|
572204950a | ||
|
|
5adb8719d4 | ||
|
|
d5f8a7c25c | ||
|
|
711c9c98dc | ||
|
|
502c7d8ace | ||
|
|
85ed37914d | ||
|
|
6fb4587ef6 | ||
|
|
6e4c387e50 | ||
|
|
1ae4b770ae | ||
|
|
8d28d45d55 | ||
|
|
957eabdfc3 | ||
|
|
0796e291b7 | ||
|
|
ae8fb0a48e | ||
|
|
ceb266ed05 | ||
|
|
dc2015473f | ||
|
|
7bf28fc6ed | ||
|
|
a18e7b320b | ||
|
|
bf0f0b4c07 | ||
|
|
9db7a24362 | ||
|
|
416ce4f9db | ||
|
|
0ec2f9dae3 | ||
|
|
0ab3a341aa |
+25
-4
@@ -9,8 +9,29 @@ DATABASE_URL_FILE=/run/secrets/database_url
|
||||
# Optional on 3, required use on 4 in lab2; Redis OR Valkey:
|
||||
SESSION_STORE=postgres
|
||||
CACHE_URL_FILE=/run/secrets/cache_url
|
||||
# Solution-specific: host ports of the API and of the short TTL instance, workers, cursor key file.
|
||||
API_PORT=8080
|
||||
SHORTTTL_PORT=8082
|
||||
WEB_CONCURRENCY=4
|
||||
API_REPLICAS=2
|
||||
IDEMPOTENCY_TTL_SECONDS=86400
|
||||
# Solution-specific: published LB ports, replica limits, workers and pool per replica,
|
||||
# LB queue per replica, drain window before closing the listener on SIGTERM, PostgreSQL
|
||||
# limits, load generator limits (profile bench), CPU pinning for track 1 measurements (empty = not
|
||||
# pinned), cursor key file. API_PORT/SHORTTTL_PORT of lab2 are gone:
|
||||
# only the load balancer is published.
|
||||
LB_HTTP_PORT=8080
|
||||
LB_STATS_PORT=8404
|
||||
API_CPUS=1
|
||||
API_MEMORY=512m
|
||||
WEB_CONCURRENCY=2
|
||||
DB_POOL_MAX_SIZE=8
|
||||
API_SERVER_MAXCONN=64
|
||||
DRAIN_SECONDS=2
|
||||
PG_MAX_CONNECTIONS=200
|
||||
PG_CPUS=2
|
||||
PG_MEMORY=1g
|
||||
K6_CPUS=2
|
||||
K6_MEMORY=512m
|
||||
API_CPUSET=
|
||||
LB_CPUSET=
|
||||
PG_CPUSET=
|
||||
VALKEY_CPUSET=
|
||||
K6_CPUSET=
|
||||
CURSOR_SECRET_FILE=/run/secrets/cursor_secret
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
## Лабораторная 2
|
||||
## Лабораторная 3
|
||||
|
||||
Автор / группа: TODO
|
||||
Целевая оценка (3/4/5): TODO
|
||||
|
||||
@@ -19,7 +19,7 @@ jobs:
|
||||
- run: make student-test VENV=.venv
|
||||
|
||||
acceptance:
|
||||
name: Стенд Compose, smoke, рестарт и отказы зависимостей
|
||||
name: Стенд Compose за HAProxy, smoke, отказ реплики, рестарт и отказы зависимостей
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -31,27 +31,51 @@ jobs:
|
||||
- name: Поднять стенд из чистого clone
|
||||
run: make up
|
||||
|
||||
- name: Публичный smoke
|
||||
- name: Публичный smoke через балансировщик
|
||||
run: make test
|
||||
|
||||
- name: Рестарт API и хранилищ с сохранением volumes
|
||||
- name: Несколько реплик на одном токене и гонка одного ключа
|
||||
run: make lb-check
|
||||
|
||||
- name: Повтор неподтверждённой записи после потерянного ответа и убитой реплики
|
||||
run: make retry-check
|
||||
|
||||
- name: Остановка реплики под запросами, затем возврат
|
||||
run: |
|
||||
make test-failover ACTION_SCRIPT=scripts/stop-one.sh
|
||||
docker compose ps -a api
|
||||
make restore
|
||||
|
||||
- name: Рестарт LB, API и хранилищ с сохранением volumes
|
||||
run: make test-persistence ACTION_SCRIPT=scripts/restart.sh
|
||||
|
||||
- name: Отказы Valkey и PostgreSQL, expiry, гонка и rollback
|
||||
- name: Отказы Valkey и PostgreSQL, гонка и rollback
|
||||
run: make test-faults
|
||||
|
||||
- name: Лимиты, порты, секреты, volumes и сети по политике
|
||||
run: make limits
|
||||
|
||||
- name: Время обнаружения отказа балансировщиком (SIGTERM, kill, pause, PostgreSQL)
|
||||
run: make detection
|
||||
|
||||
- name: Наружу опубликован только балансировщик
|
||||
run: |
|
||||
docker compose ps --format '{{.Service}} {{.Ports}}' | awk '$2 != "" && $1 != "lb" {print; bad=1} END {exit bad}'
|
||||
|
||||
- name: Процессы работают не от root
|
||||
run: |
|
||||
docker compose top | awk 'NR>1 && $3=="0" {print; bad=1} END {exit bad}'
|
||||
for id in $(docker compose ps -q); do
|
||||
docker top "$id" -eo pid,uid,comm | awk 'NR>1 && $2==0 {print; bad=1} END {exit bad}' || exit 1
|
||||
done
|
||||
|
||||
- name: Корректная остановка API по SIGTERM
|
||||
- name: Корректная остановка реплик API по SIGTERM
|
||||
run: |
|
||||
start=$(date +%s)
|
||||
docker compose kill --signal SIGTERM api
|
||||
code=$(docker wait "$(docker compose ps -aq api)")
|
||||
codes=$(docker wait $(docker compose ps -aq api) | sort -u)
|
||||
elapsed=$(( $(date +%s) - start ))
|
||||
echo "остановка за ${elapsed} с, код завершения ${code}"
|
||||
test "$elapsed" -le 10 && test "$code" = "0"
|
||||
echo "остановка за ${elapsed} с, коды завершения ${codes}"
|
||||
test "$elapsed" -le 10 && test "$codes" = "0"
|
||||
|
||||
- name: Журналы стенда
|
||||
if: always()
|
||||
|
||||
@@ -1,61 +1,89 @@
|
||||
## Что это за репозиторий
|
||||
|
||||
Skeleton лабораторной 2 курса «Мессенджер под нагрузкой» (МТУСИ, 7 независимых лаб) и решение в ветке `solution/bpi2303-kostylev`. Skeleton даёт задание (`README.md`), нормативный контракт (`contracts/`) и публичные black-box проверки (`tests/`). Реализация API, Dockerfile, compose-стенд, миграции и собственные тесты — студенческие; решение лабы 2 построено переносом решения лабы 1.
|
||||
Skeleton лабораторной 3 курса «Мессенджер под нагрузкой» (МТУСИ, 7 независимых лаб) и решение в ветке `solution/bpi2303-kostylev`. Skeleton даёт задание (`README.md`), нормативный контракт (`contracts/`) и публичные black-box проверки (`tests/`). Реализация API, Dockerfile, compose-стенд, конфигурация балансировщика, миграции, хуки отказов и собственные тесты — студенческие; решение лабы 3 построено переносом решения лабы 2.
|
||||
|
||||
Лаба 2: состояние переезжает в **PostgreSQL**, пользователи входят по паролю (`Basic` только на `POST /api/v1/auth/sessions`), остальные endpoint требуют непрозрачный `Bearer`-токен сессии с TTL и отзывом, `X-User-Id` игнорируется. На «4» появляется **Valkey** с конкретной ролью (здесь — read-through кэш сессий поверх PostgreSQL). Данные и действующие сессии переживают рестарт API и хранилищ с сохранёнными volumes.
|
||||
Лаба 3: несколько взаимозаменяемых реплик API за единой точкой входа — **HAProxy**. Реплики не держат состояния: PostgreSQL остаётся источником истины для пользователей, сессий, чатов и сообщений, Valkey — общий кэш сессий. Каждый ответ API несёт `X-Instance-Id` обслужившей реплики, отправка сообщения требует `Idempotency-Key`, а повтор с тем же ключом через любую реплику не создаёт дубль. Остановка одной реплики не прерывает чтение и запись дольше 10 с.
|
||||
|
||||
Автор решения — Костылев Артём, БПИ2303. Уровни «3» → «4» → трек «5» завершены последовательно;
|
||||
активных OpenSpec changes на момент финализации отчёта нет. Актуальные доказательства:
|
||||
|
||||
- `evidence/track1-sqlalchemy/revalidation/` — уровни «3»/«4» после оптимизации, код `3fb741e`;
|
||||
API идентичен `57744c5`, миграции и инфраструктура с повторного прогона не менялись.
|
||||
- `evidence/track1-sqlalchemy/` — 135 измерений с тремя повторами и 12 графиков;
|
||||
baseline `5c8f605`, after `57744c5`; API использует кэш компиляции статического Core CTE.
|
||||
- `evidence/grade3-*.txt`, `grade4-*.txt` — этапы SQLAlchemy до оптимизации;
|
||||
`evidence/track1/` и файлы, отмеченные в индексе как raw asyncpg, — исторический код.
|
||||
- `evidence/report-checks.txt` и `report-audit.txt` — проверки финальных документов;
|
||||
они не заменяют стендовые и нагрузочные прогоны.
|
||||
|
||||
## Команды
|
||||
|
||||
```sh
|
||||
make check # offline: структура skeleton, JSON, локальные $ref, синтаксис Python
|
||||
make install # uv sync --group dev (включая openapi-spec-validator)
|
||||
make validate # полная валидация OpenAPI 3.1 (берёт .venv/bin/python после make install)
|
||||
make check # offline: структура skeleton, JSON, локальные $ref, синтаксис Python, X-Instance-Id в контракте
|
||||
make validate # полная валидация OpenAPI 3.1: openapi-spec-validator из .venv (make install); PYTHON= — свой интерпретатор
|
||||
make install # uv sync --group dev
|
||||
make lint # ruff check + ruff format --check + ty check; обязательно перед commit
|
||||
make student-test # собственные тесты (поднимают одноразовые PostgreSQL и Valkey в Docker)
|
||||
make student-test PYTEST_ARGS='-v -k cache' # выборка тестов с именами
|
||||
make student-test PYTEST_ARGS='-v -k drain' # выборка тестов с именами
|
||||
openspec validate --all --strict
|
||||
|
||||
make secrets # локальные secrets/* и .env из .env.example (не коммитятся)
|
||||
make up # docker compose up -d --build --wait: postgres, valkey, migrate, api
|
||||
make test # публичный smoke против http://localhost:$API_PORT (Makefile читает .env)
|
||||
make test-persistence ACTION_SCRIPT=scripts/restart.sh # рестарт api, postgres, valkey с сохранением volumes
|
||||
make test-faults # expiry, logout, гонки, rollback, отказы Valkey и PostgreSQL против стенда
|
||||
make seed explain # 20 000 сообщений и EXPLAIN (ANALYZE, BUFFERS) индекса истории
|
||||
make track-bench # трек 5: база track, 1M сообщений по Ципфу, 4 набора индексов, pgbench
|
||||
make track-recovery # трек 5: pg_dump → новый postgres-restore → pg_restore → сверка, RTO/RPO
|
||||
make down # остановка без удаления данных (с профилями faults и track); make reset-data — удаление volumes
|
||||
make toolchain-evidence # и другие *-evidence: файлы evidence/ с датой и коммитом (список — REPORT.md)
|
||||
make up # docker compose up -d --build --wait: postgres, valkey, migrate, api ×API_REPLICAS, lb; затем ждёт все реплики UP в LB
|
||||
make test # публичный smoke через LB (BASE_URL по умолчанию — docker compose port lb 8080, без стенда http://localhost:8080)
|
||||
make test-persistence ACTION_SCRIPT=scripts/restart.sh # рестарт lb, api, postgres, valkey с сохранением volumes
|
||||
make test-failover ACTION_SCRIPT=scripts/stop-one.sh # остановка реплики TARGET_INSTANCE_ID под запросами
|
||||
make test-faults # тесты стенда лабы 2 через LB (make faults-evidence → evidence/faults.txt)
|
||||
make restore # вернуть остановленные реплики и дождаться их в ротации LB
|
||||
make lb-check # ≥2 X-Instance-Id на одном токене и 20 гонок одного Idempotency-Key
|
||||
make retry-check # потерянный ответ (запись ждёт блокировку чата) на живой и на убитой реплике, повтор тем же ключом
|
||||
make limits # уровень 4: лимиты, порты, секреты, volumes, сети против политики scripts/limits.py
|
||||
make detection # уровень 4: время обнаружения SIGTERM/kill/pause/PostgreSQL против заявленного максимума
|
||||
make failover-each # уровень 4: каждая реплика по очереди под k6 (RATE=100) → evidence/failover-each
|
||||
make rolling-update [FROM_REV=<коммит>] # уровень 4: замена реплик по одной под k6, migrate один раз
|
||||
make track1 # трек 1: снимок хоста, серии A (1x4/2x2/4x1) и B (1x1/2x1/8x1), до/после на 8x1, контроль, графики; volumes сохраняются
|
||||
make track1-control # трек 1: пул 4/8/16 и maxconn 16/32/64 на 8x1; 8x0.5 против 4x1 на одних CPU
|
||||
make plots # трек 1: графики и сводка потолков из evidence/track1-sqlalchemy/*/summary.csv
|
||||
make down # остановка без удаления данных (с профилем bench); make reset-data — удаление volumes
|
||||
```
|
||||
|
||||
`tests/*.py` и `scripts/*.py` — только stdlib, синтаксис Python 3.9 (`make check` разбирает их системным `python3`). Проверки сами не поднимают стенд. Данные не удаляются автоматически: в API нет DELETE, каждый прогон smoke создаёт новых синтетических пользователей.
|
||||
`tests/*.py` и `scripts/*.py` — только stdlib, синтаксис Python 3.9 (`make check` разбирает их системным `python3`). Проверки сами не поднимают стенд. Хуки `scripts/stop-one.sh` и `scripts/restart.sh` запускаются тестом без shell, поэтому исполняемые и с shebang. Данные не удаляются автоматически: каждый прогон smoke создаёт новых синтетических пользователей.
|
||||
|
||||
Стенд запускать только в собственном `COMPOSE_PROJECT_NAME`, с `LB_HTTP_PORT=18083`,
|
||||
`LB_STATS_PORT=23083` и `NO_PROXY=localhost,127.0.0.1,::1` (также `no_proxy`). Остальные
|
||||
host-порты — 23000–23999. Проверять занятость до запуска; чужие стенды не останавливать.
|
||||
Полный трек требует 16 vCPU Docker VM. `make detection` перезаписывает свой каталог evidence:
|
||||
для дополнительного прогона сохранять старое сырьё и задавать новый путь скрипту.
|
||||
|
||||
## Архитектура skeleton
|
||||
|
||||
- `lab.json` — единственный источник номера лабы (2). От него зависят `scripts/check_contract.py` (`info.version == 1.2.0`, наличие `/api/v1/auth/sessions`) и `tests/client.py` (Bearer-ветки smoke с lab2).
|
||||
- `tests/client.py` валидирует ответы по подмножеству JSON Schema прямо из `contracts/openapi.json`; для `401` на lab≥2 проверяет `WWW-Authenticate`: `Basic` на `/api/v1/auth/sessions`, `Bearer` на остальных путях.
|
||||
- `tests/resilience.py --mode persistence` держит токен только в памяти, запускает hook без shell (≤90 с, код 0), ждёт `/health/ready` и `/users/me` прежним токеном до 90 с, сверяет историю. Таймаут клиента 2 с.
|
||||
- `contracts/infrastructure.json` — роли: `api`, `postgres` (persistent volume), опциональный `redis_or_valkey` (обязателен на «4»). `compose.example.yaml` — только worksheet ролей.
|
||||
- `lab.json` — единственный источник номера лабы (3). От него зависят `scripts/check_contract.py` (`info.version == 1.3.0`, `X-Instance-Id` во всех ответах) и `tests/client.py` (с lab3 проверяет непустой `X-Instance-Id` на любом ответе и шлёт `Idempotency-Key` в каждом POST сообщения).
|
||||
- `tests/resilience.py --mode failover`: `TARGET_INSTANCE_ID` — реплика, обслужившая первое сообщение; 40 `GET /users/me` одним токеном должны дать ≥2 `X-Instance-Id`; hook возвращается <10 с с кодом 0; первая запись после hook — не позже 10 с от его старта; ≥5 записей после; target отсутствует в последних 5 ответах; история без дублей и байт-в-байт равна подтверждённым ответам. Таймаут клиента 2 с, после ошибки повтор с тем же ключом и текстом.
|
||||
- `tests/resilience.py --mode persistence`: hook ≤90 с, затем `/health/ready` и `/users/me` прежним токеном до 90 с, сверка истории.
|
||||
- `contracts/infrastructure.json` — роли `api` (≥2, без локального состояния), `postgres` (persistent volume), `load_balancer` (единственная публичная точка, readiness backend), опциональный `redis_or_valkey`. `compose.example.yaml` — только worksheet ролей.
|
||||
|
||||
## Ключевые правила контракта (lab2)
|
||||
## Ключевые правила контракта (lab3)
|
||||
|
||||
- `POST /api/v1/users` публичен, тело `{username, display_name, password}`; `password` 12–128 code points, хранится только как Argon2id; `User` без пароля и hash; дубль `username` → `409`, в том числе в гонке.
|
||||
- `POST /api/v1/auth/sessions`: только `Authorization: Basic`, без тела; неверный пароль и неизвестный username — одинаковый `401` с `WWW-Authenticate: Basic realm="messenger", charset="UTF-8"`. Ответ `201 {token, token_type:"Bearer", expires_at, user}`.
|
||||
- Остальные `/api/v1/*` — только `Authorization: Bearer <token>`; истёкший, отозванный, неизвестный токен и `Basic` на бизнес-endpoint → `401` с `WWW-Authenticate: Bearer realm="messenger"`. `X-User-Id` игнорируется полностью.
|
||||
- `DELETE /api/v1/auth/sessions/current` → `204` без тела; повтор → `401`. TTL абсолютный (`SESSION_TTL_SECONDS`), рестарт его не продлевает.
|
||||
- Аутентификация раньше доступа и валидации: без валидного Bearer — `401` даже при битом JSON. Отказ зависимости при проверке сессии — `503 unavailable`, не `401` и не анонимный доступ.
|
||||
- Прежние правила lab1 сохраняются: `X-Request-Id` в каждом ответе, формат ошибки `{"error":{code,message,request_id}}`, посторонний → `404`, keyset `(created_at, id)`, `limit` 1–100, cursor привязан к чату, время RFC 3339 с `Z`.
|
||||
- `X-Instance-Id` и `X-Request-Id` — на каждом ответе API, включая health, `204` logout, `404/405` неизвестного маршрута и `500`. `X-Instance-Id` один на реплику (контейнер), стабилен на жизнь процесса и одинаков у всех воркеров gunicorn. Ответы, сгенерированные самим LB, его могут не иметь.
|
||||
- `POST /api/v1/chats/{chat_id}/messages` требует `Idempotency-Key` (`^[A-Za-z0-9._:-]{1,128}$`); нет или неверный — `400`. Область ключа — пользователь + метод + путь + ключ, результат хранится ≥24 ч (`IDEMPOTENCY_TTL_SECONDS`). Повтор того же JSON — тот же `201` и тот же `Message` (включая строку `created_at`), другой JSON — `409`. Повтор заново проверяет сессию (`401`) и доступ (`404`). Сохраняется только `201`; запись сообщения и ключа — одна транзакция PostgreSQL.
|
||||
- LB и клиент не повторяют прозрачно `POST /users` и `POST /chats`. Балансировка без sticky-сессий.
|
||||
- Сохраняются правила lab2: `Basic` только на `POST /api/v1/auth/sessions`, иначе `Bearer`; `WWW-Authenticate` по пути; `X-User-Id` игнорируется; logout `204`, повтор `401`; абсолютный TTL сессии. И lab1: формат ошибки `{"error":{code,message,request_id}}`, посторонний → `404`, keyset `(created_at, id)`, `limit` 1–100, cursor привязан к чату, время RFC 3339 с `Z`.
|
||||
|
||||
## Правила работы с репозиторием
|
||||
|
||||
- Не менять и не ослаблять `contracts/`, `tests/`, `README.md`, `COURSE.md`, рубрику. Расхождение оформляется вопросом преподавателю.
|
||||
- Код — `src/messenger/`, миграции — `src/messenger/migrations/NNNN_*.sql`, собственные тесты — `student-tests/`, обезличенные доказательства — `evidence/`.
|
||||
- Код — `src/messenger/`, миграции — `alembic/versions/*.py`, конфигурация LB и нагрузки — `infra/`, хуки и обвязка стенда — `scripts/`, собственные тесты — `student-tests/`, обезличенные доказательства — `evidence/` (индекс — `evidence/README.md`, первая строка каждого файла — дата и коммит прогона).
|
||||
- PostgreSQL — SQLAlchemy 2.0.45 async (`async_sessionmaker`, `DeclarativeBase`), Alembic 1.16.5; версии закреплены в `pyproject.toml` и `uv.lock`, asyncpg только драйвер. ORM/Core остаются в инфраструктуре, домен — dataclass, pydantic — на HTTP-границе. Миграции — только `alembic upgrade head` в one-shot сервисе `migrate`. Старую схему принимает `alembic/legacy.py` после проверки журнала и каталога PostgreSQL; безусловный `stamp` запрещён. Старый журнал сохраняется, volumes не удаляются.
|
||||
- Без комментариев в коде; отступы — пробелы (`[tool.ruff.format]`); Python 3.14 без `from __future__ import annotations` и `TYPE_CHECKING`.
|
||||
- `REPORT.md`: команды из чистого clone, архитектура, таблица «критерий → команда → наблюдение → файл». PASS без команды не доказательство.
|
||||
- Порты реплик API наружу не публикуются: только LB. Нет `container_name`, `hostname` и общего `INSTANCE_ID` у сервиса `api`.
|
||||
- `REPORT.md`: команды из чистого clone, архитектура, таблица «критерий → команда → наблюдение → файл», таблица отказов, трек 1, ответы на вопросы защиты. PASS без команды не доказательство; для отказов — какой контейнер реально остановлен (`docker ps -a`). Цифры в отчёте берутся только из файлов `evidence/`.
|
||||
- Старые результаты сохранять с SHA и пометкой версии кода; не смешивать raw asyncpg, baseline SQLAlchemy и SQLAlchemy с кэшем компиляции. Микробенчмарк компиляции не заменяет HTTP-замер, пик RPS не равен пределу SLO. Rolling с no-op миграцией не доказывает произвольный DDL под нагрузкой.
|
||||
- Ветка `solution/bpi2303-kostylev`, коммиты на английском, перед каждым — `make lint`. Никогда не коммитить `.env`, `secrets/`, токены, volumes, дампы.
|
||||
- ЛР1/ЛР2 заморожены; менять только текущую лабораторную, WIP и volumes сохранять. Текущую `.pipeline` и её state не менять. Публикация — отдельный этап, только private в MTUCI-Labs; Telegram отправляет runner.
|
||||
|
||||
## Уровни оценки
|
||||
|
||||
Решение заявлено на **«5»** с треком 2 «План запроса и восстановление»; таблица доказательств — в `REPORT.md`.
|
||||
Решение заявлено на **«5»** с треком 1 «Цена масштабирования»; таблица доказательств — в `REPORT.md`.
|
||||
|
||||
- **3** — контракт lab2, PostgreSQL с PK/FK/UNIQUE и миграциями, атомарное создание чата, Basic/Bearer/TTL/logout, Argon2id, `make test` и `make test-persistence ACTION_SCRIPT=scripts/restart.sh`.
|
||||
- **4** — Valkey с ролью и политикой инвалидации, параметризованный SQL, ограниченный пул и таймауты, гонка регистрации и rollback, индекс истории с EXPLAIN (ANALYZE, BUFFERS) на ≥10 000 сообщениях, автотесты expiry/logout/неверного пароля/недоступности Valkey и PostgreSQL.
|
||||
- **5** — трек 2: ≥100 000 сообщений с перекосом чатов, сравнение индексов и запросов, стоимость записи, backup → restore в новое хранилище → сверка, RTO/RPO.
|
||||
- **3** — стенд в `compose.yaml`: HAProxy → ≥2 реплики API → общие PostgreSQL и Valkey; разные реплики на одном токене; остановка любой реплики с восстановлением ≤10 с; идемпотентная отправка, включая конкурентный повтор и смену реплики; `make test`, `make test-persistence ACTION_SCRIPT=scripts/restart.sh`, `make test-failover ACTION_SCRIPT=scripts/stop-one.sh`; минимум lab2 сохранён.
|
||||
- **4** — согласованные readiness, таймауты и `SIGTERM`, период проверок и время обнаружения; поочерёдная остановка каждой реплики под нагрузкой с RPS, ошибками и временем восстановления; лимиты CPU/RAM, API без опубликованных портов; rolling update под нагрузкой и однократные совместимые миграции.
|
||||
- **5** — трек 1: 1/2/4 реплики при фиксированном бюджете CPU/RAM и серия с ростом ресурсов, saturation point БД/LB/пула, графики и одно подтверждённое улучшение.
|
||||
|
||||
+7
-3
@@ -24,9 +24,10 @@ ENV PYTHONUNBUFFERED=1 \
|
||||
HOST=0.0.0.0 \
|
||||
PORT=8080 \
|
||||
LOG_LEVEL=INFO \
|
||||
WEB_CONCURRENCY=4 \
|
||||
REQUEST_TIMEOUT_SECONDS=15 \
|
||||
SHUTDOWN_TIMEOUT_SECONDS=8
|
||||
WEB_CONCURRENCY=2 \
|
||||
REQUEST_TIMEOUT_SECONDS=8 \
|
||||
DRAIN_SECONDS=2 \
|
||||
SHUTDOWN_TIMEOUT_SECONDS=6
|
||||
|
||||
RUN groupadd --system --gid 10001 messenger \
|
||||
&& useradd --system --uid 10001 --gid messenger --no-create-home --shell /usr/sbin/nologin messenger
|
||||
@@ -35,6 +36,9 @@ COPY --from=builder --chown=root:root /opt/venv /opt/venv
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --chown=root:root alembic.ini ./
|
||||
COPY --chown=root:root alembic ./alembic
|
||||
|
||||
USER 10001:10001
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
# Памятка преподавателю — лабораторная 2
|
||||
# Памятка преподавателю — лабораторная 3
|
||||
|
||||
## Что подготовлено
|
||||
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
SHELL_PORTS := $(foreach v,API_PORT SHORTTTL_PORT,$(if $(filter environment,$(origin $v)),$v=$($v)))
|
||||
-include .env
|
||||
$(foreach port,$(SHELL_PORTS),$(eval $(port)))
|
||||
|
||||
PYTHON ?= python3
|
||||
BASE_URL ?= http://localhost:$(or $(API_PORT),8080)
|
||||
BASE_URL ?= http://$(shell docker compose port lb 8080 2>/dev/null || echo localhost:8080)
|
||||
CA_FILE ?=
|
||||
ACTION_SCRIPT ?=
|
||||
TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",)
|
||||
@@ -11,21 +7,35 @@ TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",)
|
||||
VENV ?= .venv
|
||||
UV ?= uv
|
||||
COMPOSE ?= docker compose
|
||||
RATE ?= 100
|
||||
FROM_REV ?=
|
||||
SHIFT ?= 0
|
||||
SCRIPTS_PY = alembic scripts/probe.py scripts/limits.py scripts/scaling.py tools
|
||||
TRACK1 ?= evidence/track1-sqlalchemy
|
||||
SCALING = $(PYTHON) scripts/scaling.py
|
||||
BEFORE_REV ?= 5c8f605cd3bd40245109348463d3e7111379b2d3
|
||||
BASELINE = --env API_IMAGE=mtusi-messenger:$(BEFORE_REV)
|
||||
PSQL = $(COMPOSE) exec -T postgres psql -U messenger -d messenger -X -q
|
||||
SHORTTTL_PORT ?= 8082
|
||||
PYTEST_ARGS ?=
|
||||
TRACK_ARGS ?=
|
||||
SHORTTTL_URL ?= http://localhost:$(SHORTTTL_PORT)
|
||||
|
||||
.PHONY: help check validate test load test-persistence \
|
||||
.PHONY: help check validate test load test-persistence test-failover \
|
||||
install lint format typecheck student-test \
|
||||
secrets up down reset-data migrate ps logs persistence-evidence storage-evidence cache-evidence test-faults seed explain track-bench track-recovery \
|
||||
migrations-evidence environment-evidence sigterm-evidence load-evidence toolchain-evidence faults-evidence
|
||||
secrets up down reset-data migrate ps logs restore lb-check failover-evidence stack-evidence \
|
||||
persistence-evidence storage-evidence cache-evidence test-faults faults-evidence seed explain retry-check \
|
||||
limits detection failover-each rolling-update level4 \
|
||||
track1 track1-images track1-host track1-a track1-b track1-compare track1-control plots
|
||||
|
||||
.NOTPARALLEL:
|
||||
|
||||
help:
|
||||
@echo "check: offline structure; validate: full OpenAPI (requirements-dev.txt); test: running API; load: synthetic writes"
|
||||
@echo "install/lint/typecheck/student-test: студенческий тулчейн"
|
||||
@echo "secrets/up/down/migrate/ps/logs: стенд Docker Compose; reset-data: намеренное удаление volumes"
|
||||
@echo "restore: вернуть остановленные реплики; lb-check: реплики на одном токене и 20 гонок одного ключа"
|
||||
@echo "retry-check: потерянный ответ на живой и на убитой реплике, повтор тем же ключом"
|
||||
@echo "level4 = limits, lb-check, detection, failover-each, rolling-update [FROM_REV=<коммит>]; RATE=$(RATE) rps"
|
||||
@echo "track1 = track1-host, track1-a (1x4/2x2/4x1), track1-b (1x1/2x1/8x1), track1-compare [BEFORE_REV=$(BEFORE_REV)], track1-control, plots → $(TRACK1)"
|
||||
@echo "BASE_URL=$(BASE_URL) (порт lb из docker compose); failover-evidence SHIFT=1 — сдвиг round robin на вторую реплику"
|
||||
|
||||
check:
|
||||
$(PYTHON) scripts/check_contract.py
|
||||
@@ -44,20 +54,24 @@ test-persistence:
|
||||
@test -n "$(ACTION_SCRIPT)" || (echo "Set ACTION_SCRIPT to your implemented executable restart hook"; exit 2)
|
||||
$(PYTHON) tests/resilience.py --mode persistence --action-script "$(ACTION_SCRIPT)" --base-url "$(BASE_URL)" $(TLS_ARGS)
|
||||
|
||||
test-failover:
|
||||
@test -n "$(ACTION_SCRIPT)" || (echo "Set ACTION_SCRIPT to your implemented executable stop-one hook"; exit 2)
|
||||
$(PYTHON) tests/resilience.py --mode failover --action-script "$(ACTION_SCRIPT)" --base-url "$(BASE_URL)" $(TLS_ARGS)
|
||||
|
||||
install:
|
||||
$(UV) sync --group dev
|
||||
|
||||
lint:
|
||||
$(VENV)/bin/ruff check src student-tests scripts/track.py
|
||||
$(VENV)/bin/ruff format --check src student-tests scripts/track.py
|
||||
$(VENV)/bin/ty check src student-tests
|
||||
$(VENV)/bin/ruff check src student-tests $(SCRIPTS_PY)
|
||||
$(VENV)/bin/ruff format --check src student-tests $(SCRIPTS_PY)
|
||||
$(VENV)/bin/ty check src student-tests alembic
|
||||
|
||||
format:
|
||||
$(VENV)/bin/ruff check --fix src student-tests scripts/track.py
|
||||
$(VENV)/bin/ruff format src student-tests scripts/track.py
|
||||
$(VENV)/bin/ruff check --fix src student-tests $(SCRIPTS_PY)
|
||||
$(VENV)/bin/ruff format src student-tests $(SCRIPTS_PY)
|
||||
|
||||
typecheck:
|
||||
$(VENV)/bin/ty check src student-tests
|
||||
$(VENV)/bin/ty check src student-tests alembic
|
||||
|
||||
student-test:
|
||||
$(VENV)/bin/pytest $(PYTEST_ARGS)
|
||||
@@ -67,13 +81,14 @@ secrets:
|
||||
|
||||
up: secrets
|
||||
$(COMPOSE) up -d --build --wait
|
||||
scripts/lb-wait.sh
|
||||
|
||||
down:
|
||||
$(COMPOSE) --profile faults --profile track down
|
||||
$(COMPOSE) --profile bench down
|
||||
|
||||
reset-data:
|
||||
@echo "Удаляются volumes с учебными данными стенда"
|
||||
$(COMPOSE) --profile faults --profile track down -v --remove-orphans
|
||||
$(COMPOSE) --profile bench down -v --remove-orphans
|
||||
|
||||
migrate:
|
||||
$(COMPOSE) run --rm migrate
|
||||
@@ -84,6 +99,76 @@ ps:
|
||||
logs:
|
||||
$(COMPOSE) logs --tail 200
|
||||
|
||||
restore:
|
||||
scripts/restore.sh
|
||||
|
||||
lb-check:
|
||||
$(PYTHON) scripts/probe.py check --rounds 20 --out evidence/lb-check.json
|
||||
|
||||
retry-check:
|
||||
$(PYTHON) scripts/probe.py retry --out evidence/retry.json
|
||||
|
||||
limits:
|
||||
$(PYTHON) scripts/limits.py --out evidence/limits.txt
|
||||
|
||||
detection:
|
||||
rm -rf evidence/detection
|
||||
for run in 1 2 3; do sh scripts/detection.sh evidence/detection/run$$run || exit 1; done
|
||||
|
||||
failover-each:
|
||||
RATE=$(RATE) sh scripts/failover-each.sh evidence/failover-each
|
||||
|
||||
rolling-update:
|
||||
ifneq ($(FROM_REV),)
|
||||
git archive "$(FROM_REV)" | docker build -q -t "mtusi-messenger:$(FROM_REV)" -
|
||||
API_IMAGE="mtusi-messenger:$(FROM_REV)" $(COMPOSE) up -d --no-deps --force-recreate --wait api
|
||||
scripts/lb-wait.sh
|
||||
endif
|
||||
$(COMPOSE) build -q api
|
||||
RATE=$(RATE) $(PYTHON) scripts/probe.py load --expect replace --duration 90 \
|
||||
--out evidence/rolling$(if $(FROM_REV),-from-$(FROM_REV)) \
|
||||
-- scripts/rolling-update.sh
|
||||
|
||||
level4: limits lb-check detection failover-each rolling-update
|
||||
|
||||
track1: track1-images track1-host track1-a track1-b track1-compare track1-control plots
|
||||
|
||||
track1-images:
|
||||
git archive "$(BEFORE_REV)" | docker build -q -t mtusi-messenger:$(BEFORE_REV) -
|
||||
$(COMPOSE) build -q api
|
||||
|
||||
track1-host:
|
||||
sh scripts/host-snapshot.sh $(TRACK1)/host.txt
|
||||
|
||||
track1-a:
|
||||
$(SCALING) --out $(TRACK1)/series-a --configs 1x4,2x2,4x1 --api-memory-total 2048 \
|
||||
--start-per-cpu 150 $(BASELINE)
|
||||
|
||||
track1-b:
|
||||
$(SCALING) --out $(TRACK1)/series-b --configs 1x1,2x1,8x1 --api-memory 512 \
|
||||
--start-per-cpu 300 --search 1.5:9000 $(BASELINE)
|
||||
|
||||
track1-compare: track1-images
|
||||
$(SCALING) --out $(TRACK1)/compare --configs 8x1 --api-memory 512 --rates 2400,3600,5400 \
|
||||
--variant before:API_IMAGE=mtusi-messenger:$(BEFORE_REV) --variant after
|
||||
|
||||
track1-control:
|
||||
$(SCALING) $(BASELINE) --out $(TRACK1)/control-pool --configs 8x1 --api-memory 512 --rates 5400 \
|
||||
--variant pool4:DB_POOL_MAX_SIZE=4 --variant pool8 --variant pool16:DB_POOL_MAX_SIZE=16 \
|
||||
--variant maxconn16:API_SERVER_MAXCONN=16 --variant maxconn64:API_SERVER_MAXCONN=64
|
||||
$(SCALING) $(BASELINE) --out $(TRACK1)/control-cpus --configs 4x1,8x0.5 --api-memory-total 2048 --rates 3040,4560 \
|
||||
--variant pinned
|
||||
|
||||
plots:
|
||||
MPLBACKEND=Agg $(UV) run --no-project --python 3.14 --with 'matplotlib==3.11.2' \
|
||||
python tools/plot_track1.py --out $(TRACK1)/plots $(wildcard $(TRACK1)/*/summary.csv)
|
||||
|
||||
failover-evidence:
|
||||
sh scripts/failover-evidence.sh "$(BASE_URL)" "$(SHIFT)"
|
||||
|
||||
stack-evidence:
|
||||
sh scripts/evidence-stack.sh
|
||||
|
||||
persistence-evidence:
|
||||
sh scripts/persistence-evidence.sh "$(BASE_URL)" > evidence/persistence.txt
|
||||
cat evidence/persistence.txt
|
||||
@@ -95,34 +180,14 @@ cache-evidence:
|
||||
sh scripts/evidence-cache.sh > evidence/cache.txt
|
||||
cat evidence/cache.txt
|
||||
|
||||
migrations-evidence:
|
||||
@echo "Удаляются volumes с учебными данными стенда: миграции применяются к пустой БД"
|
||||
sh scripts/evidence-migrations.sh "$(BASE_URL)" > evidence/migrations.txt
|
||||
cat evidence/migrations.txt
|
||||
|
||||
environment-evidence:
|
||||
sh scripts/evidence-environment.sh > evidence/environment.txt
|
||||
cat evidence/environment.txt
|
||||
|
||||
sigterm-evidence:
|
||||
sh scripts/evidence-sigterm.sh "$(BASE_URL)" > evidence/sigterm.txt
|
||||
cat evidence/sigterm.txt
|
||||
|
||||
load-evidence:
|
||||
sh scripts/evidence-load.sh "$(BASE_URL)" > evidence/load.txt
|
||||
cat evidence/load.txt
|
||||
|
||||
toolchain-evidence:
|
||||
sh scripts/evidence-toolchain.sh "$(BASE_URL)"
|
||||
|
||||
test-faults:
|
||||
$(COMPOSE) --profile faults up -d --wait api-shortttl
|
||||
BASE_URL="$(BASE_URL)" SHORTTTL_URL="$(SHORTTTL_URL)" $(VENV)/bin/pytest -m stack -v -s student-tests/stack
|
||||
BASE_URL="$(BASE_URL)" $(VENV)/bin/pytest -m stack -v -s student-tests/stack
|
||||
|
||||
faults-evidence:
|
||||
{ echo "date: $$(date -u +%FT%TZ) commit: $$(git rev-parse --short HEAD)"; echo "\$$ make test-faults"; \
|
||||
$(MAKE) --no-print-directory test-faults 2>&1; } > evidence/faults.txt
|
||||
$(MAKE) --no-print-directory test-faults 2>&1; } | sed 's#$(CURDIR)#<repo>#g' > evidence/faults.txt
|
||||
cat evidence/faults.txt
|
||||
grep -qE '^=+ [0-9]+ passed in' evidence/faults.txt
|
||||
|
||||
seed:
|
||||
$(PSQL) -f - < scripts/sql/seed-history.sql
|
||||
@@ -132,9 +197,3 @@ explain: seed
|
||||
echo "\$$ make explain # scripts/sql/explain-history.sql"; \
|
||||
$(PSQL) -f - < scripts/sql/explain-history.sql; } > evidence/explain-history.txt
|
||||
cat evidence/explain-history.txt
|
||||
|
||||
track-bench:
|
||||
$(PYTHON) scripts/track.py bench $(TRACK_ARGS)
|
||||
|
||||
track-recovery:
|
||||
$(PYTHON) scripts/track.py recovery $(TRACK_ARGS)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Лабораторная 2. PostgreSQL, сессии и Redis/Valkey
|
||||
# Лабораторная 3. Балансировка и отказ API-реплики
|
||||
|
||||
Перенести состояние в постоянное хранилище и связать запросы с аутентифицированным пользователем. Подтверждённые сообщения и действующие сессии переживают перезапуск.
|
||||
Запустить несколько взаимозаменяемых экземпляров API за единой точкой входа и сохранить корректность при остановке одного из них.
|
||||
|
||||
Это **skeleton**, а не готовый сервер. Здесь есть задание, контракт и публичные проверки. Реализацию приложения, Dockerfile и требуемую инфраструктуру пишет студент. Язык и framework свободные; UI не обязателен.
|
||||
|
||||
@@ -8,41 +8,42 @@
|
||||
|
||||
## Откуда начинаем
|
||||
|
||||
Перенесите собственный минимум lab1. Изменения API: password при регистрации, Basic для создания сессии, Bearer вместо X-User-Id для бизнес-запросов.
|
||||
Нужен минимум lab2: PostgreSQL, общие действующие сессии, миграции. Добавляются X-Instance-Id и обязательный Idempotency-Key при отправке сообщения.
|
||||
|
||||
**Архитектура:** Клиент → API → PostgreSQL; на 4 появляется Redis ИЛИ Valkey для сессий/кэша.
|
||||
**Архитектура:** Клиент → LB → API × 2+ → общие PostgreSQL и хранилище сессий. Compose или Swarm — на выбор.
|
||||
|
||||
## Что сделать
|
||||
|
||||
1. Опишите таблицы, ограничения, индексы и транзакционные границы до написания запросов. Добавьте версионируемые миграции.
|
||||
2. Перенесите пользователей, чаты, членство и сообщения в PostgreSQL. Не используйте SQLite как замену PostgreSQL в принимаемом стенде.
|
||||
3. Реализуйте регистрацию с password KDF, вход через Basic, opaque Bearer-сессию, expiry и logout. Действующие сессии тоже должны сохраняться.
|
||||
4. Подготовьте единый локальный запуск API и БД (Compose рекомендуется уже здесь), подключите именованные volumes.
|
||||
5. Пройдите smoke и тест полного перезапуска. На 4 добавьте Redis/Valkey с конкретной ролью и повторите эксперимент отказа.
|
||||
1. Выберите Compose + Nginx/HAProxy/Traefik либо Docker Swarm. Для выбранного варианта дайте одну последовательность запуска.
|
||||
2. Уберите локальные сессии/другие данные, от которых зависит корректность, из API. Миграции выполняйте отдельно и согласованно, а не гонкой всех реплик.
|
||||
3. Настройте балансировщик, проверки готовности, DNS/обновление backend-адресов и graceful shutdown. Не закрепляйте клиента sticky session как способ исправить раздельное состояние.
|
||||
4. Реализуйте общую идемпотентность отправки сообщения. Проверьте одинаковый ключ одновременно через разные реплики.
|
||||
5. Подготовьте явный action script, останавливающий одну выбранную API-реплику, и продемонстрируйте чтение/запись во время отказа.
|
||||
|
||||
## Оценка «3»: работающий минимум
|
||||
|
||||
- Минимум lab1 сохранён с объявленным переходом на новую аутентификацию. Все обязательные данные и ещё действующие сессии переживают рестарт API и хранилищ без удаления volumes.
|
||||
- PostgreSQL содержит пользователей, чаты, участников и сообщения. Есть первичные/внешние ключи, уникальность username и миграции с нуля. Составная операция создания чата выполняется атомарно.
|
||||
- Basic применяется только на POST /auth/sessions, остальные endpoint требуют Bearer. Есть срок жизни сессии и отзыв; X-User-Id не даёт доступ. Пароли уже хешируются password KDF.
|
||||
- make test и make test-persistence ACTION_SCRIPT=scripts/restart.sh проходят. Миграции повторно запускаются без дублирования данных. Secrets/volumes не попадают в Git.
|
||||
- Весь стенд описан в compose.yaml или stack.yaml, запускается документированной командой. Не менее двух API-реплик, одна публичная точка входа, одна общая БД и общее хранилище сессий.
|
||||
- Разные запросы одного пользователя обслуживаются разными репликами без повторного входа. Это видно по X-Instance-Id. Доступ через LB — основной проверяемый маршрут.
|
||||
- Можно остановить любую одну API-реплику при работающей другой: не позднее 10 секунд продолжаются новые чтения/записи, подтверждённые сообщения доступны. Краткие ошибки/оборванные запросы во время обнаружения отказа измеряются и допустимы.
|
||||
- Повтор POST сообщения с тем же Idempotency-Key не создаёт дубль, включая конкурентный повтор и переключение реплики. Неподтверждённую запись клиент может безопасно повторить с тем же ключом.
|
||||
- make test, persistence и failover-сценарий проходят; для failover проверяется наличие ≥2 наблюдаемых реплик. Для Swarm сборка образа и его доступность узлам описаны отдельно.
|
||||
|
||||
## Оценка «4»: уровень стажёра/джуна
|
||||
|
||||
Весь уровень 3 **и все** пункты ниже:
|
||||
|
||||
- Redis ИЛИ Valkey реально используется для сессий с TTL либо осмысленного кэша. Опишите источник истины, политику expiry и инвалидации. Если это единственное хранилище сессий, включите persistence, выдерживающее проверяемый рестарт; один TTL не сохраняет данные.
|
||||
- Используются параметризованные запросы/безопасный ORM, ограниченный connection pool и таймауты. Проверены гонка регистрации одинакового username и rollback составной операции.
|
||||
- Индекс истории обоснован запросом и EXPLAIN (ANALYZE, BUFFERS) на ≥10 000 сообщениях; пагинация не использует полный scan всей истории на каждую страницу.
|
||||
- Есть автоматическая проверка expiry при коротком SESSION_TTL_SECONDS, logout, неверного пароля и недоступности Redis/БД. При потере сервиса приложение возвращает ограниченную ошибку/корректно обходит кэш, не принимает запрос от анонимного пользователя как доверенный.
|
||||
- Health/readiness, timeouts и прекращение приёма при SIGTERM настроены согласованно; LB исключает недоступный backend. Укажите период проверок и максимальное время обнаружения отказа.
|
||||
- Последовательно остановите каждую API-реплику (восстанавливая предыдущую); соберите RPS, ошибки и время восстановления. Общая идемпотентность проверяется параллельными запросами с одним ключом.
|
||||
- Контейнеры имеют CPU/RAM-лимиты, API не публикуют порты наружу в обход LB; секреты и хранилища общие только там, где нужно. Нет container_name, мешающего масштабированию одного Compose-service.
|
||||
- Rolling update или эквивалентная поочерёдная замена проверена под нагрузкой. Миграции запускаются однократно и совместимы с работающей версией либо ограничение честно описано.
|
||||
|
||||
## Оценка «5»: исследование и доказанный результат
|
||||
|
||||
Весь уровень 4 **и один законченный трек на выбор**. Приведите гипотезу, повторяемую методику, результаты и ограничения.
|
||||
|
||||
**Трек 1. Согласованность кэша.** Покажите на конкурентном сценарии stale read или cache stampede, реализуйте защиту и измерьте число SQL-запросов/latency до и после. Докажите read-after-write из контракта и восстановление после рестарта кэша; одной установки Redis недостаточно.
|
||||
**Трек 1. Цена масштабирования.** При фиксированном суммарном CPU/RAM сравните 1/2/4 API-реплики на одном профиле нагрузки; затем проведите серию с ростом ресурсов. Найдите saturation point БД/LB/пула и покажите, почему рост реплик перестаёт помогать. Дайте исходные данные, графики и одно подтверждённое улучшение.
|
||||
|
||||
**Трек 2. План запроса и восстановление.** Исследуйте ≥100 000 сообщений с неравномерными размерами чатов, сравните ≥2 индекса/запроса и стоимость записи. Сделайте backup → восстановление в новое хранилище → сверку количества и выбранных сообщений. Обсудите время восстановления и границы потери данных.
|
||||
**Трек 2. Отказ узла.** Расширьте стенд до нескольких узлов, покажите перенос API при потере узла и разберите оставшиеся SPOF (LB, DB, storage). Для заявленной защищённой зависимости покажите реальный failover и сохранность данных. Если DB не реплицирована, не заявляйте выживание её узла.
|
||||
|
||||
## Как начать и проверить
|
||||
|
||||
@@ -78,28 +79,26 @@ Smoke не выставляет оценку автоматически. Про
|
||||
|
||||
## Сценарий защиты
|
||||
|
||||
1. Применить миграции к пустому volume, создать пользователей, войти, отправить сообщение.
|
||||
2. Запустить persistence-сценарий: он держит токен только в памяти тестового процесса; action script перезапускает API и все используемые хранилища, сохраняя volumes.
|
||||
3. После готовности тот же токен читает те же данные; после logout — 401. Повторить с отдельным коротким TTL для проверки expiry.
|
||||
4. Для 4: показать роль Redis/Valkey, план SQL и ошибку зависимости. Для 5: выполнить выбранный эксперимент.
|
||||
1. Запустить стенд и показать ≥2 разных X-Instance-Id через LB с одной сессией.
|
||||
2. Запустить make test-failover ACTION_SCRIPT=scripts/stop-one.sh. Скрипт теста выполняет запросы во время action, учитывает ошибки и повторяет сообщения с исходным ключом.
|
||||
3. Показать, какой контейнер действительно остановлен; заголовок сам по себе не доказательство разных процессов. Повторить для второй реплики после восстановления первой.
|
||||
4. Проверить restart всего стенда с сохранением volumes и неизменным токеном. Для 4/5 — соответствующие эксперименты.
|
||||
|
||||
## Что должно быть в PR
|
||||
|
||||
Исходники, Dockerfile, миграции, compose.yaml либо эквивалентный воспроизводимый запуск, scripts/restart.sh, собственные тесты и отчёт.
|
||||
compose.yaml или stack.yaml, конфигурация LB, scripts/restart.sh, scripts/stop-one.sh, Dockerfile, миграции, результаты отказов.
|
||||
|
||||
Заполните `REPORT.md` и [шаблон PR](.github/pull_request_template.md), укажите целевую оценку/трек. Не меняйте обязательный контракт и публичные tests ради зелёного результата. Сохраняйте возможности предыдущих лабораторных в пределах [объявленных переходов](COURSE.md).
|
||||
|
||||
## Вопросы на защите
|
||||
|
||||
- Что подтверждает COMMIT и какие гарантии зависят от настройки durability?
|
||||
- Где хранятся сессии и что будет после flush/restart Redis?
|
||||
- Чем аутентификация отличается от доступа к конкретному чату?
|
||||
- Почему hash пароля и быстрый checksum имеют разные задачи?
|
||||
- Чем отказ процесса отличается от отказа узла?
|
||||
- Почему depends_on/healthcheck сами по себе не являются балансировщиком?
|
||||
- Какие POST можно повторять после timeout и что защищает Idempotency-Key?
|
||||
- Что сломается при увеличении числа API, если сессии находятся в локальной памяти?
|
||||
|
||||
## Первичные материалы
|
||||
|
||||
- [PostgreSQL transactions](https://www.postgresql.org/docs/current/tutorial-transactions.html)
|
||||
- [PostgreSQL EXPLAIN](https://www.postgresql.org/docs/current/using-explain.html)
|
||||
- [Valkey persistence](https://valkey.io/topics/persistence/)
|
||||
- [Redis persistence](https://redis.io/docs/latest/operate/oss_and_stack/management/persistence/)
|
||||
- [Basic authentication](https://www.rfc-editor.org/info/rfc7617/)
|
||||
- [Compose services](https://docs.docker.com/reference/compose-file/services/)
|
||||
- [Swarm routing mesh](https://docs.docker.com/engine/swarm/ingress/)
|
||||
- [Swarm services](https://docs.docker.com/engine/swarm/services/)
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
[alembic]
|
||||
script_location = %(here)s/alembic
|
||||
prepend_sys_path = %(here)s/src %(here)s/alembic
|
||||
path_separator = space
|
||||
@@ -0,0 +1,81 @@
|
||||
import asyncio
|
||||
|
||||
from alembic import context
|
||||
from alembic.script import ScriptDirectory
|
||||
from legacy import adopt_legacy
|
||||
from sqlalchemy import Connection, func, make_url, pool, select
|
||||
from sqlalchemy.ext.asyncio import create_async_engine
|
||||
|
||||
from messenger.identity.infrastructure.postgres import SessionRow, UserRow
|
||||
from messenger.messaging.infrastructure.postgres import (
|
||||
ChatMemberRow,
|
||||
ChatRow,
|
||||
IdempotencyKeyRow,
|
||||
MessageRow,
|
||||
)
|
||||
from messenger.shared.config import PlatformSettings
|
||||
|
||||
LOCK_KEY = 20_260_002
|
||||
MODELS = (UserRow, SessionRow, ChatRow, ChatMemberRow, MessageRow, IdempotencyKeyRow)
|
||||
target_metadata = UserRow.metadata
|
||||
config = context.config
|
||||
|
||||
|
||||
def include_object(_obj, name, _type, _reflected, _compare_to):
|
||||
return name != "schema_migrations"
|
||||
|
||||
|
||||
def run_migrations(connection: Connection) -> None:
|
||||
with connection.engine.connect() as lock:
|
||||
lock.execute(select(func.pg_advisory_lock(LOCK_KEY)))
|
||||
lock.commit()
|
||||
try:
|
||||
with connection.begin():
|
||||
adopt_legacy(connection, ScriptDirectory.from_config(config))
|
||||
context.configure(
|
||||
connection=connection,
|
||||
target_metadata=target_metadata,
|
||||
transaction_per_migration=True,
|
||||
compare_type=True,
|
||||
include_object=include_object,
|
||||
)
|
||||
with context.begin_transaction():
|
||||
context.run_migrations()
|
||||
finally:
|
||||
lock.execute(select(func.pg_advisory_unlock(LOCK_KEY)))
|
||||
lock.commit()
|
||||
|
||||
|
||||
async def run_async_migrations() -> None:
|
||||
dsn = config.attributes.get("database_url")
|
||||
if dsn is None:
|
||||
dsn = PlatformSettings().database_url.get_secret_value()
|
||||
engine = create_async_engine(
|
||||
make_url(dsn).set(drivername="postgresql+asyncpg"),
|
||||
poolclass=pool.NullPool,
|
||||
hide_parameters=True,
|
||||
connect_args={
|
||||
"timeout": 10,
|
||||
"server_settings": {"lock_timeout": "10000", "statement_timeout": "60000"},
|
||||
},
|
||||
)
|
||||
try:
|
||||
async with engine.connect() as connection:
|
||||
await connection.run_sync(run_migrations)
|
||||
finally:
|
||||
await engine.dispose()
|
||||
|
||||
|
||||
if context.is_offline_mode():
|
||||
context.configure(
|
||||
dialect_name="postgresql",
|
||||
target_metadata=target_metadata,
|
||||
literal_binds=True,
|
||||
transaction_per_migration=True,
|
||||
)
|
||||
with context.begin_transaction():
|
||||
context.run_migrations()
|
||||
elif config.attributes.get("connection") is not None:
|
||||
run_migrations(config.attributes["connection"])
|
||||
else:
|
||||
asyncio.run(run_async_migrations())
|
||||
@@ -0,0 +1,88 @@
|
||||
from uuid import uuid4
|
||||
|
||||
from alembic.migration import MigrationContext
|
||||
from alembic.operations import Operations
|
||||
from alembic.script import ScriptDirectory
|
||||
from sqlalchemy import Connection, MetaData, Table, func, inspect, select, text
|
||||
from sqlalchemy.schema import CreateSchema
|
||||
|
||||
LEGACY = {
|
||||
"0001_init": "9a13618f078ae9056431391e2e5197a31b981ae1fff047a9b3421ac750d3fd0d",
|
||||
"0002_idempotency_keys": "d9159a35553249a1e51af5f2e4e7c39b014e97593c49748e13f3799839063dd0",
|
||||
}
|
||||
SNAPSHOT = text("""
|
||||
WITH relations AS (
|
||||
SELECT c.* FROM pg_class c JOIN pg_namespace n ON n.oid = c.relnamespace
|
||||
WHERE n.nspname = :schema AND c.relkind IN ('r', 'p')
|
||||
AND c.relname NOT IN ('schema_migrations', 'alembic_version')
|
||||
)
|
||||
SELECT 'table' AS kind, c.relname AS name,
|
||||
concat_ws('|', c.relkind, c.relpersistence,
|
||||
c.relrowsecurity, c.relforcerowsecurity) AS definition
|
||||
FROM relations c
|
||||
UNION ALL
|
||||
SELECT 'column', c.relname || '.' || a.attname,
|
||||
concat_ws('|', a.attnum, format_type(a.atttypid, a.atttypmod), a.attnotnull,
|
||||
a.attidentity, a.attgenerated, a.attcollation::regcollation,
|
||||
pg_get_expr(d.adbin, d.adrelid))
|
||||
FROM relations c JOIN pg_attribute a ON a.attrelid = c.oid
|
||||
LEFT JOIN pg_attrdef d ON d.adrelid = c.oid AND d.adnum = a.attnum
|
||||
WHERE a.attnum > 0 AND NOT a.attisdropped
|
||||
UNION ALL
|
||||
SELECT 'constraint', c.relname || '.' || k.conname,
|
||||
concat_ws('|', pg_get_constraintdef(k.oid), k.convalidated)
|
||||
FROM relations c JOIN pg_constraint k ON k.conrelid = c.oid
|
||||
UNION ALL
|
||||
SELECT 'index', c.relname || '.' || x.relname,
|
||||
concat_ws('|', pg_get_indexdef(i.indexrelid), i.indisvalid, i.indisready)
|
||||
FROM relations c JOIN pg_index i ON i.indrelid = c.oid
|
||||
JOIN pg_class x ON x.oid = i.indexrelid
|
||||
UNION ALL
|
||||
SELECT 'trigger', c.relname || '.' || t.tgname,
|
||||
concat_ws('|', pg_get_triggerdef(t.oid), t.tgenabled)
|
||||
FROM relations c JOIN pg_trigger t ON t.tgrelid = c.oid WHERE NOT t.tgisinternal
|
||||
ORDER BY kind, name
|
||||
""")
|
||||
|
||||
|
||||
def snapshot(connection: Connection, schema: str) -> list[tuple[str, str, str]]:
|
||||
return [
|
||||
(kind, name, definition.replace(f"{schema}.", ""))
|
||||
for kind, name, definition in connection.execute(SNAPSHOT, {"schema": schema})
|
||||
]
|
||||
|
||||
|
||||
def adopt_legacy(connection: Connection, scripts: ScriptDirectory) -> None:
|
||||
migration = MigrationContext.configure(connection)
|
||||
if migration.get_current_heads():
|
||||
return
|
||||
tables = set(inspect(connection).get_table_names(schema="public"))
|
||||
if tables <= {"alembic_version"}:
|
||||
return
|
||||
if "schema_migrations" not in tables:
|
||||
raise RuntimeError("Existing schema has no legacy migration journal")
|
||||
journal = Table("schema_migrations", MetaData(), schema="public", autoload_with=connection)
|
||||
applied = dict(connection.execute(select(journal.c.version, journal.c.checksum)).tuples().all())
|
||||
expected = dict(list(LEGACY.items())[: len(applied)])
|
||||
if applied != expected:
|
||||
raise RuntimeError("Unknown or changed legacy migrations")
|
||||
if not applied:
|
||||
if tables - {"schema_migrations", "alembic_version"}:
|
||||
raise RuntimeError("Existing schema has an empty migration journal")
|
||||
return
|
||||
revision = list(expected)[-1]
|
||||
actual = snapshot(connection, "public")
|
||||
reference = f"alembic_verify_{uuid4().hex}"
|
||||
savepoint = connection.begin_nested()
|
||||
try:
|
||||
connection.execute(CreateSchema(reference))
|
||||
connection.execute(select(func.set_config("search_path", reference, True)))
|
||||
with Operations.context(MigrationContext.configure(connection)):
|
||||
for script in reversed(list(scripts.walk_revisions(base="base", head=revision))):
|
||||
script.module.upgrade()
|
||||
wanted = snapshot(connection, reference)
|
||||
finally:
|
||||
savepoint.rollback()
|
||||
if actual != wanted:
|
||||
raise RuntimeError("Legacy schema differs from the recorded migrations")
|
||||
migration.stamp(scripts, revision)
|
||||
@@ -0,0 +1,16 @@
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
${imports if imports else ""}
|
||||
|
||||
revision = ${repr(up_revision)}
|
||||
down_revision = ${repr(down_revision)}
|
||||
branch_labels = ${repr(branch_labels)}
|
||||
depends_on = ${repr(depends_on)}
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
${upgrades if upgrades else "pass"}
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
${downgrades if downgrades else "pass"}
|
||||
@@ -0,0 +1,87 @@
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
revision = "0001_init"
|
||||
down_revision = None
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
op.create_table(
|
||||
"users",
|
||||
sa.Column("id", sa.Uuid(), nullable=False),
|
||||
sa.Column("username", sa.Text(), nullable=False),
|
||||
sa.Column("display_name", sa.Text(), nullable=False),
|
||||
sa.Column("password_hash", sa.Text(), nullable=False),
|
||||
sa.Column("created_at", sa.DateTime(timezone=True), nullable=False),
|
||||
sa.CheckConstraint("password_hash LIKE '$argon2id$%'", name="users_password_hash_check"),
|
||||
sa.CheckConstraint("username ~ '^[a-z0-9_]{3,32}$'", name="users_username_format"),
|
||||
sa.CheckConstraint(
|
||||
"char_length(display_name) BETWEEN 1 AND 100", name="users_display_name_check"
|
||||
),
|
||||
sa.PrimaryKeyConstraint("id"),
|
||||
sa.UniqueConstraint("username", name="users_username_key"),
|
||||
)
|
||||
op.create_table(
|
||||
"sessions",
|
||||
sa.Column("token_hash", sa.LargeBinary(), nullable=False),
|
||||
sa.Column("user_id", sa.Uuid(), nullable=False),
|
||||
sa.Column("created_at", sa.DateTime(timezone=True), nullable=False),
|
||||
sa.Column("expires_at", sa.DateTime(timezone=True), nullable=False),
|
||||
sa.CheckConstraint("expires_at > created_at", name="sessions_check"),
|
||||
sa.CheckConstraint("octet_length(token_hash) = 32", name="sessions_token_hash_check"),
|
||||
sa.ForeignKeyConstraint(["user_id"], ["users.id"], ondelete="CASCADE"),
|
||||
sa.PrimaryKeyConstraint("token_hash"),
|
||||
)
|
||||
op.create_index("sessions_user_idx", "sessions", ["user_id"], unique=False)
|
||||
op.create_table(
|
||||
"chats",
|
||||
sa.Column("id", sa.Uuid(), nullable=False),
|
||||
sa.Column("title", sa.Text(), nullable=False),
|
||||
sa.Column("created_at", sa.DateTime(timezone=True), nullable=False),
|
||||
sa.Column("last_message_at", sa.DateTime(timezone=True), nullable=True),
|
||||
sa.CheckConstraint("char_length(title) BETWEEN 1 AND 100", name="chats_title_check"),
|
||||
sa.PrimaryKeyConstraint("id"),
|
||||
)
|
||||
op.create_table(
|
||||
"chat_members",
|
||||
sa.Column("chat_id", sa.Uuid(), nullable=False),
|
||||
sa.Column("user_id", sa.Uuid(), nullable=False),
|
||||
sa.Column("position", sa.SmallInteger(), nullable=False),
|
||||
sa.Column("chat_created_at", sa.DateTime(timezone=True), nullable=False),
|
||||
sa.CheckConstraint("position BETWEEN 1 AND 100", name="chat_members_position_check"),
|
||||
sa.ForeignKeyConstraint(["chat_id"], ["chats.id"], ondelete="CASCADE"),
|
||||
sa.ForeignKeyConstraint(
|
||||
["user_id"],
|
||||
["users.id"],
|
||||
),
|
||||
sa.PrimaryKeyConstraint("chat_id", "user_id"),
|
||||
)
|
||||
op.create_index(
|
||||
"chat_members_user_idx",
|
||||
"chat_members",
|
||||
["user_id", "chat_created_at", "chat_id"],
|
||||
unique=False,
|
||||
)
|
||||
op.create_table(
|
||||
"messages",
|
||||
sa.Column("id", sa.Uuid(), nullable=False),
|
||||
sa.Column("chat_id", sa.Uuid(), nullable=False),
|
||||
sa.Column("sender_id", sa.Uuid(), nullable=False),
|
||||
sa.Column("text", sa.Text(), nullable=False),
|
||||
sa.Column("created_at", sa.DateTime(timezone=True), nullable=False),
|
||||
sa.CheckConstraint("char_length(text) BETWEEN 1 AND 4000", name="messages_text_check"),
|
||||
sa.ForeignKeyConstraint(
|
||||
["chat_id", "sender_id"],
|
||||
["chat_members.chat_id", "chat_members.user_id"],
|
||||
),
|
||||
sa.PrimaryKeyConstraint("id"),
|
||||
)
|
||||
op.create_index(
|
||||
"messages_history_idx", "messages", ["chat_id", "created_at", "id"], unique=False
|
||||
)
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
raise RuntimeError("Downgrade would delete application data")
|
||||
@@ -0,0 +1,33 @@
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
revision = "0002_idempotency_keys"
|
||||
down_revision = "0001_init"
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
op.create_table(
|
||||
"idempotency_keys",
|
||||
sa.Column("chat_id", sa.Uuid(), nullable=False),
|
||||
sa.Column("user_id", sa.Uuid(), nullable=False),
|
||||
sa.Column("key", sa.Text(), nullable=False),
|
||||
sa.Column("fingerprint", sa.LargeBinary(), nullable=False),
|
||||
sa.Column("message_id", sa.Uuid(), nullable=False),
|
||||
sa.Column("created_at", sa.DateTime(timezone=True), nullable=False),
|
||||
sa.CheckConstraint("key ~ '^[A-Za-z0-9._:-]{1,128}$'", name="idempotency_keys_key_check"),
|
||||
sa.CheckConstraint(
|
||||
"octet_length(fingerprint) = 32", name="idempotency_keys_fingerprint_check"
|
||||
),
|
||||
sa.ForeignKeyConstraint(
|
||||
["chat_id", "user_id"],
|
||||
["chat_members.chat_id", "chat_members.user_id"],
|
||||
),
|
||||
sa.ForeignKeyConstraint(["message_id"], ["messages.id"], ondelete="CASCADE"),
|
||||
sa.PrimaryKeyConstraint("chat_id", "user_id", "key"),
|
||||
)
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
raise RuntimeError("Downgrade would delete application data")
|
||||
@@ -1,10 +1,11 @@
|
||||
# Topology worksheet, deliberately NOT a runnable stack (no application supplied).
|
||||
# Implement compose.yaml or stack.yaml; do not submit this empty file as deployment.
|
||||
# Service names below are logical roles, not imposed container names.
|
||||
x-lab-number: 2
|
||||
x-lab-number: 3
|
||||
x-required-roles:
|
||||
- api
|
||||
- postgres
|
||||
- load_balancer
|
||||
# TODO: implement real images/builds, network wiring, volumes, healthchecks,
|
||||
# credentials and bootstrap. Details: contracts/infrastructure.json and README.md.
|
||||
services: {}
|
||||
|
||||
+121
-79
@@ -1,28 +1,111 @@
|
||||
x-app: &app
|
||||
image: mtusi-messenger:${COMPOSE_PROJECT_NAME}
|
||||
build: .
|
||||
environment: &app-environment
|
||||
DATABASE_URL_FILE: /run/secrets/database_url
|
||||
CACHE_URL_FILE: /run/secrets/cache_url
|
||||
CURSOR_SECRET_FILE: /run/secrets/cursor_secret
|
||||
SESSION_TTL_SECONDS: ${SESSION_TTL_SECONDS:-3600}
|
||||
WEB_CONCURRENCY: ${WEB_CONCURRENCY:-4}
|
||||
LOG_LEVEL: ${LOG_LEVEL:-INFO}
|
||||
secrets: [database_url, cache_url, cursor_secret]
|
||||
image: ${API_IMAGE:-mtusi-messenger:${COMPOSE_PROJECT_NAME}}
|
||||
networks: [backend]
|
||||
|
||||
x-ready: &ready
|
||||
test: ["CMD", "python", "-c", "import urllib.request,sys;sys.exit(0 if urllib.request.urlopen('http://127.0.0.1:8080/health/ready',timeout=2).status==200 else 1)"]
|
||||
interval: 3s
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
start_period: 15s
|
||||
start_interval: 200ms
|
||||
|
||||
services:
|
||||
lb:
|
||||
image: haproxy:3.2.26-alpine@sha256:5893840576071e6217cd52ebdcc14f454c6f7a631056fa6f4e0f40d3cac4215b
|
||||
environment:
|
||||
API_SERVER_MAXCONN: ${API_SERVER_MAXCONN:-64}
|
||||
volumes: [./infra/haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro]
|
||||
ports:
|
||||
- "127.0.0.1:${LB_HTTP_PORT:-8080}:8080"
|
||||
- "127.0.0.1:${LB_STATS_PORT:-8404}:8404"
|
||||
networks: [edge, backend]
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8404/healthz"]
|
||||
interval: 2s
|
||||
timeout: 2s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
sysctls:
|
||||
net.ipv4.ip_local_port_range: "10240 65535"
|
||||
net.ipv4.tcp_tw_reuse: "1"
|
||||
stop_signal: SIGUSR1
|
||||
stop_grace_period: 8s
|
||||
restart: unless-stopped
|
||||
read_only: true
|
||||
cap_drop: [ALL]
|
||||
cpuset: ${LB_CPUSET:-}
|
||||
deploy:
|
||||
resources:
|
||||
limits: {cpus: "${LB_CPUS:-1}", memory: 128m}
|
||||
|
||||
api:
|
||||
<<: *app
|
||||
build: .
|
||||
environment:
|
||||
DATABASE_URL_FILE: /run/secrets/database_url
|
||||
CACHE_URL_FILE: /run/secrets/cache_url
|
||||
CURSOR_SECRET_FILE: /run/secrets/cursor_secret
|
||||
SESSION_TTL_SECONDS: ${SESSION_TTL_SECONDS:-3600}
|
||||
IDEMPOTENCY_TTL_SECONDS: ${IDEMPOTENCY_TTL_SECONDS:-86400}
|
||||
WEB_CONCURRENCY: ${WEB_CONCURRENCY:-2}
|
||||
DB_POOL_MAX_SIZE: ${DB_POOL_MAX_SIZE:-8}
|
||||
REQUEST_TIMEOUT_SECONDS: ${REQUEST_TIMEOUT_SECONDS:-8}
|
||||
DB_ACQUIRE_TIMEOUT_SECONDS: ${DB_ACQUIRE_TIMEOUT_SECONDS:-1}
|
||||
DB_COMMAND_TIMEOUT_SECONDS: ${DB_COMMAND_TIMEOUT_SECONDS:-2}
|
||||
DRAIN_SECONDS: ${DRAIN_SECONDS:-2}
|
||||
SHUTDOWN_TIMEOUT_SECONDS: ${SHUTDOWN_TIMEOUT_SECONDS:-6}
|
||||
LOG_LEVEL: ${LOG_LEVEL:-INFO}
|
||||
secrets: [database_url, cache_url, cursor_secret]
|
||||
healthcheck:
|
||||
test: ["CMD", "python", "-c", "import sys,urllib.request;sys.exit(urllib.request.urlopen('http://127.0.0.1:8080/health/ready',timeout=2).status!=200)"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
start_interval: 200ms
|
||||
stop_grace_period: 8s
|
||||
restart: unless-stopped
|
||||
read_only: true
|
||||
tmpfs: [/tmp]
|
||||
cpuset: ${API_CPUSET:-}
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
valkey:
|
||||
condition: service_started
|
||||
deploy:
|
||||
replicas: ${API_REPLICAS:-2}
|
||||
resources:
|
||||
limits: {cpus: "${API_CPUS:-1}", memory: "${API_MEMORY:-512m}"}
|
||||
|
||||
migrate:
|
||||
<<: *app
|
||||
pull_policy: never
|
||||
command: ["alembic", "upgrade", "head"]
|
||||
environment:
|
||||
DATABASE_URL_FILE: /run/secrets/database_url
|
||||
LOG_LEVEL: ${LOG_LEVEL:-INFO}
|
||||
secrets: [database_url]
|
||||
healthcheck:
|
||||
disable: true
|
||||
restart: "no"
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
deploy:
|
||||
resources:
|
||||
limits: {cpus: "0.5", memory: 256m}
|
||||
|
||||
postgres:
|
||||
image: postgres:17.11-alpine@sha256:266d3c257594e195b309ae9d1805e54c788f1d7b375f56bf6c367aac6c917e7b
|
||||
user: "70:70"
|
||||
command:
|
||||
- postgres
|
||||
- -c
|
||||
- max_connections=${PG_MAX_CONNECTIONS:-200}
|
||||
- -c
|
||||
- shared_buffers=${PG_SHARED_BUFFERS:-256MB}
|
||||
- -c
|
||||
- shared_preload_libraries=pg_stat_statements
|
||||
- -c
|
||||
- pg_stat_statements.track=top
|
||||
- -c
|
||||
- track_io_timing=on
|
||||
- -c
|
||||
- idle_in_transaction_session_timeout=10s
|
||||
environment:
|
||||
POSTGRES_DB: messenger
|
||||
POSTGRES_USER: messenger
|
||||
@@ -30,6 +113,7 @@ services:
|
||||
secrets: [postgres_password]
|
||||
volumes: [pgdata:/var/lib/postgresql/data]
|
||||
shm_size: 256m
|
||||
cpuset: ${PG_CPUSET:-}
|
||||
healthcheck:
|
||||
test: ["CMD", "pg_isready", "-h", "127.0.0.1", "-U", "messenger", "-d", "messenger"]
|
||||
interval: 2s
|
||||
@@ -40,6 +124,9 @@ services:
|
||||
stop_grace_period: 10s
|
||||
restart: unless-stopped
|
||||
networks: [backend]
|
||||
deploy:
|
||||
resources:
|
||||
limits: {cpus: "${PG_CPUS:-2}", memory: "${PG_MEMORY:-1g}"}
|
||||
|
||||
valkey:
|
||||
image: valkey/valkey:8.1.11-alpine@sha256:2602ace2be6569bc2bbb06f873776516ab9089821525be34f4305c67eb9db02a
|
||||
@@ -57,6 +144,7 @@ services:
|
||||
- volatile-lru
|
||||
secrets: [valkey.conf]
|
||||
volumes: [valkeydata:/data]
|
||||
cpuset: ${VALKEY_CPUSET:-}
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "REDISCLI_AUTH=\"$$(sed -n 's/^requirepass //p' /run/secrets/valkey.conf)\" valkey-cli ping | grep -q PONG"]
|
||||
interval: 2s
|
||||
@@ -65,68 +153,21 @@ services:
|
||||
stop_grace_period: 10s
|
||||
restart: unless-stopped
|
||||
networks: [backend]
|
||||
deploy:
|
||||
resources:
|
||||
limits: {cpus: "0.5", memory: 128m}
|
||||
|
||||
postgres-restore:
|
||||
image: postgres:17.11-alpine@sha256:266d3c257594e195b309ae9d1805e54c788f1d7b375f56bf6c367aac6c917e7b
|
||||
profiles: [track]
|
||||
user: "70:70"
|
||||
k6:
|
||||
image: grafana/k6:2.3.0@sha256:2dd4756ec6e14e62778916e1eb850108e4b499304c02df56760fa0bdb0fba0b8
|
||||
profiles: [bench]
|
||||
environment:
|
||||
POSTGRES_DB: track
|
||||
POSTGRES_USER: messenger
|
||||
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
|
||||
secrets: [postgres_password]
|
||||
volumes:
|
||||
- pgrestore:/var/lib/postgresql/data
|
||||
- ./backups:/backups:ro
|
||||
shm_size: 256m
|
||||
healthcheck:
|
||||
test: ["CMD", "pg_isready", "-h", "127.0.0.1", "-U", "messenger", "-d", "track"]
|
||||
interval: 2s
|
||||
timeout: 3s
|
||||
retries: 30
|
||||
start_period: 10s
|
||||
start_interval: 200ms
|
||||
stop_grace_period: 10s
|
||||
networks: [backend]
|
||||
|
||||
migrate:
|
||||
<<: *app
|
||||
command: ["python", "-m", "messenger.migrate"]
|
||||
healthcheck:
|
||||
disable: true
|
||||
restart: "no"
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
|
||||
api:
|
||||
<<: *app
|
||||
ports: ["127.0.0.1:${API_PORT:-8080}:8080"]
|
||||
healthcheck: *ready
|
||||
stop_grace_period: 10s
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
valkey:
|
||||
condition: service_started
|
||||
|
||||
api-shortttl:
|
||||
<<: *app
|
||||
profiles: [faults]
|
||||
environment:
|
||||
<<: *app-environment
|
||||
SESSION_TTL_SECONDS: "2"
|
||||
WEB_CONCURRENCY: "1"
|
||||
ports: ["127.0.0.1:${SHORTTTL_PORT:-8082}:8080"]
|
||||
healthcheck: *ready
|
||||
stop_grace_period: 10s
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
valkey:
|
||||
condition: service_started
|
||||
BASE_URL: http://lb:8080
|
||||
volumes: [./infra/k6:/scripts:ro]
|
||||
networks: [edge]
|
||||
cpuset: ${K6_CPUSET:-}
|
||||
deploy:
|
||||
resources:
|
||||
limits: {cpus: "${K6_CPUS:-2}", memory: "${K6_MEMORY:-512m}"}
|
||||
|
||||
secrets:
|
||||
postgres_password:
|
||||
@@ -143,7 +184,8 @@ secrets:
|
||||
volumes:
|
||||
pgdata:
|
||||
valkeydata:
|
||||
pgrestore:
|
||||
|
||||
networks:
|
||||
edge:
|
||||
backend:
|
||||
internal: true
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"lab": 2,
|
||||
"lab": 3,
|
||||
"kind": "requirements, not runnable deployment",
|
||||
"required_for_grade_3": [
|
||||
{
|
||||
"role": "api",
|
||||
"count_min": 1,
|
||||
"count_min": 2,
|
||||
"student_implements": true,
|
||||
"persistent_local_state": false
|
||||
},
|
||||
@@ -12,6 +12,11 @@
|
||||
"role": "postgres",
|
||||
"purpose": "users/chats/membership/messages/metadata",
|
||||
"persistent_volume": true
|
||||
},
|
||||
{
|
||||
"role": "load_balancer",
|
||||
"public_entrypoint": true,
|
||||
"backend_readiness": true
|
||||
}
|
||||
],
|
||||
"optional_components": [
|
||||
|
||||
+504
-2
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"openapi": "3.1.0",
|
||||
"info": {
|
||||
"title": "MTUSI Messenger — лабораторная 2",
|
||||
"version": "1.2.0",
|
||||
"title": "MTUSI Messenger — лабораторная 3",
|
||||
"version": "1.3.0",
|
||||
"description": "Нормативный минимум на 3. Семантика: contracts/README.md. Расширения на 4/5 не должны менять этот API. Наличие кода ошибки в схеме не требует реализовать факультативную причину его выдачи."
|
||||
},
|
||||
"servers": [
|
||||
@@ -31,6 +31,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -50,6 +57,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -78,6 +92,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -97,6 +118,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -116,6 +144,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -144,6 +179,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -163,6 +205,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -182,6 +231,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -202,6 +258,13 @@
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"Retry-After": {
|
||||
"description": "Положительное число секунд.",
|
||||
"schema": {
|
||||
@@ -227,6 +290,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -246,6 +316,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -284,6 +361,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -303,6 +387,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -323,6 +414,13 @@
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"WWW-Authenticate": {
|
||||
"description": "Basic realm=\"messenger\", charset=\"UTF-8\" для входа; Bearer realm=\"messenger\" для защищённого API lab2+.",
|
||||
"schema": {
|
||||
@@ -347,6 +445,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -366,6 +471,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -386,6 +498,13 @@
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"Retry-After": {
|
||||
"description": "Положительное число секунд.",
|
||||
"schema": {
|
||||
@@ -411,6 +530,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -430,6 +556,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -457,6 +590,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -476,6 +616,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -496,6 +643,13 @@
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"WWW-Authenticate": {
|
||||
"description": "Basic realm=\"messenger\", charset=\"UTF-8\" для входа; Bearer realm=\"messenger\" для защищённого API lab2+.",
|
||||
"schema": {
|
||||
@@ -520,6 +674,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -539,6 +700,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -559,6 +727,13 @@
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"Retry-After": {
|
||||
"description": "Положительное число секунд.",
|
||||
"schema": {
|
||||
@@ -584,6 +759,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -603,6 +785,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -638,6 +827,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -657,6 +853,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -677,6 +880,13 @@
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"WWW-Authenticate": {
|
||||
"description": "Basic realm=\"messenger\", charset=\"UTF-8\" для входа; Bearer realm=\"messenger\" для защищённого API lab2+.",
|
||||
"schema": {
|
||||
@@ -701,6 +911,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -720,6 +937,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -740,6 +964,13 @@
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"Retry-After": {
|
||||
"description": "Положительное число секунд.",
|
||||
"schema": {
|
||||
@@ -765,6 +996,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -784,6 +1022,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -831,6 +1076,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -850,6 +1102,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -870,6 +1129,13 @@
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"WWW-Authenticate": {
|
||||
"description": "Basic realm=\"messenger\", charset=\"UTF-8\" для входа; Bearer realm=\"messenger\" для защищённого API lab2+.",
|
||||
"schema": {
|
||||
@@ -894,6 +1160,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -913,6 +1186,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -933,6 +1213,13 @@
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"Retry-After": {
|
||||
"description": "Положительное число секунд.",
|
||||
"schema": {
|
||||
@@ -958,6 +1245,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -977,6 +1271,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -1015,6 +1316,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -1034,6 +1342,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -1054,6 +1369,13 @@
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"WWW-Authenticate": {
|
||||
"description": "Basic realm=\"messenger\", charset=\"UTF-8\" для входа; Bearer realm=\"messenger\" для защищённого API lab2+.",
|
||||
"schema": {
|
||||
@@ -1078,6 +1400,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -1097,6 +1426,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -1117,6 +1453,13 @@
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"Retry-After": {
|
||||
"description": "Положительное число секунд.",
|
||||
"schema": {
|
||||
@@ -1142,6 +1485,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -1161,6 +1511,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -1181,6 +1538,18 @@
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Idempotency-Key",
|
||||
"in": "header",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 128,
|
||||
"pattern": "^[A-Za-z0-9._:-]+$"
|
||||
},
|
||||
"description": "Обязателен с lab3. Область: пользователь + метод + путь + ключ; хранить результат не менее 24 ч. Повтор того же JSON возвращает исходный 201 и то же сообщение, другой JSON — 409."
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
@@ -1207,6 +1576,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -1226,6 +1602,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -1246,6 +1629,13 @@
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"WWW-Authenticate": {
|
||||
"description": "Basic realm=\"messenger\", charset=\"UTF-8\" для входа; Bearer realm=\"messenger\" для защищённого API lab2+.",
|
||||
"schema": {
|
||||
@@ -1270,6 +1660,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -1289,6 +1686,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -1309,6 +1713,13 @@
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"Retry-After": {
|
||||
"description": "Положительное число секунд.",
|
||||
"schema": {
|
||||
@@ -1334,6 +1745,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -1353,6 +1771,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -1409,6 +1834,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -1428,6 +1860,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -1448,6 +1887,13 @@
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"WWW-Authenticate": {
|
||||
"description": "Basic realm=\"messenger\", charset=\"UTF-8\" для входа; Bearer realm=\"messenger\" для защищённого API lab2+.",
|
||||
"schema": {
|
||||
@@ -1473,6 +1919,13 @@
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"Retry-After": {
|
||||
"description": "Положительное число секунд.",
|
||||
"schema": {
|
||||
@@ -1498,6 +1951,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -1517,6 +1977,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -1549,6 +2016,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1562,6 +2036,13 @@
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"WWW-Authenticate": {
|
||||
"description": "Basic realm=\"messenger\", charset=\"UTF-8\" для входа; Bearer realm=\"messenger\" для защищённого API lab2+.",
|
||||
"schema": {
|
||||
@@ -1587,6 +2068,13 @@
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"Retry-After": {
|
||||
"description": "Положительное число секунд.",
|
||||
"schema": {
|
||||
@@ -1612,6 +2100,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
@@ -1631,6 +2126,13 @@
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"X-Instance-Id": {
|
||||
"description": "Идентификатор обслужившей API-реплики; стабилен в пределах жизни процесса. В lab7 используйте непрозрачный alias, без hostname/IP.",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
|
||||
+176
-2
@@ -1,5 +1,179 @@
|
||||
date: 2026-11-05T22:28:57.204523+00:00 commit: f591fa64e525679a31c9db7f942d36c789e1a12f (report documentation worktree)
|
||||
|
||||
# Доказательства
|
||||
|
||||
Храните небольшие обезличенные результаты: команды и stdout проверок, JSON/CSV агрегатов нагрузки, EXPLAIN, dashboard JSON, текст разбора отказа. Укажите дату, commit, аппаратные лимиты и профиль нагрузки.
|
||||
Обезличенные реальные прогоны; пользователи, сообщения и пароли тестов синтетические. Токены,
|
||||
содержимое secrets и дампы не сохраняются. В первой строке текстовых логов — UTC и SHA;
|
||||
`grade3-*.txt` и `grade4-*.txt` также содержат команду, окружение, код завершения и длительность.
|
||||
В текстовом выводе удалены пробелы на концах строк Docker/psql; локальный путь заменён на `<repo>`.
|
||||
В grade4-student-tests.txt замаскирован синтетический неверный Bearer из имени параметризованного теста.
|
||||
|
||||
Не добавляйте .env, session tokens, cookies, приватные ключи, credentials, реальные сообщения, raw dumps и signed URLs. Для скриншотов скрывайте секреты. Большие логи/бинарные traces сохраняйте отдельно по правилам преподавателя; одного скриншота без методики недостаточно.
|
||||
## Актуальный итог и финализация отчёта
|
||||
|
||||
Заявлена «5», трек 1 «Цена масштабирования». Автор — Костылев Артём, БПИ2303.
|
||||
Приоритет имеют итоговые проверки после оптимизации; таблицы grade3/grade4 ниже
|
||||
сохраняют историю отдельных этапов **до кэширования SQL**, а не новые прогоны HEAD.
|
||||
|
||||
| Что проверяется | Актуальный источник | Код |
|
||||
| --- | --- | --- |
|
||||
| Уровни «3»/«4», публичные проверки, отказы зависимостей | [Команды](track1-sqlalchemy/revalidation/commands.txt), [сценарии](track1-sqlalchemy/revalidation/) | `3fb741e`, API идентичен `57744c5` |
|
||||
| Каждая реплика: времена, ошибки, потери, реальные контейнеры | [a855a190991a](track1-sqlalchemy/revalidation/failover-each/a855a190991a/result.json), [d4dfe6128c9d](track1-sqlalchemy/revalidation/failover-each/d4dfe6128c9d/result.json); `action.txt` рядом | `3fb741e` |
|
||||
| Rolling под нагрузкой, один migrate, история | [Результат](track1-sqlalchemy/revalidation/rolling/result.json), [действие](track1-sqlalchemy/revalidation/rolling/action.txt) | `5c8f605` → API `57744c5`, обвязка `3fb741e` |
|
||||
| 135 измерений, методика и подтверждённое улучшение | [Методика](track1-sqlalchemy/README.md), [аудит](track1-sqlalchemy/audit.txt), [сводка](track1-sqlalchemy/plots/capacity.md) | baseline `5c8f605`, after `57744c5` |
|
||||
| Исправление сохранения диагностических журналов | [Повторные 290 tests и smoke](track1-sqlalchemy/diagnostics/setup-log-fix-checks.txt) | `55b99a2`; API не менялся |
|
||||
| Проверки этапа report | [check/validate/lint/student-test/OpenSpec](report-checks.txt), [ссылки, метрики и состав изменений](report-audit.txt) | `f591fa64e525679a31c9db7f942d36c789e1a12f` + только документы |
|
||||
|
||||
На этапе report нагрузка заново не снималась: код приложения, миграции, образы и
|
||||
конфигурация стенда не изменялись. Ссылки и численные выводы сверены с сохранённым
|
||||
сырьём; собственные тесты выполнены заново. Журналы содержат фактические коды выхода,
|
||||
включая неуспехи. Публикаций и отправок Telegram на этом этапе нет.
|
||||
|
||||
## Уровень «3» после SQLAlchemy, до оптимизации — 2026-11-05
|
||||
|
||||
Код всех итоговых прогонов: **`0a1f48bd73e5780c732356880c23fdb476bcff98`**.
|
||||
Compose-проект `mtusi2026lab3-grade3-final-20261105`, `LB_HTTP_PORT=18083`, `LB_STATS_PORT=23083`,
|
||||
`API_REPLICAS=2`; BASE_URL автоматически определяется по порту LB. Обе реплики:
|
||||
api-1 `8ffe0c70f4ea`, api-2 `1b4a73f61b07`. После прогонов контейнеры остановлены,
|
||||
volumes сохранены. До конца grade4 код приложения после этого SHA не менялся;
|
||||
на этапе grade4 усилена обвязка `scripts/probe.py`, на track5 добавлен кэш компиляции SQL.
|
||||
|
||||
| Файл | Команда | Результат |
|
||||
| --- | --- | --- |
|
||||
| `grade3-start.txt` | `make up`, `docker compose ps -a`, чтение `alembic_version` | Новый проект без прежних volumes, сборка успешна, 2 healthy API, one-shot Alembic вышел с 0, head `0002_idempotency_keys` |
|
||||
| `checks.txt` | `make check`, `make validate`, `make lint`, `uv lock --check`, `openspec validate --all --strict`, diff против upstream | Все успешно; нормативные файлы не менялись |
|
||||
| `smoke.txt` | `make test` | Публичный smoke PASS |
|
||||
| `stack.txt`, `environment.txt`, `grade3-stack.txt` | `make stack-evidence` | Порты только у LB, реальные контейнеры и hostname, 2 UP, общие PostgreSQL/Valkey, uid, версии библиотек |
|
||||
| `grade3-lb-check.txt` (актуальный `lb-check.json` — повтор grade4) | `make lb-check` | Один токен 20 + 20 GET; 20 × 8 POST, 160 ответов 201, по одной копии, 20 конфликтов другого body; pass |
|
||||
| `retry.json`, `grade3-retry.txt` | `make retry-check` | Потерянный ответ при живой/убитой реплике, повтор через соседа 201, одна копия; pass |
|
||||
| `failover-current-1.txt`, `failover-current-2.txt` | `make test-failover ACTION_SCRIPT=scripts/stop-one.sh` и `docker compose ps -a` | По очереди api-1 и api-2 Exited (0); 129/128 записей, 0/0 ошибок, восстановление 2.762/2.817 с |
|
||||
| `grade3-restore-1.txt`, `grade3-restore-2.txt` | `make restore` | Остановленные реплики возвращены в ротацию |
|
||||
| `persistence.txt`, `grade3-persistence.txt` | `make persistence-evidence` → публичный `make test-persistence ACTION_SCRIPT=scripts/restart.sh` | PASS, IDs прежние, StartedAt всех сервисов обновились, токен и история сохранились |
|
||||
| `faults.txt` | `make test-faults` | 12 passed; после PostgreSQL 40 регистраций через 2 реплики без рестарта API |
|
||||
| `student-tests.txt` | `make student-test PYTEST_ARGS=-vv` | 271 passed, 12 deselected; стендовые 12 запущены отдельно |
|
||||
| `schema.txt`, `migrations.txt`, `grade3-storage.txt` | `make storage-evidence` | Схема Alembic, повтор без изменения 70 users / 24 sessions / 6 chats / 12 members / 284 messages / 284 keys / 1 version |
|
||||
| `kdf.txt`, `secrets.txt` | `make storage-evidence` | Argon2id, хеши токенов 32 байта; секреты/.env вне Git |
|
||||
| `grade3-final-review.txt` | Финальные проверки после обновления отчёта и архива | check/validate/lint/OpenSpec, diff нормативных и исполняемых файлов, отсутствие контейнеров этапа |
|
||||
| `grade3-stop.txt` | `make down`, `docker compose ps -a`, volumes проектов | Контейнеров нет, volumes обоих прогонов сохранены |
|
||||
|
||||
Исходный JSON уровня «3» сохранён в `grade3-lb-check.txt` и `grade3-retry.txt` вместе с датой и полным SHA.
|
||||
`lb-check.json` обновлён повторным прогоном grade4; `retry.json` остаётся результатом grade3.
|
||||
|
||||
## Неуспешные промежуточные прогоны
|
||||
|
||||
Они сохранены отдельно, не выдаются за итоговые PASS.
|
||||
|
||||
| Файл | Код / состояние | Наблюдение и исправление |
|
||||
| --- | --- | --- |
|
||||
| `grade3-faults.txt` | `7fc911c332aefe33285ea9e7811c37abd9bb20a6` | 11 passed / 1 failed: POST users → 503 после PostgreSQL; включён `pool_pre_ping` |
|
||||
| `grade3-pool-regression-before.txt` | `18de595` + новый тест (приложение прежнее) | Первый POST после `pg_terminate_backend` → 503 вместо 201 |
|
||||
| `grade3-pool-regression-after.txt` | `18de595` + исправления до коммита `0a1f48b` | 2 passed: закрытое соединение и SIGTERM; затем полный набор проверен на `0a1f48b` |
|
||||
| `grade3-student-tests-interrupted.txt` | `7fc911c` | 46 passed, затем прерывание: gunicorn теста использовал порт LB 18083; теперь свободный 23000–23999 и дедлайн |
|
||||
| `grade3-student-tests-startup.txt.gz` | `18de595` + исправления до `0a1f48b` | Полный обезличенный вывод: 70 passed / 201 errors, SQLSTATE 57P03 при старте fixture БД; временный отказ теперь повторяется до дедлайна |
|
||||
| `grade3-whitespace-before.txt` | `0a1f48b` + evidence/OpenSpec | `git diff --check` нашёл пробелы в конце строк Docker/psql; после нормализации итоговая проверка прошла |
|
||||
| `grade3-initial-stop.txt` | `18de595` + WIP | Остановка исходного проекта без удаления его volumes перед итоговым прогоном |
|
||||
|
||||
`clean-clone.txt`, `hooks.txt`, `failover-fe75c6c37e5a.txt`, `failover-ff81f93e8b0d.txt`
|
||||
и `rolling-from-8d28d45/` — история до SQLAlchemy. Прежние версии перезаписанных доказательств
|
||||
доступны через `git show 72a1e57:evidence/<имя>`. Новые измерения трека приведены ниже;
|
||||
исходный SQLAlchemy change завершён и архивирован 2026-11-06.
|
||||
|
||||
## Уровень «4» после SQLAlchemy, до оптимизации — 2026-11-05
|
||||
|
||||
Код прогонов: **`252e3e3ffeea5004cfd9dc342e686af1417a77a2`**.
|
||||
Проект `mtusi2026lab3-grade4-20261105`, порты `18083/23083`, две реплики по 1 CPU/512 MiB,
|
||||
два воркера и пул 8 на воркер; HAProxy maxconn 64. Локальный HTTP явно обходит системный прокси
|
||||
через `NO_PROXY=localhost,127.0.0.1,::1`. Команды и исходные результаты сохранены ниже.
|
||||
JSON содержит поля date/commit; первая строка CSV — служебный комментарий с UTC/SHA,
|
||||
который следует пропустить при чтении таблицы. Эти метаданные добавлены после прогонов;
|
||||
результаты не изменялись. Из текстового вывода убраны пробелы на концах строк.
|
||||
|
||||
| Файл | Команда | Результат |
|
||||
| --- | --- | --- |
|
||||
| `grade4-start.txt` | `make up`, версии пакетов, `docker compose ps -a`, Alembic head | Новый проект с пустыми volumes; SQLAlchemy 2.0.45 / Alembic 1.16.5; migrate Exited (0), head `0002_idempotency_keys` |
|
||||
| `grade4-baseline.txt`, `lb-check.json`, `limits.txt` | `make test`, `make limits`, `make lb-check` | Smoke PASS; порты только LB; 160 ответов 201 через обе реплики, 20/20 одинаковых тел/единственных копий/конфликтов другого body |
|
||||
| `grade4-drain.txt` | `make student-test PYTEST_ARGS='-v -s student-tests/api/test_drain.py student-tests/unit/test_timeouts.py'` | 3 passed; ready/live 503/200; порт закрыт через 1.05 с, выход через 2.44 с; принятый запрос → 201, зависший → 503 с заголовками контракта |
|
||||
| `grade4-detection.txt`, `detection/run{1,2,3}/*.json` | `make detection` | Все 12 PASS, диапазоны и пределы — в REPORT |
|
||||
| `grade4-failover-each.txt`, `failover-each/` | `make failover-each RATE=100` | Каждая реплика Exited (0) и возвращена; по 6001 запросу, 0 ошибок/dropped; 645/642 сообщения зонда полностью сохранены |
|
||||
| `grade4-runtime-limits.txt` | `docker ps -a` и `docker inspect` во время k6 | Фактические CPU/RAM, uid, image ID, порты и read_only всех сервисов, включая k6 и завершённый migrate |
|
||||
| `grade4-limits-negative.txt`, `limits-violations.txt` | `scripts/limits.py` с временным override из лога, `API_REPLICAS=1` только для config | Ожидаемый exit 1, все 5 нарушений найдены; override никогда не применялся к контейнерам |
|
||||
| `grade4-rolling.txt`, `rolling/` | `make rolling-update RATE=100` | Новые реплики готовы до остановки прежних; один migrate, минимум 2 UP, все checks PASS |
|
||||
| `grade4-rolling-from-7fc911c.txt`, `rolling-from-7fc911c/` | `make rolling-update FROM_REV=7fc911c RATE=100` | Переход между SQLAlchemy-версиями; старый/новый image ID каждой реплики в action.txt |
|
||||
| `grade4-migration-repeat.txt` | Повторный `make migrate`, Alembic head и счётчики всех таблиц до/после | Результат записан отдельно; миграция выполняется при остановленной нагрузке |
|
||||
| `grade4-persistence-scoped.txt` | Публичный persistence и docker inspect до/после | IDs контейнеров прежние, StartedAt всех lb/api/postgres/valkey/migrate обновлены |
|
||||
| `grade4-public.txt` | Публичные smoke/persistence/failover, restore и реальные контейнеры | Итоговые проверки после rolling update |
|
||||
| `grade4-evidence-audit.txt` | Сверка result.json с сырыми CSV, проверка количества миграторов, поиск похожих на credentials строк | Все 12 detection и 4 нагрузки PASS; численные поля совпадают; один migrate на rolling |
|
||||
| `grade4-checks.txt`, `grade4-student-tests.txt` | check/validate/lint/lock/OpenSpec, полный student-test | Итоговые проверки на коде stage4 |
|
||||
| `grade4-stop.txt` | `make down`, список контейнеров и volumes проекта | Контейнеры остановлены, volumes сохранены |
|
||||
|
||||
Промежуточные неуспехи не заменяют итоговые результаты:
|
||||
|
||||
| Файл | Наблюдение |
|
||||
| --- | --- |
|
||||
| `grade4-evidence-audit-scan-failed.txt`, `grade4-evidence-audit-fixture-token.txt` | Численные сверки PASS. Первый поиск нашёл собственный regex; после уточнения — синтетический неверный Bearer в имени теста. Имя параметра замаскировано, итоговый поиск прошёл |
|
||||
| `grade4-development.txt` | Первоначальные E501/ARG005, исправления форматирования, 14 новых регрессионных тестов; уточнение library ID Context7 |
|
||||
| `grade4-baseline-proxy-failed.txt` | Smoke: RemoteDisconnected из-за системного прокси; прямой curl отвечал 200; повтор с NO_PROXY прошёл |
|
||||
| `grade4-detection-proxy-interrupted.txt`, `grade4-detection-proxy-interrupted/` | Прогон без NO_PROXY: статистика LB недоступна, SIGTERM честно fail; остановлен во время kill, реплики восстановлены; выполнен полный новый прогон |
|
||||
| `grade4-public-events-unavailable.txt` | Дополнительная ретроспективная проверка через docker events не подтвердила рестарт: в оставшемся буфере не было событий start/die нужного окна. Persistence повторён с непосредственным снимком StartedAt до/после |
|
||||
| `grade4-limits-negative-config-failed.txt`, `grade4-limits-compose-rejection.txt` | Compose отклонил сочетание container_name и replicas=2 до проверки политики; отрицательная fixture повторена с replicas=1 (конфигурация не применялась) |
|
||||
|
||||
## Трек «5» на SQLAlchemy — 2026-11-05–06 (МСК)
|
||||
|
||||
Текущая производительность измерена в `track1-sqlalchemy/`; исторический `track1/`
|
||||
не входит в новые медианы и графики. API baseline `5c8f605`, after `57744c5`;
|
||||
код API не менялся в последующих коммитах обвязки. Графики — `3fb741e`.
|
||||
Гипотеза: повторная компиляция CTE расходует CPU API; статическое кэширование сохраняет SQL.
|
||||
|
||||
| Файл | Команда | Наблюдение |
|
||||
| --- | --- | --- |
|
||||
| `track1-sqlalchemy/README.md`, `host.txt`, `runtime-resources.json` | `make track1-host`; снимок лимитов | Методика, версии, собственный project, CPU pinning, ограничения и происхождение образов |
|
||||
| `track1-sqlalchemy/series-a/` | `make track1-a` | 54 точки: 1×4/2×2/4×1 при 4 CPU/2 GiB; пики 2687/2532/2422 RPS |
|
||||
| `track1-sqlalchemy/series-b/` | `make track1-b` | 36 точек: 1×1/2×1/8×1; вместе с 4×1 из A — сублинейный рост до 3420 RPS |
|
||||
| `track1-sqlalchemy/compare/` | `make track1-compare` | 18 чередующихся точек: при 2400 p95 14.28→4.63 мс; при 5400 throughput +8.7%; min–max не пересекаются |
|
||||
| `track1-sqlalchemy/control-pool/` | первая часть `make track1-control` | 15 точек: пул 16 добавляет Lock и снижает RPS на 13.7%; увеличение maxconn не помогает |
|
||||
| `track1-sqlalchemy/control-cpus/` | CPU-рецепт `make track1-control` после исправления, `corrected-cpus-run.txt` | 12 чередующихся точек на одинаковых 4 CPU/2 GiB; 8×0.5 медленнее 4×1 |
|
||||
| `track1-sqlalchemy/plots/`, `plots-run.txt` | `make plots` | 12 просмотренных PNG, сводка capacity.csv/md; диапазоны повторов, без старых RPS |
|
||||
| `track1-sqlalchemy/audit.txt` | полный скрипт и команда внутри | 135 основных точек, 8 271 783 ответа; метрики сверены с k6, image IDs и реальными CPU/RAM/cpuset; внешних помех 0 |
|
||||
| `track1-sqlalchemy/explain-history.txt` | SQLAlchemy EXPLAIN ANALYZE, скрипт внутри | Первая страница и keyset используют messages_history_idx; ограничение custom plan отмечено |
|
||||
| `track1-sqlalchemy/revalidation/` | команды и exit codes в `commands.txt` | 290 tests, 12 faults, публичные сценарии, 12/12 detection, оба failover и rolling PASS на `3fb741e`; история сохранена |
|
||||
| `track1-sqlalchemy/openspec-close.txt` | синхронизация specs, архивация, strict validation | Оба change завершены: 11 и 17 задач; перед архивом 16/16, после 14/14; активных changes нет |
|
||||
| `track1-sqlalchemy/final-checks.txt` | итоговые команды перед коммитом | Проверки окончательных документов и состава evidence |
|
||||
|
||||
Стек остановлен только в своём project, volumes сохранены (`track1-sqlalchemy/stop.txt`).
|
||||
|
||||
Промежуточные неуспехи и исключённые результаты сохранены:
|
||||
|
||||
- `diagnostics/staged-whitespace-failed.txt`: проверка staged-файлов нашла CRLF
|
||||
в CSV и пустые строки в конце журналов; нормализованы, равенство CSV-полей проверено.
|
||||
- `series-b/compose-up-failed.txt`, `compare/compose-up-failed.txt`: три ошибки LB unhealthy
|
||||
при подготовке, до k6; retry восстановил готовность. В `55b99a2` исправлено сохранение
|
||||
будущих журналов, повторные 290 tests и smoke прошли (`diagnostics/setup-log-fix-checks.txt`).
|
||||
- `diagnostics/final-audit-log-headers-failed.txt`: аудит обнаружил игнорируемые .log;
|
||||
журналы сохранены с provenance, финальный `final-audit.txt` прошёл.
|
||||
- `diagnostics/ordered-control-cpus/`: 12 завершённых замеров с группировкой конфигураций;
|
||||
исключены из основных графиков и полностью повторены с чередованием.
|
||||
- `diagnostics/order-regression.txt`: тест воспроизвёл неверный порядок (1 failed, 1 passed);
|
||||
`order-fix-checks.txt`: после исправления check/lint, 290 passed и smoke.
|
||||
- `diagnostics/audit-image-tag-failed.txt`: неверное сравнение старого OCI index с текущим
|
||||
тегом; исправленный аудит использует build ID соответствующего журнала сборки.
|
||||
- `diagnostics/explain-driver-uuid-failed.txt`: диагностический скрипт не преобразовал UUID
|
||||
драйвера в стандартный UUID для literal; повтор соответствует существующему адаптеру и проходит.
|
||||
- `diagnostics/pilot/`: пилот по одному повтору, в выводы о разбросе не входит.
|
||||
- При пуле 16 в перегрузке были 0.009–0.016% HTTP-ошибок; они остаются в summary и отчёте.
|
||||
Предупреждения Docker CLI, первоначальные lint/OpenSpec ошибки и их исправления описаны
|
||||
в `track1-sqlalchemy/README.md`; данные не выданы за проверки без ошибок.
|
||||
|
||||
## Трек 1 «Цена масштабирования» — исторические результаты до SQLAlchemy
|
||||
|
||||
`track1/` — серии A и B, сравнение до/после, контрольные прогоны, графики и проверки после улучшения; состав и поля CSV —
|
||||
`track1/README.md`.
|
||||
|
||||
| Файл | Что доказывает | Команда | Коммит (код) |
|
||||
| --- | --- | --- | --- |
|
||||
| `track1/host.txt` | снимок хоста, версии и соседние контейнеры перед сериями | `make track1-host` | `67f6d68` |
|
||||
| `track1/series-a/` | 1×4, 2×2, 4×1 при 4 CPU / 2 GiB API | `make track1-a` | код `107fbbb` (до улучшения) |
|
||||
| `track1/series-b/` | 1×1, 2×1, 8×1 по 1 CPU (4×1 — из серии A) | `make track1-b` | код `107fbbb` |
|
||||
| `track1/compare/` | улучшение: «до» (`edc091d`) и «после» на 8×1 | `make track1-compare` | `edc091d` против `22f0e62` |
|
||||
| `track1/control-pool/`, `track1/control-cpus/` | контроль: пул и `maxconn` на 8×1; 8×0,5 против 4×1 на одних CPU | `make track1-control` | код `b1c80ee` (HEAD `f5fea5c`–`a67bc65`) |
|
||||
| `track1/plots/` | графики и сводка потолков `capacity.md` | `make plots` | из всех `summary.csv` |
|
||||
| `track1/after-checks.txt` | уровни «3» и «4» на коде с улучшением | команды внутри файла | `dde113b` |
|
||||
| `track1/host-others.csv`, `track1/aborted/` | нагрузка соседних стендов во время замеров, прерванная первая попытка серии A и отброшенная первая попытка контроля размещения | см. `track1/README.md` | — |
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
date: 2026-10-28T17:16:16Z commit: 6468ee2
|
||||
$ valkey-cli config get appendonly appendfsync maxmemory maxmemory-policy
|
||||
appendonly
|
||||
yes
|
||||
appendfsync
|
||||
always
|
||||
maxmemory
|
||||
67108864
|
||||
maxmemory-policy
|
||||
volatile-lru
|
||||
$ valkey-cli info persistence | grep aof_enabled,aof_last_write_status
|
||||
aof_enabled:1
|
||||
aof_last_write_status:ok
|
||||
$ valkey-cli dbsize; info stats | grep keyspace
|
||||
4
|
||||
keyspace_hits:2
|
||||
keyspace_misses:2
|
||||
$ valkey-cli --scan --pattern 'session:*' и вид значения (хеш сокращён, значения не печатаются)
|
||||
session:253ef5d9… сессия
|
||||
session:59c9c3c4… сессия
|
||||
session:b86641dc… сессия
|
||||
session:95ea586e… отметка отзыва "-"
|
||||
tombstones: 1, cached sessions: 3
|
||||
$ срок ключа кэша против срока сессии для session:253ef5d9…
|
||||
valkey pexpiretime, ms: 1793208059163
|
||||
postgres expires_at, ms: 1793211358951
|
||||
ключ не переживает сессию: да
|
||||
+28
-11
@@ -1,17 +1,34 @@
|
||||
date: 2026-10-28T17:14:50Z commit: 6468ee2
|
||||
$ make check
|
||||
date: 2026-11-05T18:56:09.780488+00:00 commit: 0a1f48bd73e5780c732356880c23fdb476bcff98
|
||||
environment: COMPOSE_PROJECT_NAME=mtusi2026lab3-grade3-final-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2 NO_PROXY=localhost,127.0.0.1,::1
|
||||
$ sh -c 'set -e; make check; make validate; make lint; uv lock --check; openspec validate --all --strict; git diff --exit-code upstream/main -- contracts tests README.md COURSE.md lab.json MAINTAINERS.md'
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
$ make validate
|
||||
.venv/bin/python scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
$ make lint
|
||||
.venv/bin/ruff check src student-tests scripts/track.py
|
||||
.venv/bin/ruff check src student-tests alembic scripts/probe.py scripts/limits.py scripts/scaling.py tools
|
||||
All checks passed!
|
||||
.venv/bin/ruff format --check src student-tests scripts/track.py
|
||||
96 files already formatted
|
||||
.venv/bin/ty check src student-tests
|
||||
.venv/bin/ruff format --check src student-tests alembic scripts/probe.py scripts/limits.py scripts/scaling.py tools
|
||||
107 files already formatted
|
||||
.venv/bin/ty check src student-tests alembic
|
||||
All checks passed!
|
||||
$ make test
|
||||
python3 tests/smoke.py --base-url "http://localhost:18082"
|
||||
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
|
||||
Resolved 64 packages in 14ms
|
||||
- Validating...
|
||||
✓ change/2026-11-05-adopt-sqlalchemy-alembic
|
||||
✓ change/fix-lab3-postgres-pool-recovery
|
||||
✓ spec/lab1-event-publication
|
||||
✓ spec/lab1-messenger-chats
|
||||
✓ spec/lab1-messenger-history
|
||||
✓ spec/lab1-messenger-identity
|
||||
✓ spec/lab1-service-operability
|
||||
✓ spec/lab2-auth-sessions
|
||||
✓ spec/lab2-dependency-failures
|
||||
✓ spec/lab2-history-index
|
||||
✓ spec/lab2-persistent-storage
|
||||
✓ spec/lab2-session-cache
|
||||
✓ spec/lab3-failover-operations
|
||||
✓ spec/lab3-idempotent-messages
|
||||
✓ spec/lab3-load-balancing
|
||||
✓ spec/lab3-scaling-cost
|
||||
Totals: 16 passed, 0 failed (16 items)
|
||||
|
||||
exit_code: 0 elapsed_seconds: 1.458
|
||||
|
||||
@@ -0,0 +1,360 @@
|
||||
date: 2026-10-30T02:55:09Z commit: e049c26 dir: mtusi2026lab3-clean (свой compose-проект и volumes)
|
||||
# шаги — команды блока «Запуск из чистого clone» REPORT.md дословно; строки с пометкой «наблюдение» — проверки между шагами
|
||||
$ git clone <repo> mtusi2026lab3-clean && cd mtusi2026lab3-clean && git checkout solution/bpi2303-kostylev
|
||||
HEAD e049c26 Reproduce a lost answer on the stand and enrich the run records
|
||||
$ docker volume ls -q --filter label=com.docker.compose.project=mtusi2026lab3-clean | wc -l | tr -d ' ' # наблюдение, не шаг инструкции
|
||||
0
|
||||
$ make secrets
|
||||
sh scripts/secrets.sh
|
||||
создан secrets/postgres_password
|
||||
создан secrets/database_url
|
||||
создан secrets/cursor_secret
|
||||
создан secrets/valkey_password
|
||||
создан secrets/valkey.conf
|
||||
создан secrets/cache_url
|
||||
создан .env из .env.example
|
||||
exit=0
|
||||
$ sed LB_HTTP_PORT=18083 LB_STATS_PORT=23083 .env # отступление: 8080 на этой машине занят стендами других лаб
|
||||
$ git status --short --ignored secrets .env # наблюдение, не шаг инструкции
|
||||
!! .env
|
||||
!! secrets/
|
||||
$ docker compose --env-file .env config --quiet
|
||||
exit=0
|
||||
$ make up
|
||||
sh scripts/secrets.sh
|
||||
docker compose up -d --build --wait
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 606B done
|
||||
#1 DONE 0.0s
|
||||
|
||||
#2 [internal] load build definition from Dockerfile
|
||||
#2 transferring dockerfile: 1.57kB done
|
||||
#2 DONE 0.0s
|
||||
|
||||
#3 [internal] load metadata for docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d
|
||||
#3 DONE 0.0s
|
||||
|
||||
#4 [internal] load metadata for ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142
|
||||
#4 DONE 0.0s
|
||||
|
||||
#5 [internal] load .dockerignore
|
||||
#5 transferring context: 437B done
|
||||
#5 DONE 0.0s
|
||||
|
||||
#6 [builder 1/7] FROM docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d
|
||||
#6 resolve docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d done
|
||||
#6 DONE 0.0s
|
||||
|
||||
#7 FROM ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142
|
||||
#7 resolve ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 done
|
||||
#7 DONE 0.0s
|
||||
|
||||
#8 [internal] load build context
|
||||
#8 transferring context: 282.44kB 0.0s done
|
||||
#8 DONE 0.0s
|
||||
|
||||
#9 [builder 3/7] WORKDIR /build
|
||||
#9 CACHED
|
||||
|
||||
#10 [builder 2/7] COPY --from=ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 /uv /usr/local/bin/uv
|
||||
#10 CACHED
|
||||
|
||||
#11 [builder 4/7] COPY pyproject.toml uv.lock README.md ./
|
||||
#11 CACHED
|
||||
|
||||
#12 [builder 5/7] RUN uv sync --locked --no-dev --no-install-project --no-editable
|
||||
#12 CACHED
|
||||
|
||||
#13 [builder 6/7] COPY src ./src
|
||||
#13 DONE 0.0s
|
||||
|
||||
#14 [builder 7/7] RUN uv sync --locked --no-dev --no-editable
|
||||
#14 0.177 Resolved 59 packages in 0.70ms
|
||||
#14 0.179 Building mtusi-messenger @ file:///build
|
||||
#14 1.370 Built mtusi-messenger @ file:///build
|
||||
#14 1.373 Prepared 1 package in 1.19s
|
||||
#14 1.377 Installed 1 package in 3ms
|
||||
#14 1.462 Bytecode compiled 889 files in 85ms
|
||||
#14 1.462 + mtusi-messenger==1.3.0 (from file:///build)
|
||||
#14 DONE 1.5s
|
||||
|
||||
#15 [runtime 2/4] RUN groupadd --system --gid 10001 messenger && useradd --system --uid 10001 --gid messenger --no-create-home --shell /usr/sbin/nologin messenger
|
||||
#15 CACHED
|
||||
|
||||
#16 [runtime 3/4] COPY --from=builder --chown=root:root /opt/venv /opt/venv
|
||||
#16 DONE 0.1s
|
||||
|
||||
#17 [runtime 4/4] WORKDIR /app
|
||||
#17 DONE 0.0s
|
||||
|
||||
#18 exporting to image
|
||||
#18 exporting layers
|
||||
#18 exporting layers 1.4s done
|
||||
#18 exporting manifest sha256:41b1d8e9a345c4df365f8ff02ecbc631fbe4ddba70f99aa9e5eb551238e974d6
|
||||
#18 exporting manifest sha256:41b1d8e9a345c4df365f8ff02ecbc631fbe4ddba70f99aa9e5eb551238e974d6 done
|
||||
#18 exporting config sha256:5d3385c825a95590c9cd0253aa72316de78fd11dc85ab9b61af766943ef9847d done
|
||||
#18 exporting attestation manifest sha256:7729b5721c86110d489c782e5df22a34b492328eb4b92fa30f2d9dea23c810d3 done
|
||||
#18 exporting manifest list sha256:0b27d26576cb62d154e45c8e6af3d80e9663cd275eb234a96a6a1ebc0c494c3a done
|
||||
#18 naming to docker.io/library/mtusi-messenger:mtusi2026lab3-clean done
|
||||
#18 unpacking to docker.io/library/mtusi-messenger:mtusi2026lab3-clean
|
||||
#18 unpacking to docker.io/library/mtusi-messenger:mtusi2026lab3-clean 0.2s done
|
||||
#18 DONE 1.7s
|
||||
|
||||
#19 resolving provenance for metadata file
|
||||
#19 DONE 0.0s
|
||||
api Built
|
||||
Network mtusi2026lab3-clean_edge Creating
|
||||
Network mtusi2026lab3-clean_edge Created
|
||||
Network mtusi2026lab3-clean_backend Creating
|
||||
Network mtusi2026lab3-clean_backend Created
|
||||
Volume "mtusi2026lab3-clean_pgdata" Creating
|
||||
Volume "mtusi2026lab3-clean_pgdata" Created
|
||||
Volume "mtusi2026lab3-clean_valkeydata" Creating
|
||||
Volume "mtusi2026lab3-clean_valkeydata" Created
|
||||
Container mtusi2026lab3-clean-lb-1 Creating
|
||||
Container mtusi2026lab3-clean-valkey-1 Creating
|
||||
Container mtusi2026lab3-clean-postgres-1 Creating
|
||||
Container mtusi2026lab3-clean-valkey-1 Created
|
||||
Container mtusi2026lab3-clean-lb-1 Created
|
||||
Container mtusi2026lab3-clean-postgres-1 Created
|
||||
Container mtusi2026lab3-clean-migrate-1 Creating
|
||||
Container mtusi2026lab3-clean-migrate-1 Created
|
||||
Container mtusi2026lab3-clean-api-1 Creating
|
||||
Container mtusi2026lab3-clean-api-2 Creating
|
||||
Container mtusi2026lab3-clean-api-2 Created
|
||||
Container mtusi2026lab3-clean-api-1 Created
|
||||
Container mtusi2026lab3-clean-lb-1 Starting
|
||||
Container mtusi2026lab3-clean-postgres-1 Starting
|
||||
Container mtusi2026lab3-clean-valkey-1 Starting
|
||||
Container mtusi2026lab3-clean-valkey-1 Started
|
||||
Container mtusi2026lab3-clean-postgres-1 Started
|
||||
Container mtusi2026lab3-clean-postgres-1 Waiting
|
||||
Container mtusi2026lab3-clean-lb-1 Started
|
||||
Container mtusi2026lab3-clean-postgres-1 Healthy
|
||||
Container mtusi2026lab3-clean-migrate-1 Starting
|
||||
Container mtusi2026lab3-clean-migrate-1 Started
|
||||
Container mtusi2026lab3-clean-migrate-1 Waiting
|
||||
Container mtusi2026lab3-clean-migrate-1 Exited
|
||||
Container mtusi2026lab3-clean-api-1 Starting
|
||||
Container mtusi2026lab3-clean-api-1 Started
|
||||
Container mtusi2026lab3-clean-api-2 Starting
|
||||
Container mtusi2026lab3-clean-api-2 Started
|
||||
Container mtusi2026lab3-clean-lb-1 Waiting
|
||||
Container mtusi2026lab3-clean-api-1 Waiting
|
||||
Container mtusi2026lab3-clean-api-2 Waiting
|
||||
Container mtusi2026lab3-clean-migrate-1 Waiting
|
||||
Container mtusi2026lab3-clean-postgres-1 Waiting
|
||||
Container mtusi2026lab3-clean-valkey-1 Waiting
|
||||
Container mtusi2026lab3-clean-postgres-1 Healthy
|
||||
Container mtusi2026lab3-clean-migrate-1 Exited
|
||||
Container mtusi2026lab3-clean-valkey-1 Healthy
|
||||
Container mtusi2026lab3-clean-api-1 Healthy
|
||||
Container mtusi2026lab3-clean-api-2 Healthy
|
||||
Container mtusi2026lab3-clean-lb-1 Healthy
|
||||
scripts/lb-wait.sh
|
||||
exit=0
|
||||
make up (build, migrate, wait healthy, all replicas UP in LB): 10 s
|
||||
$ docker compose logs --no-log-prefix migrate # наблюдение, не шаг инструкции
|
||||
{"version":"0001_init","event":"migration.applied","level":"info","ts":"2026-10-30T02:55:17.402396Z"}
|
||||
{"version":"0002_idempotency_keys","event":"migration.applied","level":"info","ts":"2026-10-30T02:55:17.402481Z"}
|
||||
{"reason":"applied","event":"migration.completed","level":"info","ts":"2026-10-30T02:55:17.402535Z"}
|
||||
$ docker compose ps -a --format '{{.Service}} {{.State}} {{.Status}} {{.Ports}}' # наблюдение, не шаг инструкции
|
||||
api running Up 3 seconds (healthy)
|
||||
api running Up 3 seconds (healthy)
|
||||
lb running Up 6 seconds (healthy) 127.0.0.1:18083->8080/tcp, 127.0.0.1:23083->8404/tcp
|
||||
migrate exited Exited (0) 4 seconds ago
|
||||
postgres running Up 6 seconds (healthy)
|
||||
valkey running Up 6 seconds (healthy)
|
||||
$ curl -s "http://$(docker compose port lb 8404)/stats;csv" | awk -F, '$1 == "api" && $2 != "BACKEND" {print $2, $18}' # наблюдение, не шаг инструкции
|
||||
api1 UP
|
||||
api2 UP
|
||||
api3 MAINT (resolution)
|
||||
api4 MAINT (resolution)
|
||||
api5 MAINT (resolution)
|
||||
api6 MAINT (resolution)
|
||||
api7 MAINT (resolution)
|
||||
api8 MAINT (resolution)
|
||||
$ make test
|
||||
python3 tests/smoke.py --base-url "http://127.0.0.1:18083"
|
||||
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
|
||||
exit=0
|
||||
$ make lb-check
|
||||
python3 scripts/probe.py check --rounds 20 --out evidence/lb-check.json
|
||||
{
|
||||
"instances_one_token": {
|
||||
"8c9722d76b31": 20,
|
||||
"58d535b73f25": 20
|
||||
},
|
||||
"same_key": {
|
||||
"rounds": 20,
|
||||
"parallel": 8,
|
||||
"statuses": {
|
||||
"201": 160
|
||||
},
|
||||
"instances": {
|
||||
"8c9722d76b31": 80,
|
||||
"58d535b73f25": 80
|
||||
},
|
||||
"identical_bodies_rounds": 20,
|
||||
"single_copy_rounds": 20,
|
||||
"conflict_rounds": 20
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
exit=0
|
||||
$ make retry-check
|
||||
python3 scripts/probe.py retry --out evidence/retry.json
|
||||
{
|
||||
"variants": [
|
||||
{
|
||||
"variant": "timeout",
|
||||
"lost_attempt": {
|
||||
"status": 0,
|
||||
"client_timeout_s": 0.5,
|
||||
"chat_lock_held_s": 1.5,
|
||||
"replica": "8c9722d76b31",
|
||||
"replica_killed": false,
|
||||
"replica_answered": 201
|
||||
},
|
||||
"retry": {
|
||||
"after_s": 1.546,
|
||||
"status": 201,
|
||||
"attempts": 1,
|
||||
"replica": "58d535b73f25"
|
||||
},
|
||||
"copies_in_history": 1,
|
||||
"same_message": true,
|
||||
"written_by": "lost attempt",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"variant": "kill",
|
||||
"lost_attempt": {
|
||||
"status": 0,
|
||||
"client_timeout_s": 0.5,
|
||||
"chat_lock_held_s": 1.5,
|
||||
"replica": "58d535b73f25",
|
||||
"replica_killed": true,
|
||||
"replica_answered": null
|
||||
},
|
||||
"retry": {
|
||||
"after_s": 1.533,
|
||||
"status": 201,
|
||||
"attempts": 1,
|
||||
"replica": "8c9722d76b31"
|
||||
},
|
||||
"copies_in_history": 1,
|
||||
"same_message": true,
|
||||
"written_by": "lost attempt",
|
||||
"pass": true
|
||||
}
|
||||
],
|
||||
"pass": true
|
||||
}
|
||||
exit=0
|
||||
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:18083"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 135, "failed_attempts": 0, "first_recovery_seconds": 2.911}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
exit=0
|
||||
$ docker compose ps -a --format '{{.Service}} {{.Name}} {{.State}} {{.Status}}' api # наблюдение, не шаг инструкции
|
||||
api mtusi2026lab3-clean-api-1 running Up 27 seconds (healthy)
|
||||
api mtusi2026lab3-clean-api-2 exited Exited (0) 12 seconds ago
|
||||
$ make restore
|
||||
scripts/restore.sh
|
||||
Container mtusi2026lab3-clean-api-1 Running
|
||||
Container mtusi2026lab3-clean-api-2 Starting
|
||||
Container mtusi2026lab3-clean-api-2 Started
|
||||
Container mtusi2026lab3-clean-api-1 Waiting
|
||||
Container mtusi2026lab3-clean-api-2 Waiting
|
||||
Container mtusi2026lab3-clean-api-1 Healthy
|
||||
Container mtusi2026lab3-clean-api-2 Healthy
|
||||
exit=0
|
||||
$ curl -s -o /dev/null "http://$(docker compose port lb 8080)/health/live"
|
||||
exit=0
|
||||
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh && make restore
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:18083"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 135, "failed_attempts": 0, "first_recovery_seconds": 2.572}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
scripts/restore.sh
|
||||
Container mtusi2026lab3-clean-api-2 Running
|
||||
Container mtusi2026lab3-clean-api-1 Starting
|
||||
Container mtusi2026lab3-clean-api-1 Started
|
||||
Container mtusi2026lab3-clean-api-1 Waiting
|
||||
Container mtusi2026lab3-clean-api-2 Waiting
|
||||
Container mtusi2026lab3-clean-api-1 Healthy
|
||||
Container mtusi2026lab3-clean-api-2 Healthy
|
||||
exit=0
|
||||
$ docker compose ps -a --format '{{.Service}} {{.Name}} {{.State}} {{.Status}}' api # наблюдение, не шаг инструкции
|
||||
api mtusi2026lab3-clean-api-1 running Up 1 second (healthy)
|
||||
api mtusi2026lab3-clean-api-2 running Up 19 seconds (healthy)
|
||||
$ make test-persistence ACTION_SCRIPT=scripts/restart.sh
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:18083"
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
exit=0
|
||||
$ docker compose ps -a --format '{{.Service}} {{.State}} {{.RunningFor}} {{.Status}}' # наблюдение, не шаг инструкции
|
||||
api running 58 seconds ago Up 3 seconds (healthy)
|
||||
api running 58 seconds ago Up 3 seconds (healthy)
|
||||
lb running 58 seconds ago Up 5 seconds (healthy)
|
||||
migrate exited 58 seconds ago Exited (0) 4 seconds ago
|
||||
postgres running 58 seconds ago Up 5 seconds (healthy)
|
||||
valkey running 58 seconds ago Up 5 seconds (healthy)
|
||||
$ make migrate
|
||||
docker compose run --rm migrate
|
||||
Container mtusi2026lab3-clean-postgres-1 Running
|
||||
{"reason":"up to date","event":"migration.completed","level":"info","ts":"2026-10-30T02:56:15.101805Z"}
|
||||
exit=0
|
||||
$ make storage-evidence
|
||||
sh scripts/evidence-storage.sh
|
||||
evidence/{schema,migrations,kdf,secrets}.txt обновлены
|
||||
exit=0
|
||||
$ docker volume ls --format '{{.Name}}' --filter label=com.docker.compose.project=mtusi2026lab3-clean # наблюдение, не шаг инструкции
|
||||
mtusi2026lab3-clean_pgdata
|
||||
mtusi2026lab3-clean_valkeydata
|
||||
$ make down
|
||||
docker compose --profile bench down
|
||||
Container mtusi2026lab3-clean-api-1 Stopping
|
||||
Container mtusi2026lab3-clean-api-2 Stopping
|
||||
Container mtusi2026lab3-clean-lb-1 Stopping
|
||||
Container mtusi2026lab3-clean-lb-1 Stopped
|
||||
Container mtusi2026lab3-clean-lb-1 Removing
|
||||
Container mtusi2026lab3-clean-lb-1 Removed
|
||||
Container mtusi2026lab3-clean-api-2 Stopped
|
||||
Container mtusi2026lab3-clean-api-2 Removing
|
||||
Container mtusi2026lab3-clean-api-1 Stopped
|
||||
Container mtusi2026lab3-clean-api-1 Removing
|
||||
Container mtusi2026lab3-clean-api-2 Removed
|
||||
Container mtusi2026lab3-clean-api-1 Removed
|
||||
Container mtusi2026lab3-clean-valkey-1 Stopping
|
||||
Container mtusi2026lab3-clean-migrate-1 Stopping
|
||||
Container mtusi2026lab3-clean-migrate-1 Stopped
|
||||
Container mtusi2026lab3-clean-migrate-1 Removing
|
||||
Container mtusi2026lab3-clean-migrate-1 Removed
|
||||
Container mtusi2026lab3-clean-postgres-1 Stopping
|
||||
Container mtusi2026lab3-clean-postgres-1 Stopped
|
||||
Container mtusi2026lab3-clean-postgres-1 Removing
|
||||
Container mtusi2026lab3-clean-postgres-1 Removed
|
||||
Container mtusi2026lab3-clean-valkey-1 Stopped
|
||||
Container mtusi2026lab3-clean-valkey-1 Removing
|
||||
Container mtusi2026lab3-clean-valkey-1 Removed
|
||||
Network mtusi2026lab3-clean_edge Removing
|
||||
Network mtusi2026lab3-clean_backend Removing
|
||||
Network mtusi2026lab3-clean_edge Removed
|
||||
Network mtusi2026lab3-clean_backend Removed
|
||||
exit=0
|
||||
$ docker volume ls --format '{{.Name}}' --filter label=com.docker.compose.project=mtusi2026lab3-clean # наблюдение, не шаг инструкции
|
||||
mtusi2026lab3-clean_pgdata
|
||||
mtusi2026lab3-clean_valkeydata
|
||||
$ make reset-data
|
||||
Удаляются volumes с учебными данными стенда
|
||||
docker compose --profile bench down -v --remove-orphans
|
||||
Volume mtusi2026lab3-clean_pgdata Removing
|
||||
Volume mtusi2026lab3-clean_valkeydata Removing
|
||||
Volume mtusi2026lab3-clean_pgdata Removed
|
||||
Volume mtusi2026lab3-clean_valkeydata Removed
|
||||
exit=0
|
||||
$ docker volume ls -q --filter label=com.docker.compose.project=mtusi2026lab3-clean | wc -l | tr -d ' ' # наблюдение, не шаг инструкции
|
||||
0
|
||||
@@ -0,0 +1,32 @@
|
||||
{"date": "2026-11-05T19:17:01.673107+00:00", "commit": "252e3e3ffeea5004cfd9dc342e686af1417a77a2",
|
||||
"action": [
|
||||
"docker",
|
||||
"kill",
|
||||
"7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 0.113,
|
||||
"lb_up_before": 2,
|
||||
"lb_samples_missing": 0,
|
||||
"lb_up_counted_as_detected": 1,
|
||||
"detection_seconds": 0.934,
|
||||
"declared_max_seconds": 1.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 200,
|
||||
"x_instance_id_present": true,
|
||||
"error_code": null
|
||||
},
|
||||
"restore": "scripts/restore.sh",
|
||||
"restore_seconds": 2.57,
|
||||
"lb_up_after_restore": 2,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": true,
|
||||
"detected_in_time": true,
|
||||
"lb_answer_ok": true,
|
||||
"restored": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{"date": "2026-11-05T19:17:01.673107+00:00", "commit": "252e3e3ffeea5004cfd9dc342e686af1417a77a2",
|
||||
"action": [
|
||||
"docker",
|
||||
"pause",
|
||||
"7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 0.057,
|
||||
"lb_up_before": 2,
|
||||
"lb_samples_missing": 0,
|
||||
"lb_up_counted_as_detected": 1,
|
||||
"detection_seconds": 3.215,
|
||||
"declared_max_seconds": 3.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 200,
|
||||
"x_instance_id_present": true,
|
||||
"error_code": null
|
||||
},
|
||||
"restore": "docker unpause 7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170 && scripts/lb-wait.sh",
|
||||
"restore_seconds": 2.425,
|
||||
"lb_up_after_restore": 2,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": true,
|
||||
"detected_in_time": true,
|
||||
"lb_answer_ok": true,
|
||||
"restored": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{"date": "2026-11-05T19:17:01.673107+00:00", "commit": "252e3e3ffeea5004cfd9dc342e686af1417a77a2",
|
||||
"action": [
|
||||
"docker",
|
||||
"stop",
|
||||
"f225c6cd77bb40f6e598bd65a1b50fa8244700978ee4086700860e0fb076857a"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 0.167,
|
||||
"lb_up_before": 2,
|
||||
"lb_samples_missing": 0,
|
||||
"lb_up_counted_as_detected": 0,
|
||||
"detection_seconds": 1.196,
|
||||
"declared_max_seconds": 1.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 503,
|
||||
"x_instance_id_present": false,
|
||||
"error_code": "unavailable"
|
||||
},
|
||||
"restore": "docker start f225c6cd77bb40f6e598bd65a1b50fa8244700978ee4086700860e0fb076857a && scripts/lb-wait.sh",
|
||||
"restore_seconds": 2.475,
|
||||
"lb_up_after_restore": 2,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": true,
|
||||
"detected_in_time": true,
|
||||
"lb_answer_ok": true,
|
||||
"restored": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
{"date": "2026-11-05T19:17:01.673107+00:00", "commit": "252e3e3ffeea5004cfd9dc342e686af1417a77a2",
|
||||
"action": [
|
||||
"docker",
|
||||
"stop",
|
||||
"-t",
|
||||
"7",
|
||||
"7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 2.535,
|
||||
"lb_up_before": 2,
|
||||
"lb_samples_missing": 0,
|
||||
"lb_up_counted_as_detected": 1,
|
||||
"detection_seconds": 1.069,
|
||||
"declared_max_seconds": 1.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 200,
|
||||
"x_instance_id_present": true,
|
||||
"error_code": null
|
||||
},
|
||||
"restore": "scripts/restore.sh",
|
||||
"restore_seconds": 1.969,
|
||||
"lb_up_after_restore": 2,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": true,
|
||||
"detected_in_time": true,
|
||||
"lb_answer_ok": true,
|
||||
"excluded_before_action_end": true,
|
||||
"restored": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{"date": "2026-11-05T19:17:01.673107+00:00", "commit": "252e3e3ffeea5004cfd9dc342e686af1417a77a2",
|
||||
"action": [
|
||||
"docker",
|
||||
"kill",
|
||||
"7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 0.162,
|
||||
"lb_up_before": 2,
|
||||
"lb_samples_missing": 0,
|
||||
"lb_up_counted_as_detected": 1,
|
||||
"detection_seconds": 0.901,
|
||||
"declared_max_seconds": 1.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 200,
|
||||
"x_instance_id_present": true,
|
||||
"error_code": null
|
||||
},
|
||||
"restore": "scripts/restore.sh",
|
||||
"restore_seconds": 3.086,
|
||||
"lb_up_after_restore": 2,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": true,
|
||||
"detected_in_time": true,
|
||||
"lb_answer_ok": true,
|
||||
"restored": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{"date": "2026-11-05T19:17:01.673107+00:00", "commit": "252e3e3ffeea5004cfd9dc342e686af1417a77a2",
|
||||
"action": [
|
||||
"docker",
|
||||
"pause",
|
||||
"7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 0.063,
|
||||
"lb_up_before": 2,
|
||||
"lb_samples_missing": 0,
|
||||
"lb_up_counted_as_detected": 1,
|
||||
"detection_seconds": 2.817,
|
||||
"declared_max_seconds": 3.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 200,
|
||||
"x_instance_id_present": true,
|
||||
"error_code": null
|
||||
},
|
||||
"restore": "docker unpause 7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170 && scripts/lb-wait.sh",
|
||||
"restore_seconds": 2.378,
|
||||
"lb_up_after_restore": 2,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": true,
|
||||
"detected_in_time": true,
|
||||
"lb_answer_ok": true,
|
||||
"restored": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{"date": "2026-11-05T19:17:01.673107+00:00", "commit": "252e3e3ffeea5004cfd9dc342e686af1417a77a2",
|
||||
"action": [
|
||||
"docker",
|
||||
"stop",
|
||||
"f225c6cd77bb40f6e598bd65a1b50fa8244700978ee4086700860e0fb076857a"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 0.17,
|
||||
"lb_up_before": 2,
|
||||
"lb_samples_missing": 0,
|
||||
"lb_up_counted_as_detected": 0,
|
||||
"detection_seconds": 1.263,
|
||||
"declared_max_seconds": 1.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 503,
|
||||
"x_instance_id_present": false,
|
||||
"error_code": "unavailable"
|
||||
},
|
||||
"restore": "docker start f225c6cd77bb40f6e598bd65a1b50fa8244700978ee4086700860e0fb076857a && scripts/lb-wait.sh",
|
||||
"restore_seconds": 2.455,
|
||||
"lb_up_after_restore": 2,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": true,
|
||||
"detected_in_time": true,
|
||||
"lb_answer_ok": true,
|
||||
"restored": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
{"date": "2026-11-05T19:17:01.673107+00:00", "commit": "252e3e3ffeea5004cfd9dc342e686af1417a77a2",
|
||||
"action": [
|
||||
"docker",
|
||||
"stop",
|
||||
"-t",
|
||||
"7",
|
||||
"7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 2.662,
|
||||
"lb_up_before": 2,
|
||||
"lb_samples_missing": 0,
|
||||
"lb_up_counted_as_detected": 1,
|
||||
"detection_seconds": 1.205,
|
||||
"declared_max_seconds": 1.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 200,
|
||||
"x_instance_id_present": true,
|
||||
"error_code": null
|
||||
},
|
||||
"restore": "scripts/restore.sh",
|
||||
"restore_seconds": 1.953,
|
||||
"lb_up_after_restore": 2,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": true,
|
||||
"detected_in_time": true,
|
||||
"lb_answer_ok": true,
|
||||
"excluded_before_action_end": true,
|
||||
"restored": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{"date": "2026-11-05T19:17:01.673107+00:00", "commit": "252e3e3ffeea5004cfd9dc342e686af1417a77a2",
|
||||
"action": [
|
||||
"docker",
|
||||
"kill",
|
||||
"7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 0.163,
|
||||
"lb_up_before": 2,
|
||||
"lb_samples_missing": 0,
|
||||
"lb_up_counted_as_detected": 1,
|
||||
"detection_seconds": 0.886,
|
||||
"declared_max_seconds": 1.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 200,
|
||||
"x_instance_id_present": true,
|
||||
"error_code": null
|
||||
},
|
||||
"restore": "scripts/restore.sh",
|
||||
"restore_seconds": 3.095,
|
||||
"lb_up_after_restore": 2,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": true,
|
||||
"detected_in_time": true,
|
||||
"lb_answer_ok": true,
|
||||
"restored": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{"date": "2026-11-05T19:17:01.673107+00:00", "commit": "252e3e3ffeea5004cfd9dc342e686af1417a77a2",
|
||||
"action": [
|
||||
"docker",
|
||||
"pause",
|
||||
"7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 0.063,
|
||||
"lb_up_before": 2,
|
||||
"lb_samples_missing": 0,
|
||||
"lb_up_counted_as_detected": 1,
|
||||
"detection_seconds": 2.778,
|
||||
"declared_max_seconds": 3.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 200,
|
||||
"x_instance_id_present": true,
|
||||
"error_code": null
|
||||
},
|
||||
"restore": "docker unpause 7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170 && scripts/lb-wait.sh",
|
||||
"restore_seconds": 2.416,
|
||||
"lb_up_after_restore": 2,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": true,
|
||||
"detected_in_time": true,
|
||||
"lb_answer_ok": true,
|
||||
"restored": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{"date": "2026-11-05T19:17:01.673107+00:00", "commit": "252e3e3ffeea5004cfd9dc342e686af1417a77a2",
|
||||
"action": [
|
||||
"docker",
|
||||
"stop",
|
||||
"f225c6cd77bb40f6e598bd65a1b50fa8244700978ee4086700860e0fb076857a"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 0.163,
|
||||
"lb_up_before": 2,
|
||||
"lb_samples_missing": 0,
|
||||
"lb_up_counted_as_detected": 0,
|
||||
"detection_seconds": 1.239,
|
||||
"declared_max_seconds": 1.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 503,
|
||||
"x_instance_id_present": false,
|
||||
"error_code": "unavailable"
|
||||
},
|
||||
"restore": "docker start f225c6cd77bb40f6e598bd65a1b50fa8244700978ee4086700860e0fb076857a && scripts/lb-wait.sh",
|
||||
"restore_seconds": 2.481,
|
||||
"lb_up_after_restore": 2,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": true,
|
||||
"detected_in_time": true,
|
||||
"lb_answer_ok": true,
|
||||
"restored": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
{"date": "2026-11-05T19:17:01.673107+00:00", "commit": "252e3e3ffeea5004cfd9dc342e686af1417a77a2",
|
||||
"action": [
|
||||
"docker",
|
||||
"stop",
|
||||
"-t",
|
||||
"7",
|
||||
"7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 2.665,
|
||||
"lb_up_before": 2,
|
||||
"lb_samples_missing": 0,
|
||||
"lb_up_counted_as_detected": 1,
|
||||
"detection_seconds": 1.266,
|
||||
"declared_max_seconds": 1.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 200,
|
||||
"x_instance_id_present": true,
|
||||
"error_code": null
|
||||
},
|
||||
"restore": "scripts/restore.sh",
|
||||
"restore_seconds": 1.984,
|
||||
"lb_up_after_restore": 2,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": true,
|
||||
"detected_in_time": true,
|
||||
"lb_answer_ok": true,
|
||||
"excluded_before_action_end": true,
|
||||
"restored": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
+11
-17
@@ -1,21 +1,25 @@
|
||||
date: 2026-10-28T17:31:07Z commit: 6468ee2
|
||||
date: 2026-11-05T18:59:00Z commit: 0a1f48bd73e5780c732356880c23fdb476bcff98
|
||||
host: Apple M4 Max, 16 CPU, 48 GiB RAM, macOS 15.1
|
||||
docker: 28.3.2, VM: 16 CPU, 8217190400 bytes
|
||||
compose: 2.38.2-desktop.1
|
||||
images:
|
||||
mtusi-messenger:mtusi2026lab2
|
||||
postgres:17.11-alpine@sha256:266d3c257594e195b309ae9d1805e54c788f1d7b375f56bf6c367aac6c917e7b
|
||||
valkey/valkey:8.1.11-alpine@sha256:2602ace2be6569bc2bbb06f873776516ab9089821525be34f4305c67eb9db02a
|
||||
image: ${API_IMAGE:-mtusi-messenger:${COMPOSE_PROJECT_NAME}}
|
||||
image: haproxy:3.2.26-alpine@sha256:5893840576071e6217cd52ebdcc14f454c6f7a631056fa6f4e0f40d3cac4215b
|
||||
image: postgres:17.11-alpine@sha256:266d3c257594e195b309ae9d1805e54c788f1d7b375f56bf6c367aac6c917e7b
|
||||
image: valkey/valkey:8.1.11-alpine@sha256:2602ace2be6569bc2bbb06f873776516ab9089821525be34f4305c67eb9db02a
|
||||
image: grafana/k6:2.3.0@sha256:2dd4756ec6e14e62778916e1eb850108e4b499304c02df56760fa0bdb0fba0b8
|
||||
FROM python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d AS builder
|
||||
COPY --from=ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 /uv /usr/local/bin/uv
|
||||
FROM python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d AS runtime
|
||||
COPY --from=builder --chown=root:root /opt/venv /opt/venv
|
||||
python in image: Python 3.14.7
|
||||
haproxy: HAProxy version 3.2.26-3e0f11a 2026/10/14 - https://haproxy.org/
|
||||
packages (uv.lock):
|
||||
fastapi 0.141.1
|
||||
uvicorn 0.54.0
|
||||
uvicorn-worker 0.4.0
|
||||
gunicorn 26.2.0
|
||||
sqlalchemy 2.0.45
|
||||
alembic 1.16.5
|
||||
asyncpg 0.32.0
|
||||
argon2-cffi 25.1.0
|
||||
pydantic 2.13.5
|
||||
@@ -23,19 +27,9 @@ packages (uv.lock):
|
||||
dishka 1.10.1
|
||||
structlog 26.1.0
|
||||
redis 8.1.0
|
||||
$ docker compose --profile faults --profile track up -d --wait api-shortttl postgres-restore
|
||||
docker compose top (service, UID, command), без повторов и без процессов healthcheck:
|
||||
process users (service uid command):
|
||||
api 10001 python
|
||||
api-shortttl 10001 python
|
||||
lb 99 haproxy
|
||||
postgres 70 postgres
|
||||
postgres 70 postgres:
|
||||
postgres-restore 70 postgres
|
||||
postgres-restore 70 postgres:
|
||||
valkey 999 tini
|
||||
valkey 999 valkey-server
|
||||
postgres durability (pg_settings):
|
||||
fsync = on
|
||||
full_page_writes = on
|
||||
shared_buffers = 16384
|
||||
synchronous_commit = on
|
||||
wal_sync_method = fdatasync
|
||||
|
||||
@@ -1,80 +0,0 @@
|
||||
date: 2026-10-28T17:16:18Z commit: 6468ee2
|
||||
$ make explain # scripts/sql/explain-history.sql
|
||||
chat_messages
|
||||
---------------
|
||||
20000
|
||||
(1 row)
|
||||
|
||||
all_messages
|
||||
--------------
|
||||
30005
|
||||
(1 row)
|
||||
|
||||
history_index_size
|
||||
--------------------
|
||||
1736 kB
|
||||
(1 row)
|
||||
|
||||
== Первая страница, limit=50 (запрос HISTORY_FIRST приложения, LIMIT limit+1)
|
||||
QUERY PLAN
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------------
|
||||
Limit (cost=0.29..5.37 rows=51 width=102) (actual time=0.008..0.013 rows=51 loops=1)
|
||||
Buffers: shared hit=3
|
||||
-> Index Scan using messages_history_idx on messages (cost=0.29..1994.42 rows=20001 width=102) (actual time=0.007..0.010 rows=51 loops=1)
|
||||
Index Cond: (chat_id = '00000000-0000-7000-8000-00000000c001'::uuid)
|
||||
Buffers: shared hit=3
|
||||
Planning:
|
||||
Buffers: shared hit=24
|
||||
Planning Time: 0.081 ms
|
||||
Execution Time: 0.022 ms
|
||||
(9 rows)
|
||||
|
||||
== Глубокая страница: keyset после 10 000-го сообщения (запрос HISTORY_AFTER приложения)
|
||||
QUERY PLAN
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
Limit (cost=0.29..9.99 rows=51 width=102) (actual time=0.007..0.012 rows=51 loops=1)
|
||||
Buffers: shared hit=4
|
||||
-> Index Scan using messages_history_idx on messages (cost=0.29..1269.18 rows=6670 width=102) (actual time=0.007..0.010 rows=51 loops=1)
|
||||
Index Cond: ((chat_id = '00000000-0000-7000-8000-00000000c001'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 02:46:40+00'::timestamp with time zone, '00000000-0000-7000-8001-000000002710'::uuid)))
|
||||
Buffers: shared hit=4
|
||||
Planning Time: 0.034 ms
|
||||
Execution Time: 0.032 ms
|
||||
(7 rows)
|
||||
|
||||
== Та же глубокая страница через OFFSET 10000 (не используется приложением, для сравнения)
|
||||
QUERY PLAN
|
||||
--------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
Limit (cost=997.30..1002.39 rows=51 width=102) (actual time=0.879..0.885 rows=51 loops=1)
|
||||
Buffers: shared hit=247
|
||||
-> Index Scan using messages_history_idx on messages (cost=0.29..1994.42 rows=20001 width=102) (actual time=0.010..0.674 rows=10051 loops=1)
|
||||
Index Cond: (chat_id = '00000000-0000-7000-8000-00000000c001'::uuid)
|
||||
Buffers: shared hit=247
|
||||
Planning Time: 0.046 ms
|
||||
Execution Time: 0.897 ms
|
||||
(7 rows)
|
||||
|
||||
== Проверка: keyset и OFFSET возвращают одну и ту же страницу
|
||||
same_page
|
||||
-----------
|
||||
t
|
||||
(1 row)
|
||||
|
||||
== Контрольный план без индекса истории (DROP INDEX внутри транзакции, затем ROLLBACK)
|
||||
QUERY PLAN
|
||||
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
Limit (cost=1246.61..1246.74 rows=51 width=102) (actual time=1.473..1.478 rows=51 loops=1)
|
||||
Buffers: shared hit=505
|
||||
-> Sort (cost=1246.61..1263.29 rows=6670 width=102) (actual time=1.473..1.473 rows=51 loops=1)
|
||||
Sort Key: created_at, id
|
||||
Sort Method: top-N heapsort Memory: 31kB
|
||||
Buffers: shared hit=505
|
||||
-> Seq Scan on messages (cost=0.00..1024.09 rows=6670 width=102) (actual time=0.291..1.073 rows=10000 loops=1)
|
||||
Filter: ((chat_id = '00000000-0000-7000-8000-00000000c001'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 02:46:40+00'::timestamp with time zone, '00000000-0000-7000-8001-000000002710'::uuid)))
|
||||
Rows Removed by Filter: 20005
|
||||
Buffers: shared hit=499
|
||||
Planning:
|
||||
Buffers: shared hit=14
|
||||
Planning Time: 0.084 ms
|
||||
Execution Time: 1.486 ms
|
||||
(14 rows)
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
date: 2026-11-05T18:58:02.224418+00:00 commit: 0a1f48bd73e5780c732356880c23fdb476bcff98
|
||||
environment: COMPOSE_PROJECT_NAME=mtusi2026lab3-grade3-final-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2 NO_PROXY=localhost,127.0.0.1,::1
|
||||
$ sh -c 'docker compose ps -a; make test-failover ACTION_SCRIPT=scripts/stop-one.sh; result=$?; docker compose ps -a; exit "$result"'
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab3-grade3-final-20261105-api-1 mtusi-messenger:mtusi2026lab3-grade3-final-20261105 "python -m gunicorn …" api 2 minutes ago Up 3 seconds (healthy)
|
||||
mtusi2026lab3-grade3-final-20261105-api-2 mtusi-messenger:mtusi2026lab3-grade3-final-20261105 "python -m gunicorn …" api 2 minutes ago Up About a minute (healthy)
|
||||
mtusi2026lab3-grade3-final-20261105-lb-1 haproxy:3.2.26-alpine@sha256:5893840576071e6217cd52ebdcc14f454c6f7a631056fa6f4e0f40d3cac4215b "docker-entrypoint.s…" lb 2 minutes ago Up About a minute (healthy) 127.0.0.1:18083->8080/tcp, 127.0.0.1:23083->8404/tcp
|
||||
mtusi2026lab3-grade3-final-20261105-migrate-1 mtusi-messenger:mtusi2026lab3-grade3-final-20261105 "alembic upgrade head" migrate 2 minutes ago Exited (0) About a minute ago
|
||||
mtusi2026lab3-grade3-final-20261105-postgres-1 postgres:17.11-alpine@sha256:266d3c257594e195b309ae9d1805e54c788f1d7b375f56bf6c367aac6c917e7b "docker-entrypoint.s…" postgres 2 minutes ago Up About a minute (healthy)
|
||||
mtusi2026lab3-grade3-final-20261105-valkey-1 valkey/valkey:8.1.11-alpine@sha256:2602ace2be6569bc2bbb06f873776516ab9089821525be34f4305c67eb9db02a "tini -- docker-entr…" valkey 2 minutes ago Up About a minute (healthy)
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:18083"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 129, "failed_attempts": 0, "first_recovery_seconds": 2.762}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab3-grade3-final-20261105-api-1 mtusi-messenger:mtusi2026lab3-grade3-final-20261105 "python -m gunicorn …" api 2 minutes ago Exited (0) 12 seconds ago
|
||||
mtusi2026lab3-grade3-final-20261105-api-2 mtusi-messenger:mtusi2026lab3-grade3-final-20261105 "python -m gunicorn …" api 2 minutes ago Up 2 minutes (healthy)
|
||||
mtusi2026lab3-grade3-final-20261105-lb-1 haproxy:3.2.26-alpine@sha256:5893840576071e6217cd52ebdcc14f454c6f7a631056fa6f4e0f40d3cac4215b "docker-entrypoint.s…" lb 2 minutes ago Up 2 minutes (healthy) 127.0.0.1:18083->8080/tcp, 127.0.0.1:23083->8404/tcp
|
||||
mtusi2026lab3-grade3-final-20261105-migrate-1 mtusi-messenger:mtusi2026lab3-grade3-final-20261105 "alembic upgrade head" migrate 2 minutes ago Exited (0) 2 minutes ago
|
||||
mtusi2026lab3-grade3-final-20261105-postgres-1 postgres:17.11-alpine@sha256:266d3c257594e195b309ae9d1805e54c788f1d7b375f56bf6c367aac6c917e7b "docker-entrypoint.s…" postgres 2 minutes ago Up 2 minutes (healthy)
|
||||
mtusi2026lab3-grade3-final-20261105-valkey-1 valkey/valkey:8.1.11-alpine@sha256:2602ace2be6569bc2bbb06f873776516ab9089821525be34f4305c67eb9db02a "tini -- docker-entr…" valkey 2 minutes ago Up 2 minutes (healthy)
|
||||
|
||||
exit_code: 0 elapsed_seconds: 15.820
|
||||
@@ -0,0 +1,23 @@
|
||||
date: 2026-11-05T18:58:20.145733+00:00 commit: 0a1f48bd73e5780c732356880c23fdb476bcff98
|
||||
environment: COMPOSE_PROJECT_NAME=mtusi2026lab3-grade3-final-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2 NO_PROXY=localhost,127.0.0.1,::1
|
||||
$ sh -c 'curl -fsS -o /dev/null "http://$(docker compose port lb 8080)/health/live"; docker compose ps -a; make test-failover ACTION_SCRIPT=scripts/stop-one.sh; result=$?; docker compose ps -a; exit "$result"'
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab3-grade3-final-20261105-api-1 mtusi-messenger:mtusi2026lab3-grade3-final-20261105 "python -m gunicorn …" api 2 minutes ago Up 2 seconds (healthy)
|
||||
mtusi2026lab3-grade3-final-20261105-api-2 mtusi-messenger:mtusi2026lab3-grade3-final-20261105 "python -m gunicorn …" api 2 minutes ago Up 2 minutes (healthy)
|
||||
mtusi2026lab3-grade3-final-20261105-lb-1 haproxy:3.2.26-alpine@sha256:5893840576071e6217cd52ebdcc14f454c6f7a631056fa6f4e0f40d3cac4215b "docker-entrypoint.s…" lb 2 minutes ago Up 2 minutes (healthy) 127.0.0.1:18083->8080/tcp, 127.0.0.1:23083->8404/tcp
|
||||
mtusi2026lab3-grade3-final-20261105-migrate-1 mtusi-messenger:mtusi2026lab3-grade3-final-20261105 "alembic upgrade head" migrate 2 minutes ago Exited (0) 2 minutes ago
|
||||
mtusi2026lab3-grade3-final-20261105-postgres-1 postgres:17.11-alpine@sha256:266d3c257594e195b309ae9d1805e54c788f1d7b375f56bf6c367aac6c917e7b "docker-entrypoint.s…" postgres 2 minutes ago Up 2 minutes (healthy)
|
||||
mtusi2026lab3-grade3-final-20261105-valkey-1 valkey/valkey:8.1.11-alpine@sha256:2602ace2be6569bc2bbb06f873776516ab9089821525be34f4305c67eb9db02a "tini -- docker-entr…" valkey 2 minutes ago Up 2 minutes (healthy)
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:18083"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 128, "failed_attempts": 0, "first_recovery_seconds": 2.817}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab3-grade3-final-20261105-api-1 mtusi-messenger:mtusi2026lab3-grade3-final-20261105 "python -m gunicorn …" api 3 minutes ago Up 17 seconds (healthy)
|
||||
mtusi2026lab3-grade3-final-20261105-api-2 mtusi-messenger:mtusi2026lab3-grade3-final-20261105 "python -m gunicorn …" api 3 minutes ago Exited (0) 12 seconds ago
|
||||
mtusi2026lab3-grade3-final-20261105-lb-1 haproxy:3.2.26-alpine@sha256:5893840576071e6217cd52ebdcc14f454c6f7a631056fa6f4e0f40d3cac4215b "docker-entrypoint.s…" lb 3 minutes ago Up 2 minutes (healthy) 127.0.0.1:18083->8080/tcp, 127.0.0.1:23083->8404/tcp
|
||||
mtusi2026lab3-grade3-final-20261105-migrate-1 mtusi-messenger:mtusi2026lab3-grade3-final-20261105 "alembic upgrade head" migrate 3 minutes ago Exited (0) 2 minutes ago
|
||||
mtusi2026lab3-grade3-final-20261105-postgres-1 postgres:17.11-alpine@sha256:266d3c257594e195b309ae9d1805e54c788f1d7b375f56bf6c367aac6c917e7b "docker-entrypoint.s…" postgres 3 minutes ago Up 2 minutes (healthy)
|
||||
mtusi2026lab3-grade3-final-20261105-valkey-1 valkey/valkey:8.1.11-alpine@sha256:2602ace2be6569bc2bbb06f873776516ab9089821525be34f4305c67eb9db02a "tini -- docker-entr…" valkey 3 minutes ago Up 2 minutes (healthy)
|
||||
|
||||
exit_code: 0 elapsed_seconds: 15.802
|
||||
@@ -0,0 +1,15 @@
|
||||
date: 2026-11-05T19:18:13.470607+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
7cfd91ddf780 api Up About a minute (healthy)
|
||||
5bbf259ff136 api Exited (0) Less than a second ago
|
||||
19:19:56 database bytes,messages: 12678835,8785
|
||||
mtusi2026lab3-grade4-20261105-api-1 cpu=25.25% mem=209.7MiB / 512MiB
|
||||
mtusi2026lab3-grade4-20261105-lb-1 cpu=2.71% mem=30.9MiB / 128MiB
|
||||
mtusi2026lab3-grade4-20261105-postgres-1 cpu=6.45% mem=51.05MiB / 1GiB
|
||||
mtusi2026lab3-grade4-20261105-valkey-1 cpu=0.43% mem=12.96MiB / 128MiB
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Starting
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Started
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Healthy
|
||||
@@ -0,0 +1,3 @@
|
||||
date: 2026-11-05T19:18:13.470607+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
time="2026-11-05T19:19:28Z" level=info msg=LOAD-START source=console
|
||||
measure: 6001 requests, failed ratio 0
|
||||
@@ -0,0 +1,309 @@
|
||||
{"date": "2026-11-05T19:18:13.470607+00:00", "commit": "252e3e3ffeea5004cfd9dc342e686af1417a77a2",
|
||||
"options": {
|
||||
"summaryTrendStats": [
|
||||
"avg",
|
||||
"min",
|
||||
"med",
|
||||
"p(90)",
|
||||
"p(95)",
|
||||
"p(99)",
|
||||
"max"
|
||||
],
|
||||
"summaryTimeUnit": "",
|
||||
"noColor": false
|
||||
},
|
||||
"state": {
|
||||
"isStdOutTTY": false,
|
||||
"isStdErrTTY": false,
|
||||
"testRunDurationMs": 70512.503422
|
||||
},
|
||||
"metrics": {
|
||||
"dropped_iterations": {
|
||||
"type": "counter",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"count": 0,
|
||||
"rate": 0
|
||||
}
|
||||
},
|
||||
"data_sent": {
|
||||
"values": {
|
||||
"count": 2054247,
|
||||
"rate": 29133.08846384076
|
||||
},
|
||||
"type": "counter",
|
||||
"contains": "data"
|
||||
},
|
||||
"http_req_tls_handshaking": {
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"med": 0,
|
||||
"p(90)": 0,
|
||||
"p(95)": 0,
|
||||
"p(99)": 0,
|
||||
"max": 0,
|
||||
"avg": 0,
|
||||
"min": 0
|
||||
},
|
||||
"type": "trend"
|
||||
},
|
||||
"http_req_duration": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"p(99)": 5.295193749999997,
|
||||
"max": 53.791625,
|
||||
"avg": 3.101954274815648,
|
||||
"min": 0.861194,
|
||||
"med": 2.9916875000000003,
|
||||
"p(90)": 3.6507209,
|
||||
"p(95)": 3.9084498499999993
|
||||
}
|
||||
},
|
||||
"checks": {
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"rate": 1,
|
||||
"passes": 7002,
|
||||
"fails": 0
|
||||
},
|
||||
"type": "rate"
|
||||
},
|
||||
"http_req_duration{scenario:measure}": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"min": 0.861194,
|
||||
"med": 2.979916,
|
||||
"p(90)": 3.638291,
|
||||
"p(95)": 3.8775,
|
||||
"p(99)": 4.531834,
|
||||
"max": 53.791625,
|
||||
"avg": 3.0515494415930533
|
||||
}
|
||||
},
|
||||
"http_req_sending": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"med": 0.011667,
|
||||
"p(90)": 0.0155,
|
||||
"p(95)": 0.018935449999999986,
|
||||
"p(99)": 0.033915669999999995,
|
||||
"max": 0.254083,
|
||||
"avg": 0.01292155005672162,
|
||||
"min": 0.002584
|
||||
}
|
||||
},
|
||||
"http_req_failed": {
|
||||
"type": "rate",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"rate": 0,
|
||||
"passes": 0,
|
||||
"fails": 7052
|
||||
}
|
||||
},
|
||||
"http_reqs{scenario:measure}": {
|
||||
"type": "counter",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"count": 6001,
|
||||
"rate": 85.10547362196873
|
||||
}
|
||||
},
|
||||
"http_req_duration{expected_response:true}": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"avg": 3.101954274815648,
|
||||
"min": 0.861194,
|
||||
"med": 2.9916875000000003,
|
||||
"p(90)": 3.6507209,
|
||||
"p(95)": 3.9084498499999993,
|
||||
"p(99)": 5.295193749999997,
|
||||
"max": 53.791625
|
||||
}
|
||||
},
|
||||
"http_req_receiving": {
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"p(95)": 0.04025,
|
||||
"p(99)": 0.06647825,
|
||||
"max": 0.282375,
|
||||
"avg": 0.023369897192285907,
|
||||
"min": 0.008,
|
||||
"med": 0.020459,
|
||||
"p(90)": 0.033583
|
||||
},
|
||||
"type": "trend"
|
||||
},
|
||||
"iteration_duration": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"p(90)": 3.7281128,
|
||||
"p(95)": 3.97822085,
|
||||
"p(99)": 4.60467816,
|
||||
"max": 53.948708,
|
||||
"avg": 3.1402372599257378,
|
||||
"min": 1.758833,
|
||||
"med": 3.0767085
|
||||
}
|
||||
},
|
||||
"vus": {
|
||||
"type": "gauge",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"value": 1,
|
||||
"min": 0,
|
||||
"max": 1
|
||||
}
|
||||
},
|
||||
"iterations": {
|
||||
"type": "counter",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"count": 7002,
|
||||
"rate": 99.30153746059408
|
||||
}
|
||||
},
|
||||
"dropped_iterations{scenario:measure}": {
|
||||
"type": "counter",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"count": 0,
|
||||
"rate": 0
|
||||
}
|
||||
},
|
||||
"data_received": {
|
||||
"type": "counter",
|
||||
"contains": "data",
|
||||
"values": {
|
||||
"count": 17075371,
|
||||
"rate": 242160.89588832358
|
||||
}
|
||||
},
|
||||
"http_req_duration{scenario:measure,name:post_message}": {
|
||||
"values": {
|
||||
"max": 53.791625,
|
||||
"avg": 2.996232064174453,
|
||||
"min": 0.861194,
|
||||
"med": 2.948,
|
||||
"p(90)": 3.5552918,
|
||||
"p(95)": 3.7865877,
|
||||
"p(99)": 4.3190254999999995
|
||||
},
|
||||
"type": "trend",
|
||||
"contains": "time"
|
||||
},
|
||||
"http_reqs": {
|
||||
"values": {
|
||||
"count": 7052,
|
||||
"rate": 100.0106315584275
|
||||
},
|
||||
"type": "counter",
|
||||
"contains": "default"
|
||||
},
|
||||
"vus_max": {
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"value": 20,
|
||||
"min": 20,
|
||||
"max": 20
|
||||
},
|
||||
"type": "gauge"
|
||||
},
|
||||
"http_req_waiting": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"p(95)": 3.8635248499999997,
|
||||
"p(99)": 5.2155688399999915,
|
||||
"max": 53.760833,
|
||||
"avg": 3.065662827566643,
|
||||
"min": 0.829445,
|
||||
"med": 2.9556665,
|
||||
"p(90)": 3.6086503
|
||||
}
|
||||
},
|
||||
"http_req_blocked": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"min": 0.000625,
|
||||
"med": 0.001667,
|
||||
"p(90)": 0.002541,
|
||||
"p(95)": 0.003041,
|
||||
"p(99)": 0.006434919999999987,
|
||||
"max": 0.540333,
|
||||
"avg": 0.002490143788996061
|
||||
}
|
||||
},
|
||||
"http_req_connecting": {
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"p(99)": 0,
|
||||
"max": 0.235959,
|
||||
"avg": 0.00042762110039705047,
|
||||
"min": 0,
|
||||
"med": 0,
|
||||
"p(90)": 0,
|
||||
"p(95)": 0
|
||||
},
|
||||
"type": "trend"
|
||||
},
|
||||
"http_req_duration{scenario:measure,name:get_history}": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"p(95)": 4.139021,
|
||||
"p(99)": 5.169410699999997,
|
||||
"max": 51.836375,
|
||||
"avg": 3.2761305311973,
|
||||
"min": 1.79625,
|
||||
"med": 3.1579794999999997,
|
||||
"p(90)": 3.8563755
|
||||
}
|
||||
},
|
||||
"http_req_failed{scenario:measure}": {
|
||||
"type": "rate",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"rate": 0,
|
||||
"passes": 0,
|
||||
"fails": 6001
|
||||
}
|
||||
},
|
||||
"iterations{scenario:measure}": {
|
||||
"type": "counter",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"count": 6001,
|
||||
"rate": 85.10547362196873
|
||||
}
|
||||
}
|
||||
},
|
||||
"root_group": {
|
||||
"groups": [],
|
||||
"checks": [
|
||||
{
|
||||
"path": "::message 201",
|
||||
"id": "6445aff337e1ade0bc10402fbac79882",
|
||||
"passes": 5622,
|
||||
"fails": 0,
|
||||
"name": "message 201"
|
||||
},
|
||||
{
|
||||
"fails": 0,
|
||||
"name": "history 200",
|
||||
"path": "::history 200",
|
||||
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
||||
"passes": 1380
|
||||
}
|
||||
],
|
||||
"name": "",
|
||||
"path": "",
|
||||
"id": "d41d8cd98f00b204e9800998ecf8427e"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,657 @@
|
||||
# date: 2026-11-05T19:18:13.470607+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
t_rel_s,up
|
||||
-25.748,2
|
||||
-25.645,2
|
||||
-25.541,2
|
||||
-25.439,2
|
||||
-25.328,2
|
||||
-25.218,2
|
||||
-25.105,2
|
||||
-25.002,2
|
||||
-24.89,2
|
||||
-24.778,2
|
||||
-24.667,2
|
||||
-24.556,2
|
||||
-24.453,2
|
||||
-24.341,2
|
||||
-24.236,2
|
||||
-24.132,2
|
||||
-24.025,2
|
||||
-23.912,2
|
||||
-23.801,2
|
||||
-23.691,2
|
||||
-23.584,2
|
||||
-23.472,2
|
||||
-23.36,2
|
||||
-23.249,2
|
||||
-23.147,2
|
||||
-23.035,2
|
||||
-22.922,2
|
||||
-22.819,2
|
||||
-22.712,2
|
||||
-22.6,2
|
||||
-22.488,2
|
||||
-22.381,2
|
||||
-22.27,2
|
||||
-22.164,2
|
||||
-22.056,2
|
||||
-21.947,2
|
||||
-21.834,2
|
||||
-21.724,2
|
||||
-21.621,2
|
||||
-21.516,2
|
||||
-21.404,2
|
||||
-21.3,2
|
||||
-21.188,2
|
||||
-21.083,2
|
||||
-20.976,2
|
||||
-20.868,2
|
||||
-20.756,2
|
||||
-20.652,2
|
||||
-20.549,2
|
||||
-20.442,2
|
||||
-20.333,2
|
||||
-20.222,2
|
||||
-20.119,2
|
||||
-20.005,2
|
||||
-19.892,2
|
||||
-19.784,2
|
||||
-19.675,2
|
||||
-19.561,2
|
||||
-19.449,2
|
||||
-19.337,2
|
||||
-19.224,2
|
||||
-19.121,2
|
||||
-19.015,2
|
||||
-18.908,2
|
||||
-18.798,2
|
||||
-18.689,2
|
||||
-18.583,2
|
||||
-18.476,2
|
||||
-18.362,2
|
||||
-18.254,2
|
||||
-18.141,2
|
||||
-18.032,2
|
||||
-17.918,2
|
||||
-17.806,2
|
||||
-17.701,2
|
||||
-17.596,2
|
||||
-17.492,2
|
||||
-17.388,2
|
||||
-17.282,2
|
||||
-17.179,2
|
||||
-17.073,2
|
||||
-16.961,2
|
||||
-16.853,2
|
||||
-16.742,2
|
||||
-16.631,2
|
||||
-16.517,2
|
||||
-16.413,2
|
||||
-16.3,2
|
||||
-16.191,2
|
||||
-16.085,2
|
||||
-15.973,2
|
||||
-15.86,2
|
||||
-15.752,2
|
||||
-15.639,2
|
||||
-15.533,2
|
||||
-15.425,2
|
||||
-15.316,2
|
||||
-15.21,2
|
||||
-15.107,2
|
||||
-15.0,2
|
||||
-14.893,2
|
||||
-14.783,2
|
||||
-14.671,2
|
||||
-14.558,2
|
||||
-14.448,2
|
||||
-14.336,2
|
||||
-14.224,2
|
||||
-14.114,2
|
||||
-14.008,2
|
||||
-13.901,2
|
||||
-13.789,2
|
||||
-13.677,2
|
||||
-13.564,2
|
||||
-13.458,2
|
||||
-13.345,2
|
||||
-13.242,2
|
||||
-13.129,2
|
||||
-13.018,2
|
||||
-12.909,2
|
||||
-12.8,2
|
||||
-12.688,2
|
||||
-12.575,2
|
||||
-12.473,2
|
||||
-12.361,2
|
||||
-12.252,2
|
||||
-12.139,2
|
||||
-12.027,2
|
||||
-11.917,2
|
||||
-11.808,2
|
||||
-11.701,2
|
||||
-11.592,2
|
||||
-11.482,2
|
||||
-11.374,2
|
||||
-11.268,2
|
||||
-11.16,2
|
||||
-11.054,2
|
||||
-10.943,2
|
||||
-10.838,2
|
||||
-10.731,2
|
||||
-10.627,2
|
||||
-10.514,2
|
||||
-10.408,2
|
||||
-10.298,2
|
||||
-10.184,2
|
||||
-10.075,2
|
||||
-9.969,2
|
||||
-9.861,2
|
||||
-9.756,2
|
||||
-9.644,2
|
||||
-9.532,2
|
||||
-9.425,2
|
||||
-9.314,2
|
||||
-9.201,2
|
||||
-9.088,2
|
||||
-8.984,2
|
||||
-8.871,2
|
||||
-8.759,2
|
||||
-8.654,2
|
||||
-8.541,2
|
||||
-8.428,2
|
||||
-8.317,2
|
||||
-8.208,2
|
||||
-8.095,2
|
||||
-7.982,2
|
||||
-7.875,2
|
||||
-7.768,2
|
||||
-7.659,2
|
||||
-7.547,2
|
||||
-7.436,2
|
||||
-7.333,2
|
||||
-7.222,2
|
||||
-7.112,2
|
||||
-7.007,2
|
||||
-6.895,2
|
||||
-6.782,2
|
||||
-6.67,2
|
||||
-6.559,2
|
||||
-6.452,2
|
||||
-6.345,2
|
||||
-6.234,2
|
||||
-6.125,2
|
||||
-6.017,2
|
||||
-5.909,2
|
||||
-5.799,2
|
||||
-5.687,2
|
||||
-5.575,2
|
||||
-5.465,2
|
||||
-5.354,2
|
||||
-5.248,2
|
||||
-5.142,2
|
||||
-5.04,2
|
||||
-4.934,2
|
||||
-4.829,2
|
||||
-4.717,2
|
||||
-4.609,2
|
||||
-4.5,2
|
||||
-4.392,2
|
||||
-4.284,2
|
||||
-4.18,2
|
||||
-4.068,2
|
||||
-3.96,2
|
||||
-3.853,2
|
||||
-3.743,2
|
||||
-3.63,2
|
||||
-3.519,2
|
||||
-3.413,2
|
||||
-3.301,2
|
||||
-3.198,2
|
||||
-3.087,2
|
||||
-2.975,2
|
||||
-2.864,2
|
||||
-2.758,2
|
||||
-2.649,2
|
||||
-2.544,2
|
||||
-2.434,2
|
||||
-2.326,2
|
||||
-2.214,2
|
||||
-2.1,2
|
||||
-1.986,2
|
||||
-1.875,2
|
||||
-1.771,2
|
||||
-1.659,2
|
||||
-1.55,2
|
||||
-1.437,2
|
||||
-1.326,2
|
||||
-1.217,2
|
||||
-1.108,2
|
||||
-0.999,2
|
||||
-0.892,2
|
||||
-0.779,2
|
||||
-0.666,2
|
||||
-0.555,2
|
||||
-0.445,2
|
||||
-0.335,2
|
||||
-0.227,2
|
||||
-0.117,2
|
||||
-0.011,2
|
||||
0.1,2
|
||||
0.206,2
|
||||
0.309,2
|
||||
0.416,2
|
||||
0.52,2
|
||||
0.632,2
|
||||
0.743,2
|
||||
0.85,2
|
||||
0.958,2
|
||||
1.069,2
|
||||
1.176,2
|
||||
1.288,2
|
||||
1.391,2
|
||||
1.498,1
|
||||
1.608,1
|
||||
1.718,1
|
||||
1.826,1
|
||||
1.933,1
|
||||
2.045,1
|
||||
2.151,1
|
||||
2.258,1
|
||||
2.368,1
|
||||
2.477,1
|
||||
2.591,1
|
||||
2.697,1
|
||||
2.8,1
|
||||
2.902,1
|
||||
3.009,1
|
||||
3.112,1
|
||||
3.215,1
|
||||
3.326,1
|
||||
3.433,1
|
||||
3.542,1
|
||||
3.652,1
|
||||
3.762,1
|
||||
3.873,1
|
||||
3.982,1
|
||||
4.09,1
|
||||
4.202,1
|
||||
4.315,1
|
||||
4.421,1
|
||||
4.533,1
|
||||
4.641,1
|
||||
4.746,1
|
||||
4.858,1
|
||||
4.966,1
|
||||
5.077,1
|
||||
5.182,1
|
||||
5.291,1
|
||||
5.405,1
|
||||
5.519,1
|
||||
5.628,1
|
||||
5.733,1
|
||||
5.839,1
|
||||
5.952,1
|
||||
6.057,1
|
||||
6.166,1
|
||||
6.271,1
|
||||
6.376,1
|
||||
6.479,1
|
||||
6.583,1
|
||||
6.691,1
|
||||
6.8,1
|
||||
6.912,1
|
||||
7.024,1
|
||||
7.136,1
|
||||
7.241,1
|
||||
7.351,1
|
||||
7.457,1
|
||||
7.566,1
|
||||
7.677,1
|
||||
7.79,1
|
||||
7.896,1
|
||||
8.008,1
|
||||
8.12,1
|
||||
8.224,1
|
||||
8.338,1
|
||||
8.451,1
|
||||
8.564,1
|
||||
8.677,1
|
||||
8.79,1
|
||||
8.894,1
|
||||
8.999,1
|
||||
9.109,1
|
||||
9.213,1
|
||||
9.323,1
|
||||
9.428,1
|
||||
9.541,1
|
||||
9.654,1
|
||||
9.766,1
|
||||
9.879,1
|
||||
9.982,1
|
||||
10.094,1
|
||||
10.202,1
|
||||
10.315,1
|
||||
10.427,1
|
||||
10.538,1
|
||||
10.64,1
|
||||
10.753,1
|
||||
10.858,1
|
||||
10.964,1
|
||||
11.074,1
|
||||
11.178,1
|
||||
11.287,1
|
||||
11.399,1
|
||||
11.507,1
|
||||
11.617,1
|
||||
11.723,1
|
||||
11.83,1
|
||||
11.942,1
|
||||
12.054,1
|
||||
12.166,1
|
||||
12.273,1
|
||||
12.382,1
|
||||
12.49,1
|
||||
12.598,1
|
||||
12.71,1
|
||||
12.818,1
|
||||
12.93,1
|
||||
13.038,1
|
||||
13.145,1
|
||||
13.257,1
|
||||
13.366,1
|
||||
13.477,1
|
||||
13.588,1
|
||||
13.693,1
|
||||
13.797,1
|
||||
13.908,1
|
||||
14.02,1
|
||||
14.127,1
|
||||
14.237,1
|
||||
14.34,1
|
||||
14.452,1
|
||||
14.562,1
|
||||
14.666,1
|
||||
14.769,1
|
||||
14.882,1
|
||||
14.99,2
|
||||
15.101,2
|
||||
15.212,2
|
||||
15.314,2
|
||||
15.426,2
|
||||
15.534,2
|
||||
15.638,2
|
||||
15.743,2
|
||||
15.849,2
|
||||
15.961,2
|
||||
16.072,2
|
||||
16.184,2
|
||||
16.291,2
|
||||
16.396,2
|
||||
16.507,2
|
||||
16.619,2
|
||||
16.731,2
|
||||
16.837,2
|
||||
16.951,2
|
||||
17.062,2
|
||||
17.165,2
|
||||
17.274,2
|
||||
17.385,2
|
||||
17.495,2
|
||||
17.604,2
|
||||
17.716,2
|
||||
17.828,2
|
||||
17.94,2
|
||||
18.052,2
|
||||
18.161,2
|
||||
18.268,2
|
||||
18.372,2
|
||||
18.482,2
|
||||
18.593,2
|
||||
18.699,2
|
||||
18.81,2
|
||||
18.923,2
|
||||
19.03,2
|
||||
19.14,2
|
||||
19.25,2
|
||||
19.362,2
|
||||
19.473,2
|
||||
19.585,2
|
||||
19.695,2
|
||||
19.798,2
|
||||
19.903,2
|
||||
20.014,2
|
||||
20.127,2
|
||||
20.238,2
|
||||
20.351,2
|
||||
20.457,2
|
||||
20.562,2
|
||||
20.668,2
|
||||
20.778,2
|
||||
20.888,2
|
||||
20.997,2
|
||||
21.106,2
|
||||
21.218,2
|
||||
21.322,2
|
||||
21.436,2
|
||||
21.541,2
|
||||
21.654,2
|
||||
21.768,2
|
||||
21.882,2
|
||||
21.985,2
|
||||
22.097,2
|
||||
22.21,2
|
||||
22.322,2
|
||||
22.433,2
|
||||
22.54,2
|
||||
22.653,2
|
||||
22.76,2
|
||||
22.867,2
|
||||
22.978,2
|
||||
23.09,2
|
||||
23.199,2
|
||||
23.309,2
|
||||
23.414,2
|
||||
23.521,2
|
||||
23.623,2
|
||||
23.734,2
|
||||
23.845,2
|
||||
23.949,2
|
||||
24.058,2
|
||||
24.165,2
|
||||
24.268,2
|
||||
24.37,2
|
||||
24.48,2
|
||||
24.582,2
|
||||
24.691,2
|
||||
24.802,2
|
||||
24.908,2
|
||||
25.022,2
|
||||
25.136,2
|
||||
25.25,2
|
||||
25.354,2
|
||||
25.466,2
|
||||
25.578,2
|
||||
25.691,2
|
||||
25.803,2
|
||||
25.907,2
|
||||
26.015,2
|
||||
26.125,2
|
||||
26.232,2
|
||||
26.335,2
|
||||
26.443,2
|
||||
26.555,2
|
||||
26.668,2
|
||||
26.773,2
|
||||
26.878,2
|
||||
26.99,2
|
||||
27.103,2
|
||||
27.217,2
|
||||
27.321,2
|
||||
27.433,2
|
||||
27.54,2
|
||||
27.651,2
|
||||
27.764,2
|
||||
27.876,2
|
||||
27.988,2
|
||||
28.099,2
|
||||
28.211,2
|
||||
28.322,2
|
||||
28.435,2
|
||||
28.537,2
|
||||
28.649,2
|
||||
28.76,2
|
||||
28.863,2
|
||||
28.972,2
|
||||
29.084,2
|
||||
29.196,2
|
||||
29.308,2
|
||||
29.417,2
|
||||
29.528,2
|
||||
29.637,2
|
||||
29.742,2
|
||||
29.848,2
|
||||
29.956,2
|
||||
30.069,2
|
||||
30.177,2
|
||||
30.29,2
|
||||
30.392,2
|
||||
30.498,2
|
||||
30.607,2
|
||||
30.714,2
|
||||
30.823,2
|
||||
30.926,2
|
||||
31.035,2
|
||||
31.139,2
|
||||
31.242,2
|
||||
31.351,2
|
||||
31.461,2
|
||||
31.567,2
|
||||
31.678,2
|
||||
31.79,2
|
||||
31.898,2
|
||||
32.012,2
|
||||
32.123,2
|
||||
32.231,2
|
||||
32.344,2
|
||||
32.457,2
|
||||
32.569,2
|
||||
32.681,2
|
||||
32.788,2
|
||||
32.898,2
|
||||
33.01,2
|
||||
33.122,2
|
||||
33.231,2
|
||||
33.346,2
|
||||
33.457,2
|
||||
33.565,2
|
||||
33.673,2
|
||||
33.783,2
|
||||
33.896,2
|
||||
34.006,2
|
||||
34.12,2
|
||||
34.223,2
|
||||
34.33,2
|
||||
34.443,2
|
||||
34.555,2
|
||||
34.665,2
|
||||
34.773,2
|
||||
34.881,2
|
||||
34.986,2
|
||||
35.096,2
|
||||
35.209,2
|
||||
35.313,2
|
||||
35.422,2
|
||||
35.534,2
|
||||
35.638,2
|
||||
35.75,2
|
||||
35.856,2
|
||||
35.965,2
|
||||
36.068,2
|
||||
36.181,2
|
||||
36.29,2
|
||||
36.398,2
|
||||
36.507,2
|
||||
36.615,2
|
||||
36.728,2
|
||||
36.84,2
|
||||
36.953,2
|
||||
37.065,2
|
||||
37.177,2
|
||||
37.289,2
|
||||
37.4,2
|
||||
37.504,2
|
||||
37.614,2
|
||||
37.722,2
|
||||
37.834,2
|
||||
37.94,2
|
||||
38.047,2
|
||||
38.154,2
|
||||
38.267,2
|
||||
38.371,2
|
||||
38.483,2
|
||||
38.593,2
|
||||
38.705,2
|
||||
38.814,2
|
||||
38.918,2
|
||||
39.023,2
|
||||
39.135,2
|
||||
39.237,2
|
||||
39.341,2
|
||||
39.446,2
|
||||
39.553,2
|
||||
39.656,2
|
||||
39.765,2
|
||||
39.873,2
|
||||
39.979,2
|
||||
40.081,2
|
||||
40.192,2
|
||||
40.299,2
|
||||
40.403,2
|
||||
40.507,2
|
||||
40.614,2
|
||||
40.726,2
|
||||
40.83,2
|
||||
40.941,2
|
||||
41.047,2
|
||||
41.158,2
|
||||
41.261,2
|
||||
41.37,2
|
||||
41.481,2
|
||||
41.589,2
|
||||
41.697,2
|
||||
41.808,2
|
||||
41.916,2
|
||||
42.018,2
|
||||
42.123,2
|
||||
42.236,2
|
||||
42.339,2
|
||||
42.448,2
|
||||
42.559,2
|
||||
42.664,2
|
||||
42.777,2
|
||||
42.889,2
|
||||
42.998,2
|
||||
43.105,2
|
||||
43.217,2
|
||||
43.328,2
|
||||
43.441,2
|
||||
43.554,2
|
||||
43.667,2
|
||||
43.774,2
|
||||
43.88,2
|
||||
43.99,2
|
||||
44.102,2
|
||||
44.206,2
|
||||
44.315,2
|
||||
44.426,2
|
||||
44.53,2
|
||||
44.636,2
|
||||
44.741,2
|
||||
44.846,2
|
||||
44.958,2
|
||||
45.068,2
|
||||
45.181,2
|
||||
45.285,2
|
||||
45.394,2
|
||||
45.497,2
|
||||
|
@@ -0,0 +1,644 @@
|
||||
# date: 2026-11-05T19:18:13.470607+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
t_rel_s,status,latency_ms,instance
|
||||
-25.748,201,3.4,7cfd91ddf780
|
||||
-25.644,201,5.5,5bbf259ff136
|
||||
-25.536,201,4.8,7cfd91ddf780
|
||||
-25.431,201,3.4,7cfd91ddf780
|
||||
-25.325,201,3.2,7cfd91ddf780
|
||||
-25.217,201,4.9,5bbf259ff136
|
||||
-25.107,201,3.4,7cfd91ddf780
|
||||
-24.997,201,3.0,7cfd91ddf780
|
||||
-24.884,201,3.5,7cfd91ddf780
|
||||
-24.778,201,5.8,7cfd91ddf780
|
||||
-24.664,201,5.3,7cfd91ddf780
|
||||
-24.558,201,6.9,7cfd91ddf780
|
||||
-24.442,201,4.8,5bbf259ff136
|
||||
-24.331,201,5.8,5bbf259ff136
|
||||
-24.215,201,5.9,5bbf259ff136
|
||||
-24.1,201,5.1,7cfd91ddf780
|
||||
-23.99,201,5.2,7cfd91ddf780
|
||||
-23.875,201,5.0,7cfd91ddf780
|
||||
-23.766,201,4.3,7cfd91ddf780
|
||||
-23.657,201,5.1,7cfd91ddf780
|
||||
-23.541,201,5.3,5bbf259ff136
|
||||
-23.426,201,6.7,5bbf259ff136
|
||||
-23.318,201,5.7,5bbf259ff136
|
||||
-23.208,201,5.1,5bbf259ff136
|
||||
-23.092,201,6.1,7cfd91ddf780
|
||||
-22.978,201,4.6,7cfd91ddf780
|
||||
-22.864,201,4.3,5bbf259ff136
|
||||
-22.759,201,4.6,7cfd91ddf780
|
||||
-22.644,201,5.3,5bbf259ff136
|
||||
-22.531,201,5.7,5bbf259ff136
|
||||
-22.417,201,4.9,5bbf259ff136
|
||||
-22.308,201,4.6,5bbf259ff136
|
||||
-22.197,201,5.7,5bbf259ff136
|
||||
-22.082,201,5.0,7cfd91ddf780
|
||||
-21.967,201,5.8,7cfd91ddf780
|
||||
-21.852,201,5.3,5bbf259ff136
|
||||
-21.74,201,4.5,5bbf259ff136
|
||||
-21.625,201,6.9,7cfd91ddf780
|
||||
-21.515,201,6.3,5bbf259ff136
|
||||
-21.402,201,5.0,7cfd91ddf780
|
||||
-21.287,201,4.5,7cfd91ddf780
|
||||
-21.179,201,4.6,7cfd91ddf780
|
||||
-21.067,201,5.3,7cfd91ddf780
|
||||
-20.95,201,6.0,5bbf259ff136
|
||||
-20.835,201,3.9,5bbf259ff136
|
||||
-20.724,201,3.8,7cfd91ddf780
|
||||
-20.617,201,4.8,5bbf259ff136
|
||||
-20.506,201,6.4,5bbf259ff136
|
||||
-20.392,201,5.9,7cfd91ddf780
|
||||
-20.284,201,5.1,7cfd91ddf780
|
||||
-20.175,201,7.0,5bbf259ff136
|
||||
-20.068,201,4.9,5bbf259ff136
|
||||
-19.958,201,5.2,5bbf259ff136
|
||||
-19.843,201,5.2,7cfd91ddf780
|
||||
-19.728,201,4.6,7cfd91ddf780
|
||||
-19.622,201,6.1,7cfd91ddf780
|
||||
-19.514,201,5.2,7cfd91ddf780
|
||||
-19.405,201,5.7,7cfd91ddf780
|
||||
-19.295,201,4.9,5bbf259ff136
|
||||
-19.182,201,4.7,7cfd91ddf780
|
||||
-19.076,201,6.0,5bbf259ff136
|
||||
-18.967,201,5.8,5bbf259ff136
|
||||
-18.86,201,5.6,5bbf259ff136
|
||||
-18.748,201,6.3,5bbf259ff136
|
||||
-18.642,201,6.0,5bbf259ff136
|
||||
-18.533,201,5.0,5bbf259ff136
|
||||
-18.426,201,5.5,7cfd91ddf780
|
||||
-18.315,201,5.3,5bbf259ff136
|
||||
-18.208,201,6.1,7cfd91ddf780
|
||||
-18.092,201,4.6,5bbf259ff136
|
||||
-17.979,201,5.3,5bbf259ff136
|
||||
-17.867,201,5.5,5bbf259ff136
|
||||
-17.752,201,3.8,7cfd91ddf780
|
||||
-17.643,201,5.2,7cfd91ddf780
|
||||
-17.531,201,5.1,7cfd91ddf780
|
||||
-17.415,201,7.0,5bbf259ff136
|
||||
-17.3,201,5.9,5bbf259ff136
|
||||
-17.187,201,5.5,5bbf259ff136
|
||||
-17.076,201,7.6,7cfd91ddf780
|
||||
-16.967,201,5.9,5bbf259ff136
|
||||
-16.86,201,4.9,5bbf259ff136
|
||||
-16.747,201,6.0,5bbf259ff136
|
||||
-16.631,201,6.8,7cfd91ddf780
|
||||
-16.516,201,5.4,7cfd91ddf780
|
||||
-16.407,201,4.9,7cfd91ddf780
|
||||
-16.297,201,4.4,7cfd91ddf780
|
||||
-16.188,201,4.9,7cfd91ddf780
|
||||
-16.073,201,5.0,5bbf259ff136
|
||||
-15.964,201,5.2,5bbf259ff136
|
||||
-15.849,201,4.9,5bbf259ff136
|
||||
-15.74,201,3.9,5bbf259ff136
|
||||
-15.636,201,3.4,7cfd91ddf780
|
||||
-15.523,201,5.0,5bbf259ff136
|
||||
-15.416,201,4.3,7cfd91ddf780
|
||||
-15.302,201,5.4,5bbf259ff136
|
||||
-15.192,201,5.1,5bbf259ff136
|
||||
-15.077,201,5.5,5bbf259ff136
|
||||
-14.969,201,6.1,7cfd91ddf780
|
||||
-14.859,201,5.1,7cfd91ddf780
|
||||
-14.745,201,5.3,7cfd91ddf780
|
||||
-14.63,201,6.8,5bbf259ff136
|
||||
-14.514,201,5.5,5bbf259ff136
|
||||
-14.398,201,6.2,7cfd91ddf780
|
||||
-14.282,201,6.5,5bbf259ff136
|
||||
-14.168,201,7.5,5bbf259ff136
|
||||
-14.059,201,6.1,5bbf259ff136
|
||||
-13.952,201,5.3,5bbf259ff136
|
||||
-13.838,201,5.4,5bbf259ff136
|
||||
-13.727,201,6.0,5bbf259ff136
|
||||
-13.611,201,4.8,7cfd91ddf780
|
||||
-13.504,201,6.4,5bbf259ff136
|
||||
-13.394,201,6.9,7cfd91ddf780
|
||||
-13.283,201,5.9,7cfd91ddf780
|
||||
-13.172,201,6.3,7cfd91ddf780
|
||||
-13.059,201,4.9,7cfd91ddf780
|
||||
-12.948,201,4.7,7cfd91ddf780
|
||||
-12.835,201,7.7,7cfd91ddf780
|
||||
-12.722,201,6.1,5bbf259ff136
|
||||
-12.607,201,5.3,5bbf259ff136
|
||||
-12.5,201,5.3,5bbf259ff136
|
||||
-12.395,201,6.2,7cfd91ddf780
|
||||
-12.288,201,4.9,7cfd91ddf780
|
||||
-12.18,201,5.3,7cfd91ddf780
|
||||
-12.074,201,6.5,7cfd91ddf780
|
||||
-11.967,201,5.8,5bbf259ff136
|
||||
-11.859,201,4.6,5bbf259ff136
|
||||
-11.747,201,5.1,5bbf259ff136
|
||||
-11.637,201,4.7,5bbf259ff136
|
||||
-11.525,201,5.4,5bbf259ff136
|
||||
-11.41,201,5.2,7cfd91ddf780
|
||||
-11.296,201,5.5,7cfd91ddf780
|
||||
-11.189,201,5.4,7cfd91ddf780
|
||||
-11.083,201,5.3,7cfd91ddf780
|
||||
-10.968,201,4.5,7cfd91ddf780
|
||||
-10.858,201,5.1,7cfd91ddf780
|
||||
-10.75,201,5.1,7cfd91ddf780
|
||||
-10.643,201,6.3,7cfd91ddf780
|
||||
-10.534,201,3.8,7cfd91ddf780
|
||||
-10.427,201,4.0,5bbf259ff136
|
||||
-10.32,201,5.9,5bbf259ff136
|
||||
-10.209,201,5.5,5bbf259ff136
|
||||
-10.095,201,5.4,5bbf259ff136
|
||||
-9.98,201,4.9,7cfd91ddf780
|
||||
-9.868,201,5.4,7cfd91ddf780
|
||||
-9.761,201,6.5,7cfd91ddf780
|
||||
-9.644,201,4.8,5bbf259ff136
|
||||
-9.531,201,6.3,5bbf259ff136
|
||||
-9.417,201,5.1,5bbf259ff136
|
||||
-9.303,201,4.8,7cfd91ddf780
|
||||
-9.192,201,5.6,7cfd91ddf780
|
||||
-9.084,201,4.8,7cfd91ddf780
|
||||
-8.975,201,4.7,5bbf259ff136
|
||||
-8.863,201,4.7,7cfd91ddf780
|
||||
-8.75,201,4.8,7cfd91ddf780
|
||||
-8.643,201,4.7,7cfd91ddf780
|
||||
-8.536,201,5.2,5bbf259ff136
|
||||
-8.424,201,5.2,5bbf259ff136
|
||||
-8.318,201,7.7,5bbf259ff136
|
||||
-8.205,201,5.1,5bbf259ff136
|
||||
-8.098,201,5.7,5bbf259ff136
|
||||
-7.983,201,6.8,7cfd91ddf780
|
||||
-7.869,201,4.6,7cfd91ddf780
|
||||
-7.76,201,5.0,7cfd91ddf780
|
||||
-7.645,201,5.5,7cfd91ddf780
|
||||
-7.531,201,5.0,5bbf259ff136
|
||||
-7.425,201,3.3,7cfd91ddf780
|
||||
-7.315,201,5.0,7cfd91ddf780
|
||||
-7.202,201,5.6,5bbf259ff136
|
||||
-7.092,201,5.2,5bbf259ff136
|
||||
-6.985,201,4.9,7cfd91ddf780
|
||||
-6.877,201,6.5,7cfd91ddf780
|
||||
-6.76,201,5.0,5bbf259ff136
|
||||
-6.65,201,4.6,5bbf259ff136
|
||||
-6.536,201,5.2,5bbf259ff136
|
||||
-6.423,201,5.4,7cfd91ddf780
|
||||
-6.307,201,4.0,7cfd91ddf780
|
||||
-6.203,201,4.3,7cfd91ddf780
|
||||
-6.093,201,4.3,7cfd91ddf780
|
||||
-5.985,201,7.2,5bbf259ff136
|
||||
-5.868,201,4.4,7cfd91ddf780
|
||||
-5.761,201,4.2,7cfd91ddf780
|
||||
-5.657,201,4.9,5bbf259ff136
|
||||
-5.546,201,5.7,5bbf259ff136
|
||||
-5.434,201,4.5,7cfd91ddf780
|
||||
-5.325,201,3.8,5bbf259ff136
|
||||
-5.216,201,3.9,5bbf259ff136
|
||||
-5.112,201,5.1,5bbf259ff136
|
||||
-5.0,201,6.2,5bbf259ff136
|
||||
-4.893,201,5.2,5bbf259ff136
|
||||
-4.784,201,6.3,5bbf259ff136
|
||||
-4.675,201,5.5,7cfd91ddf780
|
||||
-4.567,201,4.6,7cfd91ddf780
|
||||
-4.453,201,4.8,5bbf259ff136
|
||||
-4.338,201,5.0,5bbf259ff136
|
||||
-4.229,201,6.4,5bbf259ff136
|
||||
-4.115,201,6.0,5bbf259ff136
|
||||
-4.007,201,5.4,5bbf259ff136
|
||||
-3.896,201,6.5,5bbf259ff136
|
||||
-3.782,201,5.5,7cfd91ddf780
|
||||
-3.669,201,5.5,7cfd91ddf780
|
||||
-3.562,201,5.4,7cfd91ddf780
|
||||
-3.452,201,5.5,7cfd91ddf780
|
||||
-3.341,201,5.9,7cfd91ddf780
|
||||
-3.234,201,6.5,7cfd91ddf780
|
||||
-3.117,201,5.1,7cfd91ddf780
|
||||
-3.007,201,6.6,7cfd91ddf780
|
||||
-2.892,201,6.3,5bbf259ff136
|
||||
-2.775,201,5.6,5bbf259ff136
|
||||
-2.669,201,6.0,5bbf259ff136
|
||||
-2.559,201,6.6,5bbf259ff136
|
||||
-2.442,201,6.4,7cfd91ddf780
|
||||
-2.326,201,3.6,7cfd91ddf780
|
||||
-2.214,201,5.1,5bbf259ff136
|
||||
-2.099,201,4.8,5bbf259ff136
|
||||
-1.986,201,6.5,5bbf259ff136
|
||||
-1.877,201,7.0,5bbf259ff136
|
||||
-1.768,201,4.7,5bbf259ff136
|
||||
-1.658,201,5.8,5bbf259ff136
|
||||
-1.548,201,5.2,5bbf259ff136
|
||||
-1.433,201,5.4,7cfd91ddf780
|
||||
-1.326,201,7.0,5bbf259ff136
|
||||
-1.217,201,5.3,5bbf259ff136
|
||||
-1.108,201,5.1,5bbf259ff136
|
||||
-0.995,201,4.4,5bbf259ff136
|
||||
-0.884,201,5.8,7cfd91ddf780
|
||||
-0.776,201,5.7,5bbf259ff136
|
||||
-0.662,201,5.5,7cfd91ddf780
|
||||
-0.554,201,6.5,7cfd91ddf780
|
||||
-0.442,201,4.7,7cfd91ddf780
|
||||
-0.331,201,5.1,7cfd91ddf780
|
||||
-0.223,201,3.6,5bbf259ff136
|
||||
-0.111,201,3.9,7cfd91ddf780
|
||||
-0.004,201,5.0,5bbf259ff136
|
||||
0.106,201,4.8,7cfd91ddf780
|
||||
0.217,201,5.2,5bbf259ff136
|
||||
0.323,201,6.3,5bbf259ff136
|
||||
0.44,201,5.2,7cfd91ddf780
|
||||
0.547,201,5.5,7cfd91ddf780
|
||||
0.657,201,3.2,7cfd91ddf780
|
||||
0.771,201,2.8,7cfd91ddf780
|
||||
0.879,201,3.9,7cfd91ddf780
|
||||
0.993,201,3.9,7cfd91ddf780
|
||||
1.107,201,4.7,5bbf259ff136
|
||||
1.222,201,4.9,5bbf259ff136
|
||||
1.333,201,3.9,5bbf259ff136
|
||||
1.439,201,6.0,5bbf259ff136
|
||||
1.551,201,6.0,7cfd91ddf780
|
||||
1.66,201,6.1,7cfd91ddf780
|
||||
1.775,201,5.1,7cfd91ddf780
|
||||
1.887,201,7.0,7cfd91ddf780
|
||||
2.004,201,5.9,7cfd91ddf780
|
||||
2.12,201,5.4,7cfd91ddf780
|
||||
2.233,201,4.1,7cfd91ddf780
|
||||
2.338,201,3.8,7cfd91ddf780
|
||||
2.449,201,6.8,7cfd91ddf780
|
||||
2.557,201,4.3,7cfd91ddf780
|
||||
2.661,201,6.9,7cfd91ddf780
|
||||
2.768,201,4.5,7cfd91ddf780
|
||||
2.876,201,4.2,7cfd91ddf780
|
||||
2.983,201,4.6,7cfd91ddf780
|
||||
3.098,201,4.4,7cfd91ddf780
|
||||
3.203,201,5.2,7cfd91ddf780
|
||||
3.31,201,5.2,7cfd91ddf780
|
||||
3.425,201,5.5,7cfd91ddf780
|
||||
3.537,201,5.9,7cfd91ddf780
|
||||
3.646,201,8.7,7cfd91ddf780
|
||||
3.758,201,5.7,7cfd91ddf780
|
||||
3.867,201,7.2,7cfd91ddf780
|
||||
3.982,201,6.7,7cfd91ddf780
|
||||
4.099,201,5.7,7cfd91ddf780
|
||||
4.206,201,4.6,7cfd91ddf780
|
||||
4.316,201,13.6,7cfd91ddf780
|
||||
4.439,201,4.2,7cfd91ddf780
|
||||
4.554,201,5.9,7cfd91ddf780
|
||||
4.665,201,7.6,7cfd91ddf780
|
||||
4.781,201,4.8,7cfd91ddf780
|
||||
4.896,201,5.9,7cfd91ddf780
|
||||
5.008,201,5.5,7cfd91ddf780
|
||||
5.123,201,4.3,7cfd91ddf780
|
||||
5.233,201,4.4,7cfd91ddf780
|
||||
5.338,201,5.1,7cfd91ddf780
|
||||
5.449,201,5.8,7cfd91ddf780
|
||||
5.557,201,5.6,7cfd91ddf780
|
||||
5.673,201,6.9,7cfd91ddf780
|
||||
5.781,201,6.3,7cfd91ddf780
|
||||
5.887,201,6.8,7cfd91ddf780
|
||||
6.004,201,5.0,7cfd91ddf780
|
||||
6.118,201,5.1,7cfd91ddf780
|
||||
6.232,201,5.5,7cfd91ddf780
|
||||
6.347,201,5.2,7cfd91ddf780
|
||||
6.454,201,5.8,7cfd91ddf780
|
||||
6.564,201,5.1,7cfd91ddf780
|
||||
6.674,201,4.4,7cfd91ddf780
|
||||
6.783,201,5.7,7cfd91ddf780
|
||||
6.892,201,3.0,7cfd91ddf780
|
||||
7.004,201,6.7,7cfd91ddf780
|
||||
7.119,201,6.2,7cfd91ddf780
|
||||
7.235,201,5.3,7cfd91ddf780
|
||||
7.351,201,6.6,7cfd91ddf780
|
||||
7.458,201,6.4,7cfd91ddf780
|
||||
7.568,201,5.2,7cfd91ddf780
|
||||
7.677,201,7.3,7cfd91ddf780
|
||||
7.793,201,5.2,7cfd91ddf780
|
||||
7.899,201,3.3,7cfd91ddf780
|
||||
8.012,201,2.8,7cfd91ddf780
|
||||
8.124,201,3.9,7cfd91ddf780
|
||||
8.232,201,4.9,7cfd91ddf780
|
||||
8.337,201,6.0,7cfd91ddf780
|
||||
8.449,201,5.9,7cfd91ddf780
|
||||
8.563,201,5.8,7cfd91ddf780
|
||||
8.674,201,7.4,7cfd91ddf780
|
||||
8.782,201,4.3,7cfd91ddf780
|
||||
8.894,201,6.0,7cfd91ddf780
|
||||
9.01,201,4.9,7cfd91ddf780
|
||||
9.122,201,5.6,7cfd91ddf780
|
||||
9.233,201,6.0,7cfd91ddf780
|
||||
9.339,201,5.2,7cfd91ddf780
|
||||
9.449,201,6.0,7cfd91ddf780
|
||||
9.556,201,6.4,7cfd91ddf780
|
||||
9.673,201,5.0,7cfd91ddf780
|
||||
9.788,201,5.0,7cfd91ddf780
|
||||
9.899,201,4.8,7cfd91ddf780
|
||||
10.009,201,5.2,7cfd91ddf780
|
||||
10.12,201,5.8,7cfd91ddf780
|
||||
10.233,201,4.7,7cfd91ddf780
|
||||
10.348,201,4.6,7cfd91ddf780
|
||||
10.453,201,4.3,7cfd91ddf780
|
||||
10.566,201,5.3,7cfd91ddf780
|
||||
10.681,201,5.9,7cfd91ddf780
|
||||
10.789,201,7.5,7cfd91ddf780
|
||||
10.899,201,6.3,7cfd91ddf780
|
||||
11.012,201,6.7,7cfd91ddf780
|
||||
11.122,201,4.8,7cfd91ddf780
|
||||
11.228,201,5.5,7cfd91ddf780
|
||||
11.343,201,4.9,7cfd91ddf780
|
||||
11.458,201,5.8,7cfd91ddf780
|
||||
11.573,201,5.4,7cfd91ddf780
|
||||
11.688,201,6.7,7cfd91ddf780
|
||||
11.805,201,5.5,7cfd91ddf780
|
||||
11.916,201,6.0,7cfd91ddf780
|
||||
12.023,201,5.8,7cfd91ddf780
|
||||
12.137,201,6.0,7cfd91ddf780
|
||||
12.244,201,4.7,7cfd91ddf780
|
||||
12.355,201,6.5,7cfd91ddf780
|
||||
12.466,201,5.1,7cfd91ddf780
|
||||
12.578,201,5.1,7cfd91ddf780
|
||||
12.69,201,5.4,7cfd91ddf780
|
||||
12.8,201,5.2,7cfd91ddf780
|
||||
12.915,201,4.0,7cfd91ddf780
|
||||
13.026,201,4.9,7cfd91ddf780
|
||||
13.138,201,3.7,7cfd91ddf780
|
||||
13.242,201,4.3,7cfd91ddf780
|
||||
13.351,201,3.3,7cfd91ddf780
|
||||
13.455,201,3.9,7cfd91ddf780
|
||||
13.569,201,3.5,7cfd91ddf780
|
||||
13.676,201,3.9,7cfd91ddf780
|
||||
13.782,201,3.1,7cfd91ddf780
|
||||
13.89,201,3.8,7cfd91ddf780
|
||||
13.999,201,4.0,7cfd91ddf780
|
||||
14.103,201,4.8,7cfd91ddf780
|
||||
14.21,201,4.8,7cfd91ddf780
|
||||
14.318,201,5.0,7cfd91ddf780
|
||||
14.43,201,5.3,7cfd91ddf780
|
||||
14.543,201,5.1,7cfd91ddf780
|
||||
14.65,201,5.2,7cfd91ddf780
|
||||
14.756,201,4.8,7cfd91ddf780
|
||||
14.863,201,5.7,7cfd91ddf780
|
||||
14.979,201,5.9,7cfd91ddf780
|
||||
15.093,201,5.5,7cfd91ddf780
|
||||
15.203,201,5.1,7cfd91ddf780
|
||||
15.309,201,4.9,7cfd91ddf780
|
||||
15.416,201,8.0,7cfd91ddf780
|
||||
15.534,201,6.0,7cfd91ddf780
|
||||
15.642,201,3.5,7cfd91ddf780
|
||||
15.756,201,4.7,5bbf259ff136
|
||||
15.871,201,6.0,5bbf259ff136
|
||||
15.987,201,4.7,7cfd91ddf780
|
||||
16.097,201,4.9,7cfd91ddf780
|
||||
16.212,201,5.2,7cfd91ddf780
|
||||
16.324,201,6.2,7cfd91ddf780
|
||||
16.44,201,5.5,5bbf259ff136
|
||||
16.556,201,4.9,7cfd91ddf780
|
||||
16.666,201,5.2,7cfd91ddf780
|
||||
16.777,201,6.3,7cfd91ddf780
|
||||
16.893,201,5.8,7cfd91ddf780
|
||||
17.009,201,5.4,5bbf259ff136
|
||||
17.123,201,5.5,5bbf259ff136
|
||||
17.229,201,5.4,5bbf259ff136
|
||||
17.343,201,5.1,5bbf259ff136
|
||||
17.457,201,5.4,7cfd91ddf780
|
||||
17.564,201,5.2,5bbf259ff136
|
||||
17.679,201,7.2,7cfd91ddf780
|
||||
17.79,201,6.8,7cfd91ddf780
|
||||
17.899,201,5.0,7cfd91ddf780
|
||||
18.013,201,5.1,7cfd91ddf780
|
||||
18.126,201,8.5,5bbf259ff136
|
||||
18.241,201,3.9,5bbf259ff136
|
||||
18.352,201,4.5,5bbf259ff136
|
||||
18.465,201,5.5,7cfd91ddf780
|
||||
18.577,201,5.9,7cfd91ddf780
|
||||
18.691,201,4.8,7cfd91ddf780
|
||||
18.806,201,14.2,5bbf259ff136
|
||||
18.92,201,5.3,5bbf259ff136
|
||||
19.03,201,4.6,5bbf259ff136
|
||||
19.141,201,5.5,5bbf259ff136
|
||||
19.249,201,5.7,5bbf259ff136
|
||||
19.357,201,4.8,5bbf259ff136
|
||||
19.468,201,5.1,5bbf259ff136
|
||||
19.582,201,6.6,5bbf259ff136
|
||||
19.695,201,5.3,7cfd91ddf780
|
||||
19.802,201,5.1,5bbf259ff136
|
||||
19.912,201,4.9,5bbf259ff136
|
||||
20.021,201,5.2,5bbf259ff136
|
||||
20.136,201,5.4,7cfd91ddf780
|
||||
20.251,201,4.2,7cfd91ddf780
|
||||
20.361,201,5.0,7cfd91ddf780
|
||||
20.473,201,5.2,7cfd91ddf780
|
||||
20.582,201,5.0,7cfd91ddf780
|
||||
20.692,201,5.9,7cfd91ddf780
|
||||
20.805,201,4.7,7cfd91ddf780
|
||||
20.912,201,4.5,7cfd91ddf780
|
||||
21.023,201,4.7,7cfd91ddf780
|
||||
21.137,201,5.2,5bbf259ff136
|
||||
21.249,201,4.4,5bbf259ff136
|
||||
21.362,201,5.1,5bbf259ff136
|
||||
21.472,201,5.0,5bbf259ff136
|
||||
21.583,201,5.6,5bbf259ff136
|
||||
21.691,201,6.1,5bbf259ff136
|
||||
21.8,201,7.2,5bbf259ff136
|
||||
21.917,201,6.8,7cfd91ddf780
|
||||
22.03,201,5.0,7cfd91ddf780
|
||||
22.137,201,6.5,7cfd91ddf780
|
||||
22.253,201,7.0,7cfd91ddf780
|
||||
22.364,201,5.3,7cfd91ddf780
|
||||
22.474,201,5.3,7cfd91ddf780
|
||||
22.582,201,5.7,7cfd91ddf780
|
||||
22.691,201,5.6,7cfd91ddf780
|
||||
22.801,201,4.9,7cfd91ddf780
|
||||
22.916,201,4.4,5bbf259ff136
|
||||
23.02,201,4.9,7cfd91ddf780
|
||||
23.135,201,5.3,5bbf259ff136
|
||||
23.242,201,6.3,7cfd91ddf780
|
||||
23.358,201,4.7,5bbf259ff136
|
||||
23.467,201,4.5,5bbf259ff136
|
||||
23.572,201,4.1,7cfd91ddf780
|
||||
23.682,201,5.6,7cfd91ddf780
|
||||
23.79,201,4.8,7cfd91ddf780
|
||||
23.905,201,5.1,5bbf259ff136
|
||||
24.015,201,5.0,5bbf259ff136
|
||||
24.122,201,4.7,7cfd91ddf780
|
||||
24.233,201,4.4,7cfd91ddf780
|
||||
24.342,201,5.8,7cfd91ddf780
|
||||
24.458,201,6.0,5bbf259ff136
|
||||
24.569,201,5.4,5bbf259ff136
|
||||
24.684,201,6.7,7cfd91ddf780
|
||||
24.801,201,5.3,7cfd91ddf780
|
||||
24.916,201,5.2,5bbf259ff136
|
||||
25.023,201,6.6,7cfd91ddf780
|
||||
25.14,201,5.7,5bbf259ff136
|
||||
25.251,201,4.5,5bbf259ff136
|
||||
25.357,201,5.0,5bbf259ff136
|
||||
25.472,201,5.1,5bbf259ff136
|
||||
25.582,201,4.8,5bbf259ff136
|
||||
25.691,201,6.0,5bbf259ff136
|
||||
25.807,201,5.2,7cfd91ddf780
|
||||
25.915,201,4.9,7cfd91ddf780
|
||||
26.03,201,5.1,7cfd91ddf780
|
||||
26.14,201,5.1,7cfd91ddf780
|
||||
26.247,201,5.6,7cfd91ddf780
|
||||
26.354,201,5.3,5bbf259ff136
|
||||
26.467,201,6.8,7cfd91ddf780
|
||||
26.583,201,5.2,7cfd91ddf780
|
||||
26.694,201,5.2,7cfd91ddf780
|
||||
26.806,201,6.2,5bbf259ff136
|
||||
26.914,201,6.5,5bbf259ff136
|
||||
27.031,201,5.9,5bbf259ff136
|
||||
27.144,201,5.4,7cfd91ddf780
|
||||
27.255,201,5.1,7cfd91ddf780
|
||||
27.362,201,6.0,5bbf259ff136
|
||||
27.478,201,6.3,7cfd91ddf780
|
||||
27.59,201,6.3,7cfd91ddf780
|
||||
27.707,201,5.4,5bbf259ff136
|
||||
27.814,201,7.4,5bbf259ff136
|
||||
27.929,201,3.9,5bbf259ff136
|
||||
28.04,201,4.0,5bbf259ff136
|
||||
28.153,201,5.2,5bbf259ff136
|
||||
28.269,201,4.8,7cfd91ddf780
|
||||
28.381,201,5.6,7cfd91ddf780
|
||||
28.487,201,5.1,7cfd91ddf780
|
||||
28.597,201,5.1,7cfd91ddf780
|
||||
28.708,201,3.9,7cfd91ddf780
|
||||
28.816,201,5.1,7cfd91ddf780
|
||||
28.931,201,4.9,7cfd91ddf780
|
||||
29.046,201,5.9,5bbf259ff136
|
||||
29.162,201,4.9,5bbf259ff136
|
||||
29.276,201,3.8,7cfd91ddf780
|
||||
29.381,201,5.3,5bbf259ff136
|
||||
29.489,201,4.7,5bbf259ff136
|
||||
29.6,201,4.9,5bbf259ff136
|
||||
29.715,201,5.9,7cfd91ddf780
|
||||
29.825,201,5.5,7cfd91ddf780
|
||||
29.94,201,5.9,7cfd91ddf780
|
||||
30.047,201,7.0,7cfd91ddf780
|
||||
30.155,201,5.5,7cfd91ddf780
|
||||
30.271,201,6.1,7cfd91ddf780
|
||||
30.38,201,4.9,7cfd91ddf780
|
||||
30.49,201,5.3,7cfd91ddf780
|
||||
30.597,201,7.2,7cfd91ddf780
|
||||
30.714,201,6.6,5bbf259ff136
|
||||
30.822,201,6.9,7cfd91ddf780
|
||||
30.933,201,6.4,7cfd91ddf780
|
||||
31.049,201,3.8,5bbf259ff136
|
||||
31.163,201,4.9,5bbf259ff136
|
||||
31.273,201,5.4,5bbf259ff136
|
||||
31.383,201,5.1,5bbf259ff136
|
||||
31.49,201,5.0,5bbf259ff136
|
||||
31.605,201,5.9,7cfd91ddf780
|
||||
31.717,201,6.5,7cfd91ddf780
|
||||
31.825,201,5.7,7cfd91ddf780
|
||||
31.938,201,5.0,7cfd91ddf780
|
||||
32.053,201,4.8,7cfd91ddf780
|
||||
32.164,201,4.9,7cfd91ddf780
|
||||
32.271,201,4.6,7cfd91ddf780
|
||||
32.378,201,4.7,7cfd91ddf780
|
||||
32.49,201,5.0,7cfd91ddf780
|
||||
32.605,201,4.2,7cfd91ddf780
|
||||
32.717,201,4.1,5bbf259ff136
|
||||
32.828,201,5.4,5bbf259ff136
|
||||
32.937,201,6.0,5bbf259ff136
|
||||
33.048,201,6.2,5bbf259ff136
|
||||
33.163,201,5.3,5bbf259ff136
|
||||
33.276,201,6.7,7cfd91ddf780
|
||||
33.39,201,6.6,7cfd91ddf780
|
||||
33.501,201,5.0,7cfd91ddf780
|
||||
33.616,201,5.3,5bbf259ff136
|
||||
33.722,201,4.9,7cfd91ddf780
|
||||
33.831,201,3.9,7cfd91ddf780
|
||||
33.945,201,5.9,5bbf259ff136
|
||||
34.06,201,5.4,5bbf259ff136
|
||||
34.168,201,5.5,5bbf259ff136
|
||||
34.28,201,5.6,5bbf259ff136
|
||||
34.392,201,3.1,5bbf259ff136
|
||||
34.505,201,5.5,7cfd91ddf780
|
||||
34.621,201,4.7,7cfd91ddf780
|
||||
34.736,201,5.2,5bbf259ff136
|
||||
34.851,201,6.5,5bbf259ff136
|
||||
34.965,201,5.7,7cfd91ddf780
|
||||
35.072,201,4.9,5bbf259ff136
|
||||
35.182,201,6.6,5bbf259ff136
|
||||
35.291,201,4.8,5bbf259ff136
|
||||
35.403,201,6.7,5bbf259ff136
|
||||
35.518,201,6.8,7cfd91ddf780
|
||||
35.627,201,4.7,7cfd91ddf780
|
||||
35.732,201,6.7,5bbf259ff136
|
||||
35.848,201,5.8,7cfd91ddf780
|
||||
35.962,201,6.7,7cfd91ddf780
|
||||
36.073,201,5.2,7cfd91ddf780
|
||||
36.182,201,6.8,7cfd91ddf780
|
||||
36.29,201,6.2,7cfd91ddf780
|
||||
36.405,201,5.0,5bbf259ff136
|
||||
36.52,201,5.0,5bbf259ff136
|
||||
36.634,201,5.0,5bbf259ff136
|
||||
36.747,201,4.6,7cfd91ddf780
|
||||
36.861,201,5.0,7cfd91ddf780
|
||||
36.974,201,5.6,5bbf259ff136
|
||||
37.088,201,4.8,5bbf259ff136
|
||||
37.203,201,5.6,5bbf259ff136
|
||||
37.314,201,5.5,7cfd91ddf780
|
||||
37.43,201,5.7,7cfd91ddf780
|
||||
37.545,201,4.8,7cfd91ddf780
|
||||
37.659,201,4.3,5bbf259ff136
|
||||
37.765,201,5.4,5bbf259ff136
|
||||
37.873,201,5.3,7cfd91ddf780
|
||||
37.981,201,6.1,7cfd91ddf780
|
||||
38.097,201,6.0,5bbf259ff136
|
||||
38.214,201,6.3,7cfd91ddf780
|
||||
38.327,201,5.5,7cfd91ddf780
|
||||
38.44,201,6.0,7cfd91ddf780
|
||||
38.548,201,5.4,7cfd91ddf780
|
||||
38.656,201,6.9,7cfd91ddf780
|
||||
38.765,201,3.5,5bbf259ff136
|
||||
38.868,201,3.5,5bbf259ff136
|
||||
38.981,201,3.7,5bbf259ff136
|
||||
39.088,201,3.1,5bbf259ff136
|
||||
39.2,201,3.6,5bbf259ff136
|
||||
39.308,201,4.0,5bbf259ff136
|
||||
39.414,201,4.3,7cfd91ddf780
|
||||
39.523,201,3.5,7cfd91ddf780
|
||||
39.635,201,4.3,5bbf259ff136
|
||||
39.744,201,4.2,5bbf259ff136
|
||||
39.859,201,4.0,5bbf259ff136
|
||||
39.965,201,3.4,5bbf259ff136
|
||||
40.076,201,7.7,5bbf259ff136
|
||||
40.192,201,6.5,5bbf259ff136
|
||||
40.306,201,5.0,7cfd91ddf780
|
||||
40.414,201,3.5,5bbf259ff136
|
||||
40.518,201,2.6,5bbf259ff136
|
||||
40.623,201,2.6,7cfd91ddf780
|
||||
40.733,201,4.6,7cfd91ddf780
|
||||
40.845,201,4.6,5bbf259ff136
|
||||
40.958,201,4.2,5bbf259ff136
|
||||
41.064,201,4.2,7cfd91ddf780
|
||||
41.171,201,2.8,7cfd91ddf780
|
||||
41.281,201,4.9,7cfd91ddf780
|
||||
41.388,201,4.3,7cfd91ddf780
|
||||
41.497,201,5.0,7cfd91ddf780
|
||||
41.606,201,5.1,7cfd91ddf780
|
||||
41.721,201,2.9,7cfd91ddf780
|
||||
41.829,201,4.8,7cfd91ddf780
|
||||
41.942,201,3.0,7cfd91ddf780
|
||||
42.053,201,5.6,7cfd91ddf780
|
||||
42.164,201,6.5,7cfd91ddf780
|
||||
42.281,201,5.6,5bbf259ff136
|
||||
42.389,201,4.5,5bbf259ff136
|
||||
42.503,201,4.6,5bbf259ff136
|
||||
42.618,201,5.8,7cfd91ddf780
|
||||
42.734,201,5.2,7cfd91ddf780
|
||||
42.849,201,5.9,5bbf259ff136
|
||||
42.959,201,5.0,5bbf259ff136
|
||||
43.066,201,4.9,5bbf259ff136
|
||||
43.181,201,6.2,5bbf259ff136
|
||||
43.289,201,5.7,5bbf259ff136
|
||||
43.4,201,6.0,5bbf259ff136
|
||||
43.516,201,7.1,7cfd91ddf780
|
||||
43.631,201,6.1,7cfd91ddf780
|
||||
43.746,201,6.7,5bbf259ff136
|
||||
43.862,201,5.9,5bbf259ff136
|
||||
43.969,201,5.5,5bbf259ff136
|
||||
44.084,201,5.4,7cfd91ddf780
|
||||
44.2,201,4.6,7cfd91ddf780
|
||||
44.305,201,5.8,7cfd91ddf780
|
||||
44.421,201,6.1,7cfd91ddf780
|
||||
44.53,201,5.2,7cfd91ddf780
|
||||
44.637,201,3.7,7cfd91ddf780
|
||||
44.75,201,3.3,7cfd91ddf780
|
||||
44.855,201,3.8,5bbf259ff136
|
||||
44.961,201,4.7,5bbf259ff136
|
||||
45.072,201,6.1,7cfd91ddf780
|
||||
45.184,201,7.3,5bbf259ff136
|
||||
45.296,201,7.5,7cfd91ddf780
|
||||
45.409,201,5.2,5bbf259ff136
|
||||
45.521,201,5.5,7cfd91ddf780
|
||||
|
@@ -0,0 +1,71 @@
|
||||
{"date": "2026-11-05T19:18:13.470607+00:00", "commit": "252e3e3ffeea5004cfd9dc342e686af1417a77a2",
|
||||
"label": "5bbf259ff136",
|
||||
"action": [
|
||||
"sh",
|
||||
"-c",
|
||||
"scripts/stop-one.sh && docker compose ps -a --format '{{.ID}} {{.Service}} {{.Status}}' api && { scripts/stand-usage.sh & sleep 10; wait; } && scripts/restore.sh"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 15.2,
|
||||
"action_finished_before_load_end": true,
|
||||
"lb_up_before": 2,
|
||||
"lb_up_min": 1,
|
||||
"lb_samples_missing": 0,
|
||||
"detection_seconds": 1.498,
|
||||
"rejoin_seconds": 14.99,
|
||||
"probe": {
|
||||
"attempts": 642,
|
||||
"failed_attempts": 0,
|
||||
"first_failure_s": null,
|
||||
"first_success_s": 0.111,
|
||||
"recovery_s": 0.0,
|
||||
"instances_before": {
|
||||
"7cfd91ddf780": 114,
|
||||
"5bbf259ff136": 119
|
||||
},
|
||||
"instances_during_outage": {
|
||||
"7cfd91ddf780": 121
|
||||
},
|
||||
"instances_after": {
|
||||
"7cfd91ddf780": 149,
|
||||
"5bbf259ff136": 124
|
||||
}
|
||||
},
|
||||
"history": {
|
||||
"confirmed": 642,
|
||||
"stored": 642,
|
||||
"exact_match": true,
|
||||
"unique": true
|
||||
},
|
||||
"lb_counters": {
|
||||
"wretr": 0,
|
||||
"wredis": 0,
|
||||
"econ": 0,
|
||||
"eresp": 0,
|
||||
"hrsp_5xx": 0
|
||||
},
|
||||
"k6": {
|
||||
"requests": 6001,
|
||||
"rps": 100.02,
|
||||
"ok_rps": 100.02,
|
||||
"failed_ratio": 0,
|
||||
"dropped_iterations": 0,
|
||||
"p50_ms": 2.98,
|
||||
"p95_ms": 3.88,
|
||||
"p99_ms": 4.53,
|
||||
"exit": 0,
|
||||
"rate": 100
|
||||
},
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"load_errors_ok": true,
|
||||
"load_delivered": true,
|
||||
"lb_observed": true,
|
||||
"write_recovery_ok": true,
|
||||
"history_preserved": true,
|
||||
"detected": true,
|
||||
"target_excluded": true,
|
||||
"rejoined": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
date: 2026-11-05T19:18:13.470607+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
7cfd91ddf780 api Exited (0) Less than a second ago
|
||||
5bbf259ff136 api Up 3 minutes (healthy)
|
||||
19:18:43 database bytes,messages: 9385651,2542
|
||||
mtusi2026lab3-grade4-20261105-api-2 cpu=23.33% mem=217.6MiB / 512MiB
|
||||
mtusi2026lab3-grade4-20261105-lb-1 cpu=3.14% mem=30.17MiB / 128MiB
|
||||
mtusi2026lab3-grade4-20261105-postgres-1 cpu=6.03% mem=58.73MiB / 1GiB
|
||||
mtusi2026lab3-grade4-20261105-valkey-1 cpu=0.42% mem=12.97MiB / 128MiB
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Starting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Started
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Healthy
|
||||
@@ -0,0 +1,3 @@
|
||||
date: 2026-11-05T19:18:13.470607+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
time="2026-11-05T19:18:15Z" level=info msg=LOAD-START source=console
|
||||
measure: 6001 requests, failed ratio 0
|
||||
@@ -0,0 +1,309 @@
|
||||
{"date": "2026-11-05T19:18:13.470607+00:00", "commit": "252e3e3ffeea5004cfd9dc342e686af1417a77a2",
|
||||
"root_group": {
|
||||
"checks": [
|
||||
{
|
||||
"name": "message 201",
|
||||
"path": "::message 201",
|
||||
"id": "6445aff337e1ade0bc10402fbac79882",
|
||||
"passes": 5614,
|
||||
"fails": 0
|
||||
},
|
||||
{
|
||||
"name": "history 200",
|
||||
"path": "::history 200",
|
||||
"id": "fe27b3b8edd292c7f2170a6357b087d0",
|
||||
"passes": 1388,
|
||||
"fails": 0
|
||||
}
|
||||
],
|
||||
"name": "",
|
||||
"path": "",
|
||||
"id": "d41d8cd98f00b204e9800998ecf8427e",
|
||||
"groups": []
|
||||
},
|
||||
"options": {
|
||||
"summaryTrendStats": [
|
||||
"avg",
|
||||
"min",
|
||||
"med",
|
||||
"p(90)",
|
||||
"p(95)",
|
||||
"p(99)",
|
||||
"max"
|
||||
],
|
||||
"summaryTimeUnit": "",
|
||||
"noColor": false
|
||||
},
|
||||
"state": {
|
||||
"isStdOutTTY": false,
|
||||
"isStdErrTTY": false,
|
||||
"testRunDurationMs": 70538.919963
|
||||
},
|
||||
"metrics": {
|
||||
"http_req_tls_handshaking": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"min": 0,
|
||||
"med": 0,
|
||||
"p(90)": 0,
|
||||
"p(95)": 0,
|
||||
"p(99)": 0,
|
||||
"max": 0,
|
||||
"avg": 0
|
||||
}
|
||||
},
|
||||
"http_req_failed": {
|
||||
"type": "rate",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"rate": 0,
|
||||
"passes": 0,
|
||||
"fails": 7052
|
||||
}
|
||||
},
|
||||
"http_req_duration": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"p(95)": 3.943366299999998,
|
||||
"p(99)": 7.941836829999957,
|
||||
"max": 52.49775,
|
||||
"avg": 3.1087168380601247,
|
||||
"min": 1.647417,
|
||||
"med": 2.9766874999999997,
|
||||
"p(90)": 3.6688584
|
||||
}
|
||||
},
|
||||
"checks": {
|
||||
"type": "rate",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"rate": 1,
|
||||
"passes": 7002,
|
||||
"fails": 0
|
||||
}
|
||||
},
|
||||
"iterations{scenario:measure}": {
|
||||
"type": "counter",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"count": 6001,
|
||||
"rate": 85.07360196537917
|
||||
}
|
||||
},
|
||||
"http_req_duration{expected_response:true}": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"avg": 3.1087168380601247,
|
||||
"min": 1.647417,
|
||||
"med": 2.9766874999999997,
|
||||
"p(90)": 3.6688584,
|
||||
"p(95)": 3.943366299999998,
|
||||
"p(99)": 7.941836829999957,
|
||||
"max": 52.49775
|
||||
}
|
||||
},
|
||||
"http_req_sending": {
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"max": 0.354375,
|
||||
"avg": 0.01261951956891675,
|
||||
"min": 0.00275,
|
||||
"med": 0.011459,
|
||||
"p(90)": 0.015125,
|
||||
"p(95)": 0.01775,
|
||||
"p(99)": 0.033123339999999994
|
||||
},
|
||||
"type": "trend"
|
||||
},
|
||||
"http_req_receiving": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"avg": 0.022591304452637576,
|
||||
"min": 0.008958,
|
||||
"med": 0.019917,
|
||||
"p(90)": 0.032,
|
||||
"p(95)": 0.03826844999999999,
|
||||
"p(99)": 0.06532848999999998,
|
||||
"max": 0.210875
|
||||
}
|
||||
},
|
||||
"data_sent": {
|
||||
"values": {
|
||||
"count": 2053317,
|
||||
"rate": 29108.994028786277
|
||||
},
|
||||
"type": "counter",
|
||||
"contains": "data"
|
||||
},
|
||||
"data_received": {
|
||||
"values": {
|
||||
"count": 17042097,
|
||||
"rate": 241598.4963894988
|
||||
},
|
||||
"type": "counter",
|
||||
"contains": "data"
|
||||
},
|
||||
"http_req_duration{scenario:measure}": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"p(95)": 3.862542,
|
||||
"p(99)": 4.473916,
|
||||
"max": 52.49775,
|
||||
"avg": 3.049362646058984,
|
||||
"min": 1.684875,
|
||||
"med": 2.9745,
|
||||
"p(90)": 3.631833
|
||||
}
|
||||
},
|
||||
"http_req_connecting": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"max": 0.224708,
|
||||
"avg": 0.00034415215541690295,
|
||||
"min": 0,
|
||||
"med": 0,
|
||||
"p(90)": 0,
|
||||
"p(95)": 0,
|
||||
"p(99)": 0
|
||||
}
|
||||
},
|
||||
"vus": {
|
||||
"type": "gauge",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"value": 1,
|
||||
"min": 0,
|
||||
"max": 1
|
||||
}
|
||||
},
|
||||
"http_req_failed{scenario:measure}": {
|
||||
"values": {
|
||||
"fails": 6001,
|
||||
"rate": 0,
|
||||
"passes": 0
|
||||
},
|
||||
"type": "rate",
|
||||
"contains": "default"
|
||||
},
|
||||
"dropped_iterations{scenario:measure}": {
|
||||
"type": "counter",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"count": 0,
|
||||
"rate": 0
|
||||
}
|
||||
},
|
||||
"http_req_duration{scenario:measure,name:post_message}": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"med": 2.940125,
|
||||
"p(90)": 3.551959,
|
||||
"p(95)": 3.786104,
|
||||
"p(99)": 4.346612499999998,
|
||||
"max": 52.49775,
|
||||
"avg": 3.0002135637081597,
|
||||
"min": 1.684875
|
||||
}
|
||||
},
|
||||
"http_req_waiting": {
|
||||
"values": {
|
||||
"max": 52.465792,
|
||||
"avg": 3.073506014038576,
|
||||
"min": 1.628417,
|
||||
"med": 2.941875,
|
||||
"p(90)": 3.6291869,
|
||||
"p(95)": 3.8983437499999996,
|
||||
"p(99)": 7.918076749999957
|
||||
},
|
||||
"type": "trend",
|
||||
"contains": "time"
|
||||
},
|
||||
"http_reqs{scenario:measure}": {
|
||||
"type": "counter",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"count": 6001,
|
||||
"rate": 85.07360196537917
|
||||
}
|
||||
},
|
||||
"dropped_iterations": {
|
||||
"type": "counter",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"count": 0,
|
||||
"rate": 0
|
||||
}
|
||||
},
|
||||
"iterations": {
|
||||
"type": "counter",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"count": 7002,
|
||||
"rate": 99.26434943535826
|
||||
}
|
||||
},
|
||||
"http_req_blocked": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"min": 0.000708,
|
||||
"med": 0.001667,
|
||||
"p(90)": 0.0025,
|
||||
"p(95)": 0.002959,
|
||||
"p(99)": 0.006083,
|
||||
"max": 1.817417,
|
||||
"avg": 0.0025302468803176624
|
||||
}
|
||||
},
|
||||
"vus_max": {
|
||||
"type": "gauge",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"min": 20,
|
||||
"max": 20,
|
||||
"value": 20
|
||||
}
|
||||
},
|
||||
"http_reqs": {
|
||||
"type": "counter",
|
||||
"contains": "default",
|
||||
"values": {
|
||||
"count": 7052,
|
||||
"rate": 99.97317798031226
|
||||
}
|
||||
},
|
||||
"iteration_duration": {
|
||||
"values": {
|
||||
"avg": 3.1430217764924397,
|
||||
"min": 1.686459,
|
||||
"med": 3.0623125,
|
||||
"p(90)": 3.7471503,
|
||||
"p(95)": 4.001064599999999,
|
||||
"p(99)": 4.828713,
|
||||
"max": 52.592501
|
||||
},
|
||||
"type": "trend",
|
||||
"contains": "time"
|
||||
},
|
||||
"http_req_duration{scenario:measure,name:get_history}": {
|
||||
"type": "trend",
|
||||
"contains": "time",
|
||||
"values": {
|
||||
"avg": 3.2480653647058872,
|
||||
"min": 1.856375,
|
||||
"med": 3.166271,
|
||||
"p(90)": 3.8746452,
|
||||
"p(95)": 4.109600299999999,
|
||||
"p(99)": 5.1775943700000004,
|
||||
"max": 17.655583
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,663 @@
|
||||
# date: 2026-11-05T19:18:13.470607+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
t_rel_s,up
|
||||
-25.852,2
|
||||
-25.745,2
|
||||
-25.643,2
|
||||
-25.532,2
|
||||
-25.426,2
|
||||
-25.319,2
|
||||
-25.21,2
|
||||
-25.1,2
|
||||
-24.995,2
|
||||
-24.894,2
|
||||
-24.79,2
|
||||
-24.686,2
|
||||
-24.577,2
|
||||
-24.469,2
|
||||
-24.358,2
|
||||
-24.255,2
|
||||
-24.148,2
|
||||
-24.042,2
|
||||
-23.939,2
|
||||
-23.836,2
|
||||
-23.727,2
|
||||
-23.625,2
|
||||
-23.521,2
|
||||
-23.412,2
|
||||
-23.303,2
|
||||
-23.192,2
|
||||
-23.088,2
|
||||
-22.978,2
|
||||
-22.868,2
|
||||
-22.757,2
|
||||
-22.648,2
|
||||
-22.541,2
|
||||
-22.44,2
|
||||
-22.33,2
|
||||
-22.227,2
|
||||
-22.121,2
|
||||
-22.019,2
|
||||
-21.908,2
|
||||
-21.804,2
|
||||
-21.699,2
|
||||
-21.588,2
|
||||
-21.476,2
|
||||
-21.363,2
|
||||
-21.259,2
|
||||
-21.148,2
|
||||
-21.036,2
|
||||
-20.928,2
|
||||
-20.82,2
|
||||
-20.709,2
|
||||
-20.604,2
|
||||
-20.493,2
|
||||
-20.381,2
|
||||
-20.269,2
|
||||
-20.158,2
|
||||
-20.053,2
|
||||
-19.944,2
|
||||
-19.837,2
|
||||
-19.729,2
|
||||
-19.619,2
|
||||
-19.511,2
|
||||
-19.406,2
|
||||
-19.304,2
|
||||
-19.191,2
|
||||
-19.083,2
|
||||
-18.972,2
|
||||
-18.869,2
|
||||
-18.761,2
|
||||
-18.649,2
|
||||
-18.542,2
|
||||
-18.43,2
|
||||
-18.318,2
|
||||
-18.216,2
|
||||
-18.114,2
|
||||
-18.005,2
|
||||
-17.899,2
|
||||
-17.792,2
|
||||
-17.685,2
|
||||
-17.581,2
|
||||
-17.472,2
|
||||
-17.359,2
|
||||
-17.253,2
|
||||
-17.148,2
|
||||
-17.043,2
|
||||
-16.936,2
|
||||
-16.823,2
|
||||
-16.712,2
|
||||
-16.602,2
|
||||
-16.495,2
|
||||
-16.386,2
|
||||
-16.276,2
|
||||
-16.164,2
|
||||
-16.061,2
|
||||
-15.957,2
|
||||
-15.846,2
|
||||
-15.736,2
|
||||
-15.632,2
|
||||
-15.526,2
|
||||
-15.422,2
|
||||
-15.311,2
|
||||
-15.205,2
|
||||
-15.101,2
|
||||
-14.991,2
|
||||
-14.879,2
|
||||
-14.768,2
|
||||
-14.661,2
|
||||
-14.554,2
|
||||
-14.444,2
|
||||
-14.335,2
|
||||
-14.228,2
|
||||
-14.123,2
|
||||
-14.018,2
|
||||
-13.906,2
|
||||
-13.792,2
|
||||
-13.68,2
|
||||
-13.574,2
|
||||
-13.465,2
|
||||
-13.358,2
|
||||
-13.247,2
|
||||
-13.141,2
|
||||
-13.029,2
|
||||
-12.922,2
|
||||
-12.809,2
|
||||
-12.697,2
|
||||
-12.586,2
|
||||
-12.474,2
|
||||
-12.37,2
|
||||
-12.26,2
|
||||
-12.154,2
|
||||
-12.041,2
|
||||
-11.935,2
|
||||
-11.824,2
|
||||
-11.719,2
|
||||
-11.608,2
|
||||
-11.506,2
|
||||
-11.397,2
|
||||
-11.283,2
|
||||
-11.176,2
|
||||
-11.07,2
|
||||
-10.962,2
|
||||
-10.851,2
|
||||
-10.741,2
|
||||
-10.629,2
|
||||
-10.519,2
|
||||
-10.408,2
|
||||
-10.296,2
|
||||
-10.185,2
|
||||
-10.078,2
|
||||
-9.975,2
|
||||
-9.87,2
|
||||
-9.76,2
|
||||
-9.653,2
|
||||
-9.54,2
|
||||
-9.43,2
|
||||
-9.319,2
|
||||
-9.211,2
|
||||
-9.102,2
|
||||
-8.989,2
|
||||
-8.876,2
|
||||
-8.765,2
|
||||
-8.656,2
|
||||
-8.546,2
|
||||
-8.437,2
|
||||
-8.328,2
|
||||
-8.22,2
|
||||
-8.106,2
|
||||
-7.995,2
|
||||
-7.886,2
|
||||
-7.782,2
|
||||
-7.67,2
|
||||
-7.563,2
|
||||
-7.452,2
|
||||
-7.345,2
|
||||
-7.236,2
|
||||
-7.13,2
|
||||
-7.018,2
|
||||
-6.911,2
|
||||
-6.798,2
|
||||
-6.686,2
|
||||
-6.579,2
|
||||
-6.471,2
|
||||
-6.367,2
|
||||
-6.256,2
|
||||
-6.149,2
|
||||
-6.042,2
|
||||
-5.934,2
|
||||
-5.828,2
|
||||
-5.72,2
|
||||
-5.616,2
|
||||
-5.503,2
|
||||
-5.395,2
|
||||
-5.286,2
|
||||
-5.178,2
|
||||
-5.067,2
|
||||
-4.961,2
|
||||
-4.855,2
|
||||
-4.742,2
|
||||
-4.635,2
|
||||
-4.526,2
|
||||
-4.418,2
|
||||
-4.304,2
|
||||
-4.195,2
|
||||
-4.083,2
|
||||
-3.971,2
|
||||
-3.86,2
|
||||
-3.755,2
|
||||
-3.641,2
|
||||
-3.532,2
|
||||
-3.428,2
|
||||
-3.32,2
|
||||
-3.209,2
|
||||
-3.098,2
|
||||
-2.994,2
|
||||
-2.882,2
|
||||
-2.777,2
|
||||
-2.665,2
|
||||
-2.553,2
|
||||
-2.446,2
|
||||
-2.337,2
|
||||
-2.228,2
|
||||
-2.124,2
|
||||
-2.018,2
|
||||
-1.908,2
|
||||
-1.803,2
|
||||
-1.693,2
|
||||
-1.587,2
|
||||
-1.476,2
|
||||
-1.37,2
|
||||
-1.261,2
|
||||
-1.149,2
|
||||
-1.037,2
|
||||
-0.929,2
|
||||
-0.816,2
|
||||
-0.713,2
|
||||
-0.601,2
|
||||
-0.495,2
|
||||
-0.387,2
|
||||
-0.277,2
|
||||
-0.17,2
|
||||
-0.066,2
|
||||
0.036,2
|
||||
0.142,2
|
||||
0.253,2
|
||||
0.358,2
|
||||
0.461,2
|
||||
0.571,2
|
||||
0.675,2
|
||||
0.78,2
|
||||
0.884,1
|
||||
0.992,1
|
||||
1.098,1
|
||||
1.205,1
|
||||
1.314,1
|
||||
1.426,1
|
||||
1.538,1
|
||||
1.645,1
|
||||
1.755,1
|
||||
1.864,1
|
||||
1.972,1
|
||||
2.078,1
|
||||
2.188,1
|
||||
2.302,1
|
||||
2.411,1
|
||||
2.522,1
|
||||
2.626,1
|
||||
2.737,1
|
||||
2.838,1
|
||||
2.941,1
|
||||
3.049,1
|
||||
3.156,1
|
||||
3.268,1
|
||||
3.377,1
|
||||
3.49,1
|
||||
3.604,1
|
||||
3.716,1
|
||||
3.825,1
|
||||
3.937,1
|
||||
4.044,1
|
||||
4.154,1
|
||||
4.259,1
|
||||
4.369,1
|
||||
4.479,1
|
||||
4.588,1
|
||||
4.693,1
|
||||
4.8,1
|
||||
4.911,1
|
||||
5.018,1
|
||||
5.127,1
|
||||
5.239,1
|
||||
5.35,1
|
||||
5.457,1
|
||||
5.563,1
|
||||
5.664,1
|
||||
5.767,1
|
||||
5.871,1
|
||||
5.976,1
|
||||
6.086,1
|
||||
6.198,1
|
||||
6.306,1
|
||||
6.413,1
|
||||
6.525,1
|
||||
6.638,1
|
||||
6.747,1
|
||||
6.859,1
|
||||
6.97,1
|
||||
7.081,1
|
||||
7.189,1
|
||||
7.302,1
|
||||
7.411,1
|
||||
7.518,1
|
||||
7.631,1
|
||||
7.74,1
|
||||
7.847,1
|
||||
7.96,1
|
||||
8.071,1
|
||||
8.184,1
|
||||
8.288,1
|
||||
8.396,1
|
||||
8.501,1
|
||||
8.605,1
|
||||
8.711,1
|
||||
8.825,1
|
||||
8.93,1
|
||||
9.034,1
|
||||
9.147,1
|
||||
9.259,1
|
||||
9.367,1
|
||||
9.48,1
|
||||
9.584,1
|
||||
9.687,1
|
||||
9.792,1
|
||||
9.904,1
|
||||
10.011,1
|
||||
10.115,1
|
||||
10.225,1
|
||||
10.327,1
|
||||
10.429,1
|
||||
10.539,1
|
||||
10.64,1
|
||||
10.752,1
|
||||
10.862,1
|
||||
10.967,1
|
||||
11.073,1
|
||||
11.185,1
|
||||
11.297,1
|
||||
11.411,1
|
||||
11.521,1
|
||||
11.631,1
|
||||
11.737,1
|
||||
11.85,1
|
||||
11.955,1
|
||||
12.063,1
|
||||
12.175,1
|
||||
12.288,1
|
||||
12.397,1
|
||||
12.502,1
|
||||
12.616,1
|
||||
12.72,1
|
||||
12.83,1
|
||||
12.934,1
|
||||
13.042,1
|
||||
13.151,1
|
||||
13.264,1
|
||||
13.371,1
|
||||
13.485,1
|
||||
13.587,1
|
||||
13.696,1
|
||||
13.807,1
|
||||
13.912,1
|
||||
14.024,1
|
||||
14.136,1
|
||||
14.237,1
|
||||
14.346,1
|
||||
14.46,1
|
||||
14.571,1
|
||||
14.678,1
|
||||
14.783,1
|
||||
14.885,2
|
||||
14.996,2
|
||||
15.101,2
|
||||
15.203,2
|
||||
15.309,2
|
||||
15.423,2
|
||||
15.533,2
|
||||
15.647,2
|
||||
15.759,2
|
||||
15.87,2
|
||||
15.976,2
|
||||
16.088,2
|
||||
16.196,2
|
||||
16.305,2
|
||||
16.411,2
|
||||
16.523,2
|
||||
16.629,2
|
||||
16.742,2
|
||||
16.854,2
|
||||
16.962,2
|
||||
17.067,2
|
||||
17.181,2
|
||||
17.288,2
|
||||
17.397,2
|
||||
17.509,2
|
||||
17.621,2
|
||||
17.733,2
|
||||
17.84,2
|
||||
17.946,2
|
||||
18.054,2
|
||||
18.163,2
|
||||
18.267,2
|
||||
18.379,2
|
||||
18.492,2
|
||||
18.606,2
|
||||
18.71,2
|
||||
18.819,2
|
||||
18.93,2
|
||||
19.038,2
|
||||
19.14,2
|
||||
19.242,2
|
||||
19.346,2
|
||||
19.455,2
|
||||
19.565,2
|
||||
19.672,2
|
||||
19.786,2
|
||||
19.891,2
|
||||
20.0,2
|
||||
20.103,2
|
||||
20.211,2
|
||||
20.315,2
|
||||
20.42,2
|
||||
20.529,2
|
||||
20.64,2
|
||||
20.747,2
|
||||
20.854,2
|
||||
20.965,2
|
||||
21.073,2
|
||||
21.181,2
|
||||
21.286,2
|
||||
21.396,2
|
||||
21.505,2
|
||||
21.618,2
|
||||
21.73,2
|
||||
21.843,2
|
||||
21.948,2
|
||||
22.055,2
|
||||
22.16,2
|
||||
22.273,2
|
||||
22.385,2
|
||||
22.496,2
|
||||
22.602,2
|
||||
22.712,2
|
||||
22.82,2
|
||||
22.93,2
|
||||
23.042,2
|
||||
23.146,2
|
||||
23.253,2
|
||||
23.36,2
|
||||
23.469,2
|
||||
23.581,2
|
||||
23.69,2
|
||||
23.803,2
|
||||
23.917,2
|
||||
24.025,2
|
||||
24.13,2
|
||||
24.236,2
|
||||
24.348,2
|
||||
24.455,2
|
||||
24.567,2
|
||||
24.678,2
|
||||
24.786,2
|
||||
24.9,2
|
||||
25.013,2
|
||||
25.126,2
|
||||
25.241,2
|
||||
25.353,2
|
||||
25.463,2
|
||||
25.574,2
|
||||
25.686,2
|
||||
25.796,2
|
||||
25.908,2
|
||||
26.017,2
|
||||
26.129,2
|
||||
26.239,2
|
||||
26.35,2
|
||||
26.454,2
|
||||
26.563,2
|
||||
26.672,2
|
||||
26.784,2
|
||||
26.889,2
|
||||
26.994,2
|
||||
27.103,2
|
||||
27.212,2
|
||||
27.325,2
|
||||
27.437,2
|
||||
27.545,2
|
||||
27.658,2
|
||||
27.762,2
|
||||
27.874,2
|
||||
27.978,2
|
||||
28.085,2
|
||||
28.192,2
|
||||
28.301,2
|
||||
28.412,2
|
||||
28.524,2
|
||||
28.638,2
|
||||
28.749,2
|
||||
28.856,2
|
||||
28.966,2
|
||||
29.072,2
|
||||
29.182,2
|
||||
29.29,2
|
||||
29.394,2
|
||||
29.499,2
|
||||
29.607,2
|
||||
29.711,2
|
||||
29.821,2
|
||||
29.929,2
|
||||
30.035,2
|
||||
30.144,2
|
||||
30.255,2
|
||||
30.367,2
|
||||
30.472,2
|
||||
30.585,2
|
||||
30.691,2
|
||||
30.799,2
|
||||
30.911,2
|
||||
31.021,2
|
||||
31.13,2
|
||||
31.238,2
|
||||
31.352,2
|
||||
31.462,2
|
||||
31.576,2
|
||||
31.69,2
|
||||
31.797,2
|
||||
31.909,2
|
||||
32.021,2
|
||||
32.129,2
|
||||
32.233,2
|
||||
32.337,2
|
||||
32.444,2
|
||||
32.555,2
|
||||
32.658,2
|
||||
32.769,2
|
||||
32.881,2
|
||||
32.987,2
|
||||
33.095,2
|
||||
33.209,2
|
||||
33.317,2
|
||||
33.42,2
|
||||
33.532,2
|
||||
33.64,2
|
||||
33.751,2
|
||||
33.86,2
|
||||
33.963,2
|
||||
34.074,2
|
||||
34.179,2
|
||||
34.282,2
|
||||
34.387,2
|
||||
34.495,2
|
||||
34.601,2
|
||||
34.709,2
|
||||
34.821,2
|
||||
34.926,2
|
||||
35.037,2
|
||||
35.141,2
|
||||
35.244,2
|
||||
35.354,2
|
||||
35.462,2
|
||||
35.575,2
|
||||
35.687,2
|
||||
35.796,2
|
||||
35.908,2
|
||||
36.013,2
|
||||
36.12,2
|
||||
36.233,2
|
||||
36.34,2
|
||||
36.446,2
|
||||
36.553,2
|
||||
36.663,2
|
||||
36.771,2
|
||||
36.881,2
|
||||
36.989,2
|
||||
37.095,2
|
||||
37.208,2
|
||||
37.312,2
|
||||
37.424,2
|
||||
37.534,2
|
||||
37.644,2
|
||||
37.748,2
|
||||
37.859,2
|
||||
37.964,2
|
||||
38.068,2
|
||||
38.173,2
|
||||
38.28,2
|
||||
38.392,2
|
||||
38.496,2
|
||||
38.601,2
|
||||
38.712,2
|
||||
38.82,2
|
||||
38.933,2
|
||||
39.045,2
|
||||
39.155,2
|
||||
39.263,2
|
||||
39.376,2
|
||||
39.49,2
|
||||
39.606,2
|
||||
39.72,2
|
||||
39.829,2
|
||||
39.939,2
|
||||
40.042,2
|
||||
40.154,2
|
||||
40.259,2
|
||||
40.365,2
|
||||
40.478,2
|
||||
40.582,2
|
||||
40.692,2
|
||||
40.796,2
|
||||
40.907,2
|
||||
41.015,2
|
||||
41.118,2
|
||||
41.228,2
|
||||
41.338,2
|
||||
41.445,2
|
||||
41.551,2
|
||||
41.662,2
|
||||
41.774,2
|
||||
41.882,2
|
||||
41.993,2
|
||||
42.099,2
|
||||
42.204,2
|
||||
42.312,2
|
||||
42.419,2
|
||||
42.527,2
|
||||
42.637,2
|
||||
42.739,2
|
||||
42.85,2
|
||||
42.961,2
|
||||
43.068,2
|
||||
43.176,2
|
||||
43.278,2
|
||||
43.39,2
|
||||
43.494,2
|
||||
43.599,2
|
||||
43.71,2
|
||||
43.816,2
|
||||
43.92,2
|
||||
44.025,2
|
||||
44.128,2
|
||||
44.233,2
|
||||
44.337,2
|
||||
44.445,2
|
||||
44.552,2
|
||||
44.663,2
|
||||
44.77,2
|
||||
44.881,2
|
||||
44.988,2
|
||||
45.1,2
|
||||
45.203,2
|
||||
45.312,2
|
||||
45.416,2
|
||||
45.523,2
|
||||
45.634,2
|
||||
45.737,2
|
||||
|
@@ -0,0 +1,647 @@
|
||||
# date: 2026-11-05T19:18:13.470607+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
t_rel_s,status,latency_ms,instance
|
||||
-25.852,201,5.2,5bbf259ff136
|
||||
-25.744,201,9.9,7cfd91ddf780
|
||||
-25.632,201,5.8,5bbf259ff136
|
||||
-25.522,201,3.8,7cfd91ddf780
|
||||
-25.411,201,12.4,7cfd91ddf780
|
||||
-25.288,201,3.8,7cfd91ddf780
|
||||
-25.181,201,5.8,5bbf259ff136
|
||||
-25.074,201,3.9,5bbf259ff136
|
||||
-24.97,201,3.4,5bbf259ff136
|
||||
-24.858,201,3.5,5bbf259ff136
|
||||
-24.752,201,3.9,7cfd91ddf780
|
||||
-24.641,201,6.8,5bbf259ff136
|
||||
-24.525,201,4.5,5bbf259ff136
|
||||
-24.411,201,4.0,7cfd91ddf780
|
||||
-24.302,201,3.2,5bbf259ff136
|
||||
-24.192,201,2.8,5bbf259ff136
|
||||
-24.087,201,3.0,5bbf259ff136
|
||||
-23.974,201,5.0,5bbf259ff136
|
||||
-23.859,201,5.2,7cfd91ddf780
|
||||
-23.753,201,5.8,5bbf259ff136
|
||||
-23.644,201,4.1,5bbf259ff136
|
||||
-23.537,201,3.4,5bbf259ff136
|
||||
-23.426,201,3.4,5bbf259ff136
|
||||
-23.32,201,3.4,5bbf259ff136
|
||||
-23.21,201,3.2,5bbf259ff136
|
||||
-23.099,201,4.2,5bbf259ff136
|
||||
-22.994,201,4.0,7cfd91ddf780
|
||||
-22.89,201,3.0,7cfd91ddf780
|
||||
-22.777,201,3.0,7cfd91ddf780
|
||||
-22.673,201,3.1,5bbf259ff136
|
||||
-22.56,201,8.6,7cfd91ddf780
|
||||
-22.444,201,4.4,7cfd91ddf780
|
||||
-22.33,201,3.6,5bbf259ff136
|
||||
-22.223,201,2.7,7cfd91ddf780
|
||||
-22.12,201,3.6,7cfd91ddf780
|
||||
-22.016,201,2.8,5bbf259ff136
|
||||
-21.909,201,7.4,5bbf259ff136
|
||||
-21.791,201,4.0,7cfd91ddf780
|
||||
-21.678,201,5.2,7cfd91ddf780
|
||||
-21.571,201,5.3,5bbf259ff136
|
||||
-21.458,201,5.3,7cfd91ddf780
|
||||
-21.343,201,5.7,7cfd91ddf780
|
||||
-21.227,201,5.0,5bbf259ff136
|
||||
-21.12,201,5.7,5bbf259ff136
|
||||
-21.009,201,4.8,5bbf259ff136
|
||||
-20.894,201,5.2,5bbf259ff136
|
||||
-20.787,201,5.9,5bbf259ff136
|
||||
-20.676,201,5.1,5bbf259ff136
|
||||
-20.569,201,5.8,5bbf259ff136
|
||||
-20.461,201,4.7,5bbf259ff136
|
||||
-20.355,201,4.5,7cfd91ddf780
|
||||
-20.243,201,4.7,5bbf259ff136
|
||||
-20.128,201,3.5,5bbf259ff136
|
||||
-20.015,201,4.0,5bbf259ff136
|
||||
-19.91,201,5.1,5bbf259ff136
|
||||
-19.795,201,3.7,5bbf259ff136
|
||||
-19.683,201,5.2,5bbf259ff136
|
||||
-19.569,201,6.1,7cfd91ddf780
|
||||
-19.463,201,6.1,7cfd91ddf780
|
||||
-19.35,201,4.4,7cfd91ddf780
|
||||
-19.245,201,3.9,5bbf259ff136
|
||||
-19.137,201,3.7,5bbf259ff136
|
||||
-19.029,201,3.4,5bbf259ff136
|
||||
-18.925,201,4.8,7cfd91ddf780
|
||||
-18.811,201,5.3,5bbf259ff136
|
||||
-18.701,201,5.2,5bbf259ff136
|
||||
-18.588,201,4.5,5bbf259ff136
|
||||
-18.477,201,5.4,5bbf259ff136
|
||||
-18.362,201,5.6,7cfd91ddf780
|
||||
-18.25,201,4.7,7cfd91ddf780
|
||||
-18.136,201,5.0,7cfd91ddf780
|
||||
-18.022,201,5.6,5bbf259ff136
|
||||
-17.91,201,5.7,5bbf259ff136
|
||||
-17.794,201,5.1,5bbf259ff136
|
||||
-17.681,201,5.1,7cfd91ddf780
|
||||
-17.575,201,6.1,5bbf259ff136
|
||||
-17.461,201,5.2,7cfd91ddf780
|
||||
-17.348,201,5.9,7cfd91ddf780
|
||||
-17.238,201,4.8,7cfd91ddf780
|
||||
-17.126,201,5.6,7cfd91ddf780
|
||||
-17.011,201,6.3,5bbf259ff136
|
||||
-16.898,201,5.2,5bbf259ff136
|
||||
-16.785,201,5.4,5bbf259ff136
|
||||
-16.671,201,5.4,7cfd91ddf780
|
||||
-16.56,201,4.4,7cfd91ddf780
|
||||
-16.453,201,4.8,5bbf259ff136
|
||||
-16.342,201,6.1,7cfd91ddf780
|
||||
-16.226,201,4.5,7cfd91ddf780
|
||||
-16.118,201,4.7,7cfd91ddf780
|
||||
-16.009,201,5.1,7cfd91ddf780
|
||||
-15.898,201,5.1,7cfd91ddf780
|
||||
-15.789,201,5.6,7cfd91ddf780
|
||||
-15.673,201,4.5,7cfd91ddf780
|
||||
-15.567,201,5.1,7cfd91ddf780
|
||||
-15.453,201,5.1,5bbf259ff136
|
||||
-15.339,201,6.0,5bbf259ff136
|
||||
-15.233,201,5.6,5bbf259ff136
|
||||
-15.117,201,3.4,5bbf259ff136
|
||||
-15.004,201,10.7,5bbf259ff136
|
||||
-14.886,201,6.0,5bbf259ff136
|
||||
-14.773,201,5.8,5bbf259ff136
|
||||
-14.659,201,5.1,7cfd91ddf780
|
||||
-14.548,201,4.0,7cfd91ddf780
|
||||
-14.437,201,4.3,7cfd91ddf780
|
||||
-14.328,201,3.7,7cfd91ddf780
|
||||
-14.217,201,3.2,7cfd91ddf780
|
||||
-14.106,201,5.6,7cfd91ddf780
|
||||
-13.997,201,5.7,7cfd91ddf780
|
||||
-13.886,201,4.7,7cfd91ddf780
|
||||
-13.771,201,5.3,5bbf259ff136
|
||||
-13.659,201,4.6,5bbf259ff136
|
||||
-13.545,201,6.1,5bbf259ff136
|
||||
-13.437,201,5.0,5bbf259ff136
|
||||
-13.328,201,4.8,5bbf259ff136
|
||||
-13.221,201,4.7,5bbf259ff136
|
||||
-13.11,201,4.8,5bbf259ff136
|
||||
-12.995,201,5.4,5bbf259ff136
|
||||
-12.886,201,5.8,5bbf259ff136
|
||||
-12.771,201,4.9,7cfd91ddf780
|
||||
-12.66,201,5.4,7cfd91ddf780
|
||||
-12.553,201,6.2,5bbf259ff136
|
||||
-12.438,201,5.3,7cfd91ddf780
|
||||
-12.322,201,4.5,5bbf259ff136
|
||||
-12.215,201,5.2,7cfd91ddf780
|
||||
-12.1,201,5.2,5bbf259ff136
|
||||
-11.987,201,4.8,5bbf259ff136
|
||||
-11.878,201,5.2,5bbf259ff136
|
||||
-11.766,201,5.1,5bbf259ff136
|
||||
-11.657,201,4.4,5bbf259ff136
|
||||
-11.545,201,6.1,5bbf259ff136
|
||||
-11.436,201,4.6,5bbf259ff136
|
||||
-11.325,201,5.4,5bbf259ff136
|
||||
-11.209,201,4.7,7cfd91ddf780
|
||||
-11.098,201,5.5,7cfd91ddf780
|
||||
-10.982,201,5.2,5bbf259ff136
|
||||
-10.87,201,5.4,5bbf259ff136
|
||||
-10.76,201,5.7,5bbf259ff136
|
||||
-10.646,201,6.0,5bbf259ff136
|
||||
-10.535,201,5.0,5bbf259ff136
|
||||
-10.425,201,4.7,5bbf259ff136
|
||||
-10.311,201,5.4,7cfd91ddf780
|
||||
-10.2,201,4.5,7cfd91ddf780
|
||||
-10.085,201,5.1,7cfd91ddf780
|
||||
-9.974,201,4.6,7cfd91ddf780
|
||||
-9.864,201,3.1,7cfd91ddf780
|
||||
-9.753,201,3.5,7cfd91ddf780
|
||||
-9.649,201,4.3,7cfd91ddf780
|
||||
-9.536,201,4.2,7cfd91ddf780
|
||||
-9.427,201,4.4,7cfd91ddf780
|
||||
-9.319,201,6.4,7cfd91ddf780
|
||||
-9.211,201,6.6,7cfd91ddf780
|
||||
-9.101,201,4.1,7cfd91ddf780
|
||||
-8.989,201,5.0,7cfd91ddf780
|
||||
-8.876,201,5.0,7cfd91ddf780
|
||||
-8.765,201,6.1,7cfd91ddf780
|
||||
-8.653,201,5.9,5bbf259ff136
|
||||
-8.537,201,6.2,5bbf259ff136
|
||||
-8.426,201,5.2,5bbf259ff136
|
||||
-8.312,201,5.0,5bbf259ff136
|
||||
-8.2,201,6.5,7cfd91ddf780
|
||||
-8.088,201,4.4,7cfd91ddf780
|
||||
-7.973,201,4.4,7cfd91ddf780
|
||||
-7.861,201,5.0,5bbf259ff136
|
||||
-7.746,201,5.8,5bbf259ff136
|
||||
-7.636,201,5.9,5bbf259ff136
|
||||
-7.52,201,5.3,7cfd91ddf780
|
||||
-7.411,201,5.2,7cfd91ddf780
|
||||
-7.298,201,4.9,7cfd91ddf780
|
||||
-7.186,201,5.1,7cfd91ddf780
|
||||
-7.075,201,5.5,7cfd91ddf780
|
||||
-6.966,201,4.8,7cfd91ddf780
|
||||
-6.853,201,7.0,5bbf259ff136
|
||||
-6.741,201,5.7,5bbf259ff136
|
||||
-6.632,201,4.9,5bbf259ff136
|
||||
-6.517,201,5.1,5bbf259ff136
|
||||
-6.402,201,5.1,7cfd91ddf780
|
||||
-6.287,201,4.3,7cfd91ddf780
|
||||
-6.176,201,5.5,7cfd91ddf780
|
||||
-6.06,201,5.7,5bbf259ff136
|
||||
-5.945,201,5.3,5bbf259ff136
|
||||
-5.829,201,5.0,7cfd91ddf780
|
||||
-5.719,201,4.2,7cfd91ddf780
|
||||
-5.604,201,5.3,7cfd91ddf780
|
||||
-5.49,201,4.7,5bbf259ff136
|
||||
-5.385,201,3.9,7cfd91ddf780
|
||||
-5.28,201,4.5,7cfd91ddf780
|
||||
-5.171,201,4.4,7cfd91ddf780
|
||||
-5.058,201,5.1,7cfd91ddf780
|
||||
-4.951,201,4.9,7cfd91ddf780
|
||||
-4.845,201,6.2,5bbf259ff136
|
||||
-4.729,201,2.9,7cfd91ddf780
|
||||
-4.626,201,3.3,5bbf259ff136
|
||||
-4.516,201,3.9,5bbf259ff136
|
||||
-4.412,201,4.6,5bbf259ff136
|
||||
-4.303,201,5.2,5bbf259ff136
|
||||
-4.194,201,4.7,7cfd91ddf780
|
||||
-4.089,201,4.7,7cfd91ddf780
|
||||
-3.974,201,5.0,7cfd91ddf780
|
||||
-3.862,201,5.4,5bbf259ff136
|
||||
-3.755,201,6.0,7cfd91ddf780
|
||||
-3.641,201,6.5,5bbf259ff136
|
||||
-3.532,201,5.1,5bbf259ff136
|
||||
-3.418,201,4.7,5bbf259ff136
|
||||
-3.305,201,4.8,5bbf259ff136
|
||||
-3.195,201,5.7,5bbf259ff136
|
||||
-3.085,201,4.4,5bbf259ff136
|
||||
-2.975,201,5.2,5bbf259ff136
|
||||
-2.862,201,4.9,7cfd91ddf780
|
||||
-2.748,201,4.5,7cfd91ddf780
|
||||
-2.637,201,4.6,7cfd91ddf780
|
||||
-2.529,201,6.1,7cfd91ddf780
|
||||
-2.413,201,5.2,5bbf259ff136
|
||||
-2.302,201,5.6,5bbf259ff136
|
||||
-2.187,201,4.9,5bbf259ff136
|
||||
-2.072,201,5.5,7cfd91ddf780
|
||||
-1.956,201,5.1,7cfd91ddf780
|
||||
-1.849,201,5.2,7cfd91ddf780
|
||||
-1.737,201,5.4,7cfd91ddf780
|
||||
-1.625,201,5.3,7cfd91ddf780
|
||||
-1.51,201,5.3,5bbf259ff136
|
||||
-1.404,201,6.3,7cfd91ddf780
|
||||
-1.291,201,5.5,5bbf259ff136
|
||||
-1.185,201,5.8,7cfd91ddf780
|
||||
-1.078,201,6.7,7cfd91ddf780
|
||||
-0.964,201,7.0,5bbf259ff136
|
||||
-0.855,201,5.7,7cfd91ddf780
|
||||
-0.748,201,4.7,7cfd91ddf780
|
||||
-0.642,201,5.7,7cfd91ddf780
|
||||
-0.526,201,5.6,7cfd91ddf780
|
||||
-0.42,201,5.1,7cfd91ddf780
|
||||
-0.309,201,5.5,7cfd91ddf780
|
||||
-0.199,201,5.0,7cfd91ddf780
|
||||
-0.088,201,5.2,7cfd91ddf780
|
||||
0.019,201,4.0,7cfd91ddf780
|
||||
0.133,201,3.5,7cfd91ddf780
|
||||
0.241,201,3.7,7cfd91ddf780
|
||||
0.352,201,6.6,7cfd91ddf780
|
||||
0.46,201,5.2,7cfd91ddf780
|
||||
0.569,201,4.6,7cfd91ddf780
|
||||
0.675,201,5.2,5bbf259ff136
|
||||
0.79,201,4.4,7cfd91ddf780
|
||||
0.896,201,4.5,5bbf259ff136
|
||||
1.005,201,5.1,5bbf259ff136
|
||||
1.118,201,5.4,5bbf259ff136
|
||||
1.233,201,3.4,5bbf259ff136
|
||||
1.343,201,4.1,5bbf259ff136
|
||||
1.457,201,4.8,5bbf259ff136
|
||||
1.565,201,4.2,5bbf259ff136
|
||||
1.679,201,4.6,5bbf259ff136
|
||||
1.785,201,6.0,5bbf259ff136
|
||||
1.895,201,6.1,5bbf259ff136
|
||||
2.011,201,4.3,5bbf259ff136
|
||||
2.117,201,6.7,5bbf259ff136
|
||||
2.234,201,4.1,5bbf259ff136
|
||||
2.342,201,5.5,5bbf259ff136
|
||||
2.457,201,6.2,5bbf259ff136
|
||||
2.57,201,3.6,5bbf259ff136
|
||||
2.675,201,4.6,5bbf259ff136
|
||||
2.78,201,4.0,5bbf259ff136
|
||||
2.892,201,3.2,5bbf259ff136
|
||||
2.995,201,3.1,5bbf259ff136
|
||||
3.106,201,6.7,5bbf259ff136
|
||||
3.218,201,6.4,5bbf259ff136
|
||||
3.334,201,6.6,5bbf259ff136
|
||||
3.451,201,6.3,5bbf259ff136
|
||||
3.563,201,5.6,5bbf259ff136
|
||||
3.669,201,7.1,5bbf259ff136
|
||||
3.78,201,4.6,5bbf259ff136
|
||||
3.887,201,5.8,5bbf259ff136
|
||||
4.003,201,6.2,5bbf259ff136
|
||||
4.12,201,5.4,5bbf259ff136
|
||||
4.234,201,5.0,5bbf259ff136
|
||||
4.348,201,6.5,5bbf259ff136
|
||||
4.458,201,6.0,5bbf259ff136
|
||||
4.564,201,5.9,5bbf259ff136
|
||||
4.674,201,5.4,5bbf259ff136
|
||||
4.787,201,7.3,5bbf259ff136
|
||||
4.9,201,5.7,5bbf259ff136
|
||||
5.014,201,5.3,5bbf259ff136
|
||||
5.126,201,5.2,5bbf259ff136
|
||||
5.241,201,5.2,5bbf259ff136
|
||||
5.352,201,3.0,5bbf259ff136
|
||||
5.458,201,3.6,5bbf259ff136
|
||||
5.566,201,2.8,5bbf259ff136
|
||||
5.672,201,3.0,5bbf259ff136
|
||||
5.776,201,4.3,5bbf259ff136
|
||||
5.882,201,4.2,5bbf259ff136
|
||||
5.99,201,5.6,5bbf259ff136
|
||||
6.097,201,3.8,5bbf259ff136
|
||||
6.204,201,5.5,5bbf259ff136
|
||||
6.31,201,5.2,5bbf259ff136
|
||||
6.421,201,3.4,5bbf259ff136
|
||||
6.529,201,4.4,5bbf259ff136
|
||||
6.636,201,3.7,5bbf259ff136
|
||||
6.747,201,4.6,5bbf259ff136
|
||||
6.861,201,4.7,5bbf259ff136
|
||||
6.974,201,3.9,5bbf259ff136
|
||||
7.081,201,5.7,5bbf259ff136
|
||||
7.189,201,6.0,5bbf259ff136
|
||||
7.302,201,4.3,5bbf259ff136
|
||||
7.412,201,4.8,5bbf259ff136
|
||||
7.522,201,4.8,5bbf259ff136
|
||||
7.631,201,4.5,5bbf259ff136
|
||||
7.739,201,6.3,5bbf259ff136
|
||||
7.854,201,3.7,5bbf259ff136
|
||||
7.959,201,6.1,5bbf259ff136
|
||||
8.075,201,6.3,5bbf259ff136
|
||||
8.191,201,5.6,5bbf259ff136
|
||||
8.306,201,6.0,5bbf259ff136
|
||||
8.422,201,5.4,5bbf259ff136
|
||||
8.537,201,5.8,5bbf259ff136
|
||||
8.651,201,5.3,5bbf259ff136
|
||||
8.758,201,6.5,5bbf259ff136
|
||||
8.869,201,5.5,5bbf259ff136
|
||||
8.977,201,7.0,5bbf259ff136
|
||||
9.094,201,4.9,5bbf259ff136
|
||||
9.202,201,5.9,5bbf259ff136
|
||||
9.313,201,5.8,5bbf259ff136
|
||||
9.421,201,4.4,5bbf259ff136
|
||||
9.526,201,6.7,5bbf259ff136
|
||||
9.64,201,7.0,5bbf259ff136
|
||||
9.753,201,7.7,5bbf259ff136
|
||||
9.869,201,5.7,5bbf259ff136
|
||||
9.979,201,5.9,5bbf259ff136
|
||||
10.086,201,6.6,5bbf259ff136
|
||||
10.194,201,4.8,5bbf259ff136
|
||||
10.309,201,4.9,5bbf259ff136
|
||||
10.419,201,3.7,5bbf259ff136
|
||||
10.529,201,4.7,5bbf259ff136
|
||||
10.64,201,5.3,5bbf259ff136
|
||||
10.751,201,4.1,5bbf259ff136
|
||||
10.862,201,4.6,5bbf259ff136
|
||||
10.968,201,6.9,5bbf259ff136
|
||||
11.084,201,5.0,5bbf259ff136
|
||||
11.191,201,4.0,5bbf259ff136
|
||||
11.296,201,7.0,5bbf259ff136
|
||||
11.411,201,6.1,5bbf259ff136
|
||||
11.527,201,6.0,5bbf259ff136
|
||||
11.641,201,4.6,5bbf259ff136
|
||||
11.753,201,4.7,5bbf259ff136
|
||||
11.868,201,5.1,5bbf259ff136
|
||||
11.976,201,6.4,5bbf259ff136
|
||||
12.088,201,4.8,5bbf259ff136
|
||||
12.199,201,3.8,5bbf259ff136
|
||||
12.313,201,4.7,5bbf259ff136
|
||||
12.424,201,4.9,5bbf259ff136
|
||||
12.535,201,4.9,5bbf259ff136
|
||||
12.65,201,5.2,5bbf259ff136
|
||||
12.762,201,4.6,5bbf259ff136
|
||||
12.869,201,4.6,5bbf259ff136
|
||||
12.977,201,3.8,5bbf259ff136
|
||||
13.089,201,3.6,5bbf259ff136
|
||||
13.196,201,5.8,5bbf259ff136
|
||||
13.304,201,4.5,5bbf259ff136
|
||||
13.413,201,4.0,5bbf259ff136
|
||||
13.526,201,5.2,5bbf259ff136
|
||||
13.633,201,5.3,5bbf259ff136
|
||||
13.747,201,3.9,5bbf259ff136
|
||||
13.859,201,3.8,5bbf259ff136
|
||||
13.969,201,3.9,5bbf259ff136
|
||||
14.076,201,3.7,5bbf259ff136
|
||||
14.184,201,3.5,5bbf259ff136
|
||||
14.296,201,5.1,5bbf259ff136
|
||||
14.409,201,4.4,5bbf259ff136
|
||||
14.519,201,7.0,5bbf259ff136
|
||||
14.632,201,6.5,5bbf259ff136
|
||||
14.746,201,6.7,5bbf259ff136
|
||||
14.855,201,5.9,5bbf259ff136
|
||||
14.968,201,11.9,7cfd91ddf780
|
||||
15.088,201,5.6,5bbf259ff136
|
||||
15.203,201,4.0,5bbf259ff136
|
||||
15.31,201,4.9,5bbf259ff136
|
||||
15.423,201,6.8,5bbf259ff136
|
||||
15.538,201,4.5,7cfd91ddf780
|
||||
15.646,201,5.7,7cfd91ddf780
|
||||
15.758,201,7.3,7cfd91ddf780
|
||||
15.868,201,8.8,7cfd91ddf780
|
||||
15.987,201,3.4,5bbf259ff136
|
||||
16.1,201,4.6,5bbf259ff136
|
||||
16.207,201,4.9,5bbf259ff136
|
||||
16.319,201,4.9,5bbf259ff136
|
||||
16.432,201,4.5,5bbf259ff136
|
||||
16.538,201,4.7,5bbf259ff136
|
||||
16.651,201,6.0,5bbf259ff136
|
||||
16.763,201,4.9,5bbf259ff136
|
||||
16.874,201,4.4,5bbf259ff136
|
||||
16.979,201,4.1,5bbf259ff136
|
||||
17.09,201,5.1,5bbf259ff136
|
||||
17.197,201,5.2,5bbf259ff136
|
||||
17.312,201,5.9,5bbf259ff136
|
||||
17.426,201,5.1,5bbf259ff136
|
||||
17.541,201,5.4,7cfd91ddf780
|
||||
17.652,201,5.2,7cfd91ddf780
|
||||
17.761,201,5.1,7cfd91ddf780
|
||||
17.877,201,6.2,5bbf259ff136
|
||||
17.993,201,6.3,5bbf259ff136
|
||||
18.109,201,6.2,7cfd91ddf780
|
||||
18.218,201,5.0,7cfd91ddf780
|
||||
18.334,201,5.3,7cfd91ddf780
|
||||
18.442,201,5.2,7cfd91ddf780
|
||||
18.55,201,5.5,7cfd91ddf780
|
||||
18.663,201,5.2,7cfd91ddf780
|
||||
18.775,201,5.8,5bbf259ff136
|
||||
18.891,201,4.3,5bbf259ff136
|
||||
19.006,201,11.6,7cfd91ddf780
|
||||
19.127,201,4.9,5bbf259ff136
|
||||
19.241,201,6.1,5bbf259ff136
|
||||
19.35,201,5.0,5bbf259ff136
|
||||
19.463,201,4.9,5bbf259ff136
|
||||
19.571,201,5.1,5bbf259ff136
|
||||
19.682,201,4.7,5bbf259ff136
|
||||
19.795,201,5.0,5bbf259ff136
|
||||
19.91,201,4.4,7cfd91ddf780
|
||||
20.02,201,6.2,7cfd91ddf780
|
||||
20.129,201,5.4,7cfd91ddf780
|
||||
20.244,201,5.8,7cfd91ddf780
|
||||
20.354,201,5.2,7cfd91ddf780
|
||||
20.468,201,5.6,5bbf259ff136
|
||||
20.579,201,7.0,5bbf259ff136
|
||||
20.686,201,4.7,7cfd91ddf780
|
||||
20.793,201,4.9,7cfd91ddf780
|
||||
20.901,201,5.0,7cfd91ddf780
|
||||
21.009,201,3.9,7cfd91ddf780
|
||||
21.121,201,4.9,7cfd91ddf780
|
||||
21.229,201,5.9,7cfd91ddf780
|
||||
21.337,201,4.9,7cfd91ddf780
|
||||
21.446,201,5.4,7cfd91ddf780
|
||||
21.562,201,6.4,7cfd91ddf780
|
||||
21.671,201,6.0,7cfd91ddf780
|
||||
21.787,201,5.8,5bbf259ff136
|
||||
21.893,201,4.9,7cfd91ddf780
|
||||
22.007,201,5.0,7cfd91ddf780
|
||||
22.116,201,5.8,5bbf259ff136
|
||||
22.222,201,5.2,7cfd91ddf780
|
||||
22.329,201,4.9,7cfd91ddf780
|
||||
22.438,201,5.8,7cfd91ddf780
|
||||
22.553,201,6.3,7cfd91ddf780
|
||||
22.669,201,5.5,5bbf259ff136
|
||||
22.785,201,6.3,7cfd91ddf780
|
||||
22.896,201,5.5,5bbf259ff136
|
||||
23.006,201,6.2,7cfd91ddf780
|
||||
23.115,201,6.6,5bbf259ff136
|
||||
23.232,201,5.3,7cfd91ddf780
|
||||
23.347,201,6.7,5bbf259ff136
|
||||
23.461,201,6.8,5bbf259ff136
|
||||
23.578,201,4.1,7cfd91ddf780
|
||||
23.687,201,6.1,7cfd91ddf780
|
||||
23.802,201,6.8,7cfd91ddf780
|
||||
23.917,201,6.0,5bbf259ff136
|
||||
24.033,201,3.2,5bbf259ff136
|
||||
24.145,201,3.9,5bbf259ff136
|
||||
24.256,201,4.2,7cfd91ddf780
|
||||
24.363,201,4.9,5bbf259ff136
|
||||
24.468,201,5.0,5bbf259ff136
|
||||
24.577,201,4.5,5bbf259ff136
|
||||
24.687,201,5.2,7cfd91ddf780
|
||||
24.797,201,5.3,5bbf259ff136
|
||||
24.909,201,4.7,5bbf259ff136
|
||||
25.021,201,5.0,5bbf259ff136
|
||||
25.126,201,7.2,5bbf259ff136
|
||||
25.239,201,6.0,5bbf259ff136
|
||||
25.35,201,5.8,5bbf259ff136
|
||||
25.463,201,6.2,5bbf259ff136
|
||||
25.573,201,5.5,5bbf259ff136
|
||||
25.687,201,5.2,7cfd91ddf780
|
||||
25.797,201,5.8,7cfd91ddf780
|
||||
25.912,201,5.2,7cfd91ddf780
|
||||
26.021,201,4.8,7cfd91ddf780
|
||||
26.131,201,3.5,7cfd91ddf780
|
||||
26.235,201,3.7,5bbf259ff136
|
||||
26.349,201,5.5,7cfd91ddf780
|
||||
26.465,201,4.8,7cfd91ddf780
|
||||
26.57,201,4.5,7cfd91ddf780
|
||||
26.679,201,4.2,7cfd91ddf780
|
||||
26.793,201,4.8,7cfd91ddf780
|
||||
26.903,201,4.9,7cfd91ddf780
|
||||
27.012,201,5.4,7cfd91ddf780
|
||||
27.121,201,5.7,7cfd91ddf780
|
||||
27.227,201,5.0,7cfd91ddf780
|
||||
27.342,201,5.4,7cfd91ddf780
|
||||
27.452,201,5.1,7cfd91ddf780
|
||||
27.565,201,4.8,7cfd91ddf780
|
||||
27.675,201,5.0,7cfd91ddf780
|
||||
27.79,201,5.4,5bbf259ff136
|
||||
27.904,201,5.8,5bbf259ff136
|
||||
28.014,201,6.5,5bbf259ff136
|
||||
28.131,201,5.5,7cfd91ddf780
|
||||
28.246,201,5.7,5bbf259ff136
|
||||
28.354,201,5.8,7cfd91ddf780
|
||||
28.467,201,6.2,5bbf259ff136
|
||||
28.581,201,5.6,5bbf259ff136
|
||||
28.69,201,4.3,5bbf259ff136
|
||||
28.795,201,5.1,7cfd91ddf780
|
||||
28.907,201,5.1,5bbf259ff136
|
||||
29.015,201,6.1,7cfd91ddf780
|
||||
29.123,201,6.4,7cfd91ddf780
|
||||
29.237,201,3.9,5bbf259ff136
|
||||
29.349,201,4.2,5bbf259ff136
|
||||
29.455,201,7.7,5bbf259ff136
|
||||
29.569,201,7.2,5bbf259ff136
|
||||
29.679,201,6.3,5bbf259ff136
|
||||
29.794,201,7.5,5bbf259ff136
|
||||
29.91,201,5.8,7cfd91ddf780
|
||||
30.022,201,6.9,7cfd91ddf780
|
||||
30.136,201,6.7,5bbf259ff136
|
||||
30.252,201,6.3,5bbf259ff136
|
||||
30.367,201,6.1,7cfd91ddf780
|
||||
30.479,201,6.8,7cfd91ddf780
|
||||
30.595,201,4.9,7cfd91ddf780
|
||||
30.703,201,5.1,7cfd91ddf780
|
||||
30.813,201,4.7,7cfd91ddf780
|
||||
30.924,201,5.3,7cfd91ddf780
|
||||
31.032,201,5.1,7cfd91ddf780
|
||||
31.143,201,4.5,7cfd91ddf780
|
||||
31.257,201,4.8,5bbf259ff136
|
||||
31.371,201,3.3,5bbf259ff136
|
||||
31.477,201,4.6,5bbf259ff136
|
||||
31.586,201,3.6,5bbf259ff136
|
||||
31.699,201,4.4,5bbf259ff136
|
||||
31.813,201,4.8,5bbf259ff136
|
||||
31.927,201,4.6,7cfd91ddf780
|
||||
32.042,201,5.3,7cfd91ddf780
|
||||
32.158,201,5.0,5bbf259ff136
|
||||
32.27,201,4.2,5bbf259ff136
|
||||
32.378,201,5.6,5bbf259ff136
|
||||
32.487,201,5.7,5bbf259ff136
|
||||
32.603,201,4.3,5bbf259ff136
|
||||
32.712,201,6.5,5bbf259ff136
|
||||
32.828,201,6.7,7cfd91ddf780
|
||||
32.945,201,5.3,7cfd91ddf780
|
||||
33.054,201,5.8,7cfd91ddf780
|
||||
33.168,201,6.3,5bbf259ff136
|
||||
33.279,201,8.0,5bbf259ff136
|
||||
33.393,201,5.6,5bbf259ff136
|
||||
33.503,201,4.7,5bbf259ff136
|
||||
33.616,201,6.1,7cfd91ddf780
|
||||
33.731,201,4.7,7cfd91ddf780
|
||||
33.845,201,7.1,7cfd91ddf780
|
||||
33.954,201,5.1,7cfd91ddf780
|
||||
34.069,201,5.8,5bbf259ff136
|
||||
34.179,201,5.2,5bbf259ff136
|
||||
34.288,201,4.7,5bbf259ff136
|
||||
34.399,201,3.1,5bbf259ff136
|
||||
34.512,201,3.5,5bbf259ff136
|
||||
34.625,201,4.0,5bbf259ff136
|
||||
34.733,201,4.6,5bbf259ff136
|
||||
34.848,201,5.8,7cfd91ddf780
|
||||
34.957,201,4.2,7cfd91ddf780
|
||||
35.062,201,6.9,5bbf259ff136
|
||||
35.169,201,5.2,5bbf259ff136
|
||||
35.282,201,6.0,5bbf259ff136
|
||||
35.395,201,5.3,5bbf259ff136
|
||||
35.503,201,5.2,5bbf259ff136
|
||||
35.614,201,5.8,5bbf259ff136
|
||||
35.72,201,4.9,5bbf259ff136
|
||||
35.83,201,6.2,5bbf259ff136
|
||||
35.938,201,5.5,5bbf259ff136
|
||||
36.05,201,6.1,5bbf259ff136
|
||||
36.159,201,5.0,5bbf259ff136
|
||||
36.273,201,5.2,5bbf259ff136
|
||||
36.387,201,6.5,7cfd91ddf780
|
||||
36.495,201,8.3,5bbf259ff136
|
||||
36.611,201,3.5,7cfd91ddf780
|
||||
36.716,201,4.1,7cfd91ddf780
|
||||
36.823,201,7.0,5bbf259ff136
|
||||
36.937,201,4.8,7cfd91ddf780
|
||||
37.046,201,6.6,7cfd91ddf780
|
||||
37.16,201,5.2,7cfd91ddf780
|
||||
37.271,201,4.7,7cfd91ddf780
|
||||
37.378,201,5.3,7cfd91ddf780
|
||||
37.487,201,6.1,7cfd91ddf780
|
||||
37.596,201,4.5,7cfd91ddf780
|
||||
37.71,201,4.0,7cfd91ddf780
|
||||
37.821,201,5.1,7cfd91ddf780
|
||||
37.927,201,4.4,7cfd91ddf780
|
||||
38.037,201,6.3,7cfd91ddf780
|
||||
38.145,201,6.1,5bbf259ff136
|
||||
38.259,201,5.1,7cfd91ddf780
|
||||
38.373,201,8.5,7cfd91ddf780
|
||||
38.485,201,5.3,7cfd91ddf780
|
||||
38.592,201,4.8,7cfd91ddf780
|
||||
38.706,201,4.2,7cfd91ddf780
|
||||
38.82,201,4.7,5bbf259ff136
|
||||
38.933,201,5.9,5bbf259ff136
|
||||
39.041,201,6.6,5bbf259ff136
|
||||
39.155,201,6.8,7cfd91ddf780
|
||||
39.269,201,5.0,7cfd91ddf780
|
||||
39.379,201,5.5,7cfd91ddf780
|
||||
39.49,201,11.5,7cfd91ddf780
|
||||
39.605,201,6.4,5bbf259ff136
|
||||
39.72,201,5.7,5bbf259ff136
|
||||
39.828,201,6.5,5bbf259ff136
|
||||
39.939,201,6.0,5bbf259ff136
|
||||
40.054,201,5.0,5bbf259ff136
|
||||
40.161,201,4.9,5bbf259ff136
|
||||
40.27,201,5.6,5bbf259ff136
|
||||
40.377,201,6.1,7cfd91ddf780
|
||||
40.493,201,4.2,5bbf259ff136
|
||||
40.604,201,6.2,5bbf259ff136
|
||||
40.71,201,4.2,5bbf259ff136
|
||||
40.817,201,4.2,5bbf259ff136
|
||||
40.927,201,5.0,5bbf259ff136
|
||||
41.039,201,5.1,5bbf259ff136
|
||||
41.154,201,5.1,5bbf259ff136
|
||||
41.264,201,4.9,5bbf259ff136
|
||||
41.372,201,5.1,5bbf259ff136
|
||||
41.487,201,6.8,7cfd91ddf780
|
||||
41.597,201,3.7,7cfd91ddf780
|
||||
41.711,201,3.9,7cfd91ddf780
|
||||
41.824,201,4.3,7cfd91ddf780
|
||||
41.939,201,5.0,5bbf259ff136
|
||||
42.049,201,6.2,5bbf259ff136
|
||||
42.16,201,5.7,5bbf259ff136
|
||||
42.27,201,3.6,5bbf259ff136
|
||||
42.378,201,3.7,5bbf259ff136
|
||||
42.492,201,4.5,5bbf259ff136
|
||||
42.599,201,4.3,5bbf259ff136
|
||||
42.711,201,4.0,5bbf259ff136
|
||||
42.821,201,6.6,5bbf259ff136
|
||||
42.937,201,4.8,7cfd91ddf780
|
||||
43.048,201,6.1,7cfd91ddf780
|
||||
43.16,201,3.3,7cfd91ddf780
|
||||
43.265,201,3.2,5bbf259ff136
|
||||
43.37,201,3.5,5bbf259ff136
|
||||
43.482,201,3.4,5bbf259ff136
|
||||
43.59,201,3.1,5bbf259ff136
|
||||
43.698,201,7.8,5bbf259ff136
|
||||
43.816,201,7.4,7cfd91ddf780
|
||||
43.928,201,5.0,7cfd91ddf780
|
||||
44.036,201,5.0,7cfd91ddf780
|
||||
44.149,201,5.4,7cfd91ddf780
|
||||
44.264,201,6.0,7cfd91ddf780
|
||||
44.371,201,5.1,7cfd91ddf780
|
||||
44.481,201,4.8,7cfd91ddf780
|
||||
44.595,201,3.4,7cfd91ddf780
|
||||
44.7,201,3.2,7cfd91ddf780
|
||||
44.812,201,2.8,7cfd91ddf780
|
||||
44.925,201,4.3,7cfd91ddf780
|
||||
45.034,201,5.7,5bbf259ff136
|
||||
45.145,201,8.0,7cfd91ddf780
|
||||
45.26,201,8.5,5bbf259ff136
|
||||
45.369,201,8.2,7cfd91ddf780
|
||||
45.487,201,11.7,5bbf259ff136
|
||||
45.607,201,11.0,7cfd91ddf780
|
||||
45.727,201,4.3,5bbf259ff136
|
||||
|
@@ -0,0 +1,71 @@
|
||||
{"date": "2026-11-05T19:18:13.470607+00:00", "commit": "252e3e3ffeea5004cfd9dc342e686af1417a77a2",
|
||||
"label": "7cfd91ddf780",
|
||||
"action": [
|
||||
"sh",
|
||||
"-c",
|
||||
"scripts/stop-one.sh && docker compose ps -a --format '{{.ID}} {{.Service}} {{.Status}}' api && { scripts/stand-usage.sh & sleep 10; wait; } && scripts/restore.sh"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 15.204,
|
||||
"action_finished_before_load_end": true,
|
||||
"lb_up_before": 2,
|
||||
"lb_up_min": 1,
|
||||
"lb_samples_missing": 0,
|
||||
"detection_seconds": 0.884,
|
||||
"rejoin_seconds": 14.885,
|
||||
"probe": {
|
||||
"attempts": 645,
|
||||
"failed_attempts": 0,
|
||||
"first_failure_s": null,
|
||||
"first_success_s": 0.023,
|
||||
"recovery_s": 0.0,
|
||||
"instances_before": {
|
||||
"5bbf259ff136": 118,
|
||||
"7cfd91ddf780": 115
|
||||
},
|
||||
"instances_during_outage": {
|
||||
"5bbf259ff136": 126
|
||||
},
|
||||
"instances_after": {
|
||||
"5bbf259ff136": 142,
|
||||
"7cfd91ddf780": 132
|
||||
}
|
||||
},
|
||||
"history": {
|
||||
"confirmed": 645,
|
||||
"stored": 645,
|
||||
"exact_match": true,
|
||||
"unique": true
|
||||
},
|
||||
"lb_counters": {
|
||||
"wretr": 0,
|
||||
"wredis": 0,
|
||||
"econ": 0,
|
||||
"eresp": 0,
|
||||
"hrsp_5xx": 0
|
||||
},
|
||||
"k6": {
|
||||
"requests": 6001,
|
||||
"rps": 100.02,
|
||||
"ok_rps": 100.02,
|
||||
"failed_ratio": 0,
|
||||
"dropped_iterations": 0,
|
||||
"p50_ms": 2.97,
|
||||
"p95_ms": 3.86,
|
||||
"p99_ms": 4.47,
|
||||
"exit": 0,
|
||||
"rate": 100
|
||||
},
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"load_errors_ok": true,
|
||||
"load_delivered": true,
|
||||
"lb_observed": true,
|
||||
"write_recovery_ok": true,
|
||||
"history_preserved": true,
|
||||
"detected": true,
|
||||
"target_excluded": true,
|
||||
"rejoined": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
@@ -0,0 +1,142 @@
|
||||
[{"date": "2026-11-05T19:18:13.470607+00:00", "commit": "252e3e3ffeea5004cfd9dc342e686af1417a77a2",
|
||||
"label": "7cfd91ddf780",
|
||||
"action": [
|
||||
"sh",
|
||||
"-c",
|
||||
"scripts/stop-one.sh && docker compose ps -a --format '{{.ID}} {{.Service}} {{.Status}}' api && { scripts/stand-usage.sh & sleep 10; wait; } && scripts/restore.sh"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 15.204,
|
||||
"action_finished_before_load_end": true,
|
||||
"lb_up_before": 2,
|
||||
"lb_up_min": 1,
|
||||
"lb_samples_missing": 0,
|
||||
"detection_seconds": 0.884,
|
||||
"rejoin_seconds": 14.885,
|
||||
"probe": {
|
||||
"attempts": 645,
|
||||
"failed_attempts": 0,
|
||||
"first_failure_s": null,
|
||||
"first_success_s": 0.023,
|
||||
"recovery_s": 0.0,
|
||||
"instances_before": {
|
||||
"5bbf259ff136": 118,
|
||||
"7cfd91ddf780": 115
|
||||
},
|
||||
"instances_during_outage": {
|
||||
"5bbf259ff136": 126
|
||||
},
|
||||
"instances_after": {
|
||||
"5bbf259ff136": 142,
|
||||
"7cfd91ddf780": 132
|
||||
}
|
||||
},
|
||||
"history": {
|
||||
"confirmed": 645,
|
||||
"stored": 645,
|
||||
"exact_match": true,
|
||||
"unique": true
|
||||
},
|
||||
"lb_counters": {
|
||||
"wretr": 0,
|
||||
"wredis": 0,
|
||||
"econ": 0,
|
||||
"eresp": 0,
|
||||
"hrsp_5xx": 0
|
||||
},
|
||||
"k6": {
|
||||
"requests": 6001,
|
||||
"rps": 100.02,
|
||||
"ok_rps": 100.02,
|
||||
"failed_ratio": 0,
|
||||
"dropped_iterations": 0,
|
||||
"p50_ms": 2.97,
|
||||
"p95_ms": 3.86,
|
||||
"p99_ms": 4.47,
|
||||
"exit": 0,
|
||||
"rate": 100
|
||||
},
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"load_errors_ok": true,
|
||||
"load_delivered": true,
|
||||
"lb_observed": true,
|
||||
"write_recovery_ok": true,
|
||||
"history_preserved": true,
|
||||
"detected": true,
|
||||
"target_excluded": true,
|
||||
"rejoined": true
|
||||
},
|
||||
"pass": true
|
||||
},
|
||||
{"date": "2026-11-05T19:18:13.470607+00:00", "commit": "252e3e3ffeea5004cfd9dc342e686af1417a77a2",
|
||||
"label": "5bbf259ff136",
|
||||
"action": [
|
||||
"sh",
|
||||
"-c",
|
||||
"scripts/stop-one.sh && docker compose ps -a --format '{{.ID}} {{.Service}} {{.Status}}' api && { scripts/stand-usage.sh & sleep 10; wait; } && scripts/restore.sh"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 15.2,
|
||||
"action_finished_before_load_end": true,
|
||||
"lb_up_before": 2,
|
||||
"lb_up_min": 1,
|
||||
"lb_samples_missing": 0,
|
||||
"detection_seconds": 1.498,
|
||||
"rejoin_seconds": 14.99,
|
||||
"probe": {
|
||||
"attempts": 642,
|
||||
"failed_attempts": 0,
|
||||
"first_failure_s": null,
|
||||
"first_success_s": 0.111,
|
||||
"recovery_s": 0.0,
|
||||
"instances_before": {
|
||||
"7cfd91ddf780": 114,
|
||||
"5bbf259ff136": 119
|
||||
},
|
||||
"instances_during_outage": {
|
||||
"7cfd91ddf780": 121
|
||||
},
|
||||
"instances_after": {
|
||||
"7cfd91ddf780": 149,
|
||||
"5bbf259ff136": 124
|
||||
}
|
||||
},
|
||||
"history": {
|
||||
"confirmed": 642,
|
||||
"stored": 642,
|
||||
"exact_match": true,
|
||||
"unique": true
|
||||
},
|
||||
"lb_counters": {
|
||||
"wretr": 0,
|
||||
"wredis": 0,
|
||||
"econ": 0,
|
||||
"eresp": 0,
|
||||
"hrsp_5xx": 0
|
||||
},
|
||||
"k6": {
|
||||
"requests": 6001,
|
||||
"rps": 100.02,
|
||||
"ok_rps": 100.02,
|
||||
"failed_ratio": 0,
|
||||
"dropped_iterations": 0,
|
||||
"p50_ms": 2.98,
|
||||
"p95_ms": 3.88,
|
||||
"p99_ms": 4.53,
|
||||
"exit": 0,
|
||||
"rate": 100
|
||||
},
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"load_errors_ok": true,
|
||||
"load_delivered": true,
|
||||
"lb_observed": true,
|
||||
"write_recovery_ok": true,
|
||||
"history_preserved": true,
|
||||
"detected": true,
|
||||
"target_excluded": true,
|
||||
"rejoined": true
|
||||
},
|
||||
"pass": true
|
||||
}]
|
||||
@@ -0,0 +1,39 @@
|
||||
date: 2026-10-30T02:45:26Z commit: e049c26
|
||||
== before: api replicas (hostname = X-Instance-Id), state, StartedAt, FinishedAt
|
||||
ff81f93e8b0d running started=2026-10-30T02:45:24.812924046Z finished=2026-10-30T02:45:12.063064055Z
|
||||
fe75c6c37e5a running started=2026-10-30T02:44:57.104698047Z finished=0001-01-01T00:00:00Z
|
||||
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:18083"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 136, "failed_attempts": 0, "first_recovery_seconds": 2.682}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
== after: api replicas
|
||||
ff81f93e8b0d running started=2026-10-30T02:45:24.812924046Z finished=2026-10-30T02:45:12.063064055Z
|
||||
fe75c6c37e5a exited started=2026-10-30T02:44:57.104698047Z finished=2026-10-30T02:45:29.956667174Z
|
||||
== stopped replica: fe75c6c37e5a; shutdown: signal, drain window with readiness 503, close, exit
|
||||
{"event":"Handling signal: term","level":"info","ts":"2026-10-30T02:45:27.514055Z"}
|
||||
{"limit":2.0,"event":"service.draining","level":"info","ts":"2026-10-30T02:45:27.518751Z"}
|
||||
{"limit":2.0,"event":"service.draining","level":"info","ts":"2026-10-30T02:45:27.528773Z"}
|
||||
{"method":"GET","route":"/health/ready","status":503,"request_id":"efd64978c14445e3a460198e8ef66a32","duration_ms":0.358,"event":"request.handled","level":"info","ts":"2026-10-30T02:45:27.962664Z"}
|
||||
{"method":"GET","route":"/health/ready","status":503,"request_id":"53b0876587c14b2cbae1936781f79fc0","duration_ms":0.401,"event":"request.handled","level":"info","ts":"2026-10-30T02:45:28.465375Z"}
|
||||
{"method":"GET","route":"/health/ready","status":503,"request_id":"947ec9729b774819b5de906d12ad0f91","duration_ms":0.306,"event":"request.handled","level":"info","ts":"2026-10-30T02:45:29.005486Z"}
|
||||
{"event":"Shutting down","level":"info","ts":"2026-10-30T02:45:29.520790Z"}
|
||||
{"event":"Shutting down","level":"info","ts":"2026-10-30T02:45:29.529825Z"}
|
||||
{"event":"service.stopped","level":"info","ts":"2026-10-30T02:45:29.623527Z"}
|
||||
{"event":"Finished server process [14]","level":"info","ts":"2026-10-30T02:45:29.623728Z"}
|
||||
{"event":"service.stopped","level":"info","ts":"2026-10-30T02:45:29.632649Z"}
|
||||
{"event":"Finished server process [13]","level":"info","ts":"2026-10-30T02:45:29.632781Z"}
|
||||
{"event":"Worker (pid:13) was sent SIGTERM!","level":"info","ts":"2026-10-30T02:45:29.635792Z"}
|
||||
{"event":"Worker (pid:14) was sent SIGTERM!","level":"info","ts":"2026-10-30T02:45:29.635917Z"}
|
||||
{"event":"Shutting down: Master","level":"info","ts":"2026-10-30T02:45:29.737995Z"}
|
||||
$ scripts/restore.sh
|
||||
Container mtusi2026lab3-api-1 Running
|
||||
Container mtusi2026lab3-api-2 Starting
|
||||
Container mtusi2026lab3-api-2 Started
|
||||
Container mtusi2026lab3-api-1 Waiting
|
||||
Container mtusi2026lab3-api-2 Waiting
|
||||
Container mtusi2026lab3-api-1 Healthy
|
||||
Container mtusi2026lab3-api-2 Healthy
|
||||
== after restore
|
||||
ff81f93e8b0d running started=2026-10-30T02:45:24.812924046Z finished=2026-10-30T02:45:12.063064055Z
|
||||
fe75c6c37e5a running started=2026-10-30T02:45:42.870380597Z finished=2026-10-30T02:45:29.956667174Z
|
||||
@@ -0,0 +1,38 @@
|
||||
date: 2026-10-30T02:45:08Z commit: e049c26
|
||||
== before: api replicas (hostname = X-Instance-Id), state, StartedAt, FinishedAt
|
||||
ff81f93e8b0d running started=2026-10-30T02:44:57.018195381Z finished=0001-01-01T00:00:00Z
|
||||
fe75c6c37e5a running started=2026-10-30T02:44:57.104698047Z finished=0001-01-01T00:00:00Z
|
||||
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:18083"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 132, "failed_attempts": 0, "first_recovery_seconds": 2.858}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
== after: api replicas
|
||||
ff81f93e8b0d exited started=2026-10-30T02:44:57.018195381Z finished=2026-10-30T02:45:12.063064055Z
|
||||
fe75c6c37e5a running started=2026-10-30T02:44:57.104698047Z finished=0001-01-01T00:00:00Z
|
||||
== stopped replica: ff81f93e8b0d; shutdown: signal, drain window with readiness 503, close, exit
|
||||
{"event":"Handling signal: term","level":"info","ts":"2026-10-30T02:45:09.656770Z"}
|
||||
{"limit":2.0,"event":"service.draining","level":"info","ts":"2026-10-30T02:45:09.714534Z"}
|
||||
{"limit":2.0,"event":"service.draining","level":"info","ts":"2026-10-30T02:45:09.722268Z"}
|
||||
{"method":"GET","route":"/health/ready","status":503,"request_id":"468d7db9c6d24e9797a43d901e9bdbb1","duration_ms":0.312,"event":"request.handled","level":"info","ts":"2026-10-30T02:45:10.589248Z"}
|
||||
{"method":"GET","route":"/health/ready","status":503,"request_id":"771ff57a02304724b1de9c40033c5157","duration_ms":0.304,"event":"request.handled","level":"info","ts":"2026-10-30T02:45:11.091968Z"}
|
||||
{"event":"Shutting down","level":"info","ts":"2026-10-30T02:45:11.715907Z"}
|
||||
{"event":"Shutting down","level":"info","ts":"2026-10-30T02:45:11.728294Z"}
|
||||
{"event":"service.stopped","level":"info","ts":"2026-10-30T02:45:11.826861Z"}
|
||||
{"event":"Finished server process [14]","level":"info","ts":"2026-10-30T02:45:11.827508Z"}
|
||||
{"event":"service.stopped","level":"info","ts":"2026-10-30T02:45:11.835753Z"}
|
||||
{"event":"Finished server process [13]","level":"info","ts":"2026-10-30T02:45:11.835868Z"}
|
||||
{"event":"Worker (pid:13) was sent SIGTERM!","level":"info","ts":"2026-10-30T02:45:11.887319Z"}
|
||||
{"event":"Worker (pid:14) was sent SIGTERM!","level":"info","ts":"2026-10-30T02:45:11.887404Z"}
|
||||
{"event":"Shutting down: Master","level":"info","ts":"2026-10-30T02:45:11.990788Z"}
|
||||
$ scripts/restore.sh
|
||||
Container mtusi2026lab3-api-2 Running
|
||||
Container mtusi2026lab3-api-1 Starting
|
||||
Container mtusi2026lab3-api-1 Started
|
||||
Container mtusi2026lab3-api-1 Waiting
|
||||
Container mtusi2026lab3-api-2 Waiting
|
||||
Container mtusi2026lab3-api-1 Healthy
|
||||
Container mtusi2026lab3-api-2 Healthy
|
||||
== after restore
|
||||
ff81f93e8b0d running started=2026-10-30T02:45:24.812924046Z finished=2026-10-30T02:45:12.063064055Z
|
||||
fe75c6c37e5a running started=2026-10-30T02:44:57.104698047Z finished=0001-01-01T00:00:00Z
|
||||
+26
-44
@@ -1,73 +1,55 @@
|
||||
date: 2026-10-28T17:15:43Z commit: 6468ee2
|
||||
date: 2026-11-05T18:55:40.945444+00:00 commit: 0a1f48bd73e5780c732356880c23fdb476bcff98
|
||||
environment: COMPOSE_PROJECT_NAME=mtusi2026lab3-grade3-final-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2 NO_PROXY=localhost,127.0.0.1,::1
|
||||
$ make test-faults
|
||||
docker compose --profile faults up -d --wait api-shortttl
|
||||
Container mtusi2026lab2-valkey-1 Running
|
||||
Container mtusi2026lab2-postgres-1 Running
|
||||
Container mtusi2026lab2-api-shortttl-1 Creating
|
||||
Container mtusi2026lab2-api-shortttl-1 Created
|
||||
Container mtusi2026lab2-postgres-1 Waiting
|
||||
Container mtusi2026lab2-postgres-1 Healthy
|
||||
Container mtusi2026lab2-migrate-1 Starting
|
||||
Container mtusi2026lab2-migrate-1 Started
|
||||
Container mtusi2026lab2-migrate-1 Waiting
|
||||
Container mtusi2026lab2-migrate-1 Exited
|
||||
Container mtusi2026lab2-api-shortttl-1 Starting
|
||||
Container mtusi2026lab2-api-shortttl-1 Started
|
||||
Container mtusi2026lab2-migrate-1 Waiting
|
||||
Container mtusi2026lab2-api-shortttl-1 Waiting
|
||||
Container mtusi2026lab2-postgres-1 Waiting
|
||||
Container mtusi2026lab2-valkey-1 Waiting
|
||||
Container mtusi2026lab2-valkey-1 Healthy
|
||||
Container mtusi2026lab2-postgres-1 Healthy
|
||||
Container mtusi2026lab2-migrate-1 Exited
|
||||
Container mtusi2026lab2-api-shortttl-1 Healthy
|
||||
BASE_URL="http://localhost:18082" SHORTTTL_URL="http://localhost:22082" .venv/bin/pytest -m stack -v -s student-tests/stack
|
||||
BASE_URL="http://127.0.0.1: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 -- /Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab2/.venv/bin/python
|
||||
platform darwin -- Python 3.14.5, pytest-9.1.1, pluggy-1.6.0 -- <repo>/.venv/bin/python
|
||||
cachedir: .pytest_cache
|
||||
rootdir: /Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab2
|
||||
rootdir: <repo>
|
||||
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
|
||||
collecting ... collected 13 items
|
||||
collecting ... collected 12 items
|
||||
|
||||
student-tests/stack/test_faults.py::test_registration_race_yields_exactly_one_user гонка 50 регистраций: 201×1, 409×49
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_chat_creation_rolls_back_on_unknown_member чат с несуществующим участником: 400 invalid_request
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_wrong_password_and_unknown_user_get_same_basic_challenge неверный пароль: 401 за 0.012 с
|
||||
неизвестный пользователь: 401 за 0.011 с
|
||||
student-tests/stack/test_faults.py::test_wrong_password_and_unknown_user_get_same_basic_challenge неверный пароль: 401 за 0.013 с
|
||||
неизвестный пользователь: 401 за 0.012 с
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_logout_then_token_is_dead logout: 204, затем 401, повтор 401
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_short_ttl_session_expires SESSION_TTL_SECONDS=2: сразу 200, через 3 с 401
|
||||
student-tests/stack/test_faults.py::test_valkey_serves_repeated_checks 5 проверок токена: keyspace_hits 3 → 8
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_valkey_serves_repeated_checks 5 проверок токена: keyspace_hits 4 → 9
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_valkey_stopped_is_bypassed_but_logout_waits valkey остановлен, действующий токен: 200 за 0.207 с
|
||||
student-tests/stack/test_faults.py::test_valkey_stopped_is_bypassed_but_logout_waits valkey остановлен, действующий токен: 200 за 0.014 с
|
||||
valkey остановлен, неизвестный токен: 401 за 0.004 с
|
||||
valkey остановлен: ready 200, вход 201, выход 503
|
||||
valkey снова запущен: повторный выход 204
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_valkey_restart_keeps_cache_and_revocations рестарт valkey: ключей 14 → 14
|
||||
student-tests/stack/test_faults.py::test_valkey_restart_keeps_cache_and_revocations рестарт valkey: ключей 6 → 6
|
||||
рестарт valkey: живой 200, отозванный 401
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_valkey_flushall_loses_nothing FLUSHALL: живой 200, отозванный 401
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_postgres_stopped_gives_bounded_503_and_recovers postgres остановлен, ready: 503 за 1.012 с
|
||||
postgres остановлен, live: 200 за 0.006 с
|
||||
postgres остановлен, me: 503 за 1.006 с
|
||||
postgres остановлен, stranger: 503 за 1.012 с
|
||||
postgres остановлен, login: 503 за 1.005 с
|
||||
postgres остановлен, register: 503 за 0.992 с
|
||||
postgres запущен: готовность через 0.0 с, прежний токен 200
|
||||
student-tests/stack/test_faults.py::test_postgres_stopped_gives_bounded_503_and_recovers postgres остановлен, ready: 503 за 0.004 с
|
||||
postgres остановлен, me: 503 за 0.003 с
|
||||
postgres остановлен, stranger: 503 за 0.003 с
|
||||
postgres остановлен, login: 503 за 0.003 с
|
||||
postgres остановлен, register: 503 за 0.014 с
|
||||
live внутри реплики 200; LB исключил все реплики ещё через 0.86 с
|
||||
live через LB без реплик: 503 за 0.000 с
|
||||
postgres запущен: готовность через 2.0 с, прежний токен 200
|
||||
postgres запущен: 40 регистраций 201 через 2 реплики без рестарта API
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_api_restart_keeps_session_without_extending_it рестарт api: готовность через 0.5 с, токен 200
|
||||
expires_at при входе 2026-10-28T18:16:04.950293Z, в БД после рестарта 2026-10-28T18:16:04.950293Z
|
||||
student-tests/stack/test_faults.py::test_api_restart_keeps_session_without_extending_it рестарт api: готовность через 1.5 с, токен 200
|
||||
expires_at при входе 2026-11-05T19:55:55.410073Z, в БД после рестарта 2026-11-05T19:55:55.410073Z
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_full_restart_keeps_session_until_logout restart.sh: готовность через 0.0 с, прежний токен 200, выход 204, затем 401
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_short_ttl_expires_after_restart_at_original_time рестарт api-shortttl: готовность через 0.5 с, после expires_at входа 401
|
||||
student-tests/stack/test_faults.py::test_session_expires_after_restart_at_original_time срок сессии сокращён до 20 с, рестарт api: готовность через 2.8 с, до срока 200, после срока 401
|
||||
PASSED
|
||||
|
||||
============================= 13 passed in 26.08s ==============================
|
||||
============================= 12 passed in 47.62s ==============================
|
||||
|
||||
exit_code: 0 elapsed_seconds: 48.183
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
date: 2026-11-05T18:46:25.070058+00:00 commit: 7fc911c332aefe33285ea9e7811c37abd9bb20a6
|
||||
environment: COMPOSE_PROJECT_NAME=mtusi2026lab3-grade3-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2 NO_PROXY=localhost,127.0.0.1,::1
|
||||
$ make test-faults
|
||||
BASE_URL="http://127.0.0.1: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 -- <repo>/.venv/bin/python
|
||||
cachedir: .pytest_cache
|
||||
rootdir: <repo>
|
||||
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
|
||||
collecting ... collected 12 items
|
||||
|
||||
student-tests/stack/test_faults.py::test_registration_race_yields_exactly_one_user гонка 50 регистраций: 201×1, 409×49
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_chat_creation_rolls_back_on_unknown_member чат с несуществующим участником: 400 invalid_request
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_wrong_password_and_unknown_user_get_same_basic_challenge неверный пароль: 401 за 0.013 с
|
||||
неизвестный пользователь: 401 за 0.012 с
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_logout_then_token_is_dead logout: 204, затем 401, повтор 401
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_valkey_serves_repeated_checks 5 проверок токена: keyspace_hits 4 → 9
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_valkey_stopped_is_bypassed_but_logout_waits valkey остановлен, действующий токен: 200 за 0.005 с
|
||||
valkey остановлен, неизвестный токен: 401 за 0.003 с
|
||||
valkey остановлен: ready 200, вход 201, выход 503
|
||||
valkey снова запущен: повторный выход 204
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_valkey_restart_keeps_cache_and_revocations рестарт valkey: ключей 19 → 19
|
||||
рестарт valkey: живой 200, отозванный 401
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_valkey_flushall_loses_nothing FLUSHALL: живой 200, отозванный 401
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_postgres_stopped_gives_bounded_503_and_recovers postgres остановлен, ready: 503 за 0.003 с
|
||||
postgres остановлен, me: 503 за 0.002 с
|
||||
postgres остановлен, stranger: 503 за 0.003 с
|
||||
postgres остановлен, login: 503 за 0.003 с
|
||||
postgres остановлен, register: 503 за 0.014 с
|
||||
live внутри реплики 200; LB исключил все реплики ещё через 1.14 с
|
||||
live через LB без реплик: 503 за 0.000 с
|
||||
postgres запущен: готовность через 1.5 с, прежний токен 200
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_api_restart_keeps_session_without_extending_it FAILED
|
||||
student-tests/stack/test_faults.py::test_full_restart_keeps_session_until_logout restart.sh: готовность через 0.0 с, прежний токен 200, выход 204, затем 401
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_session_expires_after_restart_at_original_time срок сессии сокращён до 20 с, рестарт api: готовность через 1.5 с, до срока 200, после срока 401
|
||||
PASSED
|
||||
|
||||
=================================== FAILURES ===================================
|
||||
_____________ test_api_restart_keeps_session_without_extending_it ______________
|
||||
|
||||
http = <httpx.AsyncClient object at 0x1057ed350>
|
||||
|
||||
async def test_api_restart_keeps_session_without_extending_it(http: AsyncClient) -> None:
|
||||
body = new_user("restart")
|
||||
> assert (await http.post("/api/v1/users", json=body)).status_code == 201
|
||||
E assert 503 == 201
|
||||
E + where 503 = <Response [503 Service Unavailable]>.status_code
|
||||
|
||||
student-tests/stack/test_faults.py:219: AssertionError
|
||||
=========================== short test summary info ============================
|
||||
FAILED student-tests/stack/test_faults.py::test_api_restart_keeps_session_without_extending_it
|
||||
======================== 1 failed, 11 passed in 43.22s =========================
|
||||
make: *** [test-faults] Error 1
|
||||
|
||||
exit_code: 2 elapsed_seconds: 43.788
|
||||
@@ -0,0 +1,35 @@
|
||||
date: 2026-11-05T19:06:46.410264+00:00 commit: 0a1f48bd73e5780c732356880c23fdb476bcff98
|
||||
environment: COMPOSE_PROJECT_NAME=mtusi2026lab3-grade3-final-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2 NO_PROXY=localhost,127.0.0.1,::1
|
||||
$ sh -c 'set -e; make check; make validate; make lint; openspec validate --all --strict; git diff --check; git diff --exit-code upstream/main -- contracts tests README.md COURSE.md lab.json MAINTAINERS.md; git diff --exit-code 0a1f48bd73e5780c732356880c23fdb476bcff98 -- src student-tests alembic pyproject.toml uv.lock Dockerfile compose.yaml Makefile infra scripts; git diff --exit-code 7fc911c332aefe33285ea9e7811c37abd9bb20a6 -- .pipeline; docker ps -a --filter label=com.docker.compose.project=mtusi2026lab3-grade3-final-20261105; docker ps -a --filter label=com.docker.compose.project=mtusi2026lab3-grade3-20261105; docker ps -a --filter name=mtusi-lab3-test'
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
.venv/bin/python scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
.venv/bin/ruff check src student-tests alembic scripts/probe.py scripts/limits.py scripts/scaling.py tools
|
||||
All checks passed!
|
||||
.venv/bin/ruff format --check src student-tests alembic scripts/probe.py scripts/limits.py scripts/scaling.py tools
|
||||
107 files already formatted
|
||||
.venv/bin/ty check src student-tests alembic
|
||||
All checks passed!
|
||||
- Validating...
|
||||
✓ change/2026-11-05-adopt-sqlalchemy-alembic
|
||||
✓ spec/lab1-event-publication
|
||||
✓ spec/lab1-messenger-chats
|
||||
✓ spec/lab1-messenger-history
|
||||
✓ spec/lab1-messenger-identity
|
||||
✓ spec/lab1-service-operability
|
||||
✓ spec/lab2-auth-sessions
|
||||
✓ spec/lab2-dependency-failures
|
||||
✓ spec/lab2-history-index
|
||||
✓ spec/lab2-persistent-storage
|
||||
✓ spec/lab2-session-cache
|
||||
✓ spec/lab3-failover-operations
|
||||
✓ spec/lab3-idempotent-messages
|
||||
✓ spec/lab3-load-balancing
|
||||
✓ spec/lab3-scaling-cost
|
||||
Totals: 15 passed, 0 failed (15 items)
|
||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
|
||||
exit_code: 0 elapsed_seconds: 4.870
|
||||
@@ -0,0 +1,34 @@
|
||||
date: 2026-11-05T18:53:15.466343+00:00 commit: 18de59574016564ce4eb69da9f4363441ba33f7d
|
||||
environment: COMPOSE_PROJECT_NAME=mtusi2026lab3-grade3-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2 NO_PROXY=localhost,127.0.0.1,::1
|
||||
$ make down
|
||||
docker compose --profile bench down
|
||||
Container mtusi2026lab3-grade3-20261105-lb-1 Stopping
|
||||
Container mtusi2026lab3-grade3-20261105-api-1 Stopping
|
||||
Container mtusi2026lab3-grade3-20261105-api-2 Stopping
|
||||
Container mtusi2026lab3-grade3-20261105-lb-1 Stopped
|
||||
Container mtusi2026lab3-grade3-20261105-lb-1 Removing
|
||||
Container mtusi2026lab3-grade3-20261105-lb-1 Removed
|
||||
Container mtusi2026lab3-grade3-20261105-api-1 Stopped
|
||||
Container mtusi2026lab3-grade3-20261105-api-1 Removing
|
||||
Container mtusi2026lab3-grade3-20261105-api-1 Removed
|
||||
Container mtusi2026lab3-grade3-20261105-api-2 Stopped
|
||||
Container mtusi2026lab3-grade3-20261105-api-2 Removing
|
||||
Container mtusi2026lab3-grade3-20261105-api-2 Removed
|
||||
Container mtusi2026lab3-grade3-20261105-valkey-1 Stopping
|
||||
Container mtusi2026lab3-grade3-20261105-migrate-1 Stopping
|
||||
Container mtusi2026lab3-grade3-20261105-migrate-1 Stopped
|
||||
Container mtusi2026lab3-grade3-20261105-migrate-1 Removing
|
||||
Container mtusi2026lab3-grade3-20261105-migrate-1 Removed
|
||||
Container mtusi2026lab3-grade3-20261105-postgres-1 Stopping
|
||||
Container mtusi2026lab3-grade3-20261105-valkey-1 Stopped
|
||||
Container mtusi2026lab3-grade3-20261105-valkey-1 Removing
|
||||
Container mtusi2026lab3-grade3-20261105-postgres-1 Stopped
|
||||
Container mtusi2026lab3-grade3-20261105-postgres-1 Removing
|
||||
Container mtusi2026lab3-grade3-20261105-valkey-1 Removed
|
||||
Container mtusi2026lab3-grade3-20261105-postgres-1 Removed
|
||||
Network mtusi2026lab3-grade3-20261105_edge Removing
|
||||
Network mtusi2026lab3-grade3-20261105_backend Removing
|
||||
Network mtusi2026lab3-grade3-20261105_edge Removed
|
||||
Network mtusi2026lab3-grade3-20261105_backend Removed
|
||||
|
||||
exit_code: 0 elapsed_seconds: 3.336
|
||||
@@ -0,0 +1,27 @@
|
||||
date: 2026-11-05T18:57:54.159450+00:00 commit: 0a1f48bd73e5780c732356880c23fdb476bcff98
|
||||
environment: COMPOSE_PROJECT_NAME=mtusi2026lab3-grade3-final-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2 NO_PROXY=localhost,127.0.0.1,::1
|
||||
$ make lb-check
|
||||
python3 scripts/probe.py check --rounds 20 --out evidence/lb-check.json
|
||||
{
|
||||
"instances_one_token": {
|
||||
"1b4a73f61b07": 20,
|
||||
"8ffe0c70f4ea": 20
|
||||
},
|
||||
"same_key": {
|
||||
"rounds": 20,
|
||||
"parallel": 8,
|
||||
"statuses": {
|
||||
"201": 160
|
||||
},
|
||||
"instances": {
|
||||
"8ffe0c70f4ea": 80,
|
||||
"1b4a73f61b07": 80
|
||||
},
|
||||
"identical_bodies_rounds": 20,
|
||||
"single_copy_rounds": 20,
|
||||
"conflict_rounds": 20
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
|
||||
exit_code: 0 elapsed_seconds: 0.648
|
||||
@@ -0,0 +1,25 @@
|
||||
date: 2026-11-05T18:58:38.021999+00:00 commit: 0a1f48bd73e5780c732356880c23fdb476bcff98
|
||||
environment: COMPOSE_PROJECT_NAME=mtusi2026lab3-grade3-final-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2 NO_PROXY=localhost,127.0.0.1,::1
|
||||
$ make persistence-evidence
|
||||
sh scripts/persistence-evidence.sh "http://127.0.0.1:18083" > evidence/persistence.txt
|
||||
cat evidence/persistence.txt
|
||||
date: 2026-11-05T18:58:38Z commit: 0a1f48b
|
||||
== before: service hostname StartedAt status
|
||||
api 1b4a73f61b07 2026-11-05T18:58:36.142839135Z running
|
||||
api 8ffe0c70f4ea 2026-11-05T18:58:18.239416584Z running
|
||||
lb 936b69811632 2026-11-05T18:56:03.008030758Z running
|
||||
migrate c73a6ab4f829 2026-11-05T18:56:03.5137618Z exited
|
||||
postgres 097df27ee36a 2026-11-05T18:56:02.802565633Z running
|
||||
valkey ac9a3cf7b7a0 2026-11-05T18:56:02.774072466Z running
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:18083"
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
== after: service hostname StartedAt status
|
||||
api 1b4a73f61b07 2026-11-05T18:58:43.578633972Z running
|
||||
api 8ffe0c70f4ea 2026-11-05T18:58:43.512173305Z running
|
||||
lb 936b69811632 2026-11-05T18:58:41.899974554Z running
|
||||
migrate c73a6ab4f829 2026-11-05T18:58:42.423420221Z exited
|
||||
postgres 097df27ee36a 2026-11-05T18:58:41.642264971Z running
|
||||
valkey ac9a3cf7b7a0 2026-11-05T18:58:41.694216387Z running
|
||||
|
||||
exit_code: 0 elapsed_seconds: 9.441
|
||||
@@ -0,0 +1,9 @@
|
||||
date: 2026-11-05T18:52:46.041538+00:00 commit: 18de59574016564ce4eb69da9f4363441ba33f7d
|
||||
working_tree: pool_pre_ping and test changes before implementation commit
|
||||
environment: COMPOSE_PROJECT_NAME=mtusi2026lab3-grade3-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2 NO_PROXY=localhost,127.0.0.1,::1
|
||||
$ make student-test 'PYTEST_ARGS=-q -k "closed_idle_connection or sigterm_leaves"'
|
||||
.venv/bin/pytest -q -k "closed_idle_connection or sigterm_leaves"
|
||||
.. [100%]
|
||||
2 passed, 281 deselected in 4.28s
|
||||
|
||||
exit_code: 0 elapsed_seconds: 4.753
|
||||
@@ -0,0 +1,29 @@
|
||||
date: 2026-11-05T18:52:07.642995+00:00 commit: 18de59574016564ce4eb69da9f4363441ba33f7d
|
||||
working_tree: added regression test in student-tests/api/test_pool.py; application code unchanged
|
||||
environment: COMPOSE_PROJECT_NAME=mtusi2026lab3-grade3-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2 NO_PROXY=localhost,127.0.0.1,::1
|
||||
$ make student-test 'PYTEST_ARGS=-q -k closed_idle_connection'
|
||||
.venv/bin/pytest -q -k closed_idle_connection
|
||||
F [100%]
|
||||
=================================== FAILURES ===================================
|
||||
_________ test_closed_idle_connection_is_replaced_before_registration __________
|
||||
|
||||
async def test_closed_idle_connection_is_replaced_before_registration() -> None:
|
||||
async with running_app(db_pool_max_size=1) as http:
|
||||
database = await resolve(http, Database)
|
||||
async with database.session() as session:
|
||||
pid = await session.scalar(select(func.pg_backend_pid()))
|
||||
async with sql_connection() as connection:
|
||||
assert await connection.scalar(select(func.pg_terminate_backend(pid, 1000)))
|
||||
body = new_user("reconnect")
|
||||
response = await http.post("/api/v1/users", json=body)
|
||||
> assert response.status_code == 201
|
||||
E assert 503 == 201
|
||||
E + where 503 = <Response [503 Service Unavailable]>.status_code
|
||||
|
||||
student-tests/api/test_pool.py:78: AssertionError
|
||||
=========================== short test summary info ============================
|
||||
FAILED student-tests/api/test_pool.py::test_closed_idle_connection_is_replaced_before_registration
|
||||
1 failed, 282 deselected in 1.84s
|
||||
make: *** [student-test] Error 1
|
||||
|
||||
exit_code: 2 elapsed_seconds: 2.461
|
||||
@@ -0,0 +1,13 @@
|
||||
date: 2026-11-05T18:58:18.083291+00:00 commit: 0a1f48bd73e5780c732356880c23fdb476bcff98
|
||||
environment: COMPOSE_PROJECT_NAME=mtusi2026lab3-grade3-final-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2 NO_PROXY=localhost,127.0.0.1,::1
|
||||
$ make restore
|
||||
scripts/restore.sh
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-2 Running
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-1 Starting
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-1 Started
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-1 Waiting
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-2 Waiting
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-1 Healthy
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-2 Healthy
|
||||
|
||||
exit_code: 0 elapsed_seconds: 2.015
|
||||
@@ -0,0 +1,13 @@
|
||||
date: 2026-11-05T18:58:35.973739+00:00 commit: 0a1f48bd73e5780c732356880c23fdb476bcff98
|
||||
environment: COMPOSE_PROJECT_NAME=mtusi2026lab3-grade3-final-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2 NO_PROXY=localhost,127.0.0.1,::1
|
||||
$ make restore
|
||||
scripts/restore.sh
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-1 Running
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-2 Starting
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-2 Started
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-1 Waiting
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-2 Waiting
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-1 Healthy
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-2 Healthy
|
||||
|
||||
exit_code: 0 elapsed_seconds: 2.004
|
||||
@@ -0,0 +1,53 @@
|
||||
date: 2026-11-05T18:57:54.853348+00:00 commit: 0a1f48bd73e5780c732356880c23fdb476bcff98
|
||||
environment: COMPOSE_PROJECT_NAME=mtusi2026lab3-grade3-final-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2 NO_PROXY=localhost,127.0.0.1,::1
|
||||
$ make retry-check
|
||||
python3 scripts/probe.py retry --out evidence/retry.json
|
||||
{
|
||||
"variants": [
|
||||
{
|
||||
"variant": "timeout",
|
||||
"lost_attempt": {
|
||||
"status": 0,
|
||||
"client_timeout_s": 0.5,
|
||||
"chat_lock_held_s": 1.5,
|
||||
"replica": "1b4a73f61b07",
|
||||
"replica_killed": false,
|
||||
"replica_answered": 201
|
||||
},
|
||||
"retry": {
|
||||
"after_s": 1.539,
|
||||
"status": 201,
|
||||
"attempts": 1,
|
||||
"replica": "8ffe0c70f4ea"
|
||||
},
|
||||
"copies_in_history": 1,
|
||||
"same_message": true,
|
||||
"written_by": "lost attempt",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"variant": "kill",
|
||||
"lost_attempt": {
|
||||
"status": 0,
|
||||
"client_timeout_s": 0.5,
|
||||
"chat_lock_held_s": 1.5,
|
||||
"replica": "8ffe0c70f4ea",
|
||||
"replica_killed": true,
|
||||
"replica_answered": null
|
||||
},
|
||||
"retry": {
|
||||
"after_s": 1.551,
|
||||
"status": 201,
|
||||
"attempts": 1,
|
||||
"replica": "1b4a73f61b07"
|
||||
},
|
||||
"copies_in_history": 1,
|
||||
"same_message": true,
|
||||
"written_by": "lost attempt",
|
||||
"pass": true
|
||||
}
|
||||
],
|
||||
"pass": true
|
||||
}
|
||||
|
||||
exit_code: 0 elapsed_seconds: 7.326
|
||||
@@ -0,0 +1,72 @@
|
||||
date: 2026-11-05T18:58:59.414270+00:00 commit: 0a1f48bd73e5780c732356880c23fdb476bcff98
|
||||
environment: COMPOSE_PROJECT_NAME=mtusi2026lab3-grade3-final-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2 NO_PROXY=localhost,127.0.0.1,::1
|
||||
$ make stack-evidence
|
||||
sh scripts/evidence-stack.sh
|
||||
date: 2026-11-05T18:58:59Z commit: 0a1f48b
|
||||
$ docker compose --env-file .env config --quiet && echo valid
|
||||
valid
|
||||
$ docker compose ps --format '{{.Service}} {{.Name}} {{.Status}} {{.Ports}}'
|
||||
api mtusi2026lab3-grade3-final-20261105-api-1 Up 16 seconds (healthy)
|
||||
api mtusi2026lab3-grade3-final-20261105-api-2 Up 16 seconds (healthy)
|
||||
lb mtusi2026lab3-grade3-final-20261105-lb-1 Up 17 seconds (healthy) 127.0.0.1:18083->8080/tcp, 127.0.0.1:23083->8404/tcp
|
||||
postgres mtusi2026lab3-grade3-final-20261105-postgres-1 Up 18 seconds (healthy)
|
||||
valkey mtusi2026lab3-grade3-final-20261105-valkey-1 Up 18 seconds (healthy)
|
||||
$ docker compose config | grep -c container_name
|
||||
0
|
||||
$ docker port <каждая реплика api> # реплики не публикуют порт
|
||||
8ffe0c70f4ea: []
|
||||
1b4a73f61b07: []
|
||||
$ docker inspect: hostname = X-Instance-Id, сети, лимиты CPU (nano) и памяти
|
||||
api 1b4a73f61b07 /mtusi2026lab3-grade3-final-20261105-api-2 nets=mtusi2026lab3-grade3-final-20261105_backend, cpus=1000000000 mem=536870912 user=10001:10001 ro=true
|
||||
api 8ffe0c70f4ea /mtusi2026lab3-grade3-final-20261105-api-1 nets=mtusi2026lab3-grade3-final-20261105_backend, cpus=1000000000 mem=536870912 user=10001:10001 ro=true
|
||||
lb 936b69811632 /mtusi2026lab3-grade3-final-20261105-lb-1 nets=mtusi2026lab3-grade3-final-20261105_backend,mtusi2026lab3-grade3-final-20261105_edge, cpus=1000000000 mem=134217728 user=haproxy ro=true
|
||||
postgres 097df27ee36a /mtusi2026lab3-grade3-final-20261105-postgres-1 nets=mtusi2026lab3-grade3-final-20261105_backend, cpus=2000000000 mem=1073741824 user=70:70 ro=false
|
||||
valkey ac9a3cf7b7a0 /mtusi2026lab3-grade3-final-20261105-valkey-1 nets=mtusi2026lab3-grade3-final-20261105_backend, cpus=500000000 mem=134217728 user=999:1000 ro=false
|
||||
$ curl LB stats: backend api, server status check
|
||||
api1 UP L7OK 200
|
||||
api2 UP L7OK 200
|
||||
BACKEND UP
|
||||
$ for i in 1..6: curl -D - http://127.0.0.1:18083/health/live | X-Instance-Id
|
||||
x-instance-id: 1b4a73f61b07
|
||||
x-instance-id: 8ffe0c70f4ea
|
||||
x-instance-id: 1b4a73f61b07
|
||||
x-instance-id: 8ffe0c70f4ea
|
||||
x-instance-id: 1b4a73f61b07
|
||||
x-instance-id: 8ffe0c70f4ea
|
||||
date: 2026-11-05T18:59:00Z commit: 0a1f48b
|
||||
host: Apple M4 Max, 16 CPU, 48 GiB RAM, macOS 15.1
|
||||
docker: 28.3.2, VM: 16 CPU, 8217190400 bytes
|
||||
compose: 2.38.2-desktop.1
|
||||
images:
|
||||
image: ${API_IMAGE:-mtusi-messenger:${COMPOSE_PROJECT_NAME}}
|
||||
image: haproxy:3.2.26-alpine@sha256:5893840576071e6217cd52ebdcc14f454c6f7a631056fa6f4e0f40d3cac4215b
|
||||
image: postgres:17.11-alpine@sha256:266d3c257594e195b309ae9d1805e54c788f1d7b375f56bf6c367aac6c917e7b
|
||||
image: valkey/valkey:8.1.11-alpine@sha256:2602ace2be6569bc2bbb06f873776516ab9089821525be34f4305c67eb9db02a
|
||||
image: grafana/k6:2.3.0@sha256:2dd4756ec6e14e62778916e1eb850108e4b499304c02df56760fa0bdb0fba0b8
|
||||
FROM python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d AS builder
|
||||
COPY --from=ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 /uv /usr/local/bin/uv
|
||||
FROM python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d AS runtime
|
||||
python in image: Python 3.14.7
|
||||
haproxy: HAProxy version 3.2.26-3e0f11a 2026/10/14 - https://haproxy.org/
|
||||
packages (uv.lock):
|
||||
fastapi 0.141.1
|
||||
uvicorn 0.54.0
|
||||
uvicorn-worker 0.4.0
|
||||
gunicorn 26.2.0
|
||||
sqlalchemy 2.0.45
|
||||
alembic 1.16.5
|
||||
asyncpg 0.32.0
|
||||
argon2-cffi 25.1.0
|
||||
pydantic 2.13.5
|
||||
pydantic-settings 2.15.0
|
||||
dishka 1.10.1
|
||||
structlog 26.1.0
|
||||
redis 8.1.0
|
||||
process users (service uid command):
|
||||
api 10001 python
|
||||
lb 99 haproxy
|
||||
postgres 70 postgres
|
||||
valkey 999 tini
|
||||
valkey 999 valkey-server
|
||||
|
||||
exit_code: 0 elapsed_seconds: 2.112
|
||||
@@ -0,0 +1,155 @@
|
||||
date: 2026-11-05T18:55:27.662096+00:00 commit: 0a1f48bd73e5780c732356880c23fdb476bcff98
|
||||
environment: COMPOSE_PROJECT_NAME=mtusi2026lab3-grade3-final-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2 NO_PROXY=localhost,127.0.0.1,::1
|
||||
$ sh -c 'docker volume ls --filter label=com.docker.compose.project="$COMPOSE_PROJECT_NAME"; docker compose config --quiet && make up && docker compose ps -a && docker compose exec -T postgres psql -U messenger -d messenger -c "SELECT version_num FROM alembic_version"'
|
||||
DRIVER VOLUME NAME
|
||||
sh scripts/secrets.sh
|
||||
docker compose up -d --build --wait
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 454B done
|
||||
#1 DONE 0.0s
|
||||
|
||||
#2 [internal] load build definition from Dockerfile
|
||||
#2 transferring dockerfile: 1.65kB done
|
||||
#2 DONE 0.0s
|
||||
|
||||
#3 [internal] load metadata for ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142
|
||||
#3 DONE 0.0s
|
||||
|
||||
#4 [internal] load metadata for docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d
|
||||
#4 DONE 1.7s
|
||||
|
||||
#5 [internal] load .dockerignore
|
||||
#5 transferring context: 437B done
|
||||
#5 DONE 0.0s
|
||||
|
||||
#6 FROM ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142
|
||||
#6 resolve ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 0.0s done
|
||||
#6 DONE 0.0s
|
||||
|
||||
#7 [internal] load build context
|
||||
#7 transferring context: 29.64kB done
|
||||
#7 DONE 0.0s
|
||||
|
||||
#8 [builder 1/7] FROM docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d
|
||||
#8 resolve docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d 0.0s done
|
||||
#8 DONE 0.0s
|
||||
|
||||
#9 [builder 4/7] COPY pyproject.toml uv.lock README.md ./
|
||||
#9 CACHED
|
||||
|
||||
#10 [builder 2/7] COPY --from=ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 /uv /usr/local/bin/uv
|
||||
#10 CACHED
|
||||
|
||||
#11 [builder 3/7] WORKDIR /build
|
||||
#11 CACHED
|
||||
|
||||
#12 [builder 5/7] RUN uv sync --locked --no-dev --no-install-project --no-editable
|
||||
#12 CACHED
|
||||
|
||||
#13 [builder 6/7] COPY src ./src
|
||||
#13 DONE 0.0s
|
||||
|
||||
#14 [builder 7/7] RUN uv sync --locked --no-dev --no-editable
|
||||
#14 0.139 Resolved 64 packages in 0.40ms
|
||||
#14 0.140 Building mtusi-messenger @ file:///build
|
||||
#14 1.569 Built mtusi-messenger @ file:///build
|
||||
#14 1.572 Prepared 1 package in 1.43s
|
||||
#14 1.576 Installed 1 package in 4ms
|
||||
#14 1.653 Bytecode compiled 1275 files in 76ms
|
||||
#14 1.653 + mtusi-messenger==1.3.0 (from file:///build)
|
||||
#14 DONE 1.7s
|
||||
|
||||
#15 [runtime 2/6] RUN groupadd --system --gid 10001 messenger && useradd --system --uid 10001 --gid messenger --no-create-home --shell /usr/sbin/nologin messenger
|
||||
#15 CACHED
|
||||
|
||||
#16 [runtime 3/6] COPY --from=builder --chown=root:root /opt/venv /opt/venv
|
||||
#16 DONE 0.2s
|
||||
|
||||
#17 [runtime 4/6] WORKDIR /app
|
||||
#17 DONE 0.0s
|
||||
|
||||
#18 [runtime 5/6] COPY --chown=root:root alembic.ini ./
|
||||
#18 DONE 0.0s
|
||||
|
||||
#19 [runtime 6/6] COPY --chown=root:root alembic ./alembic
|
||||
#19 DONE 0.0s
|
||||
|
||||
#20 exporting to image
|
||||
#20 exporting layers
|
||||
#20 exporting layers 1.8s done
|
||||
#20 exporting manifest sha256:5038ad65552ef8a56c20f7f9f042205fa4f08bed2182f7d170da334d08a3bd61
|
||||
#20 exporting manifest sha256:5038ad65552ef8a56c20f7f9f042205fa4f08bed2182f7d170da334d08a3bd61 done
|
||||
#20 exporting config sha256:de74256583c9ad3781e5456b23c7688aa2ee86733f0d16bcd296b9112aee8335 done
|
||||
#20 exporting attestation manifest sha256:206b908d058f5f2d5d194ed07ef9ab77cc18e8bcc9445e252eb82c397e4e5c81 done
|
||||
#20 exporting manifest list sha256:59081a6760b0d025ed7c613a68f6f939f3223f3ad2c6e8a9952ded4551c932ee done
|
||||
#20 naming to docker.io/library/mtusi-messenger:mtusi2026lab3-grade3-final-20261105 done
|
||||
#20 unpacking to docker.io/library/mtusi-messenger:mtusi2026lab3-grade3-final-20261105
|
||||
#20 unpacking to docker.io/library/mtusi-messenger:mtusi2026lab3-grade3-final-20261105 0.3s done
|
||||
#20 DONE 2.1s
|
||||
|
||||
#21 resolving provenance for metadata file
|
||||
#21 DONE 0.0s
|
||||
api Built
|
||||
Network mtusi2026lab3-grade3-final-20261105_backend Creating
|
||||
Network mtusi2026lab3-grade3-final-20261105_backend Created
|
||||
Network mtusi2026lab3-grade3-final-20261105_edge Creating
|
||||
Network mtusi2026lab3-grade3-final-20261105_edge Created
|
||||
Volume "mtusi2026lab3-grade3-final-20261105_valkeydata" Creating
|
||||
Volume "mtusi2026lab3-grade3-final-20261105_valkeydata" Created
|
||||
Volume "mtusi2026lab3-grade3-final-20261105_pgdata" Creating
|
||||
Volume "mtusi2026lab3-grade3-final-20261105_pgdata" Created
|
||||
Container mtusi2026lab3-grade3-final-20261105-lb-1 Creating
|
||||
Container mtusi2026lab3-grade3-final-20261105-valkey-1 Creating
|
||||
Container mtusi2026lab3-grade3-final-20261105-postgres-1 Creating
|
||||
Container mtusi2026lab3-grade3-final-20261105-valkey-1 Created
|
||||
Container mtusi2026lab3-grade3-final-20261105-lb-1 Created
|
||||
Container mtusi2026lab3-grade3-final-20261105-postgres-1 Created
|
||||
Container mtusi2026lab3-grade3-final-20261105-migrate-1 Creating
|
||||
Container mtusi2026lab3-grade3-final-20261105-migrate-1 Created
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-2 Creating
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-1 Creating
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-2 Created
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-1 Created
|
||||
Container mtusi2026lab3-grade3-final-20261105-lb-1 Starting
|
||||
Container mtusi2026lab3-grade3-final-20261105-postgres-1 Starting
|
||||
Container mtusi2026lab3-grade3-final-20261105-valkey-1 Starting
|
||||
Container mtusi2026lab3-grade3-final-20261105-valkey-1 Started
|
||||
Container mtusi2026lab3-grade3-final-20261105-postgres-1 Started
|
||||
Container mtusi2026lab3-grade3-final-20261105-postgres-1 Waiting
|
||||
Container mtusi2026lab3-grade3-final-20261105-lb-1 Started
|
||||
Container mtusi2026lab3-grade3-final-20261105-postgres-1 Healthy
|
||||
Container mtusi2026lab3-grade3-final-20261105-migrate-1 Starting
|
||||
Container mtusi2026lab3-grade3-final-20261105-migrate-1 Started
|
||||
Container mtusi2026lab3-grade3-final-20261105-migrate-1 Waiting
|
||||
Container mtusi2026lab3-grade3-final-20261105-migrate-1 Exited
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-1 Starting
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-1 Started
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-2 Starting
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-2 Started
|
||||
Container mtusi2026lab3-grade3-final-20261105-migrate-1 Waiting
|
||||
Container mtusi2026lab3-grade3-final-20261105-postgres-1 Waiting
|
||||
Container mtusi2026lab3-grade3-final-20261105-valkey-1 Waiting
|
||||
Container mtusi2026lab3-grade3-final-20261105-lb-1 Waiting
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-1 Waiting
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-2 Waiting
|
||||
Container mtusi2026lab3-grade3-final-20261105-migrate-1 Exited
|
||||
Container mtusi2026lab3-grade3-final-20261105-postgres-1 Healthy
|
||||
Container mtusi2026lab3-grade3-final-20261105-valkey-1 Healthy
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-1 Healthy
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-2 Healthy
|
||||
Container mtusi2026lab3-grade3-final-20261105-lb-1 Healthy
|
||||
scripts/lb-wait.sh
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab3-grade3-final-20261105-api-1 mtusi-messenger:mtusi2026lab3-grade3-final-20261105 "python -m gunicorn …" api 6 seconds ago Up 3 seconds (healthy)
|
||||
mtusi2026lab3-grade3-final-20261105-api-2 mtusi-messenger:mtusi2026lab3-grade3-final-20261105 "python -m gunicorn …" api 6 seconds ago Up 3 seconds (healthy)
|
||||
mtusi2026lab3-grade3-final-20261105-lb-1 haproxy:3.2.26-alpine@sha256:5893840576071e6217cd52ebdcc14f454c6f7a631056fa6f4e0f40d3cac4215b "docker-entrypoint.s…" lb 6 seconds ago Up 6 seconds (healthy) 127.0.0.1:18083->8080/tcp, 127.0.0.1:23083->8404/tcp
|
||||
mtusi2026lab3-grade3-final-20261105-migrate-1 mtusi-messenger:mtusi2026lab3-grade3-final-20261105 "alembic upgrade head" migrate 6 seconds ago Exited (0) 4 seconds ago
|
||||
mtusi2026lab3-grade3-final-20261105-postgres-1 postgres:17.11-alpine@sha256:266d3c257594e195b309ae9d1805e54c788f1d7b375f56bf6c367aac6c917e7b "docker-entrypoint.s…" postgres 6 seconds ago Up 6 seconds (healthy)
|
||||
mtusi2026lab3-grade3-final-20261105-valkey-1 valkey/valkey:8.1.11-alpine@sha256:2602ace2be6569bc2bbb06f873776516ab9089821525be34f4305c67eb9db02a "tini -- docker-entr…" valkey 6 seconds ago Up 6 seconds (healthy)
|
||||
version_num
|
||||
-----------------------
|
||||
0002_idempotency_keys
|
||||
(1 row)
|
||||
|
||||
|
||||
exit_code: 0 elapsed_seconds: 13.244
|
||||
@@ -0,0 +1,41 @@
|
||||
date: 2026-11-05T18:59:05.166340+00:00 commit: 0a1f48bd73e5780c732356880c23fdb476bcff98
|
||||
environment: COMPOSE_PROJECT_NAME=mtusi2026lab3-grade3-final-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2 NO_PROXY=localhost,127.0.0.1,::1
|
||||
$ sh -c 'make down && docker compose ps -a && docker volume ls --filter label=com.docker.compose.project="$COMPOSE_PROJECT_NAME" && docker volume ls --filter label=com.docker.compose.project=mtusi2026lab3-grade3-20261105'
|
||||
docker compose --profile bench down
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-2 Stopping
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-1 Stopping
|
||||
Container mtusi2026lab3-grade3-final-20261105-lb-1 Stopping
|
||||
Container mtusi2026lab3-grade3-final-20261105-lb-1 Stopped
|
||||
Container mtusi2026lab3-grade3-final-20261105-lb-1 Removing
|
||||
Container mtusi2026lab3-grade3-final-20261105-lb-1 Removed
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-2 Stopped
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-2 Removing
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-1 Stopped
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-1 Removing
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-2 Removed
|
||||
Container mtusi2026lab3-grade3-final-20261105-api-1 Removed
|
||||
Container mtusi2026lab3-grade3-final-20261105-valkey-1 Stopping
|
||||
Container mtusi2026lab3-grade3-final-20261105-migrate-1 Stopping
|
||||
Container mtusi2026lab3-grade3-final-20261105-migrate-1 Stopped
|
||||
Container mtusi2026lab3-grade3-final-20261105-migrate-1 Removing
|
||||
Container mtusi2026lab3-grade3-final-20261105-migrate-1 Removed
|
||||
Container mtusi2026lab3-grade3-final-20261105-postgres-1 Stopping
|
||||
Container mtusi2026lab3-grade3-final-20261105-postgres-1 Stopped
|
||||
Container mtusi2026lab3-grade3-final-20261105-postgres-1 Removing
|
||||
Container mtusi2026lab3-grade3-final-20261105-postgres-1 Removed
|
||||
Container mtusi2026lab3-grade3-final-20261105-valkey-1 Stopped
|
||||
Container mtusi2026lab3-grade3-final-20261105-valkey-1 Removing
|
||||
Container mtusi2026lab3-grade3-final-20261105-valkey-1 Removed
|
||||
Network mtusi2026lab3-grade3-final-20261105_edge Removing
|
||||
Network mtusi2026lab3-grade3-final-20261105_backend Removing
|
||||
Network mtusi2026lab3-grade3-final-20261105_edge Removed
|
||||
Network mtusi2026lab3-grade3-final-20261105_backend Removed
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
DRIVER VOLUME NAME
|
||||
local mtusi2026lab3-grade3-final-20261105_pgdata
|
||||
local mtusi2026lab3-grade3-final-20261105_valkeydata
|
||||
DRIVER VOLUME NAME
|
||||
local mtusi2026lab3-grade3-20261105_pgdata
|
||||
local mtusi2026lab3-grade3-20261105_valkeydata
|
||||
|
||||
exit_code: 0 elapsed_seconds: 3.351
|
||||
@@ -0,0 +1,7 @@
|
||||
date: 2026-11-05T18:59:01.562450+00:00 commit: 0a1f48bd73e5780c732356880c23fdb476bcff98
|
||||
environment: COMPOSE_PROJECT_NAME=mtusi2026lab3-grade3-final-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2 NO_PROXY=localhost,127.0.0.1,::1
|
||||
$ make storage-evidence
|
||||
sh scripts/evidence-storage.sh
|
||||
evidence/{schema,migrations,kdf,secrets}.txt обновлены
|
||||
|
||||
exit_code: 0 elapsed_seconds: 3.569
|
||||
@@ -0,0 +1,69 @@
|
||||
date: 2026-11-05T18:47:00.548192+00:00 commit: 7fc911c332aefe33285ea9e7811c37abd9bb20a6
|
||||
environment: COMPOSE_PROJECT_NAME=mtusi2026lab3-grade3-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2 NO_PROXY=localhost,127.0.0.1,::1
|
||||
$ make student-test PYTEST_ARGS=-vv
|
||||
.venv/bin/pytest -vv
|
||||
============================= test session starts ==============================
|
||||
platform darwin -- Python 3.14.5, pytest-9.1.1, pluggy-1.6.0 -- <repo>/.venv/bin/python
|
||||
cachedir: .pytest_cache
|
||||
rootdir: <repo>
|
||||
configfile: pyproject.toml
|
||||
testpaths: student-tests
|
||||
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
|
||||
collecting ... collected 282 items / 12 deselected / 270 selected
|
||||
|
||||
student-tests/api/test_access.py::test_outsider_gets_404_on_chat PASSED [ 0%]
|
||||
student-tests/api/test_access.py::test_unknown_chat_is_indistinguishable_from_foreign PASSED [ 0%]
|
||||
student-tests/api/test_access.py::test_outsider_cannot_write PASSED [ 1%]
|
||||
student-tests/api/test_access.py::test_outsider_cannot_read_history PASSED [ 1%]
|
||||
student-tests/api/test_access.py::test_access_checked_before_body PASSED [ 1%]
|
||||
student-tests/api/test_access.py::test_chat_list_hides_foreign_chats PASSED [ 2%]
|
||||
student-tests/api/test_access.py::test_403_is_never_used PASSED [ 2%]
|
||||
student-tests/api/test_access.py::test_request_shape_is_checked_before_access PASSED [ 2%]
|
||||
student-tests/api/test_access.py::test_outsider_does_not_wait_for_members_lock PASSED [ 3%]
|
||||
student-tests/api/test_bounded_contexts.py::test_identity_does_not_know_about_messaging PASSED [ 3%]
|
||||
student-tests/api/test_bounded_contexts.py::test_domains_do_not_import_infrastructure PASSED [ 4%]
|
||||
student-tests/api/test_bounded_contexts.py::test_core_layers_do_not_import_pydantic PASSED [ 4%]
|
||||
student-tests/api/test_bounded_contexts.py::test_shared_knows_nothing_about_zones PASSED [ 4%]
|
||||
student-tests/api/test_bounded_contexts.py::test_shared_core_is_free_of_transport PASSED [ 5%]
|
||||
student-tests/api/test_bounded_contexts.py::test_shared_core_holds_only_platform PASSED [ 5%]
|
||||
student-tests/api/test_bounded_contexts.py::test_shared_entrypoints_hold_only_transport PASSED [ 5%]
|
||||
student-tests/api/test_bounded_contexts.py::test_every_zone_owns_its_errors_events_and_commands PASSED [ 6%]
|
||||
student-tests/api/test_bounded_contexts.py::test_every_zone_owns_its_http_layer PASSED [ 6%]
|
||||
student-tests/api/test_bounded_contexts.py::test_only_main_knows_both_zones PASSED [ 7%]
|
||||
student-tests/api/test_bounded_contexts.py::test_application_has_no_separate_entrypoints_root PASSED [ 7%]
|
||||
student-tests/api/test_bounded_contexts.py::test_shared_source_mentions_no_domain_vocabulary PASSED [ 7%]
|
||||
student-tests/api/test_bounded_contexts.py::test_shared_declares_no_concrete_commands_or_events PASSED [ 8%]
|
||||
student-tests/api/test_bounded_contexts.py::test_shared_has_no_test_doubles PASSED [ 8%]
|
||||
student-tests/api/test_bounded_contexts.py::test_zone_errors_do_not_leak_transport_codes PASSED [ 8%]
|
||||
student-tests/api/test_bounded_contexts.py::test_sql_of_each_zone_reads_only_its_tables PASSED [ 9%]
|
||||
student-tests/api/test_bounded_contexts.py::test_messaging_does_not_import_identity_at_all PASSED [ 9%]
|
||||
student-tests/api/test_bounded_contexts.py::test_sqlalchemy_stays_in_infrastructure_and_asyncpg_is_only_a_driver PASSED [ 10%]
|
||||
student-tests/api/test_cache.py::test_second_check_is_served_from_cache PASSED [ 10%]
|
||||
student-tests/api/test_cache.py::test_logout_writes_tombstone_before_database PASSED [ 10%]
|
||||
student-tests/api/test_cache.py::test_logout_rejected_by_database_changes_nothing PASSED [ 11%]
|
||||
student-tests/api/test_cache.py::test_fill_racing_with_logout_does_not_revive_token PASSED [ 11%]
|
||||
student-tests/api/test_cache.py::test_flushall_loses_nothing PASSED [ 11%]
|
||||
student-tests/api/test_cache.py::test_unreachable_cache_is_bypassed_without_anonymous_access PASSED [ 12%]
|
||||
student-tests/api/test_concurrency.py::test_hundred_messages_from_ten_clients PASSED [ 12%]
|
||||
student-tests/api/test_concurrency.py::test_history_follows_the_clock_but_never_moves_back PASSED [ 12%]
|
||||
student-tests/api/test_concurrency.py::test_parallel_registration_keeps_username_unique PASSED [ 13%]
|
||||
student-tests/api/test_concurrency.py::test_parallel_chat_creation_is_atomic PASSED [ 13%]
|
||||
student-tests/api/test_consistency.py::test_registration_is_visible_to_chats_immediately PASSED [ 14%]
|
||||
student-tests/api/test_consistency.py::test_parallel_registrations_are_all_usable_as_members PASSED [ 14%]
|
||||
student-tests/api/test_consistency.py::test_rejected_registration_leaves_no_trace PASSED [ 14%]
|
||||
student-tests/api/test_consistency.py::test_failed_chat_creation_rolls_back_both_tables PASSED [ 15%]
|
||||
student-tests/api/test_consistency.py::test_rejected_message_does_not_enter_history PASSED [ 15%]
|
||||
student-tests/api/test_consistency.py::test_confirmed_write_is_visible_to_next_read PASSED [ 15%]
|
||||
student-tests/api/test_consistency.py::test_parallel_writes_across_zones_keep_counts_consistent PASSED [ 16%]
|
||||
student-tests/api/test_consistency.py::test_chat_membership_survives_parallel_reads_and_writes PASSED [ 16%]
|
||||
student-tests/api/test_drain.py::test_draining_replica_is_not_ready_but_alive PASSED [ 17%]
|
||||
student-tests/api/test_drain.py::test_sigterm_leaves_rotation_then_closes_and_cancels_stuck_requests
|
||||
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! KeyboardInterrupt !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
<repo>/student-tests/api/test_drain.py:101: KeyboardInterrupt
|
||||
(to show a full traceback on KeyboardInterrupt use --full-trace)
|
||||
================ 46 passed, 12 deselected in 275.91s (0:04:35) =================
|
||||
make: *** [student-test] Error 2
|
||||
|
||||
exit_code: 2 elapsed_seconds: 276.378
|
||||
Binary file not shown.
@@ -0,0 +1,23 @@
|
||||
date: 2026-11-05T19:06:00.788460+00:00 commit: 0a1f48bd73e5780c732356880c23fdb476bcff98
|
||||
environment: COMPOSE_PROJECT_NAME=mtusi2026lab3-grade3-final-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2 NO_PROXY=localhost,127.0.0.1,::1
|
||||
$ git diff --check
|
||||
evidence/migrations.txt:3: trailing whitespace.
|
||||
+ users | sessions | chats | members | messages | keys | versions
|
||||
evidence/migrations.txt:10: trailing whitespace.
|
||||
+ users | sessions | chats | members | messages | keys | versions
|
||||
evidence/schema.txt:120: trailing whitespace.
|
||||
+ Column | Type | Collation | Nullable | Default | Storage | Compression | Stats target | Description
|
||||
evidence/schema.txt:122: trailing whitespace.
|
||||
+ version_num | character varying(32) | | not null | | extended | | |
|
||||
evidence/schema.txt:128: trailing whitespace.
|
||||
+ version_num
|
||||
evidence/stack.txt:5: trailing whitespace.
|
||||
+api mtusi2026lab3-grade3-final-20261105-api-1 Up 16 seconds (healthy)
|
||||
evidence/stack.txt:6: trailing whitespace.
|
||||
+api mtusi2026lab3-grade3-final-20261105-api-2 Up 16 seconds (healthy)
|
||||
evidence/stack.txt:8: trailing whitespace.
|
||||
+postgres mtusi2026lab3-grade3-final-20261105-postgres-1 Up 18 seconds (healthy)
|
||||
evidence/stack.txt:9: trailing whitespace.
|
||||
+valkey mtusi2026lab3-grade3-final-20261105-valkey-1 Up 18 seconds (healthy)
|
||||
|
||||
exit_code: 2 elapsed_seconds: 0.017
|
||||
@@ -0,0 +1,8 @@
|
||||
date: 2026-11-05T19:16:05.293964+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ sh -ec 'make test; make limits; make lb-check; docker compose ps -a --format "{{.ID}} {{.Service}} {{.Status}}"; docker inspect -f "{{.Name}} {{.Config.Hostname}} image={{.Image}}" $(docker compose ps -q api)'
|
||||
python3 tests/smoke.py --base-url "http://127.0.0.1:18083"
|
||||
FAIL: GET /health/live: connection/TLS failure (RemoteDisconnected)
|
||||
make: *** [test] Error 1
|
||||
|
||||
exit: 2 elapsed_seconds: 0.276
|
||||
@@ -0,0 +1,66 @@
|
||||
date: 2026-11-05T19:16:58.984609+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
NO_PROXY=localhost,127.0.0.1,::1 COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ sh -ec 'make restore; make test; make limits; make lb-check; docker compose ps -a --format "{{.ID}} {{.Service}} {{.Status}}"; docker inspect -f "{{.Name}} {{.Config.Hostname}} image={{.Image}}" $(docker compose ps -q api)'
|
||||
scripts/restore.sh
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Healthy
|
||||
python3 tests/smoke.py --base-url "http://127.0.0.1:18083"
|
||||
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
|
||||
python3 scripts/limits.py --out evidence/limits.txt
|
||||
date: 2026-11-05T19:17:00Z commit: 252e3e3
|
||||
$ docker compose --profile bench config --format json (declared)
|
||||
service cpus/mem ports secrets volumes networks ro
|
||||
-------- ---------- ------------------------------- ------------------------------------ ---------- ---------------------- -----
|
||||
api 1/512MiB - cache_url,cursor_secret,database_url - backend(internal) true
|
||||
k6 2/512MiB - - - edge false
|
||||
lb 1/128MiB 127.0.0.1:18083,127.0.0.1:23083 - - backend(internal),edge true
|
||||
migrate 0.5/256MiB - database_url - backend(internal) false
|
||||
postgres 2/1024MiB - postgres_password pgdata backend(internal) false
|
||||
valkey 0.5/128MiB - valkey.conf valkeydata backend(internal) false
|
||||
|
||||
$ docker inspect (running containers: hostname = X-Instance-Id, applied limits)
|
||||
service hostname cpus memory published
|
||||
-------- ------------ ---- ------- ---------------------------------------------------
|
||||
api 5bbf259ff136 1 512MiB
|
||||
api 7cfd91ddf780 1 512MiB
|
||||
lb 4f83577b3411 1 128MiB 127.0.0.1:18083->8080/tcp,127.0.0.1:23083->8404/tcp
|
||||
postgres f225c6cd77bb 2 1024MiB
|
||||
valkey 5e3ed0a9a35a 0.5 128MiB
|
||||
|
||||
PASS: limits, ports, secrets, volumes and networks match the policy
|
||||
python3 scripts/probe.py check --rounds 20 --out evidence/lb-check.json
|
||||
{
|
||||
"instances_one_token": {
|
||||
"7cfd91ddf780": 20,
|
||||
"5bbf259ff136": 20
|
||||
},
|
||||
"same_key": {
|
||||
"rounds": 20,
|
||||
"parallel": 8,
|
||||
"statuses": {
|
||||
"201": 160
|
||||
},
|
||||
"instances": {
|
||||
"5bbf259ff136": 80,
|
||||
"7cfd91ddf780": 80
|
||||
},
|
||||
"identical_bodies_rounds": 20,
|
||||
"single_copy_rounds": 20,
|
||||
"conflict_rounds": 20
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
7cfd91ddf780 api Up 6 seconds (healthy)
|
||||
5bbf259ff136 api Up About a minute (healthy)
|
||||
4f83577b3411 lb Up About a minute (healthy)
|
||||
ad30cd539e85 migrate Exited (0) About a minute ago
|
||||
f225c6cd77bb postgres Up About a minute (healthy)
|
||||
5e3ed0a9a35a valkey Up About a minute (healthy)
|
||||
/mtusi2026lab3-grade4-20261105-api-1 7cfd91ddf780 image=sha256:fdc0128530c7f092746491b339125eea9fe079b86dcc5c8c3aa89e224fca1706
|
||||
/mtusi2026lab3-grade4-20261105-api-2 5bbf259ff136 image=sha256:fdc0128530c7f092746491b339125eea9fe079b86dcc5c8c3aa89e224fca1706
|
||||
|
||||
exit: 0 elapsed_seconds: 2.654
|
||||
@@ -0,0 +1,35 @@
|
||||
date: 2026-11-05T19:29:36.759200+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
NO_PROXY=localhost,127.0.0.1,::1 COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ sh -ec 'make check; make validate; make lint; uv lock --check; openspec validate --all --strict; git diff --check; test -z "$(git diff ef0b9a3 --name-only -- contracts tests README.md COURSE.md .pipeline)"; test -z "$(git ls-files .env secrets volumes)"; echo "PASS: normative files and pipeline unchanged; no tracked secrets or volumes"'
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
.venv/bin/python scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
.venv/bin/ruff check src student-tests alembic scripts/probe.py scripts/limits.py scripts/scaling.py tools
|
||||
All checks passed!
|
||||
.venv/bin/ruff format --check src student-tests alembic scripts/probe.py scripts/limits.py scripts/scaling.py tools
|
||||
108 files already formatted
|
||||
.venv/bin/ty check src student-tests alembic
|
||||
All checks passed!
|
||||
Resolved 64 packages in 18ms
|
||||
- Validating...
|
||||
✓ change/2026-11-05-adopt-sqlalchemy-alembic
|
||||
✓ spec/lab1-event-publication
|
||||
✓ spec/lab1-messenger-chats
|
||||
✓ spec/lab1-messenger-history
|
||||
✓ spec/lab1-messenger-identity
|
||||
✓ spec/lab1-service-operability
|
||||
✓ spec/lab2-auth-sessions
|
||||
✓ spec/lab2-dependency-failures
|
||||
✓ spec/lab2-history-index
|
||||
✓ spec/lab2-persistent-storage
|
||||
✓ spec/lab2-session-cache
|
||||
✓ spec/lab3-failover-operations
|
||||
✓ spec/lab3-idempotent-messages
|
||||
✓ spec/lab3-load-balancing
|
||||
✓ spec/lab3-scaling-cost
|
||||
✓ change/verify-lab3-grade4-recovery
|
||||
Totals: 16 passed, 0 failed (16 items)
|
||||
PASS: normative files and pipeline unchanged; no tracked secrets or volumes
|
||||
|
||||
exit: 0 elapsed_seconds: 1.683
|
||||
@@ -0,0 +1,65 @@
|
||||
date: 2026-11-05T19:16:10.092594+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ make detection
|
||||
rm -rf evidence/detection
|
||||
for run in 1 2 3; do sh scripts/detection.sh evidence/detection/run$run || exit 1; done
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Healthy
|
||||
7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Starting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Started
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Healthy
|
||||
{
|
||||
"action": [
|
||||
"docker",
|
||||
"stop",
|
||||
"-t",
|
||||
"7",
|
||||
"7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 2.761,
|
||||
"lb_up_before": 0,
|
||||
"lb_samples_missing": 110,
|
||||
"lb_up_counted_as_detected": -1,
|
||||
"detection_seconds": null,
|
||||
"declared_max_seconds": 1.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 0,
|
||||
"x_instance_id_present": false,
|
||||
"error_code": null
|
||||
},
|
||||
"restore": "scripts/restore.sh",
|
||||
"restore_seconds": 2.3,
|
||||
"lb_up_after_restore": null,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": false,
|
||||
"detected_in_time": false,
|
||||
"lb_answer_ok": false,
|
||||
"excluded_before_action_end": false,
|
||||
"restored": true
|
||||
},
|
||||
"pass": false
|
||||
}
|
||||
7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Starting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Started
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Healthy
|
||||
make: *** [detection] Terminated: 15
|
||||
|
||||
exit: 2 elapsed_seconds: 48.801
|
||||
@@ -0,0 +1,35 @@
|
||||
{"date": "2026-11-05T19:16:10.092594+00:00", "commit": "252e3e3ffeea5004cfd9dc342e686af1417a77a2",
|
||||
"action": [
|
||||
"docker",
|
||||
"stop",
|
||||
"-t",
|
||||
"7",
|
||||
"7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 2.761,
|
||||
"lb_up_before": 0,
|
||||
"lb_samples_missing": 110,
|
||||
"lb_up_counted_as_detected": -1,
|
||||
"detection_seconds": null,
|
||||
"declared_max_seconds": 1.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 0,
|
||||
"x_instance_id_present": false,
|
||||
"error_code": null
|
||||
},
|
||||
"restore": "scripts/restore.sh",
|
||||
"restore_seconds": 2.3,
|
||||
"lb_up_after_restore": null,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": false,
|
||||
"detected_in_time": false,
|
||||
"lb_answer_ok": false,
|
||||
"excluded_before_action_end": false,
|
||||
"restored": true
|
||||
},
|
||||
"pass": false
|
||||
}
|
||||
@@ -0,0 +1,478 @@
|
||||
date: 2026-11-05T19:17:01.673107+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
NO_PROXY=localhost,127.0.0.1,::1 COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ make detection
|
||||
rm -rf evidence/detection
|
||||
for run in 1 2 3; do sh scripts/detection.sh evidence/detection/run$run || exit 1; done
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Healthy
|
||||
7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Starting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Started
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Healthy
|
||||
{
|
||||
"action": [
|
||||
"docker",
|
||||
"stop",
|
||||
"-t",
|
||||
"7",
|
||||
"7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 2.535,
|
||||
"lb_up_before": 2,
|
||||
"lb_samples_missing": 0,
|
||||
"lb_up_counted_as_detected": 1,
|
||||
"detection_seconds": 1.069,
|
||||
"declared_max_seconds": 1.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 200,
|
||||
"x_instance_id_present": true,
|
||||
"error_code": null
|
||||
},
|
||||
"restore": "scripts/restore.sh",
|
||||
"restore_seconds": 1.969,
|
||||
"lb_up_after_restore": 2,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": true,
|
||||
"detected_in_time": true,
|
||||
"lb_answer_ok": true,
|
||||
"excluded_before_action_end": true,
|
||||
"restored": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Starting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Started
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Healthy
|
||||
{
|
||||
"action": [
|
||||
"docker",
|
||||
"kill",
|
||||
"7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 0.113,
|
||||
"lb_up_before": 2,
|
||||
"lb_samples_missing": 0,
|
||||
"lb_up_counted_as_detected": 1,
|
||||
"detection_seconds": 0.934,
|
||||
"declared_max_seconds": 1.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 200,
|
||||
"x_instance_id_present": true,
|
||||
"error_code": null
|
||||
},
|
||||
"restore": "scripts/restore.sh",
|
||||
"restore_seconds": 2.57,
|
||||
"lb_up_after_restore": 2,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": true,
|
||||
"detected_in_time": true,
|
||||
"lb_answer_ok": true,
|
||||
"restored": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170
|
||||
7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170
|
||||
{
|
||||
"action": [
|
||||
"docker",
|
||||
"pause",
|
||||
"7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 0.057,
|
||||
"lb_up_before": 2,
|
||||
"lb_samples_missing": 0,
|
||||
"lb_up_counted_as_detected": 1,
|
||||
"detection_seconds": 3.215,
|
||||
"declared_max_seconds": 3.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 200,
|
||||
"x_instance_id_present": true,
|
||||
"error_code": null
|
||||
},
|
||||
"restore": "docker unpause 7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170 && scripts/lb-wait.sh",
|
||||
"restore_seconds": 2.425,
|
||||
"lb_up_after_restore": 2,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": true,
|
||||
"detected_in_time": true,
|
||||
"lb_answer_ok": true,
|
||||
"restored": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
f225c6cd77bb40f6e598bd65a1b50fa8244700978ee4086700860e0fb076857a
|
||||
f225c6cd77bb40f6e598bd65a1b50fa8244700978ee4086700860e0fb076857a
|
||||
{
|
||||
"action": [
|
||||
"docker",
|
||||
"stop",
|
||||
"f225c6cd77bb40f6e598bd65a1b50fa8244700978ee4086700860e0fb076857a"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 0.167,
|
||||
"lb_up_before": 2,
|
||||
"lb_samples_missing": 0,
|
||||
"lb_up_counted_as_detected": 0,
|
||||
"detection_seconds": 1.196,
|
||||
"declared_max_seconds": 1.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 503,
|
||||
"x_instance_id_present": false,
|
||||
"error_code": "unavailable"
|
||||
},
|
||||
"restore": "docker start f225c6cd77bb40f6e598bd65a1b50fa8244700978ee4086700860e0fb076857a && scripts/lb-wait.sh",
|
||||
"restore_seconds": 2.475,
|
||||
"lb_up_after_restore": 2,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": true,
|
||||
"detected_in_time": true,
|
||||
"lb_answer_ok": true,
|
||||
"restored": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Healthy
|
||||
7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Starting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Started
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Healthy
|
||||
{
|
||||
"action": [
|
||||
"docker",
|
||||
"stop",
|
||||
"-t",
|
||||
"7",
|
||||
"7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 2.662,
|
||||
"lb_up_before": 2,
|
||||
"lb_samples_missing": 0,
|
||||
"lb_up_counted_as_detected": 1,
|
||||
"detection_seconds": 1.205,
|
||||
"declared_max_seconds": 1.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 200,
|
||||
"x_instance_id_present": true,
|
||||
"error_code": null
|
||||
},
|
||||
"restore": "scripts/restore.sh",
|
||||
"restore_seconds": 1.953,
|
||||
"lb_up_after_restore": 2,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": true,
|
||||
"detected_in_time": true,
|
||||
"lb_answer_ok": true,
|
||||
"excluded_before_action_end": true,
|
||||
"restored": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Starting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Started
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Healthy
|
||||
{
|
||||
"action": [
|
||||
"docker",
|
||||
"kill",
|
||||
"7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 0.162,
|
||||
"lb_up_before": 2,
|
||||
"lb_samples_missing": 0,
|
||||
"lb_up_counted_as_detected": 1,
|
||||
"detection_seconds": 0.901,
|
||||
"declared_max_seconds": 1.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 200,
|
||||
"x_instance_id_present": true,
|
||||
"error_code": null
|
||||
},
|
||||
"restore": "scripts/restore.sh",
|
||||
"restore_seconds": 3.086,
|
||||
"lb_up_after_restore": 2,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": true,
|
||||
"detected_in_time": true,
|
||||
"lb_answer_ok": true,
|
||||
"restored": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170
|
||||
7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170
|
||||
{
|
||||
"action": [
|
||||
"docker",
|
||||
"pause",
|
||||
"7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 0.063,
|
||||
"lb_up_before": 2,
|
||||
"lb_samples_missing": 0,
|
||||
"lb_up_counted_as_detected": 1,
|
||||
"detection_seconds": 2.817,
|
||||
"declared_max_seconds": 3.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 200,
|
||||
"x_instance_id_present": true,
|
||||
"error_code": null
|
||||
},
|
||||
"restore": "docker unpause 7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170 && scripts/lb-wait.sh",
|
||||
"restore_seconds": 2.378,
|
||||
"lb_up_after_restore": 2,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": true,
|
||||
"detected_in_time": true,
|
||||
"lb_answer_ok": true,
|
||||
"restored": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
f225c6cd77bb40f6e598bd65a1b50fa8244700978ee4086700860e0fb076857a
|
||||
f225c6cd77bb40f6e598bd65a1b50fa8244700978ee4086700860e0fb076857a
|
||||
{
|
||||
"action": [
|
||||
"docker",
|
||||
"stop",
|
||||
"f225c6cd77bb40f6e598bd65a1b50fa8244700978ee4086700860e0fb076857a"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 0.17,
|
||||
"lb_up_before": 2,
|
||||
"lb_samples_missing": 0,
|
||||
"lb_up_counted_as_detected": 0,
|
||||
"detection_seconds": 1.263,
|
||||
"declared_max_seconds": 1.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 503,
|
||||
"x_instance_id_present": false,
|
||||
"error_code": "unavailable"
|
||||
},
|
||||
"restore": "docker start f225c6cd77bb40f6e598bd65a1b50fa8244700978ee4086700860e0fb076857a && scripts/lb-wait.sh",
|
||||
"restore_seconds": 2.455,
|
||||
"lb_up_after_restore": 2,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": true,
|
||||
"detected_in_time": true,
|
||||
"lb_answer_ok": true,
|
||||
"restored": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Healthy
|
||||
7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Starting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Started
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Healthy
|
||||
{
|
||||
"action": [
|
||||
"docker",
|
||||
"stop",
|
||||
"-t",
|
||||
"7",
|
||||
"7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 2.665,
|
||||
"lb_up_before": 2,
|
||||
"lb_samples_missing": 0,
|
||||
"lb_up_counted_as_detected": 1,
|
||||
"detection_seconds": 1.266,
|
||||
"declared_max_seconds": 1.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 200,
|
||||
"x_instance_id_present": true,
|
||||
"error_code": null
|
||||
},
|
||||
"restore": "scripts/restore.sh",
|
||||
"restore_seconds": 1.984,
|
||||
"lb_up_after_restore": 2,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": true,
|
||||
"detected_in_time": true,
|
||||
"lb_answer_ok": true,
|
||||
"excluded_before_action_end": true,
|
||||
"restored": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Starting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Started
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Healthy
|
||||
{
|
||||
"action": [
|
||||
"docker",
|
||||
"kill",
|
||||
"7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 0.163,
|
||||
"lb_up_before": 2,
|
||||
"lb_samples_missing": 0,
|
||||
"lb_up_counted_as_detected": 1,
|
||||
"detection_seconds": 0.886,
|
||||
"declared_max_seconds": 1.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 200,
|
||||
"x_instance_id_present": true,
|
||||
"error_code": null
|
||||
},
|
||||
"restore": "scripts/restore.sh",
|
||||
"restore_seconds": 3.095,
|
||||
"lb_up_after_restore": 2,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": true,
|
||||
"detected_in_time": true,
|
||||
"lb_answer_ok": true,
|
||||
"restored": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170
|
||||
7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170
|
||||
{
|
||||
"action": [
|
||||
"docker",
|
||||
"pause",
|
||||
"7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 0.063,
|
||||
"lb_up_before": 2,
|
||||
"lb_samples_missing": 0,
|
||||
"lb_up_counted_as_detected": 1,
|
||||
"detection_seconds": 2.778,
|
||||
"declared_max_seconds": 3.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 200,
|
||||
"x_instance_id_present": true,
|
||||
"error_code": null
|
||||
},
|
||||
"restore": "docker unpause 7cfd91ddf780f4c432d3f69358c626eed4986c5841c85eab201e9330976e1170 && scripts/lb-wait.sh",
|
||||
"restore_seconds": 2.416,
|
||||
"lb_up_after_restore": 2,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": true,
|
||||
"detected_in_time": true,
|
||||
"lb_answer_ok": true,
|
||||
"restored": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
f225c6cd77bb40f6e598bd65a1b50fa8244700978ee4086700860e0fb076857a
|
||||
f225c6cd77bb40f6e598bd65a1b50fa8244700978ee4086700860e0fb076857a
|
||||
{
|
||||
"action": [
|
||||
"docker",
|
||||
"stop",
|
||||
"f225c6cd77bb40f6e598bd65a1b50fa8244700978ee4086700860e0fb076857a"
|
||||
],
|
||||
"action_exit": 0,
|
||||
"action_seconds": 0.163,
|
||||
"lb_up_before": 2,
|
||||
"lb_samples_missing": 0,
|
||||
"lb_up_counted_as_detected": 0,
|
||||
"detection_seconds": 1.239,
|
||||
"declared_max_seconds": 1.5,
|
||||
"measurement_slack_seconds": 0.25,
|
||||
"lb_answer_after_detection": {
|
||||
"path": "/health/live",
|
||||
"status": 503,
|
||||
"x_instance_id_present": false,
|
||||
"error_code": "unavailable"
|
||||
},
|
||||
"restore": "docker start f225c6cd77bb40f6e598bd65a1b50fa8244700978ee4086700860e0fb076857a && scripts/lb-wait.sh",
|
||||
"restore_seconds": 2.481,
|
||||
"lb_up_after_restore": 2,
|
||||
"checks": {
|
||||
"action_ok": true,
|
||||
"lb_observed": true,
|
||||
"detected_in_time": true,
|
||||
"lb_answer_ok": true,
|
||||
"restored": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
|
||||
exit: 0 elapsed_seconds: 60.401
|
||||
@@ -0,0 +1,21 @@
|
||||
date: 2026-11-05T19:18:40.804026+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
Наблюдения при разработке (сводка вывода инструментов, не сырой лог).
|
||||
На 8a7e027 с WIP scripts/probe.py и student-tests/unit/test_probe.py:
|
||||
$ .venv/bin/ruff check scripts/probe.py
|
||||
exit 1: E501, две строки 101/102 символа; ruff format исправил переносы.
|
||||
$ .venv/bin/ruff check student-tests/unit/test_probe.py
|
||||
exit 1: ARG005 у аргументов lambda a/kw; переименованы в _a/_kw.
|
||||
$ make student-test PYTEST_ARGS='-q student-tests/unit/test_probe.py'
|
||||
14 passed in 0.01s.
|
||||
После исправлений, до коммита 252e3e3:
|
||||
$ make check
|
||||
PASS.
|
||||
$ make lint
|
||||
PASS: ruff check, 108 files already formatted, ty.
|
||||
$ make student-test
|
||||
285 passed, 12 deselected in 31.08s.
|
||||
Context7 /alembic/alembic/1.16 не нашёл документацию. Resolve вернул
|
||||
/sqlalchemy/alembic/rel_1_16_5; async cookbook прочитан успешно.
|
||||
Context7 /sqlalchemy/sqlalchemy/2.0 вернул ветку rel_2_0_55. Семантика pool_pre_ping
|
||||
дополнительно сверена с .venv/lib/python3.14/site-packages/sqlalchemy/pool/base.py
|
||||
у установленной версии 2.0.45; AsyncEngine.dispose и async_sessionmaker уже используются.
|
||||
@@ -0,0 +1,25 @@
|
||||
date: 2026-11-05T19:16:05.604041+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ make student-test 'PYTEST_ARGS=-v -s student-tests/api/test_drain.py student-tests/unit/test_timeouts.py'
|
||||
.venv/bin/pytest -v -s student-tests/api/test_drain.py student-tests/unit/test_timeouts.py
|
||||
============================= test session starts ==============================
|
||||
platform darwin -- Python 3.14.5, pytest-9.1.1, pluggy-1.6.0 -- <repo>/.venv/bin/python
|
||||
cachedir: .pytest_cache
|
||||
rootdir: <repo>
|
||||
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
|
||||
collecting ... collected 3 items
|
||||
|
||||
student-tests/api/test_drain.py::test_draining_replica_is_not_ready_but_alive PASSED
|
||||
student-tests/api/test_drain.py::test_sigterm_leaves_rotation_then_closes_and_cancels_stuck_requests окно: ready/live (503, 200), порт закрыт через 1.05 с, выход 2.44 с
|
||||
запрос, принятый до SIGTERM и дописанный после закрытия порта: HTTP/1.1 201 Created
|
||||
запрос, тело которого так и не пришло: HTTP/1.1 503 Service Unavailable
|
||||
content-type application/json, тело {'error': {'code': 'unavailable', 'message': 'Сервис временно недоступен', 'request_id': '696dc801542f4169965fa2cd535d8d1a'}}
|
||||
PASSED
|
||||
student-tests/unit/test_timeouts.py::test_timeouts_shrink_inwards_and_shutdown_fits_the_stop_budget обнаружение 1.5 с (зависание 3.5 с), окно 2.0 с, дообработка 3.0 с, остановка 6.0 с, хук 7.0 с, stop_grace_period 8.0 с; LB server 10.0 с > запрос 8.0 с > БД 3.0 с; readiness 0.8 с < check 1.0 с
|
||||
PASSED
|
||||
|
||||
============================== 3 passed in 3.97s ===============================
|
||||
|
||||
exit: 0 elapsed_seconds: 4.452
|
||||
@@ -0,0 +1,48 @@
|
||||
date: 2026-11-05T19:32:13.299806+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
NO_PROXY=localhost,127.0.0.1,::1 COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ python3 -c 'import csv,io,json,re,subprocess
|
||||
from pathlib import Path
|
||||
root=Path('"'"'evidence'"'"')
|
||||
det=list((root/'"'"'detection'"'"').glob('"'"'*/*.json'"'"'))
|
||||
assert len(det)==12
|
||||
for p in det:
|
||||
d=json.loads(p.read_text())
|
||||
assert d['"'"'pass'"'"'] and all(d['"'"'checks'"'"'].values())
|
||||
assert d['"'"'detection_seconds'"'"']<=d['"'"'declared_max_seconds'"'"']
|
||||
fail=json.loads((root/'"'"'failover-each/summary.json'"'"').read_text())
|
||||
assert len(fail)==2 and len({d['"'"'label'"'"'] for d in fail})==2
|
||||
for p in list((root/'"'"'failover-each'"'"').glob('"'"'*/result.json'"'"'))+[root/'"'"'rolling/result.json'"'"',root/'"'"'rolling-from-7fc911c/result.json'"'"']:
|
||||
d=json.loads(p.read_text())
|
||||
assert d['"'"'pass'"'"'] and all(d['"'"'checks'"'"'].values())
|
||||
assert d['"'"'k6'"'"']['"'"'failed_ratio'"'"']==d['"'"'k6'"'"']['"'"'dropped_iterations'"'"']==d['"'"'probe'"'"']['"'"'failed_attempts'"'"']==0
|
||||
assert d['"'"'history'"'"']['"'"'confirmed'"'"']==d['"'"'history'"'"']['"'"'stored'"'"']==d['"'"'probe'"'"']['"'"'attempts'"'"']
|
||||
assert all(v==0 for v in d['"'"'lb_counters'"'"'].values())
|
||||
trace=list(csv.DictReader(io.StringIO((p.parent/'"'"'lb_up.csv'"'"').read_text().split('"'"'\n'"'"',1)[1])))
|
||||
assert min(int(r['"'"'up'"'"']) for r in trace)==d['"'"'lb_up_min'"'"']
|
||||
probes=list(csv.DictReader(io.StringIO((p.parent/'"'"'probe.csv'"'"').read_text().split('"'"'\n'"'"',1)[1])))
|
||||
first=next(r for r in probes if float(r['"'"'t_rel_s'"'"'])>=0 and r['"'"'status'"'"']=='"'"'201'"'"')
|
||||
assert abs(float(first['"'"'t_rel_s'"'"'])+float(first['"'"'latency_ms'"'"'])/1000-d['"'"'probe'"'"']['"'"'first_success_s'"'"'])<0.002
|
||||
if '"'"'rolling'"'"' in str(p):
|
||||
action=(p.parent/'"'"'action.txt'"'"').read_text()
|
||||
assert action.count('"'"'migrate once before the first replacement'"'"')==1
|
||||
assert len(re.findall('"'"'replace .+ image='"'"',action))==2 and d['"'"'lb_up_min'"'"']>=2
|
||||
print(p,'"'"'PASS'"'"')
|
||||
paths=subprocess.check_output(['"'"'git'"'"','"'"'diff'"'"','"'"'--name-only'"'"'],text=True).splitlines()+subprocess.check_output(['"'"'git'"'"','"'"'ls-files'"'"','"'"'--others'"'"','"'"'--exclude-standard'"'"'],text=True).splitlines()
|
||||
pattern=re.compile(r'"'"'Bearer [A-Za-z0-9_-]{25,}|postgresql(?:\+asyncpg)?://[A-Za-z0-9_-]+:[A-Za-z0-9._~%+-]+@|redis://:[A-Za-z0-9._~%+-]+@|"token":\s*"[A-Za-z0-9_-]{25,}"'"'"')
|
||||
for name in paths:
|
||||
p=Path(name)
|
||||
if p.is_file() and p.suffix in {'"'"'.txt'"'"','"'"'.json'"'"','"'"'.csv'"'"','"'"'.md'"'"'}:
|
||||
assert not pattern.search(p.read_text()),'"'"'possible credential in '"'"'+name
|
||||
print('"'"'PASS: 12 detection measurements, 4 load scenarios, raw CSV agreement, one migrate per rolling action, credential-pattern scan'"'"')
|
||||
'
|
||||
Traceback (most recent call last):
|
||||
File "<string>", line 33, in <module>
|
||||
assert not pattern.search(p.read_text()),'possible credential in '+name
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
AssertionError: possible credential in evidence/grade4-student-tests.txt
|
||||
evidence/failover-each/7cfd91ddf780/result.json PASS
|
||||
evidence/failover-each/5bbf259ff136/result.json PASS
|
||||
evidence/rolling/result.json PASS
|
||||
evidence/rolling-from-7fc911c/result.json PASS
|
||||
|
||||
exit: 1 elapsed_seconds: 0.082
|
||||
@@ -0,0 +1,53 @@
|
||||
date: 2026-11-05T19:31:22.371897+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
NO_PROXY=localhost,127.0.0.1,::1 COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ python3 -c 'import csv,io,json,re,subprocess
|
||||
from pathlib import Path
|
||||
|
||||
root=Path('"'"'evidence'"'"')
|
||||
files=list((root/'"'"'detection'"'"').glob('"'"'*/*.json'"'"'))
|
||||
assert len(files)==12
|
||||
for path in files:
|
||||
d=json.loads(path.read_text())
|
||||
assert d['"'"'pass'"'"'] and all(d['"'"'checks'"'"'].values()),path
|
||||
assert d['"'"'detection_seconds'"'"'] <= d['"'"'declared_max_seconds'"'"'],path
|
||||
fail=json.loads((root/'"'"'failover-each/summary.json'"'"').read_text())
|
||||
assert len(fail)==2 and len({d['"'"'label'"'"'] for d in fail})==2
|
||||
paths=list((root/'"'"'failover-each'"'"').glob('"'"'*/result.json'"'"'))+[root/'"'"'rolling/result.json'"'"',root/'"'"'rolling-from-7fc911c/result.json'"'"']
|
||||
for path in paths:
|
||||
d=json.loads(path.read_text())
|
||||
assert d['"'"'pass'"'"'] and all(d['"'"'checks'"'"'].values()),path
|
||||
assert d['"'"'k6'"'"']['"'"'failed_ratio'"'"']==0 and d['"'"'k6'"'"']['"'"'dropped_iterations'"'"']==0,path
|
||||
assert d['"'"'history'"'"']['"'"'confirmed'"'"']==d['"'"'history'"'"']['"'"'stored'"'"']==d['"'"'probe'"'"']['"'"'attempts'"'"'],path
|
||||
assert d['"'"'probe'"'"']['"'"'failed_attempts'"'"']==0 and all(v==0 for v in d['"'"'lb_counters'"'"'].values()),path
|
||||
trace=list(csv.DictReader(io.StringIO((path.parent/'"'"'lb_up.csv'"'"').read_text().split('"'"'\n'"'"',1)[1])))
|
||||
assert min(int(r['"'"'up'"'"']) for r in trace)==d['"'"'lb_up_min'"'"'],path
|
||||
probes=list(csv.DictReader(io.StringIO((path.parent/'"'"'probe.csv'"'"').read_text().split('"'"'\n'"'"',1)[1])))
|
||||
first=next(r for r in probes if float(r['"'"'t_rel_s'"'"'])>=0 and r['"'"'status'"'"']=='"'"'201'"'"')
|
||||
completed=float(first['"'"'t_rel_s'"'"'])+float(first['"'"'latency_ms'"'"'])/1000
|
||||
assert abs(completed-d['"'"'probe'"'"']['"'"'first_success_s'"'"'])<0.002,path
|
||||
if '"'"'rolling'"'"' in str(path):
|
||||
action=(path.parent/'"'"'action.txt'"'"').read_text()
|
||||
assert action.count('"'"'migrate once before the first replacement'"'"')==1
|
||||
assert len(re.findall('"'"'replace .+ image='"'"',action))==2
|
||||
assert d['"'"'lb_up_min'"'"']>=2
|
||||
print(path,'"'"'PASS'"'"',d['"'"'k6'"'"']['"'"'requests'"'"'],'"'"'requests;'"'"',d['"'"'history'"'"']['"'"'stored'"'"'],'"'"'confirmed messages'"'"')
|
||||
changed=subprocess.check_output(['"'"'git'"'"','"'"'diff'"'"','"'"'--name-only'"'"'],text=True).splitlines()
|
||||
untracked=subprocess.check_output(['"'"'git'"'"','"'"'ls-files'"'"','"'"'--others'"'"','"'"'--exclude-standard'"'"'],text=True).splitlines()
|
||||
pattern=re.compile(r'"'"'Bearer [A-Za-z0-9_-]{25,}|postgresql://[^ /\n]+:[^@ /\n]+@|redis://:[^@ /\n]+@|"token":\s*"[A-Za-z0-9_-]{25,}"'"'"')
|
||||
for name in changed+untracked:
|
||||
p=Path(name)
|
||||
if p.is_file() and p.suffix in {'"'"'.txt'"'"','"'"'.json'"'"','"'"'.csv'"'"','"'"'.md'"'"'}:
|
||||
assert not pattern.search(p.read_text()),'"'"'possible credential in '"'"'+name
|
||||
print('"'"'PASS: 12 detection measurements, 4 load scenarios, raw CSV agreement, one migrate per rolling action, credential-pattern scan'"'"')
|
||||
'
|
||||
Traceback (most recent call last):
|
||||
File "<string>", line 38, in <module>
|
||||
assert not pattern.search(p.read_text()),'possible credential in '+name
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
AssertionError: possible credential in evidence/grade4-evidence-audit.txt
|
||||
evidence/failover-each/7cfd91ddf780/result.json PASS 6001 requests; 645 confirmed messages
|
||||
evidence/failover-each/5bbf259ff136/result.json PASS 6001 requests; 642 confirmed messages
|
||||
evidence/rolling/result.json PASS 9001 requests; 913 confirmed messages
|
||||
evidence/rolling-from-7fc911c/result.json PASS 9001 requests; 913 confirmed messages
|
||||
|
||||
exit: 1 elapsed_seconds: 0.087
|
||||
@@ -0,0 +1,43 @@
|
||||
date: 2026-11-05T19:32:57.655116+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
NO_PROXY=localhost,127.0.0.1,::1 COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ python3 -c 'import csv,io,json,re,subprocess
|
||||
from pathlib import Path
|
||||
root=Path('"'"'evidence'"'"')
|
||||
det=list((root/'"'"'detection'"'"').glob('"'"'*/*.json'"'"'))
|
||||
assert len(det)==12
|
||||
for p in det:
|
||||
d=json.loads(p.read_text())
|
||||
assert d['"'"'pass'"'"'] and all(d['"'"'checks'"'"'].values()) and d['"'"'detection_seconds'"'"']<=d['"'"'declared_max_seconds'"'"']
|
||||
fail=json.loads((root/'"'"'failover-each/summary.json'"'"').read_text())
|
||||
assert len(fail)==2 and len({d['"'"'label'"'"'] for d in fail})==2
|
||||
for p in list((root/'"'"'failover-each'"'"').glob('"'"'*/result.json'"'"'))+[root/'"'"'rolling/result.json'"'"',root/'"'"'rolling-from-7fc911c/result.json'"'"']:
|
||||
d=json.loads(p.read_text())
|
||||
assert d['"'"'pass'"'"'] and all(d['"'"'checks'"'"'].values())
|
||||
assert d['"'"'k6'"'"']['"'"'failed_ratio'"'"']==d['"'"'k6'"'"']['"'"'dropped_iterations'"'"']==d['"'"'probe'"'"']['"'"'failed_attempts'"'"']==0
|
||||
assert d['"'"'history'"'"']['"'"'confirmed'"'"']==d['"'"'history'"'"']['"'"'stored'"'"']==d['"'"'probe'"'"']['"'"'attempts'"'"']
|
||||
assert all(v==0 for v in d['"'"'lb_counters'"'"'].values())
|
||||
trace=list(csv.DictReader(io.StringIO((p.parent/'"'"'lb_up.csv'"'"').read_text().split('"'"'\n'"'"',1)[1])))
|
||||
assert min(int(r['"'"'up'"'"']) for r in trace)==d['"'"'lb_up_min'"'"']
|
||||
probes=list(csv.DictReader(io.StringIO((p.parent/'"'"'probe.csv'"'"').read_text().split('"'"'\n'"'"',1)[1])))
|
||||
first=next(r for r in probes if float(r['"'"'t_rel_s'"'"'])>=0 and r['"'"'status'"'"']=='"'"'201'"'"')
|
||||
assert abs(float(first['"'"'t_rel_s'"'"'])+float(first['"'"'latency_ms'"'"'])/1000-d['"'"'probe'"'"']['"'"'first_success_s'"'"'])<0.002
|
||||
if '"'"'rolling'"'"' in str(p):
|
||||
action=(p.parent/'"'"'action.txt'"'"').read_text()
|
||||
assert action.count('"'"'migrate once before the first replacement'"'"')==1
|
||||
assert len(re.findall('"'"'replace .+ image='"'"',action))==2 and d['"'"'lb_up_min'"'"']>=2
|
||||
print(p,'"'"'PASS'"'"')
|
||||
paths=subprocess.check_output(['"'"'git'"'"','"'"'diff'"'"','"'"'--name-only'"'"'],text=True).splitlines()+subprocess.check_output(['"'"'git'"'"','"'"'ls-files'"'"','"'"'--others'"'"','"'"'--exclude-standard'"'"'],text=True).splitlines()
|
||||
pattern=re.compile(r'"'"'Bearer [A-Za-z0-9_-]{25,}|postgresql(?:\+asyncpg)?://[A-Za-z0-9_-]+:[A-Za-z0-9._~%+-]+@|redis://:[A-Za-z0-9._~%+-]+@|"token":\s*"[A-Za-z0-9_-]{25,}"'"'"')
|
||||
for name in paths:
|
||||
p=Path(name)
|
||||
if p.is_file() and p.suffix in {'"'"'.txt'"'"','"'"'.json'"'"','"'"'.csv'"'"','"'"'.md'"'"'}:
|
||||
assert not pattern.search(p.read_text()),'"'"'possible credential in '"'"'+name
|
||||
print('"'"'PASS: 12 detection measurements, 4 load scenarios, raw CSV agreement, one migrate per rolling action, credential-pattern scan'"'"')
|
||||
'
|
||||
evidence/failover-each/7cfd91ddf780/result.json PASS
|
||||
evidence/failover-each/5bbf259ff136/result.json PASS
|
||||
evidence/rolling/result.json PASS
|
||||
evidence/rolling-from-7fc911c/result.json PASS
|
||||
PASS: 12 detection measurements, 4 load scenarios, raw CSV agreement, one migrate per rolling action, credential-pattern scan
|
||||
|
||||
exit: 0 elapsed_seconds: 0.065
|
||||
@@ -0,0 +1,26 @@
|
||||
date: 2026-11-05T19:18:13.470607+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
NO_PROXY=localhost,127.0.0.1,::1 COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ make failover-each RATE=100
|
||||
RATE=100 sh scripts/failover-each.sh evidence/failover-each
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Healthy
|
||||
{"label": "7cfd91ddf780", "action": ["sh", "-c", "scripts/stop-one.sh && docker compose ps -a --format '{{.ID}} {{.Service}} {{.Status}}' api && { scripts/stand-usage.sh & sleep 10; wait; } && scripts/restore.sh"], "action_exit": 0, "action_seconds": 15.204, "action_finished_before_load_end": true, "lb_up_before": 2, "lb_up_min": 1, "lb_samples_missing": 0, "detection_seconds": 0.884, "rejoin_seconds": 14.885, "probe": {"attempts": 645, "failed_attempts": 0, "first_failure_s": null, "first_success_s": 0.023, "recovery_s": 0.0, "instances_before": {"5bbf259ff136": 118, "7cfd91ddf780": 115}, "instances_during_outage": {"5bbf259ff136": 126}, "instances_after": {"5bbf259ff136": 142, "7cfd91ddf780": 132}}, "history": {"confirmed": 645, "stored": 645, "exact_match": true, "unique": true}, "lb_counters": {"wretr": 0, "wredis": 0, "econ": 0, "eresp": 0, "hrsp_5xx": 0}, "k6": {"requests": 6001, "rps": 100.02, "ok_rps": 100.02, "failed_ratio": 0, "dropped_iterations": 0, "p50_ms": 2.97, "p95_ms": 3.86, "p99_ms": 4.47, "exit": 0, "rate": 100}, "checks": {"action_ok": true, "load_errors_ok": true, "load_delivered": true, "lb_observed": true, "write_recovery_ok": true, "history_preserved": true, "detected": true, "target_excluded": true, "rejoined": true}, "pass": true}
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Healthy
|
||||
{"label": "5bbf259ff136", "action": ["sh", "-c", "scripts/stop-one.sh && docker compose ps -a --format '{{.ID}} {{.Service}} {{.Status}}' api && { scripts/stand-usage.sh & sleep 10; wait; } && scripts/restore.sh"], "action_exit": 0, "action_seconds": 15.2, "action_finished_before_load_end": true, "lb_up_before": 2, "lb_up_min": 1, "lb_samples_missing": 0, "detection_seconds": 1.498, "rejoin_seconds": 14.99, "probe": {"attempts": 642, "failed_attempts": 0, "first_failure_s": null, "first_success_s": 0.111, "recovery_s": 0.0, "instances_before": {"7cfd91ddf780": 114, "5bbf259ff136": 119}, "instances_during_outage": {"7cfd91ddf780": 121}, "instances_after": {"7cfd91ddf780": 149, "5bbf259ff136": 124}}, "history": {"confirmed": 642, "stored": 642, "exact_match": true, "unique": true}, "lb_counters": {"wretr": 0, "wredis": 0, "econ": 0, "eresp": 0, "hrsp_5xx": 0}, "k6": {"requests": 6001, "rps": 100.02, "ok_rps": 100.02, "failed_ratio": 0, "dropped_iterations": 0, "p50_ms": 2.98, "p95_ms": 3.88, "p99_ms": 4.53, "exit": 0, "rate": 100}, "checks": {"action_ok": true, "load_errors_ok": true, "load_delivered": true, "lb_observed": true, "write_recovery_ok": true, "history_preserved": true, "detected": true, "target_excluded": true, "rejoined": true}, "pass": true}
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Healthy
|
||||
|
||||
exit: 0 elapsed_seconds: 146.608
|
||||
@@ -0,0 +1,33 @@
|
||||
date: 2026-11-05T19:32:13.471531+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
NO_PROXY=localhost,127.0.0.1,::1 COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ sh -ec 'make check; make validate; make lint; openspec validate --all --strict; git diff --check; test -z "$(git diff ef0b9a3 --name-only -- contracts tests README.md COURSE.md .pipeline)"; test -z "$(git diff 252e3e3 --name-only -- src scripts student-tests compose.yaml Dockerfile pyproject.toml uv.lock alembic)"; test -z "$(docker ps -aq --filter label=com.docker.compose.project=mtusi2026lab3-grade4-20261105)"; echo "PASS: runtime code unchanged since evidence SHA; normative files and pipeline unchanged; stage containers stopped"'
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
.venv/bin/python scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
.venv/bin/ruff check src student-tests alembic scripts/probe.py scripts/limits.py scripts/scaling.py tools
|
||||
All checks passed!
|
||||
.venv/bin/ruff format --check src student-tests alembic scripts/probe.py scripts/limits.py scripts/scaling.py tools
|
||||
108 files already formatted
|
||||
.venv/bin/ty check src student-tests alembic
|
||||
All checks passed!
|
||||
- Validating...
|
||||
✓ change/2026-11-05-adopt-sqlalchemy-alembic
|
||||
✓ spec/lab1-event-publication
|
||||
✓ spec/lab1-messenger-chats
|
||||
✓ spec/lab1-messenger-history
|
||||
✓ spec/lab1-messenger-identity
|
||||
✓ spec/lab1-service-operability
|
||||
✓ spec/lab2-auth-sessions
|
||||
✓ spec/lab2-dependency-failures
|
||||
✓ spec/lab2-history-index
|
||||
✓ spec/lab2-persistent-storage
|
||||
✓ spec/lab2-session-cache
|
||||
✓ spec/lab3-failover-operations
|
||||
✓ spec/lab3-idempotent-messages
|
||||
✓ spec/lab3-load-balancing
|
||||
✓ spec/lab3-scaling-cost
|
||||
Totals: 15 passed, 0 failed (15 items)
|
||||
PASS: runtime code unchanged since evidence SHA; normative files and pipeline unchanged; stage containers stopped
|
||||
|
||||
exit: 0 elapsed_seconds: 1.467
|
||||
@@ -0,0 +1,6 @@
|
||||
date: 2026-11-05T19:23:22.909799+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
NO_PROXY=localhost,127.0.0.1,::1 COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ env COMPOSE_FILE=compose.yaml:/tmp/lab3-grade4-violations.yaml docker compose config --quiet
|
||||
services.deploy.replicas: can't set container_name and api as container name must be unique: invalid compose project
|
||||
|
||||
exit: 1 elapsed_seconds: 0.072
|
||||
@@ -0,0 +1,20 @@
|
||||
date: 2026-11-05T19:19:18.359240+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
NO_PROXY=localhost,127.0.0.1,::1 COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ env COMPOSE_FILE=compose.yaml:/tmp/lab3-grade4-violations.yaml python3 scripts/limits.py --out evidence/limits-violations.txt
|
||||
Traceback (most recent call last):
|
||||
File "<repo>/scripts/limits.py", line 133, in <module>
|
||||
sys.exit(main())
|
||||
~~~~^^
|
||||
File "<repo>/scripts/limits.py", line 103, in main
|
||||
config = json.loads(raw)
|
||||
File "/opt/homebrew/Cellar/python@3.15/3.15.2/Frameworks/Python.framework/Versions/3.15/lib/python3.15/json/__init__.py", line 371, in loads
|
||||
return _default_decoder.decode(s)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~^^^
|
||||
File "/opt/homebrew/Cellar/python@3.15/3.15.2/Frameworks/Python.framework/Versions/3.15/lib/python3.15/json/decoder.py", line 358, in decode
|
||||
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
|
||||
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "/opt/homebrew/Cellar/python@3.15/3.15.2/Frameworks/Python.framework/Versions/3.15/lib/python3.15/json/decoder.py", line 376, in raw_decode
|
||||
raise JSONDecodeError("Expecting value", s, err.value) from None
|
||||
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
|
||||
|
||||
exit: 1 elapsed_seconds: 0.111
|
||||
@@ -0,0 +1,45 @@
|
||||
date: 2026-11-05T19:19:26.962774+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
NO_PROXY=localhost,127.0.0.1,::1 COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ env API_REPLICAS=1 COMPOSE_FILE=compose.yaml:/tmp/lab3-grade4-violations.yaml python3 scripts/limits.py --out evidence/limits-violations.txt
|
||||
date: 2026-11-05T19:19:27Z commit: 252e3e3
|
||||
$ docker compose --profile bench config --format json (declared)
|
||||
service cpus/mem ports secrets volumes networks ro
|
||||
-------- ---------- ------------------------------- ------------------------------------------------------ ---------- ---------------------- -----
|
||||
api -/512MiB 127.0.0.1:23998 cache_url,cursor_secret,database_url,postgres_password - backend(internal) false
|
||||
k6 2/512MiB - - - edge false
|
||||
lb 1/128MiB 127.0.0.1:18083,127.0.0.1:23083 - - backend(internal),edge true
|
||||
migrate 0.5/256MiB - database_url - backend(internal) false
|
||||
postgres 2/1024MiB - postgres_password pgdata backend(internal) false
|
||||
valkey 0.5/128MiB - valkey.conf valkeydata backend(internal) false
|
||||
|
||||
$ docker inspect (running containers: hostname = X-Instance-Id, applied limits)
|
||||
service hostname cpus memory published
|
||||
-------- ------------ ---- ------- ---------------------------------------------------
|
||||
api 5bbf259ff136 1 512MiB
|
||||
api 7cfd91ddf780 1 512MiB
|
||||
lb 4f83577b3411 1 128MiB 127.0.0.1:18083->8080/tcp,127.0.0.1:23083->8404/tcp
|
||||
postgres f225c6cd77bb 2 1024MiB
|
||||
valkey 5e3ed0a9a35a 0.5 128MiB
|
||||
|
||||
FAIL: api: no CPU or memory limit
|
||||
FAIL: api: container_name prevents scaling
|
||||
FAIL: api: secrets ['cache_url', 'cursor_secret', 'database_url', 'postgres_password'], policy ['cache_url', 'cursor_secret', 'database_url']
|
||||
FAIL: api: publishes ['127.0.0.1:23998'] in bypass of the balancer
|
||||
FAIL: api: root filesystem is writable
|
||||
FAIL: 5 violation(s)
|
||||
|
||||
exit: 1 elapsed_seconds: 0.227
|
||||
|
||||
Temporary override (configuration was inspected only; never applied):
|
||||
services:
|
||||
api:
|
||||
container_name: forbidden-scale-name
|
||||
read_only: false
|
||||
ports:
|
||||
- "127.0.0.1:23998:8080"
|
||||
secrets:
|
||||
- postgres_password
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "0"
|
||||
@@ -0,0 +1,26 @@
|
||||
date: 2026-11-05T19:25:09.683166+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
NO_PROXY=localhost,127.0.0.1,::1 COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ sh -ec '
|
||||
migration_counts="SELECT (SELECT version_num FROM alembic_version), (SELECT count(*) FROM users), (SELECT count(*) FROM sessions), (SELECT count(*) FROM chats), (SELECT count(*) FROM chat_members), (SELECT count(*) FROM messages), (SELECT count(*) FROM idempotency_keys)"
|
||||
migration_before=$(docker compose exec -T postgres psql -X -At -U messenger -d messenger -c "$migration_counts")
|
||||
echo "before: $migration_before"
|
||||
make migrate
|
||||
migration_after=$(docker compose exec -T postgres psql -X -At -U messenger -d messenger -c "$migration_counts")
|
||||
echo "after: $migration_after"
|
||||
test "$migration_before" = "$migration_after"
|
||||
echo "PASS: Alembic head and all table counts unchanged"
|
||||
docker compose ps -a --format "{{.ID}} {{.Service}} {{.Status}}"
|
||||
'
|
||||
before: 0002_idempotency_keys|93|92|46|92|30317|30317
|
||||
docker compose run --rm migrate
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Running
|
||||
after: 0002_idempotency_keys|93|92|46|92|30317|30317
|
||||
PASS: Alembic head and all table counts unchanged
|
||||
96493b9901ab api Up About a minute (healthy)
|
||||
dc1e7ee36921 api Up About a minute (healthy)
|
||||
4f83577b3411 lb Up 9 minutes (healthy)
|
||||
ad30cd539e85 migrate Exited (0) 9 minutes ago
|
||||
f225c6cd77bb postgres Up 7 minutes (healthy)
|
||||
5e3ed0a9a35a valkey Up 9 minutes (healthy)
|
||||
|
||||
exit: 0 elapsed_seconds: 2.273
|
||||
@@ -0,0 +1,158 @@
|
||||
date: 2026-11-05T19:27:51.938805+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
NO_PROXY=localhost,127.0.0.1,::1 COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ python3 -c 'import json,subprocess
|
||||
|
||||
def run(cmd):
|
||||
print('"'"'$'"'"', '"'"' '"'"'.join(cmd), flush=True)
|
||||
subprocess.run(cmd, check=True)
|
||||
|
||||
def snapshot(label):
|
||||
ids=subprocess.check_output(['"'"'docker'"'"','"'"'compose'"'"','"'"'ps'"'"','"'"'-aq'"'"'],text=True).split()
|
||||
raw=json.loads(subprocess.check_output(['"'"'docker'"'"','"'"'inspect'"'"',*ids],text=True))
|
||||
states={c['"'"'Id'"'"']: {'"'"'service'"'"':c['"'"'Config'"'"']['"'"'Labels'"'"']['"'"'com.docker.compose.service'"'"'],'"'"'name'"'"':c['"'"'Name'"'"'],'"'"'started'"'"':c['"'"'State'"'"']['"'"'StartedAt'"'"'],'"'"'exit'"'"':c['"'"'State'"'"']['"'"'ExitCode'"'"']} for c in raw}
|
||||
print(label,json.dumps(states,sort_keys=True),flush=True)
|
||||
return states
|
||||
|
||||
run(['"'"'make'"'"','"'"'up'"'"'])
|
||||
before=snapshot('"'"'before'"'"')
|
||||
run(['"'"'make'"'"','"'"'test-persistence'"'"','"'"'ACTION_SCRIPT=scripts/restart.sh'"'"'])
|
||||
after=snapshot('"'"'after'"'"')
|
||||
assert before.keys()==after.keys()
|
||||
assert len(after)==6
|
||||
assert all(after[k]['"'"'started'"'"']!=before[k]['"'"'started'"'"'] for k in before)
|
||||
assert {d['"'"'service'"'"'] for d in after.values()}=={'"'"'lb'"'"','"'"'api'"'"','"'"'migrate'"'"','"'"'postgres'"'"','"'"'valkey'"'"'}
|
||||
print('"'"'PASS: all six container IDs preserved, every StartedAt changed'"'"',flush=True)
|
||||
'
|
||||
$ make up
|
||||
sh scripts/secrets.sh
|
||||
docker compose up -d --build --wait
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 448B done
|
||||
#1 DONE 0.0s
|
||||
|
||||
#2 [internal] load build definition from Dockerfile
|
||||
#2 transferring dockerfile: 1.65kB done
|
||||
#2 DONE 0.0s
|
||||
|
||||
#3 [internal] load metadata for ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142
|
||||
#3 DONE 0.0s
|
||||
|
||||
#4 [internal] load metadata for docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d
|
||||
#4 DONE 1.5s
|
||||
|
||||
#5 [internal] load .dockerignore
|
||||
#5 transferring context: 437B done
|
||||
#5 DONE 0.0s
|
||||
|
||||
#6 FROM ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142
|
||||
#6 resolve ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 done
|
||||
#6 DONE 0.0s
|
||||
|
||||
#7 [builder 1/7] FROM docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d
|
||||
#7 resolve docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d 0.0s done
|
||||
#7 DONE 0.0s
|
||||
|
||||
#8 [internal] load build context
|
||||
#8 transferring context: 13.68kB 0.0s done
|
||||
#8 DONE 0.0s
|
||||
|
||||
#9 [runtime 2/6] RUN groupadd --system --gid 10001 messenger && useradd --system --uid 10001 --gid messenger --no-create-home --shell /usr/sbin/nologin messenger
|
||||
#9 CACHED
|
||||
|
||||
#10 [builder 6/7] COPY src ./src
|
||||
#10 CACHED
|
||||
|
||||
#11 [builder 2/7] COPY --from=ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 /uv /usr/local/bin/uv
|
||||
#11 CACHED
|
||||
|
||||
#12 [builder 5/7] RUN uv sync --locked --no-dev --no-install-project --no-editable
|
||||
#12 CACHED
|
||||
|
||||
#13 [builder 7/7] RUN uv sync --locked --no-dev --no-editable
|
||||
#13 CACHED
|
||||
|
||||
#14 [runtime 4/6] WORKDIR /app
|
||||
#14 CACHED
|
||||
|
||||
#15 [runtime 3/6] COPY --from=builder --chown=root:root /opt/venv /opt/venv
|
||||
#15 CACHED
|
||||
|
||||
#16 [builder 3/7] WORKDIR /build
|
||||
#16 CACHED
|
||||
|
||||
#17 [builder 4/7] COPY pyproject.toml uv.lock README.md ./
|
||||
#17 CACHED
|
||||
|
||||
#18 [runtime 5/6] COPY --chown=root:root alembic.ini ./
|
||||
#18 CACHED
|
||||
|
||||
#19 [runtime 6/6] COPY --chown=root:root alembic ./alembic
|
||||
#19 CACHED
|
||||
|
||||
#20 exporting to image
|
||||
#20 exporting layers done
|
||||
#20 exporting manifest sha256:5038ad65552ef8a56c20f7f9f042205fa4f08bed2182f7d170da334d08a3bd61 done
|
||||
#20 exporting config sha256:de74256583c9ad3781e5456b23c7688aa2ee86733f0d16bcd296b9112aee8335 done
|
||||
#20 exporting attestation manifest sha256:b24ca6722cbe2c1512cb3d26b9933c8cf14d031282d19df5dac611093b428b28 done
|
||||
#20 exporting manifest list sha256:2a9e9266ba97c082e2a9f89b71fede898269f8459fd53ff355ef0201140b59bb done
|
||||
#20 naming to docker.io/library/mtusi-messenger:mtusi2026lab3-grade4-20261105 done
|
||||
#20 unpacking to docker.io/library/mtusi-messenger:mtusi2026lab3-grade4-20261105 done
|
||||
#20 DONE 0.1s
|
||||
|
||||
#21 resolving provenance for metadata file
|
||||
#21 DONE 0.0s
|
||||
api Built
|
||||
Network mtusi2026lab3-grade4-20261105_edge Creating
|
||||
Network mtusi2026lab3-grade4-20261105_edge Created
|
||||
Network mtusi2026lab3-grade4-20261105_backend Creating
|
||||
Network mtusi2026lab3-grade4-20261105_backend Created
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Creating
|
||||
Container mtusi2026lab3-grade4-20261105-valkey-1 Creating
|
||||
Container mtusi2026lab3-grade4-20261105-lb-1 Creating
|
||||
Container mtusi2026lab3-grade4-20261105-valkey-1 Created
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Created
|
||||
Container mtusi2026lab3-grade4-20261105-migrate-1 Creating
|
||||
Container mtusi2026lab3-grade4-20261105-lb-1 Created
|
||||
Container mtusi2026lab3-grade4-20261105-migrate-1 Created
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Creating
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Creating
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Created
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Created
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Starting
|
||||
Container mtusi2026lab3-grade4-20261105-lb-1 Starting
|
||||
Container mtusi2026lab3-grade4-20261105-valkey-1 Starting
|
||||
Container mtusi2026lab3-grade4-20261105-valkey-1 Started
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Started
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-lb-1 Started
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-migrate-1 Starting
|
||||
Container mtusi2026lab3-grade4-20261105-migrate-1 Started
|
||||
Container mtusi2026lab3-grade4-20261105-migrate-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-migrate-1 Exited
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Starting
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Started
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Starting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Started
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-migrate-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-valkey-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-lb-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-valkey-1 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-migrate-1 Exited
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-lb-1 Healthy
|
||||
scripts/lb-wait.sh
|
||||
before {"223259dd6b9c465577f477f5977c48b2bb35b969b15481cc0e53a1b954e1c778": {"exit": 0, "name": "/mtusi2026lab3-grade4-20261105-migrate-1", "service": "migrate", "started": "2026-11-05T19:27:55.259212054Z"}, "5e25a5e7336b8082474ed3f31c6f649d0b8743fac2104f122aeb4f866ab0bd24": {"exit": 0, "name": "/mtusi2026lab3-grade4-20261105-valkey-1", "service": "valkey", "started": "2026-11-05T19:27:54.684798054Z"}, "a4eb111f811cdeae46efca08b73507c9cefd0d66675a3785f252b55949b3355b": {"exit": 0, "name": "/mtusi2026lab3-grade4-20261105-api-2", "service": "api", "started": "2026-11-05T19:27:56.342284055Z"}, "a5f99d70b71582e67e83392b1d73a57fa44df9002e08c98fd13b77d3da5a04e9": {"exit": 0, "name": "/mtusi2026lab3-grade4-20261105-api-1", "service": "api", "started": "2026-11-05T19:27:56.408012888Z"}, "ca4a75a9bb7163749eeaaa4a5eb64ad29b5cbea663078fe7110179dec807cfc4": {"exit": 0, "name": "/mtusi2026lab3-grade4-20261105-postgres-1", "service": "postgres", "started": "2026-11-05T19:27:54.684199054Z"}, "f850f4461da336beeb05511a783d9bbdae912c8725a7fc893edeb7649becf22f": {"exit": 0, "name": "/mtusi2026lab3-grade4-20261105-lb-1", "service": "lb", "started": "2026-11-05T19:27:54.683165262Z"}}
|
||||
$ make test-persistence ACTION_SCRIPT=scripts/restart.sh
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:18083"
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
after {"223259dd6b9c465577f477f5977c48b2bb35b969b15481cc0e53a1b954e1c778": {"exit": 0, "name": "/mtusi2026lab3-grade4-20261105-migrate-1", "service": "migrate", "started": "2026-11-05T19:28:04.468584961Z"}, "5e25a5e7336b8082474ed3f31c6f649d0b8743fac2104f122aeb4f866ab0bd24": {"exit": 0, "name": "/mtusi2026lab3-grade4-20261105-valkey-1", "service": "valkey", "started": "2026-11-05T19:28:03.738892377Z"}, "a4eb111f811cdeae46efca08b73507c9cefd0d66675a3785f252b55949b3355b": {"exit": 0, "name": "/mtusi2026lab3-grade4-20261105-api-2", "service": "api", "started": "2026-11-05T19:28:05.56245167Z"}, "a5f99d70b71582e67e83392b1d73a57fa44df9002e08c98fd13b77d3da5a04e9": {"exit": 0, "name": "/mtusi2026lab3-grade4-20261105-api-1", "service": "api", "started": "2026-11-05T19:28:05.623476253Z"}, "ca4a75a9bb7163749eeaaa4a5eb64ad29b5cbea663078fe7110179dec807cfc4": {"exit": 0, "name": "/mtusi2026lab3-grade4-20261105-postgres-1", "service": "postgres", "started": "2026-11-05T19:28:03.642625252Z"}, "f850f4461da336beeb05511a783d9bbdae912c8725a7fc893edeb7649becf22f": {"exit": 0, "name": "/mtusi2026lab3-grade4-20261105-lb-1", "service": "lb", "started": "2026-11-05T19:28:03.950735002Z"}}
|
||||
PASS: all six container IDs preserved, every StartedAt changed
|
||||
|
||||
exit: 0 elapsed_seconds: 17.490
|
||||
@@ -0,0 +1,28 @@
|
||||
date: 2026-11-05T19:26:52.960353+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
NO_PROXY=localhost,127.0.0.1,::1 COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ python3 -c 'import datetime,json,subprocess
|
||||
from pathlib import Path
|
||||
line=Path('"'"'evidence/grade4-public.txt'"'"').read_text().splitlines()[0]
|
||||
since=int(datetime.datetime.fromisoformat(line.split('"'"'date: '"'"')[1].split('"'"' commit:'"'"')[0]).timestamp())
|
||||
until=int(datetime.datetime.now(datetime.timezone.utc).timestamp())
|
||||
cmd=['"'"'docker'"'"','"'"'events'"'"','"'"'--since'"'"',str(since),'"'"'--until'"'"',str(until),'"'"'--filter'"'"','"'"'type=container'"'"','"'"'--filter'"'"','"'"'label=com.docker.compose.project=mtusi2026lab3-grade4-20261105'"'"','"'"'--format'"'"','"'"'{{json .}}'"'"']
|
||||
print('"'"'$'"'"', '"'"' '"'"'.join(cmd))
|
||||
events=[json.loads(s) for s in subprocess.check_output(cmd,text=True).splitlines()]
|
||||
seen={}
|
||||
for e in events:
|
||||
if e['"'"'Action'"'"'] in ('"'"'start'"'"','"'"'stop'"'"','"'"'die'"'"','"'"'destroy'"'"'):
|
||||
attrs=e['"'"'Actor'"'"']['"'"'Attributes'"'"']
|
||||
service=attrs.get('"'"'com.docker.compose.service'"'"')
|
||||
print(e['"'"'time'"'"'],e['"'"'Action'"'"'],service,e['"'"'Actor'"'"']['"'"'ID'"'"'][:12],attrs.get('"'"'name'"'"'))
|
||||
seen.setdefault(service,set()).add(e['"'"'Action'"'"'])
|
||||
assert all({'"'"'start'"'"','"'"'die'"'"'} <= seen.get(s,set()) for s in ('"'"'api'"'"','"'"'lb'"'"','"'"'postgres'"'"','"'"'valkey'"'"','"'"'migrate'"'"')),seen
|
||||
print('"'"'PASS: persistence restarted lb, api, postgres, valkey and migrate; failover target is in grade4-public.txt'"'"')
|
||||
'
|
||||
Traceback (most recent call last):
|
||||
File "<string>", line 16, in <module>
|
||||
assert all({'start','die'} <= seen.get(s,set()) for s in ('api','lb','postgres','valkey','migrate')),seen
|
||||
~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
AssertionError: {}
|
||||
$ docker events --since 1793906711 --until 1793906812 --filter type=container --filter label=com.docker.compose.project=mtusi2026lab3-grade4-20261105 --format {{json .}}
|
||||
|
||||
exit: 1 elapsed_seconds: 0.077
|
||||
@@ -0,0 +1,30 @@
|
||||
date: 2026-11-05T19:25:11.998157+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
NO_PROXY=localhost,127.0.0.1,::1 COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ sh -ec 'make test; make test-persistence ACTION_SCRIPT=scripts/restart.sh; make test-failover ACTION_SCRIPT=scripts/stop-one.sh; docker compose ps -a --format "{{.ID}} {{.Service}} {{.Status}}"; make restore; make test'
|
||||
python3 tests/smoke.py --base-url "http://127.0.0.1:18083"
|
||||
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:18083"
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:18083"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 128, "failed_attempts": 0, "first_recovery_seconds": 2.704}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
96493b9901ab api Up 19 seconds (healthy)
|
||||
dc1e7ee36921 api Exited (0) 12 seconds ago
|
||||
4f83577b3411 lb Up 20 seconds (healthy)
|
||||
ad30cd539e85 migrate Exited (0) 19 seconds ago
|
||||
f225c6cd77bb postgres Up 21 seconds (healthy)
|
||||
5e3ed0a9a35a valkey Up 21 seconds (healthy)
|
||||
scripts/restore.sh
|
||||
Container mtusi2026lab3-grade4-20261105-api-5 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-6 Starting
|
||||
Container mtusi2026lab3-grade4-20261105-api-6 Started
|
||||
Container mtusi2026lab3-grade4-20261105-api-6 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-5 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-6 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-api-5 Healthy
|
||||
python3 tests/smoke.py --base-url "http://127.0.0.1:18083"
|
||||
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
|
||||
|
||||
exit: 0 elapsed_seconds: 28.513
|
||||
@@ -0,0 +1,26 @@
|
||||
date: 2026-11-05T19:22:59.139702+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
NO_PROXY=localhost,127.0.0.1,::1 COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ make rolling-update FROM_REV=7fc911c RATE=100
|
||||
git archive "7fc911c" | docker build -q -t "mtusi-messenger:7fc911c" -
|
||||
sha256:526da3ab8de3b4b90accf804cbdf61eec62cb550d4d74ff82a9b10d30df4bb66
|
||||
API_IMAGE="mtusi-messenger:7fc911c" docker compose up -d --no-deps --force-recreate --wait api
|
||||
Container mtusi2026lab3-grade4-20261105-api-4 Recreate
|
||||
Container mtusi2026lab3-grade4-20261105-api-3 Recreate
|
||||
Container mtusi2026lab3-grade4-20261105-api-3 Recreated
|
||||
Container mtusi2026lab3-grade4-20261105-api-4 Recreated
|
||||
Container mtusi2026lab3-grade4-20261105-api-4 Starting
|
||||
Container mtusi2026lab3-grade4-20261105-api-4 Started
|
||||
Container mtusi2026lab3-grade4-20261105-api-3 Starting
|
||||
Container mtusi2026lab3-grade4-20261105-api-3 Started
|
||||
Container mtusi2026lab3-grade4-20261105-api-4 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-3 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-4 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-api-3 Healthy
|
||||
scripts/lb-wait.sh
|
||||
docker compose build -q api
|
||||
RATE=100 python3 scripts/probe.py load --expect replace --duration 90 \
|
||||
--out evidence/rolling-from-7fc911c \
|
||||
-- scripts/rolling-update.sh
|
||||
{"label": "action", "action": ["scripts/rolling-update.sh"], "action_exit": 0, "action_seconds": 13.836, "action_finished_before_load_end": true, "lb_up_before": 2, "lb_up_min": 2, "lb_samples_missing": 0, "detection_seconds": null, "rejoin_seconds": null, "probe": {"attempts": 913, "failed_attempts": 0, "first_failure_s": null, "first_success_s": 0.082, "recovery_s": 0.0, "instances_before": {"b7b4f1a15dd3": 106, "3b1e610544a0": 127}, "instances_during_outage": {}, "instances_after": {"96493b9901ab": 291, "dc1e7ee36921": 263}}, "history": {"confirmed": 913, "stored": 913, "exact_match": true, "unique": true}, "lb_counters": {"wretr": 0, "wredis": 0, "econ": 0, "eresp": 0, "hrsp_5xx": 0}, "k6": {"requests": 9001, "rps": 100.01, "ok_rps": 100.01, "failed_ratio": 0, "dropped_iterations": 0, "p50_ms": 2.99, "p95_ms": 3.85, "p99_ms": 4.47, "exit": 0, "rate": 100}, "checks": {"action_ok": true, "load_errors_ok": true, "load_delivered": true, "lb_observed": true, "write_recovery_ok": true, "history_preserved": true, "capacity_kept": true, "all_replaced": true}, "pass": true}
|
||||
|
||||
exit: 0 elapsed_seconds: 114.783
|
||||
@@ -0,0 +1,10 @@
|
||||
date: 2026-11-05T19:21:07.986361+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
NO_PROXY=localhost,127.0.0.1,::1 COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ make rolling-update RATE=100
|
||||
docker compose build -q api
|
||||
RATE=100 python3 scripts/probe.py load --expect replace --duration 90 \
|
||||
--out evidence/rolling \
|
||||
-- scripts/rolling-update.sh
|
||||
{"label": "action", "action": ["scripts/rolling-update.sh"], "action_exit": 0, "action_seconds": 10.734, "action_finished_before_load_end": true, "lb_up_before": 2, "lb_up_min": 2, "lb_samples_missing": 0, "detection_seconds": null, "rejoin_seconds": null, "probe": {"attempts": 913, "failed_attempts": 0, "first_failure_s": null, "first_success_s": 0.055, "recovery_s": 0.0, "instances_before": {"5bbf259ff136": 120, "7cfd91ddf780": 113}, "instances_during_outage": {}, "instances_after": {"a352bb0a17ff": 255, "f6a858d7a20b": 328}}, "history": {"confirmed": 913, "stored": 913, "exact_match": true, "unique": true}, "lb_counters": {"wretr": 0, "wredis": 0, "econ": 0, "eresp": 0, "hrsp_5xx": 0}, "k6": {"requests": 9001, "rps": 100.01, "ok_rps": 100.01, "failed_ratio": 0, "dropped_iterations": 0, "p50_ms": 3.01, "p95_ms": 3.89, "p99_ms": 4.53, "exit": 0, "rate": 100}, "checks": {"action_ok": true, "load_errors_ok": true, "load_delivered": true, "lb_observed": true, "write_recovery_ok": true, "history_preserved": true, "capacity_kept": true, "all_replaced": true}, "pass": true}
|
||||
|
||||
exit: 0 elapsed_seconds: 102.458
|
||||
@@ -0,0 +1,19 @@
|
||||
date: 2026-11-05T19:18:40.675349+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
NO_PROXY=localhost,127.0.0.1,::1 COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ sh -ec 'docker ps -a --filter label=com.docker.compose.project=mtusi2026lab3-grade4-20261105 --format "{{.ID}} {{.Names}} {{.Status}} {{.Ports}}"; docker inspect -f '"'"'{{index .Config.Labels "com.docker.compose.service"}} hostname={{.Config.Hostname}} image={{.Image}} cpus={{.HostConfig.NanoCpus}} memory={{.HostConfig.Memory}} readonly={{.HostConfig.ReadonlyRootfs}} ports={{json .HostConfig.PortBindings}} user={{.Config.User}}'"'"' $(docker ps -aq --filter label=com.docker.compose.project=mtusi2026lab3-grade4-20261105)'
|
||||
6ea7ad4475c4 mtusi2026lab3-grade4-20261105-k6-run-66957244d46c Up 25 seconds
|
||||
5bbf259ff136 mtusi2026lab3-grade4-20261105-api-2 Up 3 minutes (healthy)
|
||||
7cfd91ddf780 mtusi2026lab3-grade4-20261105-api-1 Up 51 seconds (healthy)
|
||||
ad30cd539e85 mtusi2026lab3-grade4-20261105-migrate-1 Exited (0) 3 minutes ago
|
||||
f225c6cd77bb mtusi2026lab3-grade4-20261105-postgres-1 Up 41 seconds (healthy)
|
||||
4f83577b3411 mtusi2026lab3-grade4-20261105-lb-1 Up 3 minutes (healthy) 127.0.0.1:18083->8080/tcp, 127.0.0.1:23083->8404/tcp
|
||||
5e3ed0a9a35a mtusi2026lab3-grade4-20261105-valkey-1 Up 3 minutes (healthy)
|
||||
k6 hostname=6ea7ad4475c4 image=sha256:2dd4756ec6e14e62778916e1eb850108e4b499304c02df56760fa0bdb0fba0b8 cpus=2000000000 memory=536870912 readonly=false ports={} user=501:20
|
||||
api hostname=5bbf259ff136 image=sha256:fdc0128530c7f092746491b339125eea9fe079b86dcc5c8c3aa89e224fca1706 cpus=1000000000 memory=536870912 readonly=true ports={} user=10001:10001
|
||||
api hostname=7cfd91ddf780 image=sha256:fdc0128530c7f092746491b339125eea9fe079b86dcc5c8c3aa89e224fca1706 cpus=1000000000 memory=536870912 readonly=true ports={} user=10001:10001
|
||||
migrate hostname=ad30cd539e85 image=sha256:fdc0128530c7f092746491b339125eea9fe079b86dcc5c8c3aa89e224fca1706 cpus=500000000 memory=268435456 readonly=false ports={} user=10001:10001
|
||||
postgres hostname=f225c6cd77bb image=sha256:266d3c257594e195b309ae9d1805e54c788f1d7b375f56bf6c367aac6c917e7b cpus=2000000000 memory=1073741824 readonly=false ports={} user=70:70
|
||||
lb hostname=4f83577b3411 image=sha256:5893840576071e6217cd52ebdcc14f454c6f7a631056fa6f4e0f40d3cac4215b cpus=1000000000 memory=134217728 readonly=true ports={"8080/tcp":[{"HostIp":"127.0.0.1","HostPort":"18083"}],"8404/tcp":[{"HostIp":"127.0.0.1","HostPort":"23083"}]} user=haproxy
|
||||
valkey hostname=5e3ed0a9a35a image=sha256:2602ace2be6569bc2bbb06f873776516ab9089821525be34f4305c67eb9db02a cpus=500000000 memory=134217728 readonly=false ports={} user=999:1000
|
||||
|
||||
exit: 0 elapsed_seconds: 0.090
|
||||
@@ -0,0 +1,146 @@
|
||||
date: 2026-11-05T19:15:18.997794+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ sh -ec 'docker ps --format "{{.Names}} {{.Status}} {{.Ports}}"; docker volume ls --filter label=com.docker.compose.project=mtusi2026lab3-grade4-20261105; make up; docker compose ps -a; docker compose exec -T api python -c '"'"'from importlib.metadata import version; print({p:version(p) for p in ("sqlalchemy","alembic","gunicorn","uvicorn-worker")})'"'"'; docker compose exec -T postgres psql -X -U messenger -d messenger -c "table alembic_version"'
|
||||
DRIVER VOLUME NAME
|
||||
sh scripts/secrets.sh
|
||||
docker compose up -d --build --wait
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 448B done
|
||||
#1 DONE 0.0s
|
||||
|
||||
#2 [internal] load build definition from Dockerfile
|
||||
#2 transferring dockerfile: 1.65kB done
|
||||
#2 DONE 0.0s
|
||||
|
||||
#3 [internal] load metadata for ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142
|
||||
#3 DONE 0.0s
|
||||
|
||||
#4 [internal] load metadata for docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d
|
||||
#4 DONE 1.7s
|
||||
|
||||
#5 [internal] load .dockerignore
|
||||
#5 transferring context: 437B done
|
||||
#5 DONE 0.0s
|
||||
|
||||
#6 FROM ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142
|
||||
#6 resolve ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 0.0s done
|
||||
#6 DONE 0.0s
|
||||
|
||||
#7 [builder 1/7] FROM docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d
|
||||
#7 resolve docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d 0.0s done
|
||||
#7 DONE 0.0s
|
||||
|
||||
#8 [internal] load build context
|
||||
#8 transferring context: 13.68kB 0.0s done
|
||||
#8 DONE 0.0s
|
||||
|
||||
#9 [builder 6/7] COPY src ./src
|
||||
#9 CACHED
|
||||
|
||||
#10 [builder 7/7] RUN uv sync --locked --no-dev --no-editable
|
||||
#10 CACHED
|
||||
|
||||
#11 [builder 2/7] COPY --from=ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 /uv /usr/local/bin/uv
|
||||
#11 CACHED
|
||||
|
||||
#12 [builder 4/7] COPY pyproject.toml uv.lock README.md ./
|
||||
#12 CACHED
|
||||
|
||||
#13 [builder 5/7] RUN uv sync --locked --no-dev --no-install-project --no-editable
|
||||
#13 CACHED
|
||||
|
||||
#14 [runtime 5/6] COPY --chown=root:root alembic.ini ./
|
||||
#14 CACHED
|
||||
|
||||
#15 [runtime 3/6] COPY --from=builder --chown=root:root /opt/venv /opt/venv
|
||||
#15 CACHED
|
||||
|
||||
#16 [runtime 4/6] WORKDIR /app
|
||||
#16 CACHED
|
||||
|
||||
#17 [runtime 2/6] RUN groupadd --system --gid 10001 messenger && useradd --system --uid 10001 --gid messenger --no-create-home --shell /usr/sbin/nologin messenger
|
||||
#17 CACHED
|
||||
|
||||
#18 [builder 3/7] WORKDIR /build
|
||||
#18 CACHED
|
||||
|
||||
#19 [runtime 6/6] COPY --chown=root:root alembic ./alembic
|
||||
#19 CACHED
|
||||
|
||||
#20 exporting to image
|
||||
#20 exporting layers done
|
||||
#20 exporting manifest sha256:5038ad65552ef8a56c20f7f9f042205fa4f08bed2182f7d170da334d08a3bd61 done
|
||||
#20 exporting config sha256:de74256583c9ad3781e5456b23c7688aa2ee86733f0d16bcd296b9112aee8335 done
|
||||
#20 exporting attestation manifest sha256:6018cc5e9f5293610ab5cdb4895b36f22c0cfe7ea5b1ac9184dc6b45f6adb3b1 done
|
||||
#20 exporting manifest list sha256:fdc0128530c7f092746491b339125eea9fe079b86dcc5c8c3aa89e224fca1706 done
|
||||
#20 naming to docker.io/library/mtusi-messenger:mtusi2026lab3-grade4-20261105 done
|
||||
#20 unpacking to docker.io/library/mtusi-messenger:mtusi2026lab3-grade4-20261105 done
|
||||
#20 DONE 0.0s
|
||||
|
||||
#21 resolving provenance for metadata file
|
||||
#21 DONE 0.0s
|
||||
api Built
|
||||
Network mtusi2026lab3-grade4-20261105_edge Creating
|
||||
Network mtusi2026lab3-grade4-20261105_edge Created
|
||||
Network mtusi2026lab3-grade4-20261105_backend Creating
|
||||
Network mtusi2026lab3-grade4-20261105_backend Created
|
||||
Volume "mtusi2026lab3-grade4-20261105_pgdata" Creating
|
||||
Volume "mtusi2026lab3-grade4-20261105_pgdata" Created
|
||||
Volume "mtusi2026lab3-grade4-20261105_valkeydata" Creating
|
||||
Volume "mtusi2026lab3-grade4-20261105_valkeydata" Created
|
||||
Container mtusi2026lab3-grade4-20261105-lb-1 Creating
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Creating
|
||||
Container mtusi2026lab3-grade4-20261105-valkey-1 Creating
|
||||
Container mtusi2026lab3-grade4-20261105-valkey-1 Created
|
||||
Container mtusi2026lab3-grade4-20261105-lb-1 Created
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Created
|
||||
Container mtusi2026lab3-grade4-20261105-migrate-1 Creating
|
||||
Container mtusi2026lab3-grade4-20261105-migrate-1 Created
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Creating
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Creating
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Created
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Created
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Starting
|
||||
Container mtusi2026lab3-grade4-20261105-valkey-1 Starting
|
||||
Container mtusi2026lab3-grade4-20261105-lb-1 Starting
|
||||
Container mtusi2026lab3-grade4-20261105-valkey-1 Started
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Started
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-lb-1 Started
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-migrate-1 Starting
|
||||
Container mtusi2026lab3-grade4-20261105-migrate-1 Started
|
||||
Container mtusi2026lab3-grade4-20261105-migrate-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-migrate-1 Exited
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Starting
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Started
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Starting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Started
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-valkey-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-lb-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-migrate-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-valkey-1 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-migrate-1 Exited
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-lb-1 Healthy
|
||||
scripts/lb-wait.sh
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab3-grade4-20261105-api-1 mtusi-messenger:mtusi2026lab3-grade4-20261105 "python -m gunicorn …" api 6 seconds ago Up 3 seconds (healthy)
|
||||
mtusi2026lab3-grade4-20261105-api-2 mtusi-messenger:mtusi2026lab3-grade4-20261105 "python -m gunicorn …" api 6 seconds ago Up 4 seconds (healthy)
|
||||
mtusi2026lab3-grade4-20261105-lb-1 haproxy:3.2.26-alpine@sha256:5893840576071e6217cd52ebdcc14f454c6f7a631056fa6f4e0f40d3cac4215b "docker-entrypoint.s…" lb 6 seconds ago Up 6 seconds (healthy) 127.0.0.1:18083->8080/tcp, 127.0.0.1:23083->8404/tcp
|
||||
mtusi2026lab3-grade4-20261105-migrate-1 mtusi-messenger:mtusi2026lab3-grade4-20261105 "alembic upgrade head" migrate 6 seconds ago Exited (0) 4 seconds ago
|
||||
mtusi2026lab3-grade4-20261105-postgres-1 postgres:17.11-alpine@sha256:266d3c257594e195b309ae9d1805e54c788f1d7b375f56bf6c367aac6c917e7b "docker-entrypoint.s…" postgres 6 seconds ago Up 6 seconds (healthy)
|
||||
mtusi2026lab3-grade4-20261105-valkey-1 valkey/valkey:8.1.11-alpine@sha256:2602ace2be6569bc2bbb06f873776516ab9089821525be34f4305c67eb9db02a "tini -- docker-entr…" valkey 6 seconds ago Up 6 seconds (healthy)
|
||||
{'sqlalchemy': '2.0.45', 'alembic': '1.16.5', 'gunicorn': '26.2.0', 'uvicorn-worker': '0.4.0'}
|
||||
version_num
|
||||
-----------------------
|
||||
0002_idempotency_keys
|
||||
(1 row)
|
||||
|
||||
|
||||
exit: 0 elapsed_seconds: 9.454
|
||||
@@ -0,0 +1,37 @@
|
||||
date: 2026-11-05T19:26:53.113718+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
NO_PROXY=localhost,127.0.0.1,::1 COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ sh -ec 'make down; docker ps -a --filter label=com.docker.compose.project=mtusi2026lab3-grade4-20261105 --format "{{.ID}} {{.Names}} {{.Status}}"; docker volume ls --filter label=com.docker.compose.project=mtusi2026lab3-grade4-20261105; test -z "$(docker ps -aq --filter label=com.docker.compose.project=mtusi2026lab3-grade4-20261105)"'
|
||||
docker compose --profile bench down
|
||||
Container mtusi2026lab3-grade4-20261105-api-5 Stopping
|
||||
Container mtusi2026lab3-grade4-20261105-api-6 Stopping
|
||||
Container mtusi2026lab3-grade4-20261105-lb-1 Stopping
|
||||
Container mtusi2026lab3-grade4-20261105-lb-1 Stopped
|
||||
Container mtusi2026lab3-grade4-20261105-lb-1 Removing
|
||||
Container mtusi2026lab3-grade4-20261105-lb-1 Removed
|
||||
Container mtusi2026lab3-grade4-20261105-api-6 Stopped
|
||||
Container mtusi2026lab3-grade4-20261105-api-6 Removing
|
||||
Container mtusi2026lab3-grade4-20261105-api-6 Removed
|
||||
Container mtusi2026lab3-grade4-20261105-api-5 Stopped
|
||||
Container mtusi2026lab3-grade4-20261105-api-5 Removing
|
||||
Container mtusi2026lab3-grade4-20261105-api-5 Removed
|
||||
Container mtusi2026lab3-grade4-20261105-valkey-1 Stopping
|
||||
Container mtusi2026lab3-grade4-20261105-migrate-1 Stopping
|
||||
Container mtusi2026lab3-grade4-20261105-migrate-1 Stopped
|
||||
Container mtusi2026lab3-grade4-20261105-migrate-1 Removing
|
||||
Container mtusi2026lab3-grade4-20261105-migrate-1 Removed
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Stopping
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Stopped
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Removing
|
||||
Container mtusi2026lab3-grade4-20261105-valkey-1 Stopped
|
||||
Container mtusi2026lab3-grade4-20261105-valkey-1 Removing
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Removed
|
||||
Container mtusi2026lab3-grade4-20261105-valkey-1 Removed
|
||||
Network mtusi2026lab3-grade4-20261105_backend Removing
|
||||
Network mtusi2026lab3-grade4-20261105_edge Removing
|
||||
Network mtusi2026lab3-grade4-20261105_backend Removed
|
||||
Network mtusi2026lab3-grade4-20261105_edge Removed
|
||||
DRIVER VOLUME NAME
|
||||
local mtusi2026lab3-grade4-20261105_pgdata
|
||||
local mtusi2026lab3-grade4-20261105_valkeydata
|
||||
|
||||
exit: 0 elapsed_seconds: 3.228
|
||||
@@ -0,0 +1,37 @@
|
||||
date: 2026-11-05T19:29:06.062248+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
NO_PROXY=localhost,127.0.0.1,::1 COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ sh -ec 'make down; docker ps -a --filter label=com.docker.compose.project=mtusi2026lab3-grade4-20261105 --format "{{.ID}} {{.Names}} {{.Status}}"; docker volume ls --filter label=com.docker.compose.project=mtusi2026lab3-grade4-20261105; test -z "$(docker ps -aq --filter label=com.docker.compose.project=mtusi2026lab3-grade4-20261105)"'
|
||||
docker compose --profile bench down
|
||||
Container mtusi2026lab3-grade4-20261105-lb-1 Stopping
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Stopping
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Stopping
|
||||
Container mtusi2026lab3-grade4-20261105-lb-1 Stopped
|
||||
Container mtusi2026lab3-grade4-20261105-lb-1 Removing
|
||||
Container mtusi2026lab3-grade4-20261105-lb-1 Removed
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Stopped
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Removing
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Stopped
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Removing
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Removed
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Removed
|
||||
Container mtusi2026lab3-grade4-20261105-valkey-1 Stopping
|
||||
Container mtusi2026lab3-grade4-20261105-migrate-1 Stopping
|
||||
Container mtusi2026lab3-grade4-20261105-migrate-1 Stopped
|
||||
Container mtusi2026lab3-grade4-20261105-migrate-1 Removing
|
||||
Container mtusi2026lab3-grade4-20261105-migrate-1 Removed
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Stopping
|
||||
Container mtusi2026lab3-grade4-20261105-valkey-1 Stopped
|
||||
Container mtusi2026lab3-grade4-20261105-valkey-1 Removing
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Stopped
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Removing
|
||||
Container mtusi2026lab3-grade4-20261105-valkey-1 Removed
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Removed
|
||||
Network mtusi2026lab3-grade4-20261105_backend Removing
|
||||
Network mtusi2026lab3-grade4-20261105_edge Removing
|
||||
Network mtusi2026lab3-grade4-20261105_edge Removed
|
||||
Network mtusi2026lab3-grade4-20261105_backend Removed
|
||||
DRIVER VOLUME NAME
|
||||
local mtusi2026lab3-grade4-20261105_pgdata
|
||||
local mtusi2026lab3-grade4-20261105_valkeydata
|
||||
|
||||
exit: 0 elapsed_seconds: 3.466
|
||||
@@ -0,0 +1,303 @@
|
||||
date: 2026-11-05T19:26:56.378672+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
NO_PROXY=localhost,127.0.0.1,::1 COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ make student-test PYTEST_ARGS=-vv
|
||||
.venv/bin/pytest -vv
|
||||
============================= test session starts ==============================
|
||||
platform darwin -- Python 3.14.5, pytest-9.1.1, pluggy-1.6.0 -- <repo>/.venv/bin/python
|
||||
cachedir: .pytest_cache
|
||||
rootdir: <repo>
|
||||
configfile: pyproject.toml
|
||||
testpaths: student-tests
|
||||
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
|
||||
collecting ... collected 297 items / 12 deselected / 285 selected
|
||||
|
||||
student-tests/api/test_access.py::test_outsider_gets_404_on_chat PASSED [ 0%]
|
||||
student-tests/api/test_access.py::test_unknown_chat_is_indistinguishable_from_foreign PASSED [ 0%]
|
||||
student-tests/api/test_access.py::test_outsider_cannot_write PASSED [ 1%]
|
||||
student-tests/api/test_access.py::test_outsider_cannot_read_history PASSED [ 1%]
|
||||
student-tests/api/test_access.py::test_access_checked_before_body PASSED [ 1%]
|
||||
student-tests/api/test_access.py::test_chat_list_hides_foreign_chats PASSED [ 2%]
|
||||
student-tests/api/test_access.py::test_403_is_never_used PASSED [ 2%]
|
||||
student-tests/api/test_access.py::test_request_shape_is_checked_before_access PASSED [ 2%]
|
||||
student-tests/api/test_access.py::test_outsider_does_not_wait_for_members_lock PASSED [ 3%]
|
||||
student-tests/api/test_bounded_contexts.py::test_identity_does_not_know_about_messaging PASSED [ 3%]
|
||||
student-tests/api/test_bounded_contexts.py::test_domains_do_not_import_infrastructure PASSED [ 3%]
|
||||
student-tests/api/test_bounded_contexts.py::test_core_layers_do_not_import_pydantic PASSED [ 4%]
|
||||
student-tests/api/test_bounded_contexts.py::test_shared_knows_nothing_about_zones PASSED [ 4%]
|
||||
student-tests/api/test_bounded_contexts.py::test_shared_core_is_free_of_transport PASSED [ 4%]
|
||||
student-tests/api/test_bounded_contexts.py::test_shared_core_holds_only_platform PASSED [ 5%]
|
||||
student-tests/api/test_bounded_contexts.py::test_shared_entrypoints_hold_only_transport PASSED [ 5%]
|
||||
student-tests/api/test_bounded_contexts.py::test_every_zone_owns_its_errors_events_and_commands PASSED [ 5%]
|
||||
student-tests/api/test_bounded_contexts.py::test_every_zone_owns_its_http_layer PASSED [ 6%]
|
||||
student-tests/api/test_bounded_contexts.py::test_only_main_knows_both_zones PASSED [ 6%]
|
||||
student-tests/api/test_bounded_contexts.py::test_application_has_no_separate_entrypoints_root PASSED [ 7%]
|
||||
student-tests/api/test_bounded_contexts.py::test_shared_source_mentions_no_domain_vocabulary PASSED [ 7%]
|
||||
student-tests/api/test_bounded_contexts.py::test_shared_declares_no_concrete_commands_or_events PASSED [ 7%]
|
||||
student-tests/api/test_bounded_contexts.py::test_shared_has_no_test_doubles PASSED [ 8%]
|
||||
student-tests/api/test_bounded_contexts.py::test_zone_errors_do_not_leak_transport_codes PASSED [ 8%]
|
||||
student-tests/api/test_bounded_contexts.py::test_sql_of_each_zone_reads_only_its_tables PASSED [ 8%]
|
||||
student-tests/api/test_bounded_contexts.py::test_messaging_does_not_import_identity_at_all PASSED [ 9%]
|
||||
student-tests/api/test_bounded_contexts.py::test_sqlalchemy_stays_in_infrastructure_and_asyncpg_is_only_a_driver PASSED [ 9%]
|
||||
student-tests/api/test_cache.py::test_second_check_is_served_from_cache PASSED [ 9%]
|
||||
student-tests/api/test_cache.py::test_logout_writes_tombstone_before_database PASSED [ 10%]
|
||||
student-tests/api/test_cache.py::test_logout_rejected_by_database_changes_nothing PASSED [ 10%]
|
||||
student-tests/api/test_cache.py::test_fill_racing_with_logout_does_not_revive_token PASSED [ 10%]
|
||||
student-tests/api/test_cache.py::test_flushall_loses_nothing PASSED [ 11%]
|
||||
student-tests/api/test_cache.py::test_unreachable_cache_is_bypassed_without_anonymous_access PASSED [ 11%]
|
||||
student-tests/api/test_concurrency.py::test_hundred_messages_from_ten_clients PASSED [ 11%]
|
||||
student-tests/api/test_concurrency.py::test_history_follows_the_clock_but_never_moves_back PASSED [ 12%]
|
||||
student-tests/api/test_concurrency.py::test_parallel_registration_keeps_username_unique PASSED [ 12%]
|
||||
student-tests/api/test_concurrency.py::test_parallel_chat_creation_is_atomic PASSED [ 12%]
|
||||
student-tests/api/test_consistency.py::test_registration_is_visible_to_chats_immediately PASSED [ 13%]
|
||||
student-tests/api/test_consistency.py::test_parallel_registrations_are_all_usable_as_members PASSED [ 13%]
|
||||
student-tests/api/test_consistency.py::test_rejected_registration_leaves_no_trace PASSED [ 14%]
|
||||
student-tests/api/test_consistency.py::test_failed_chat_creation_rolls_back_both_tables PASSED [ 14%]
|
||||
student-tests/api/test_consistency.py::test_rejected_message_does_not_enter_history PASSED [ 14%]
|
||||
student-tests/api/test_consistency.py::test_confirmed_write_is_visible_to_next_read PASSED [ 15%]
|
||||
student-tests/api/test_consistency.py::test_parallel_writes_across_zones_keep_counts_consistent PASSED [ 15%]
|
||||
student-tests/api/test_consistency.py::test_chat_membership_survives_parallel_reads_and_writes PASSED [ 15%]
|
||||
student-tests/api/test_drain.py::test_draining_replica_is_not_ready_but_alive PASSED [ 16%]
|
||||
student-tests/api/test_drain.py::test_sigterm_leaves_rotation_then_closes_and_cancels_stuck_requests PASSED [ 16%]
|
||||
student-tests/api/test_events.py::test_event_has_no_message_text PASSED [ 16%]
|
||||
student-tests/api/test_events.py::test_every_subscriber_receives_event PASSED [ 17%]
|
||||
student-tests/api/test_events.py::test_failing_subscriber_does_not_block_others PASSED [ 17%]
|
||||
student-tests/api/test_events.py::test_queue_overflow_drops_events_without_raising PASSED [ 17%]
|
||||
student-tests/api/test_events.py::test_publication_does_not_delay_response PASSED [ 18%]
|
||||
student-tests/api/test_events.py::test_null_logger_hides_everything PASSED [ 18%]
|
||||
student-tests/api/test_idempotency.py::test_replay_returns_the_same_message PASSED [ 18%]
|
||||
student-tests/api/test_idempotency.py::test_same_json_in_other_layout_is_a_replay PASSED [ 19%]
|
||||
student-tests/api/test_idempotency.py::test_other_body_with_same_key_conflicts PASSED [ 19%]
|
||||
student-tests/api/test_idempotency.py::test_missing_key_is_rejected PASSED [ 20%]
|
||||
student-tests/api/test_idempotency.py::test_malformed_key_is_rejected[0] PASSED [ 20%]
|
||||
student-tests/api/test_idempotency.py::test_malformed_key_is_rejected[1] PASSED [ 20%]
|
||||
student-tests/api/test_idempotency.py::test_malformed_key_is_rejected[2] PASSED [ 21%]
|
||||
student-tests/api/test_idempotency.py::test_malformed_key_is_rejected[3] PASSED [ 21%]
|
||||
student-tests/api/test_idempotency.py::test_malformed_key_is_rejected[4] PASSED [ 21%]
|
||||
student-tests/api/test_idempotency.py::test_malformed_key_is_rejected[5] PASSED [ 22%]
|
||||
student-tests/api/test_idempotency.py::test_rejected_attempt_does_not_take_the_key PASSED [ 22%]
|
||||
student-tests/api/test_idempotency.py::test_key_is_scoped_by_user_and_chat PASSED [ 22%]
|
||||
student-tests/api/test_idempotency.py::test_replay_checks_session_and_access_again PASSED [ 23%]
|
||||
student-tests/api/test_idempotency.py::test_expired_key_starts_over PASSED [ 23%]
|
||||
student-tests/api/test_idempotency.py::test_concurrent_retries_through_two_replicas_store_one_message PASSED [ 23%]
|
||||
student-tests/api/test_instance.py::test_every_response_names_the_replica PASSED [ 24%]
|
||||
student-tests/api/test_instance.py::test_rejected_body_names_the_replica PASSED [ 24%]
|
||||
student-tests/api/test_instance.py::test_unhandled_error_names_the_replica PASSED [ 24%]
|
||||
student-tests/api/test_instance.py::test_replica_defaults_to_container_hostname PASSED [ 25%]
|
||||
student-tests/api/test_migrations.py::test_migrations_are_ordered_and_versioned PASSED [ 25%]
|
||||
student-tests/api/test_migrations.py::test_fresh_schema_matches_models PASSED [ 25%]
|
||||
student-tests/api/test_migrations.py::test_rerun_changes_nothing PASSED [ 26%]
|
||||
student-tests/api/test_migrations.py::test_legacy_upgrade_preserves_every_row[1] PASSED [ 26%]
|
||||
student-tests/api/test_migrations.py::test_legacy_upgrade_preserves_every_row[2] PASSED [ 27%]
|
||||
student-tests/api/test_migrations.py::test_legacy_drift_is_refused_without_stamping[DROP INDEX messages_history_idx] PASSED [ 27%]
|
||||
student-tests/api/test_migrations.py::test_legacy_drift_is_refused_without_stamping[ALTER TABLE messages DROP CONSTRAINT messages_chat_id_sender_id_fkey] PASSED [ 27%]
|
||||
student-tests/api/test_migrations.py::test_legacy_drift_is_refused_without_stamping[ALTER TABLE users DROP CONSTRAINT users_username_format] PASSED [ 28%]
|
||||
student-tests/api/test_migrations.py::test_legacy_drift_is_refused_without_stamping[ALTER TABLE users ALTER COLUMN display_name TYPE varchar] PASSED [ 28%]
|
||||
student-tests/api/test_migrations.py::test_legacy_drift_is_refused_without_stamping[ALTER TABLE users ALTER COLUMN username TYPE text COLLATE "C"] PASSED [ 28%]
|
||||
student-tests/api/test_migrations.py::test_legacy_drift_is_refused_without_stamping[ALTER TABLE sessions SET UNLOGGED] PASSED [ 29%]
|
||||
student-tests/api/test_migrations.py::test_legacy_drift_is_refused_without_stamping[ALTER TABLE sessions ALTER COLUMN expires_at DROP NOT NULL] PASSED [ 29%]
|
||||
student-tests/api/test_migrations.py::test_legacy_drift_is_refused_without_stamping[UPDATE schema_migrations SET checksum = 'tampered' WHERE version = '0001_init'] PASSED [ 29%]
|
||||
student-tests/api/test_migrations.py::test_legacy_drift_is_refused_without_stamping[DELETE FROM schema_migrations WHERE version = '0001_init'] PASSED [ 30%]
|
||||
student-tests/api/test_migrations.py::test_legacy_drift_is_refused_without_stamping[UPDATE schema_migrations SET version = 'unknown' WHERE version = '0002_idempotency_keys'] PASSED [ 30%]
|
||||
student-tests/api/test_migrations.py::test_legacy_drift_is_refused_without_stamping[DROP TABLE schema_migrations] PASSED [ 30%]
|
||||
student-tests/api/test_migrations.py::test_unknown_revision_is_refused PASSED [ 31%]
|
||||
student-tests/api/test_migrations.py::test_simultaneous_migration_processes_serialize[False] PASSED [ 31%]
|
||||
student-tests/api/test_migrations.py::test_simultaneous_migration_processes_serialize[True] PASSED [ 31%]
|
||||
student-tests/api/test_migrations.py::test_sender_must_be_member_even_bypassing_api PASSED [ 32%]
|
||||
student-tests/api/test_migrations.py::test_key_needs_a_member_and_a_message PASSED [ 32%]
|
||||
student-tests/api/test_migrations.py::test_failed_revision_rolls_back_ddl_and_version PASSED [ 32%]
|
||||
student-tests/api/test_negative.py::test_malformed_json PASSED [ 33%]
|
||||
student-tests/api/test_negative.py::test_unexpected_field PASSED [ 33%]
|
||||
student-tests/api/test_negative.py::test_wrong_types PASSED [ 34%]
|
||||
student-tests/api/test_negative.py::test_invalid_registration[body0] PASSED [ 34%]
|
||||
student-tests/api/test_negative.py::test_invalid_registration[body1] PASSED [ 34%]
|
||||
student-tests/api/test_negative.py::test_invalid_registration[body2] PASSED [ 35%]
|
||||
student-tests/api/test_negative.py::test_invalid_registration[body3] PASSED [ 35%]
|
||||
student-tests/api/test_negative.py::test_invalid_registration[body4] PASSED [ 35%]
|
||||
student-tests/api/test_negative.py::test_invalid_registration[body5] PASSED [ 36%]
|
||||
student-tests/api/test_negative.py::test_invalid_registration[body6] PASSED [ 36%]
|
||||
student-tests/api/test_negative.py::test_invalid_registration[body7] PASSED [ 36%]
|
||||
student-tests/api/test_negative.py::test_invalid_registration[body8] PASSED [ 37%]
|
||||
student-tests/api/test_negative.py::test_invalid_registration[body9] PASSED [ 37%]
|
||||
student-tests/api/test_negative.py::test_invalid_registration[body10] PASSED [ 37%]
|
||||
student-tests/api/test_negative.py::test_duplicate_username PASSED [ 38%]
|
||||
student-tests/api/test_negative.py::test_missing_identity PASSED [ 38%]
|
||||
student-tests/api/test_negative.py::test_invalid_bearer[] PASSED [ 38%]
|
||||
student-tests/api/test_negative.py::test_invalid_bearer[Bearer] PASSED [ 39%]
|
||||
student-tests/api/test_negative.py::test_invalid_bearer[Bearer ] PASSED [ 39%]
|
||||
student-tests/api/test_negative.py::test_invalid_bearer[Bearer not a token] PASSED [ 40%]
|
||||
student-tests/api/test_negative.py::test_invalid_bearer[Bearer <synthetic-invalid-token>] PASSED [ 40%]
|
||||
student-tests/api/test_negative.py::test_invalid_bearer[Token abcdef] PASSED [ 40%]
|
||||
student-tests/api/test_negative.py::test_invalid_bearer[11111111-1111-4111-8111-111111111111] PASSED [ 41%]
|
||||
student-tests/api/test_negative.py::test_user_id_header_alone_is_ignored PASSED [ 41%]
|
||||
student-tests/api/test_negative.py::test_identity_checked_before_body PASSED [ 41%]
|
||||
student-tests/api/test_negative.py::test_empty_message_rejected PASSED [ 42%]
|
||||
student-tests/api/test_negative.py::test_long_message_rejected PASSED [ 42%]
|
||||
student-tests/api/test_negative.py::test_sender_id_not_accepted PASSED [ 42%]
|
||||
student-tests/api/test_negative.py::test_invalid_chat_creation[body0] PASSED [ 43%]
|
||||
student-tests/api/test_negative.py::test_invalid_chat_creation[body1] PASSED [ 43%]
|
||||
student-tests/api/test_negative.py::test_invalid_chat_creation[body2] PASSED [ 43%]
|
||||
student-tests/api/test_negative.py::test_invalid_chat_creation[body3] PASSED [ 44%]
|
||||
student-tests/api/test_negative.py::test_invalid_chat_creation[body4] PASSED [ 44%]
|
||||
student-tests/api/test_negative.py::test_invalid_chat_creation[body5] PASSED [ 44%]
|
||||
student-tests/api/test_negative.py::test_creator_must_be_member PASSED [ 45%]
|
||||
student-tests/api/test_negative.py::test_unknown_member_rejected PASSED [ 45%]
|
||||
student-tests/api/test_negative.py::test_bad_chat_id_in_path PASSED [ 45%]
|
||||
student-tests/api/test_operability.py::test_health_needs_no_identity PASSED [ 46%]
|
||||
student-tests/api/test_operability.py::test_every_response_carries_request_id PASSED [ 46%]
|
||||
student-tests/api/test_operability.py::test_client_request_id_is_preserved PASSED [ 47%]
|
||||
student-tests/api/test_operability.py::test_unknown_public_route_is_404 PASSED [ 47%]
|
||||
student-tests/api/test_operability.py::test_unknown_protected_route_needs_identity PASSED [ 47%]
|
||||
student-tests/api/test_operability.py::test_method_not_allowed_is_hidden PASSED [ 48%]
|
||||
student-tests/api/test_operability.py::test_logs_do_not_contain_message_text PASSED [ 48%]
|
||||
student-tests/api/test_operability.py::test_log_lines_are_json PASSED [ 48%]
|
||||
student-tests/api/test_operability.py::test_body_limit_returns_413 PASSED [ 49%]
|
||||
student-tests/api/test_operability.py::test_chunked_body_is_limited_too PASSED [ 49%]
|
||||
student-tests/api/test_operability.py::test_ready_turns_unavailable_without_database PASSED [ 49%]
|
||||
student-tests/api/test_operability.py::test_protected_request_is_503_not_401_without_database PASSED [ 50%]
|
||||
student-tests/api/test_operability.py::test_state_survives_new_process PASSED [ 50%]
|
||||
student-tests/api/test_operability.py::test_logs_do_not_contain_credentials PASSED [ 50%]
|
||||
student-tests/api/test_pagination.py::test_full_walk_has_no_gaps_or_repeats PASSED [ 51%]
|
||||
student-tests/api/test_pagination.py::test_limit_may_change_between_pages PASSED [ 51%]
|
||||
student-tests/api/test_pagination.py::test_last_page_closes_history PASSED [ 51%]
|
||||
student-tests/api/test_pagination.py::test_cursor_is_shared_between_members PASSED [ 52%]
|
||||
student-tests/api/test_pagination.py::test_cursor_from_another_chat_is_rejected PASSED [ 52%]
|
||||
student-tests/api/test_pagination.py::test_broken_cursor_is_rejected[garbage] PASSED [ 52%]
|
||||
student-tests/api/test_pagination.py::test_broken_cursor_is_rejected[1.2.3.4] PASSED [ 53%]
|
||||
student-tests/api/test_pagination.py::test_broken_cursor_is_rejected[%20] PASSED [ 53%]
|
||||
student-tests/api/test_pagination.py::test_broken_cursor_is_rejected[] PASSED [ 54%]
|
||||
student-tests/api/test_pagination.py::test_limit_out_of_range[0] PASSED [ 54%]
|
||||
student-tests/api/test_pagination.py::test_limit_out_of_range[-1] PASSED [ 54%]
|
||||
student-tests/api/test_pagination.py::test_limit_out_of_range[101] PASSED [ 55%]
|
||||
student-tests/api/test_pagination.py::test_limit_out_of_range[abc] PASSED [ 55%]
|
||||
student-tests/api/test_pagination.py::test_limit_out_of_range[1.5] PASSED [ 55%]
|
||||
student-tests/api/test_pagination.py::test_limit_out_of_range[] PASSED [ 56%]
|
||||
student-tests/api/test_pagination.py::test_default_limit_is_50 PASSED [ 56%]
|
||||
student-tests/api/test_pagination.py::test_unknown_query_parameter_is_ignored PASSED [ 56%]
|
||||
student-tests/api/test_pagination.py::test_chat_list_pagination PASSED [ 57%]
|
||||
student-tests/api/test_pool.py::test_exhausted_pool_answers_503_in_bounded_time PASSED [ 57%]
|
||||
student-tests/api/test_pool.py::test_statement_timeout_is_set_on_connections PASSED [ 57%]
|
||||
student-tests/api/test_pool.py::test_idle_session_does_not_acquire_connection PASSED [ 58%]
|
||||
student-tests/api/test_pool.py::test_closed_idle_connection_is_replaced_before_registration PASSED [ 58%]
|
||||
student-tests/api/test_pool.py::test_readiness_timeout_releases_waiter PASSED [ 58%]
|
||||
student-tests/api/test_pool.py::test_server_statement_timeout_returns_connection PASSED [ 59%]
|
||||
student-tests/api/test_pool.py::test_unit_of_work_persists_sessions_and_events_only_on_commit[False] PASSED [ 59%]
|
||||
student-tests/api/test_pool.py::test_unit_of_work_persists_sessions_and_events_only_on_commit[True] PASSED [ 60%]
|
||||
student-tests/api/test_pool.py::test_integrity_failure_rolls_back_and_keeps_pool_usable PASSED [ 60%]
|
||||
student-tests/api/test_pool.py::test_blocked_message_times_out_without_taking_key[database] PASSED [ 60%]
|
||||
student-tests/api/test_pool.py::test_blocked_message_times_out_without_taking_key[request] PASSED [ 61%]
|
||||
student-tests/api/test_pool.py::test_message_integrity_failure_rolls_back_receipt_and_timestamp PASSED [ 61%]
|
||||
student-tests/api/test_sessions.py::test_login_returns_session_for_registered_user PASSED [ 61%]
|
||||
student-tests/api/test_sessions.py::test_registration_response_hides_password PASSED [ 62%]
|
||||
student-tests/api/test_sessions.py::test_password_is_stored_as_argon2id PASSED [ 62%]
|
||||
student-tests/api/test_sessions.py::test_session_stores_only_token_digest PASSED [ 62%]
|
||||
student-tests/api/test_sessions.py::test_wrong_password_and_unknown_user_look_the_same PASSED [ 63%]
|
||||
student-tests/api/test_sessions.py::test_login_without_valid_basic[headers0] PASSED [ 63%]
|
||||
student-tests/api/test_sessions.py::test_login_without_valid_basic[headers1] PASSED [ 63%]
|
||||
student-tests/api/test_sessions.py::test_login_without_valid_basic[headers2] PASSED [ 64%]
|
||||
student-tests/api/test_sessions.py::test_login_without_valid_basic[headers3] PASSED [ 64%]
|
||||
student-tests/api/test_sessions.py::test_password_with_colon_logs_in PASSED [ 64%]
|
||||
student-tests/api/test_sessions.py::test_login_with_body_is_rejected PASSED [ 65%]
|
||||
student-tests/api/test_sessions.py::test_basic_on_business_endpoint_gets_bearer_challenge PASSED [ 65%]
|
||||
student-tests/api/test_sessions.py::test_user_id_header_does_not_override_owner PASSED [ 65%]
|
||||
student-tests/api/test_sessions.py::test_authentication_precedes_validation PASSED [ 66%]
|
||||
student-tests/api/test_sessions.py::test_logout_revokes_only_current_session PASSED [ 66%]
|
||||
student-tests/api/test_sessions.py::test_short_ttl_session_expires PASSED [ 67%]
|
||||
student-tests/api/test_sessions.py::test_expired_sessions_are_purged_on_next_login PASSED [ 67%]
|
||||
student-tests/api/test_sessions.py::test_chat_routes_require_bearer PASSED [ 67%]
|
||||
student-tests/api/test_timeout.py::test_timeout_returns_unavailable_error_body PASSED [ 68%]
|
||||
student-tests/api/test_timeout.py::test_timeout_does_not_break_following_requests PASSED [ 68%]
|
||||
student-tests/api/test_timeout.py::test_timeout_is_logged_without_message_text PASSED [ 68%]
|
||||
student-tests/api/test_timeout.py::test_normal_request_is_not_affected_by_timeout PASSED [ 69%]
|
||||
student-tests/api/test_timeout.py::test_slow_event_handler_does_not_trigger_timeout PASSED [ 69%]
|
||||
student-tests/api/test_timeout.py::test_healthcheck_stays_fast PASSED [ 69%]
|
||||
student-tests/api/test_wire_format.py::test_created_at_is_rfc3339_utc[whole-second] PASSED [ 70%]
|
||||
student-tests/api/test_wire_format.py::test_created_at_is_rfc3339_utc[microseconds] PASSED [ 70%]
|
||||
student-tests/unit/test_authentication.py::test_basic_splits_on_first_colon PASSED [ 70%]
|
||||
student-tests/unit/test_authentication.py::test_basic_decodes_utf8_password PASSED [ 71%]
|
||||
student-tests/unit/test_authentication.py::test_basic_scheme_is_case_insensitive PASSED [ 71%]
|
||||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[] PASSED [ 71%]
|
||||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic] PASSED [ 72%]
|
||||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic ] PASSED [ 72%]
|
||||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic !!!not-base64!!!] PASSED [ 72%]
|
||||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic YWxpY2U] PASSED [ 73%]
|
||||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic bm8tY29sb24taGVyZQ==] PASSED [ 73%]
|
||||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic 0LDQu9C40YHQsDrQv9Cw0YDQvtC70Yw=] PASSED [ 74%]
|
||||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic YWxpY2U6//4=] PASSED [ 74%]
|
||||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Bearer YWxpY2U6c2VjcmV0] PASSED [ 74%]
|
||||
student-tests/unit/test_authentication.py::test_bearer_accepts_token68 PASSED [ 75%]
|
||||
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[] PASSED [ 75%]
|
||||
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[Bearer] PASSED [ 75%]
|
||||
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[Bearer ] PASSED [ 76%]
|
||||
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[Bearer a b] PASSED [ 76%]
|
||||
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[Basic abc] PASSED [ 76%]
|
||||
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED [ 77%]
|
||||
student-tests/unit/test_authentication.py::test_bearer_rejects_oversized_token PASSED [ 77%]
|
||||
student-tests/unit/test_authentication.py::test_challenge_depends_only_on_path PASSED [ 77%]
|
||||
student-tests/unit/test_cursor.py::test_roundtrip_preserves_key PASSED [ 78%]
|
||||
student-tests/unit/test_cursor.py::test_cursor_is_opaque PASSED [ 78%]
|
||||
student-tests/unit/test_cursor.py::test_cursor_from_another_scope_is_rejected PASSED [ 78%]
|
||||
student-tests/unit/test_cursor.py::test_forged_cursor_is_rejected PASSED [ 79%]
|
||||
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[] PASSED [ 79%]
|
||||
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[garbage] PASSED [ 80%]
|
||||
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[1.2.3] PASSED [ 80%]
|
||||
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[2.1.2.3] PASSED [ 80%]
|
||||
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[1.notanumber.ff.AAAA] PASSED [ 81%]
|
||||
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[1.1.zz.AAAA] PASSED [ 81%]
|
||||
student-tests/unit/test_cursor.py::test_tampered_payload_is_rejected PASSED [ 81%]
|
||||
student-tests/unit/test_domain.py::test_username_rejects_invalid[ab] PASSED [ 82%]
|
||||
student-tests/unit/test_domain.py::test_username_rejects_invalid[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] PASSED [ 82%]
|
||||
student-tests/unit/test_domain.py::test_username_rejects_invalid[Alice] PASSED [ 82%]
|
||||
student-tests/unit/test_domain.py::test_username_rejects_invalid[alice-01] PASSED [ 83%]
|
||||
student-tests/unit/test_domain.py::test_username_rejects_invalid[\u0430\u043b\u0438\u0441\u0430] PASSED [ 83%]
|
||||
student-tests/unit/test_domain.py::test_username_rejects_invalid[] PASSED [ 83%]
|
||||
student-tests/unit/test_domain.py::test_username_rejects_invalid[a b] PASSED [ 84%]
|
||||
student-tests/unit/test_domain.py::test_username_rejects_invalid[alice\n] PASSED [ 84%]
|
||||
student-tests/unit/test_domain.py::test_username_rejects_invalid[alice\r\n] PASSED [ 84%]
|
||||
student-tests/unit/test_domain.py::test_username_accepts_valid[abc] PASSED [ 85%]
|
||||
student-tests/unit/test_domain.py::test_username_accepts_valid[a_b_9] PASSED [ 85%]
|
||||
student-tests/unit/test_domain.py::test_username_accepts_valid[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] PASSED [ 85%]
|
||||
student-tests/unit/test_domain.py::test_display_name_rejects_invalid[] PASSED [ 86%]
|
||||
student-tests/unit/test_domain.py::test_display_name_rejects_invalid[ ] PASSED [ 86%]
|
||||
student-tests/unit/test_domain.py::test_display_name_rejects_invalid[\t\n] PASSED [ 87%]
|
||||
student-tests/unit/test_domain.py::test_display_name_rejects_invalid[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED [ 87%]
|
||||
student-tests/unit/test_domain.py::test_password_rejects_invalid[] PASSED [ 87%]
|
||||
student-tests/unit/test_domain.py::test_password_rejects_invalid[ ] PASSED [ 88%]
|
||||
student-tests/unit/test_domain.py::test_password_rejects_invalid[xxxxxxxxxxx] PASSED [ 88%]
|
||||
student-tests/unit/test_domain.py::test_password_rejects_invalid[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED [ 88%]
|
||||
student-tests/unit/test_domain.py::test_password_rejects_invalid[\t\t\t\t\t\t\t\t\t\t\t\t] PASSED [ 89%]
|
||||
student-tests/unit/test_domain.py::test_password_counts_code_points[xxxxxxxxxxxx] PASSED [ 89%]
|
||||
student-tests/unit/test_domain.py::test_password_counts_code_points[\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f] PASSED [ 89%]
|
||||
student-tests/unit/test_domain.py::test_password_counts_code_points[\u043f\u0430\u0440\u043e\u043b\u044c:\u0441:\u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u0435\u043c] PASSED [ 90%]
|
||||
student-tests/unit/test_domain.py::test_password_counts_code_points[\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b] PASSED [ 90%]
|
||||
student-tests/unit/test_domain.py::test_password_is_not_printed PASSED [ 90%]
|
||||
student-tests/unit/test_domain.py::test_session_token_is_opaque_and_stored_as_digest PASSED [ 91%]
|
||||
student-tests/unit/test_domain.py::test_session_tokens_are_unique PASSED [ 91%]
|
||||
student-tests/unit/test_domain.py::test_message_text_counts_code_points_not_bytes PASSED [ 91%]
|
||||
student-tests/unit/test_domain.py::test_message_text_rejects_blank PASSED [ 92%]
|
||||
student-tests/unit/test_domain.py::test_chat_requires_creator_in_members PASSED [ 92%]
|
||||
student-tests/unit/test_domain.py::test_chat_rejects_duplicate_members PASSED [ 92%]
|
||||
student-tests/unit/test_domain.py::test_chat_rejects_more_than_hundred_members PASSED [ 93%]
|
||||
student-tests/unit/test_domain.py::test_receipt_replays_only_the_same_request PASSED [ 93%]
|
||||
student-tests/unit/test_domain.py::test_posted_message_describes_itself PASSED [ 94%]
|
||||
student-tests/unit/test_domain.py::test_user_registration_emits_event PASSED [ 94%]
|
||||
student-tests/unit/test_domain.py::test_clock_is_strictly_increasing PASSED [ 94%]
|
||||
student-tests/unit/test_probe.py::test_recovery_requires_completed_success[attempts0-None-False] PASSED [ 95%]
|
||||
student-tests/unit/test_probe.py::test_recovery_requires_completed_success[attempts1-11-False] PASSED [ 95%]
|
||||
student-tests/unit/test_probe.py::test_recovery_requires_completed_success[attempts2-1.5-True] PASSED [ 95%]
|
||||
student-tests/unit/test_probe.py::test_recovery_requires_completed_success[attempts3-0-True] PASSED [ 96%]
|
||||
student-tests/unit/test_probe.py::test_recovery_requires_completed_success[attempts4-0-False] PASSED [ 96%]
|
||||
student-tests/unit/test_probe.py::test_incomplete_load_fails[requests-0-load_delivered] PASSED [ 96%]
|
||||
student-tests/unit/test_probe.py::test_incomplete_load_fails[dropped_iterations-1-load_delivered] PASSED [ 97%]
|
||||
student-tests/unit/test_probe.py::test_missing_lb_sample_fails PASSED [ 97%]
|
||||
student-tests/unit/test_probe.py::test_full_history_matches_confirmed_bodies[none] PASSED [ 97%]
|
||||
student-tests/unit/test_probe.py::test_full_history_matches_confirmed_bodies[missing] PASSED [ 98%]
|
||||
student-tests/unit/test_probe.py::test_full_history_matches_confirmed_bodies[duplicate] PASSED [ 98%]
|
||||
student-tests/unit/test_probe.py::test_full_history_matches_confirmed_bodies[changed] PASSED [ 98%]
|
||||
student-tests/unit/test_probe.py::test_full_history_matches_confirmed_bodies[http] PASSED [ 99%]
|
||||
student-tests/unit/test_probe.py::test_full_history_matches_confirmed_bodies[cycle] PASSED [ 99%]
|
||||
student-tests/unit/test_timeouts.py::test_timeouts_shrink_inwards_and_shutdown_fits_the_stop_budget PASSED [100%]
|
||||
|
||||
===================== 285 passed, 12 deselected in 31.94s ======================
|
||||
|
||||
exit: 0 elapsed_seconds: 32.741
|
||||
@@ -0,0 +1,33 @@
|
||||
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
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user