forked from mtusi2026/mtusi2026lab6
Compare commits
10
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f60297b8e2 | ||
|
|
1e00d861a8 | ||
|
|
6ca1c75499 | ||
|
|
bc1d7aa771 | ||
|
|
97feb04b3f | ||
|
|
237a7c93e5 | ||
|
|
ebafbc3099 | ||
|
|
bc0b162082 | ||
|
|
202b985dea | ||
|
|
20e7759f87 |
@@ -2,7 +2,7 @@
|
||||
|
||||
Skeleton лабораторной 6 курса «Мессенджер под нагрузкой» (МТУСИ, 7 независимых лаб) и решение в ветке `solution/bpi2303-kostylev`. Skeleton даёт задание (`README.md`), нормативный контракт (`contracts/`, включая `contracts/observability.md`) и публичные black-box проверки (`tests/`). Реализация API, relay, worker, Dockerfile, compose-стенд, конфигурация балансировщика, S3, брокера и стека наблюдаемости, миграции, хуки отказов и собственные тесты — студенческие; решение лабы 6 построено переносом решения лабы 5.
|
||||
|
||||
Лаба 6: наблюдаемость всей системы, включая фоновую обработку. Бизнес-API не меняется (контракт 1.6.0). API, relay и worker инициализируют **OpenTelemetry SDK** в каждом процессе после fork (gunicorn-воркер, процесс relay, процесс worker) и отдают OTLP/HTTP в **OTel Collector** (`otelcol-contrib`); Collector раскладывает метрики в **Prometheus 3** (OTLP-приём), логи в **Loki 3** (OTLP `/otlp`), трассы в **Tempo 2**; **Grafana 12** только показывает и связывает их, datasources и dashboards приходят из provisioning в Git. HTTP-метрики и server spans даёт инструментация FastAPI, client spans БД — инструментация asyncpg, consumer spans — `RabbitTelemetryMiddleware` FastStream. Логи идут через порт `Logger` (structlog → stdout JSON и OTLP) с `trace_id`/`span_id`, без тел сообщений и секретов. Остаётся всё из лаб 1–5: HAProxy перед ≥2 репликами, PostgreSQL, Valkey, RustFS, RabbitMQ, outbox, relay, worker с арендой и вариантами, хуки остановки реплики и рестарта стенда.
|
||||
Лаба 6: наблюдаемость всей системы, включая фоновую обработку. Бизнес-API не меняется (контракт 1.6.0). API, relay и worker инициализируют **OpenTelemetry SDK** в каждом процессе после fork (gunicorn-воркер, процесс relay, процесс worker) и отдают OTLP/HTTP в **OTel Collector** (`otelcol-contrib`); Collector раскладывает метрики в **Prometheus 3** (OTLP-приём), логи в **Loki 3** (OTLP `/otlp`), трассы в **Tempo 2**; **Grafana 12** только показывает и связывает их, datasources и dashboards приходят из provisioning в Git. HTTP-метрики и server spans даёт инструментация FastAPI, client spans БД — инструментация asyncpg под SQLAlchemy 2.0.45 async (ORM/Core, async_sessionmaker, DeclarativeBase); миграции — Alembic 1.16.5, consumer spans — `RabbitTelemetryMiddleware` FastStream. Логи идут через порт `Logger` (structlog → stdout JSON и OTLP) с `trace_id`/`span_id`, без тел сообщений и секретов. Остаётся всё из лаб 1–5: HAProxy перед ≥2 репликами, PostgreSQL, Valkey, RustFS, RabbitMQ, outbox, relay, worker с арендой и вариантами, хуки остановки реплики и рестарта стенда.
|
||||
|
||||
## Команды
|
||||
|
||||
@@ -13,11 +13,11 @@ make install # uv sync --group dev
|
||||
make lint # ruff check + ruff format --check + ty check; обязательно перед commit
|
||||
make student-test # собственные тесты (одноразовые PostgreSQL, Valkey, RustFS и RabbitMQ в Docker)
|
||||
|
||||
make secrets # локальные secrets/* (lab5 + Grafana и DSN Collector) и .env
|
||||
make secrets # локальные secrets/* (БД, кэш, S3, broker, Grafana) и .env
|
||||
make up # docker compose build, затем up -d --wait: хранилища, broker, стек наблюдаемости → migrate, s3-init → api ×2, relay, worker → lb
|
||||
make obs-validate # otelcol validate, promtool check config, loki/tempo verify, JSON dashboards
|
||||
make telemetry-check # Grafana provisioning, запрос → лог → трасса, job → трасса и лог worker, утечки
|
||||
make test # публичный smoke через LB (BASE_URL, по умолчанию http://localhost:8080)
|
||||
make test # публичный smoke через LB (через scripts/lab6.sh: http://127.0.0.1:18086)
|
||||
make test-persistence ACTION_SCRIPT=scripts/restart.sh # рестарт lb, api, relay, worker и postgres, valkey, s3, broker с volumes
|
||||
make test-failover ACTION_SCRIPT=scripts/stop-one.sh # остановка реплики TARGET_INSTANCE_ID под запросами
|
||||
make restore # вернуть остановленные реплики и дождаться их в ротации LB
|
||||
@@ -25,6 +25,8 @@ make level3 # сценарии уровня «3» лабы 5
|
||||
make down # остановка без удаления данных; make reset-data — намеренное удаление volumes
|
||||
```
|
||||
|
||||
Команды стенда выше запускаются через `scripts/lab6.sh`, например `scripts/lab6.sh make up`. Локальные `make check validate lint` запускаются напрямую; `make student-test` создаёт одноразовые Docker-зависимости и не выполняется в документационной фазе.
|
||||
|
||||
`tests/*.py` и `scripts/*.py` — только stdlib, синтаксис Python 3.9 (`make check` разбирает их системным `python3`). Проверки сами не поднимают стенд. Хуки `scripts/stop-one.sh` и `scripts/restart.sh` запускаются тестом без shell, поэтому исполняемые и с shebang. Адреса Prometheus, Loki, Tempo и Grafana для `scripts/obs_check.py` — переменные `PROMETHEUS_URL`, `LOKI_URL`, `TEMPO_URL`, `GRAFANA_URL` (по умолчанию стандартные порты на `127.0.0.1`).
|
||||
|
||||
## Архитектура skeleton
|
||||
@@ -46,9 +48,9 @@ make down # остановка без удаления д
|
||||
## Правила работы с репозиторием
|
||||
|
||||
- Не менять и не ослаблять `contracts/`, `tests/`, `README.md`, `COURSE.md`, `infra/README.md`, `infra/otel/README.md`, рубрику. Расхождение оформляется вопросом преподавателю.
|
||||
- Код — `src/messenger/`, миграции — `src/messenger/migrations/NNNN_*.sql`, конфигурация LB, нагрузки, S3, брокера и наблюдаемости — `infra/` (`infra/otel`, `infra/prometheus`, `infra/loki`, `infra/tempo`, `infra/grafana`), хуки и обвязка стенда — `scripts/`, собственные тесты — `student-tests/`, обезличенные доказательства — `evidence/`.
|
||||
- Код — `src/messenger/`, миграции — `alembic/versions/`, async `alembic/env.py`, one-shot `alembic upgrade head`; работа с БД — только SQLAlchemy ORM/Core, asyncpg используется как драйвер, конфигурация LB, нагрузки, S3, брокера и наблюдаемости — `infra/` (`infra/otel`, `infra/prometheus`, `infra/loki`, `infra/tempo`, `infra/grafana`), хуки и обвязка стенда — `scripts/`, собственные тесты — `student-tests/`, обезличенные доказательства — `evidence/`.
|
||||
- Без комментариев в коде; отступы — пробелы (`[tool.ruff.format]`); Python 3.14 без `from __future__ import annotations` и `TYPE_CHECKING`.
|
||||
- Наружу публикуются только LB, UI брокера, Prometheus, Loki, Tempo и Grafana на `127.0.0.1`; порты реплик API, OTLP и self-metrics Collector не публикуются. Порты задаются переменными `.env`, дефолты compose — стандартные.
|
||||
- Наружу публикуются только LB, UI брокера, Prometheus, Loki, Tempo и Grafana на `127.0.0.1`; порты реплик API, OTLP и self-metrics Collector не публикуются. Порты задаются переменными `.env`/shell: API 18086, HAProxy stats 26085, broker UI 26086, Prometheus 26090, Loki 26310, Tempo 26320, Grafana 26300. Для команд стенда используй `scripts/lab6.sh`, который согласует project, порты, URL проверок и NO_PROXY.
|
||||
- `REPORT.md`: команды из чистого clone, архитектура, таблица «критерий → команда → наблюдение → файл», таблица отказов, сопоставление сигналов `observability.md` реальным именам метрик. PASS без команды не доказательство.
|
||||
- Ветка `solution/bpi2303-kostylev`, коммиты на английском, перед каждым — `make lint`. Никогда не коммитить `.env`, `secrets/`, токены, пароли Grafana, ключи S3, пароли брокера, volumes, дампы.
|
||||
|
||||
@@ -59,3 +61,15 @@ make down # остановка без удаления д
|
||||
- **3** — минимум lab5 работает при включённой телеметрии; Collector, Prometheus, Loki, Tempo и Grafana в общем стенде с volumes и provisioning из Git; API, relay и worker отдают OTLP; RPS/errors/duration API, jobs по исходу и duration worker; структурные логи с `trace_id`/`span_id`; реальные server и consumer spans; импортируемые dashboards; нет секретов и тел в telemetry; запрос → трасса и лог, job → трасса и лог worker.
|
||||
- **4** — W3C trace context API → outbox → broker → worker (producer/consumer), цепочка до S3/DB с retry; p50/p95/p99 из histogram, доля ошибок, queue depth и возраст старейшей job, DB pool, saturation worker, CPU/RAM; SLI/SLO, alert rules error rate и queue lag (firing → resolved); memory_limiter, batch, ограниченные очереди, отказ хранилищ телеметрии; два разобранных инцидента.
|
||||
- **5** — трек 1: telemetry off / on / head sampling / tail sampling / сбалансированная конфигурация при одинаковой open-loop нагрузке — latency с клиента, CPU/RAM вне телеметрии, объём ingest, потери spans и захват вброшенных ошибок и медленных запросов.
|
||||
|
||||
## Актуальное состояние и границы этапов
|
||||
|
||||
- Автор: Костылев Артём, БПИ2303. Итоговый отчёт — [REPORT.md](REPORT.md), индекс — [evidence/README.md](evidence/README.md).
|
||||
- Актуальный runtime и измеритель: `bc1d7aa7713858acb5d65b61d07e69a640f1ee97`; успешное независимое ревью: `6ca1c7549978af3127966540385195ab0587f2e1`. Поздние исправления ЛР5 доведены до immutable source `c7b8feb805d151e878d77b0dff47320a9436b172`, решения по путям — [forward-port.md](evidence/forward-port.md).
|
||||
- Текущий набор — `evidence/forward-published/`: 995 passed, 2 skipped, 19 deselected в сохранённом полном suite; 15 пригодных серий, 12000 запросов, balanced −92,2% медианного Tempo ingest, 48/48 error и 48/48 slow. Исторические `grade3/grade4/track5` не выдаются за измерение позднего кода. Незатронутые storage/history проверки переиспользуются только с основанием из `preserved-mechanisms.json`.
|
||||
- Пять minor после ревью — [review-summary.md](evidence/review-summary.md) и ограничения REPORT. Исправлять только major: доказанная угроза безопасности, потеря/повреждение данных, недоступность сервиса, неработающий обязательный сценарий. Minor сохранять, не блокировать ими отчёт/release; не объявлять неуспешный тест успешным.
|
||||
- Этапы запускает только runner: один агент переноса/уровней 3→4→5/evidence → review (отдельный fix major и re-review при необходимости) → отдельный отчёт → один агент нагрузки и публикации. Ревью/отчёт предыдущей лабы может идти параллельно реализации следующей. Самостоятельно фоновых агентов не создавать, runner/state не менять.
|
||||
- Обычные Docker-этапы используют отдельные project/порты/volumes совместно с другими лабами; эксклюзивный доступ получает только финальная нагрузка/release. Разрешён `mtusi2026lab6` в основном репозитории либо `hlpipe-lab6-*` в каталоге под ним или `/Users/artemkostylev/projects/learning/HL/labs/.pipeline/.runs/labs`. Чужие контейнеры не трогать; в конце остановить свои без удаления постоянных volumes. Не выполнять reset/clean и удаление пользовательских данных.
|
||||
- Фон и условия измерения фиксировать. Пригодные сохранённые серии переиспользовать после проверки SHA/diff; повторять лишь отсутствующие, неуспешные или признанные непригодными. Изменение только документации не требует новой нагрузки.
|
||||
- Отчётная фаза меняет только REPORT.md, AGENTS.md и Markdown внутри evidence; OpenSpec/config, код и raw measurements не меняет. `openspec/config.yaml` уже содержит актуальный стек; циклы propose/apply/archive закрыты, проверка — `openspec validate --all --strict --no-interactive`.
|
||||
- Публикация только в private MTUCI-Labs на явно назначенном этапе PUBLICATION. Самостоятельные push и Telegram вне назначенной фазы запрещены; для разрешённого Telegram — только `telegram-send`. ЛР1/2 заморожены; другие репозитории читать только через предоставленный snapshot.
|
||||
|
||||
@@ -10,7 +10,7 @@ COMPOSE ?= docker compose
|
||||
RATE ?= 100
|
||||
FROM_REV ?=
|
||||
SHIFT ?= 0
|
||||
SCRIPTS_PY = scripts/obs_incidents.py scripts/obs_recovery.py scripts/capture_evidence.py alembic scripts/scaling.py tools scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py \
|
||||
SCRIPTS_PY = scripts/obs_cost_summary.py scripts/obs_cost.py scripts/obs_incidents.py scripts/obs_recovery.py scripts/capture_evidence.py alembic scripts/scaling.py tools scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py \
|
||||
scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py \
|
||||
scripts/make_images.py scripts/pipeline_suite.py scripts/pipeline_evidence.py
|
||||
SCENARIO ?= failover-upload
|
||||
|
||||
@@ -1,37 +1,281 @@
|
||||
# Отчёт — лабораторная 6
|
||||
|
||||
- Автор, группа: TODO
|
||||
- Целевая оценка; выбранный трек 5, если нужен: TODO
|
||||
- Commit/PR: TODO после публикации
|
||||
- Использованные источники, библиотеки и помощь ИИ: TODO
|
||||
Автор: **Костылев Артём, БПИ2303**. Заявленная оценка — **«5»**, трек 1 «Цена наблюдаемости»: уровни 3 и 4 подтверждены таблицей ниже, пять режимов наблюдаемости — 15 пригодными сериями. Это заявка по рубрике, а не автоматически выставленная оценка.
|
||||
|
||||
Ветка: `solution/bpi2303-kostylev`. Проверенный ревью SHA: `6ca1c7549978af3127966540385195ab0587f2e1`; измеряемый код приложения, инфраструктуры и генератора: `bc1d7aa7713858acb5d65b61d07e69a640f1ee97`. Между ними эти файлы не менялись. Документационный коммит определяется через `git log -1 --format=%H -- REPORT.md`; публикация выполняется отдельным этапом, здесь не заявлены.
|
||||
|
||||
Актуальные результаты: [индекс evidence](evidence/README.md), [перенос поздних исправлений](evidence/forward-port.md), [сводка ревью](evidence/review-summary.md), [проверки отчёта](evidence/report-audit.md), [финальный аудит нагрузки](evidence/load-validation.md). Основа ЛР5 — `f88e9ba43cdfd7eb6a5a7ae5feb4247b4e820071`, поздний перенос доведён до immutable source `c7b8feb805d151e878d77b0dff47320a9436b172`; учтены 281 путь source diff. Результаты ЛР5 не выдаются за проверки ЛР6.
|
||||
|
||||
## Запуск из чистого clone
|
||||
|
||||
TODO: версии runtime/образов, prerequisites, команды создания локальных secrets/.env, build, миграций, запуска, ожидания готовности, тестов и остановки. Указать необходимые действия оператора. Не вставлять секреты. Отдельно указать безопасную остановку и команду намеренного удаления учебных данных.
|
||||
Нужны Git, Docker с Compose v2, uv, Python 3.14 для приложения и Python 3.9+ для stdlib-проверок. OpenSpec CLI нужен только для валидации спецификаций. Проверенный host: macOS arm64, 16 CPU; Docker 28.3.2, 16 vCPU и 8 217 190 400 bytes RAM. Версии зависимостей закреплены в [uv.lock](uv.lock), образы — тегом и digest в [Dockerfile](Dockerfile) и [compose.yaml](compose.yaml).
|
||||
|
||||
`REPOSITORY_URL` оператор задаёт адресом своего private fork в MTUCI-Labs. Команды ниже — инструкция воспроизведения; на этапе отчёта Docker и нагрузки не запускались.
|
||||
|
||||
```sh
|
||||
git clone "$REPOSITORY_URL" mtusi2026lab6
|
||||
cd mtusi2026lab6
|
||||
git switch -c solution/bpi2303-kostylev origin/main
|
||||
uv python install 3.14
|
||||
uv sync --locked --group dev
|
||||
make check validate lint
|
||||
openspec validate --all --strict --no-interactive
|
||||
scripts/lab6.sh make secrets
|
||||
scripts/lab6.sh docker compose config --quiet
|
||||
scripts/lab6.sh make up
|
||||
scripts/lab6.sh make ps
|
||||
curl --fail http://127.0.0.1:18086/health/ready
|
||||
scripts/lab6.sh make obs-validate
|
||||
scripts/lab6.sh make test
|
||||
scripts/lab6.sh make telemetry-check
|
||||
scripts/lab6.sh make test-persistence ACTION_SCRIPT=scripts/restart.sh
|
||||
scripts/lab6.sh make test-failover ACTION_SCRIPT=scripts/stop-one.sh
|
||||
scripts/lab6.sh make restore
|
||||
scripts/lab6.sh make down
|
||||
```
|
||||
|
||||
`make secrets` создаёт локальные `.env` и `secrets/`, не печатая значения; существующие значения сохраняются. `make up` собирает образ и ждёт healthy: PostgreSQL → one-shot `alembic upgrade head`, S3 → `s3-init` (bucket, политики и отдельные роли), RabbitMQ → API ×2 / relay / worker → LB; параллельно поднимаются Collector и хранилища. Ручной SQL, ручное создание datasource/dashboard и внешний S3 не требуются. Повторный запуск миграций: `scripts/lab6.sh make migrate`.
|
||||
|
||||
Полные собственные тесты запускаются отдельно: `scripts/lab6.sh make student-test`. Обвязка задаёт обход localhost через `NO_PROXY`, в том числе при системном прокси macOS. Тесты создают одноразовые Docker-зависимости и не должны идти одновременно с измерениями трека. В отчётном этапе использован сохранённый результат; свежий запуск фазы validation описан в [финальном аудите](evidence/load-validation.md). Данные публичного API синтетические. Для повторных экспериментов сохраняйте вывод в новый каталог, не перезаписывая принятые evidence.
|
||||
|
||||
`make down` останавливает только выбранный Compose project и сохраняет volumes. Существующая цель `scripts/lab6.sh make reset-data` намеренно удаляет его учебные volumes; она не входит в обычный запуск и в отчётном этапе не выполнялась. Не останавливайте чужие контейнеры. Основной project — `mtusi2026lab6` в этом репозитории; временный — только `hlpipe-lab6-*` в разрешённом координатором каталоге, с отдельными портами/volumes.
|
||||
|
||||
### Порты и настройки
|
||||
|
||||
Все опубликованные порты привязаны к `127.0.0.1`; API-реплики, PostgreSQL, Valkey, S3, AMQP, OTLP и self-metrics Collector доступны только внутри стенда. [scripts/lab6.sh](scripts/lab6.sh) задаёт project, порты, URL проверок и `NO_PROXY`, затем выполняет переданную команду. Перед запуском оператор проверяет доступность портов и отсутствие конфликтующих переменных своего shell.
|
||||
|
||||
| Назначение | Переменная | Host port |
|
||||
| --- | --- | ---: |
|
||||
| API через HAProxy | `LB_HTTP_PORT` | 18086 |
|
||||
| HAProxy stats | `LB_STATS_PORT` | 26085 |
|
||||
| RabbitMQ management | `BROKER_MANAGEMENT_PORT` | 26086 |
|
||||
| Prometheus | `PROMETHEUS_PORT` | 26090 |
|
||||
| Loki | `LOKI_PORT` | 26310 |
|
||||
| Tempo query | `TEMPO_PORT` | 26320 |
|
||||
| Grafana | `GRAFANA_PORT` | 26300 |
|
||||
|
||||
Grafana: пользователь `admin`, пароль из локального `secrets/grafana_admin_password`; его значение не входит в отчёт. Provisioning создаёт datasources `prometheus`, `loki`, `tempo` и dashboards API/pipeline, переходы exemplar → trace и trace ↔ logs.
|
||||
|
||||
| Настройки из `.env.example` | Фактическое применение |
|
||||
| --- | --- |
|
||||
| `APP_HOST`, `APP_PORT`, `APP_ENV` | Логические поля skeleton; Compose не передаёт их приложению. Образ слушает `HOST=0.0.0.0`, `PORT=8080`; окружение OTel задаёт `deployment.environment.name=lab` |
|
||||
| `SESSION_STORE=postgres`, `CACHE_URL_FILE`, `SESSION_TTL_SECONDS` | PostgreSQL — источник сессий; Valkey — адаптер кэша. Переключателя backend через `SESSION_STORE` нет; TTL по умолчанию 3600 s |
|
||||
| `DATABASE_URL_FILE`, `CURSOR_SECRET_FILE`, S3 `*_FILE` | Compose монтирует роли в `/run/secrets`; SQLAlchemy переводит DSN в `postgresql+asyncpg` |
|
||||
| `BROKER_URL_FILE` | В relay и worker одинаковый путь `/run/secrets/broker_url`, но разные secrets `broker_url_api` / `broker_url_worker` и права |
|
||||
| `API_REPLICAS`, `WEB_CONCURRENCY`, `DB_POOL_MAX_SIZE` | 2 реплики ×2 процесса, пул по 8 соединений на процесс; relay/worker по `PIPELINE_DB_POOL_MAX_SIZE=4` |
|
||||
| `MAX_UPLOAD_BYTES`, `MAX_IMAGE_PIXELS`, `WORKER_CONCURRENCY` | 10 MiB, 40 MP, 2 задания; render timeout 30 s, лимит адресного пространства renderer 448 MiB |
|
||||
| `OTEL_*`, `TELEMETRY_SHUTDOWN_SECONDS` | OTLP/HTTP, timeout 2 s, метрики каждые 10 s, очереди SDK по 2048, bounded shutdown 2 s; SDK off через `OTEL_SDK_DISABLED=true` |
|
||||
| `OTEL_TRACE_RATIO`, `OTEL_COLLECTOR_CONFIG`, `COST_EXPERIMENT` | Дополнительные Compose-параметры: по умолчанию 1, `collector.yaml`, false. Генератор включает fault hook лишь на серию и восстанавливает default в `finally` |
|
||||
|
||||
## Архитектура и решения
|
||||
|
||||
TODO: схема процессов/хранилищ, источник истины, транзакционные границы, ограничения. Что перенесено из lab5, что изменено в этой работе. Соответствие переменных из .env.example реальной конфигурации.
|
||||
```mermaid
|
||||
flowchart LR
|
||||
Client[Клиент] --> LB[HAProxy]
|
||||
LB --> API[API ×2]
|
||||
API --> PG[(PostgreSQL)]
|
||||
API --> Cache[(Valkey)]
|
||||
API --> S3[(RustFS / S3)]
|
||||
PG --> Relay[Outbox relay]
|
||||
Relay --> Broker[(RabbitMQ)]
|
||||
Broker --> Worker[FastStream worker]
|
||||
Worker --> PG
|
||||
Worker --> S3
|
||||
API -. OTLP .-> Collector[OTel Collector]
|
||||
Relay -. OTLP .-> Collector
|
||||
Worker -. OTLP .-> Collector
|
||||
Collector --> Prom[(Prometheus)]
|
||||
Collector --> Loki[(Loki)]
|
||||
Collector --> Tempo[(Tempo)]
|
||||
Grafana[Grafana] --> Prom
|
||||
Grafana --> Loki
|
||||
Grafana --> Tempo
|
||||
```
|
||||
|
||||
Python 3.14; SQLAlchemy **2.0.45 async**, Alembic **1.16.5**, FastAPI, dishka, structlog, FastStream **0.7.8** + aio-pika **10.2.1**; OTel SDK 1.45.1 и инструментации 0.66b1. Инфраструктура: HAProxy 3.2.26, PostgreSQL 17.11, Valkey 8.1.11, RustFS 1.0.4, RabbitMQ 4.1.8, otelcol-contrib 0.163.2, Prometheus 3.15.1, Loki 3.7.9, Tempo 2.10.10, Grafana 12.4.14. Фактические image IDs, non-root users и лимиты: [runtime.json](evidence/forward-published/runtime.json).
|
||||
|
||||
Зоны `identity`, `messaging`, `attachments` разделены на domain/application/infrastructure/entrypoints; домен зависит от портов. `shared` содержит только платформу. `main.py`, `relay.py`, `worker.py` собирают процессы. PostgreSQL хранит пользователей, сессии, сообщения, состояния вложений, jobs и outbox; RustFS — байты, RabbitMQ — доставку, Valkey — ускорение чтения. Prometheus хранит численные временные ряды, Loki — структурные логи, Tempo — spans. Collector принимает/фильтрует/буферизует сигналы, Grafana запрашивает их и связывает; ни один из них не источник бизнес-данных.
|
||||
|
||||
Все runtime-запросы PostgreSQL проходят через SQLAlchemy ORM/Core: `DeclarativeBase`, `create_async_engine`, `async_sessionmaker`, отдельная `AsyncSession` на UoW. `asyncpg` остаётся драйвером и точкой инструментации. Миграции — [alembic/env.py](alembic/env.py) и [alembic/versions](alembic/versions): async engine, `run_sync`, advisory lock, legacy adoption, транзакция на ревизию, head `0007` для trace context. Старого исполняемого SQL-мигратора в инструкции запуска нет.
|
||||
|
||||
Upload возвращает `202 queued` после durable acceptance; задание и outbox фиксируются атомарно. Relay публикует persistent сообщение с confirms через FastStream/aio-pika, затем отмечает outbox. Неустранимое окно между publish и отметкой допускает повторную доставку. Worker использует manual ack **после COMMIT**; lease/fencing и ключ эффекта `(attachment_id, pipeline_version, variant)` не допускают повторной публикации результата. До ready `/content` отвечает 409. Retry/backoff, DLQ, реестр failed и replay сохранены. Цена outbox — дополнительный poll/таблица и eventual consistency; брокер не даёт exactly-once.
|
||||
|
||||
ЛР6 добавила SDK после fork (без preload приложения в gunicorn), OTLP, корреляцию, resource attributes и наблюдение фоновых задач. `traceparent`/`tracestate` сохраняются отдельно от payload в jobs/outbox и передаются в headers; producer/consumer spans создаёт `RabbitTelemetryMiddleware`. S3 spans показывают операцию без ключей, SQL client spans — работу БД. Retry сохраняет причинную связь, что видно в одной цепочке из 86 spans.
|
||||
|
||||
Экспорт выполняют `BatchSpanProcessor`, `BatchLogRecordProcessor`, `PeriodicExportingMetricReader`; network timeout короткий, readiness не проверяет наблюдаемость. Collector: memory limiter 75% / spike 20%, batch 1024/2048 с timeout 2 s, очереди 20 000 spans, 20 000 logs, 50 000 metric points, 2 consumers, retry до 60 s. Буферы конечны и не долговременны: при длительном отказе telemetry теряется, бизнес-запросы продолжаются. `Logger` ограничивает поля, HTTP headers не захватываются, Collector редактирует подозрительные ключи/значения. Границы проверки утечек явно указаны ниже.
|
||||
|
||||
## Доказательства критериев
|
||||
|
||||
| Критерий README | Команда/сценарий | Наблюдаемый результат | Файл доказательства |
|
||||
| --- | --- | --- | --- |
|
||||
| Публичный smoke | make test | TODO | TODO |
|
||||
| Остальные пункты уровня 3 | TODO | TODO | TODO |
|
||||
| Все пункты уровня 4, если заявлен | TODO | TODO | TODO |
|
||||
| Выбранный трек 5, если заявлен | TODO | TODO | TODO |
|
||||
Команды в таблице выполняются с префиксом `scripts/lab6.sh`, если работают со стендом. Полные команды, UTC, SHA и exit code сохранены в указанных логах. **Актуальный набор — `forward-published`**; исторические исключения помечены явно и применяются только к неизменным механизмам согласно [preserved-mechanisms.json](evidence/forward-published/preserved-mechanisms.json).
|
||||
|
||||
TODO: добавить отдельную строку для каждого заявленного критерия. PASS без команды и наблюдения не является доказательством. Проверка инфраструктурного hook требует подтверждения, какие реальные процессы/хранилища перезапущены.
|
||||
| Критерий | Команда / сценарий | Наблюдение | Файл |
|
||||
| --- | --- | --- | --- |
|
||||
| Структура, контракт, качество | `make check validate lint` | OpenAPI 1.6.0 / JSON Schema, ruff, 216 форматированных файлов, ty — PASS | [final-quality.txt](evidence/forward-published/final-quality.txt), [свежая проверка отчёта](evidence/report-audit.md) |
|
||||
| Собственные регрессии, SQLAlchemy/Alembic | `scripts/lab6.sh make student-test` | Сохранённый полный: 995 passed, 2 Linux-only skipped, 19 stack deselected. Свежий validation: 993 passed, 2 ошибки подготовки S3; адресный повтор с NO_PROXY — 2 passed | [прежний полный](evidence/forward-published/student-test.txt), [свежий полный](evidence/validation/student-test.txt), [повтор S3](evidence/validation/student-test-s3-retry.txt), [разбор](evidence/load-validation.md) |
|
||||
| 3: минимум lab5 при telemetry on | `make test` | Public API PASS; final smoke после возврата defaults | [smoke.txt](evidence/forward-published/smoke.txt), [final-smoke.txt](evidence/forward-published/final-smoke.txt) |
|
||||
| 3: durable pipeline и повторы | `python3 scripts/pipeline_suite.py --level 4 --only smoke_pipeline,worker_down_broker_restart,duplicate_after_ready,poison_image,s3_outage_recovers,retry_exhausted,crash_after_s3_before_commit,crash_after_commit_before_ack,malformed_message_dead_lettered --output evidence/reproduction-pipeline.json` | 9 сценариев; 7 принятых заданий достигают ожидаемых состояний, single effect и другие инварианты PASS | [pipeline.txt](evidence/forward-published/pipeline.txt), [pipeline.json](evidence/forward-published/pipeline.json) |
|
||||
| 3: сохранение данных и сессий | `make test-persistence ACTION_SCRIPT=scripts/restart.sh` | Подтверждённые данные и прежняя сессия сохранены, 14,386 s на сценарий | [persistence.txt](evidence/forward-published/persistence.txt), [hook](scripts/restart.sh) |
|
||||
| 3: отказ реплики и возврат | `make test-failover ACTION_SCRIPT=scripts/stop-one.sh`; `make restore` | 2 исходные реплики, 130 успешных записей, 0 failed attempts; первый успех через 2,876 s, api-2 возвращена healthy | [failover.txt](evidence/forward-published/failover.txt), [restore.txt](evidence/forward-published/restore.txt) |
|
||||
| 3: воспроизводимый общий стенд | `make up`; `make obs-validate` | Сервисы готовы, Collector/Prometheus/Loki/Tempo и JSON dashboards валидны | [up.txt](evidence/forward-published/up.txt), [obs-config.txt](evidence/forward-published/obs-config.txt), [runtime.json](evidence/forward-published/runtime.json) |
|
||||
| 3: история наблюдаемости в volumes | `python3 scripts/obs_recovery.py` | Исторический прогон: 7 spans до/после, 1 лог, значение метрики 352 сохранено при рестарте storage | [telemetry-recovery.txt](evidence/grade3/telemetry-recovery.txt), [основание применимости](evidence/forward-published/preserved-mechanisms.json) |
|
||||
| 3: API → лог → trace, реальные server/client spans | `python3 scripts/obs_check.py request --base-url http://127.0.0.1:18086` | `request.handled`, trace/span IDs; 7 spans, включая HTTP server и DB client | [telemetry-request.txt](evidence/forward-published/telemetry-request.txt) |
|
||||
| 3: worker → лог → trace, consumer spans | `python3 scripts/obs_check.py job --base-url http://127.0.0.1:18086` | Attachment ready, 52 spans, `job.processed` / `audit.job_settled` с одним trace_id | [telemetry-job.txt](evidence/forward-published/telemetry-job.txt) |
|
||||
| 3: RED API, jobs outcome/duration, provisioning | `python3 scripts/obs_check.py dashboards --strict` | 32 targets, problems=[], реальные series; два dashboard JSON в Git | [dashboards.txt](evidence/forward-published/dashboards.txt), [dashboards](infra/grafana/dashboards) |
|
||||
| 3: низкая кардинальность / resource attributes | `python3 scripts/obs_check.py query 'count by (__name__, job) ({job=~"messenger-.*"})'` | Шаблон маршрута, method/status, job_type/outcome, service/instance; IDs не используются как labels | [исторические series неизменных инструментов](evidence/grade4/cardinality-series.json), [свежие dashboard queries](evidence/forward-published/dashboards.txt) |
|
||||
| 3: отсутствие запрещённых данных | `python3 scripts/obs_check.py leaks --base-url http://127.0.0.1:18086` | 0 совпадений password/token/text/filename в проверенных log lines и 8 traces за 20 s; metadata Loki этим тестом не покрыта | [telemetry-leaks.txt](evidence/forward-published/telemetry-leaks.txt), [minor M1](evidence/review-summary.md) |
|
||||
| 4: W3C API → outbox → broker → worker → S3/DB | `python3 scripts/obs_incidents.py chain` | 55 spans, producer/consumer, итог done | [incident-chain.txt](evidence/forward-published/incident-chain.txt) |
|
||||
| 4: та же цепочка с retry | `python3 scripts/obs_incidents.py retry` | 86 spans; `retry_scheduled` → `done`, один trace | [incident-retry.txt](evidence/forward-published/incident-retry.txt) |
|
||||
| 4: p50/p95/p99, error ratio, backlog, pool, saturation, CPU/RAM, time-to-ready | `python3 scripts/obs_check.py dashboards --strict` | Все используемые запросы разрешаются; имена/единицы и ограничения приведены ниже | [dashboards.txt](evidence/forward-published/dashboards.txt), [recording rules](infra/prometheus/rules/messenger.recording.yml) |
|
||||
| 4: SLI/SLO, error rate alert | `python3 scripts/obs_incidents.py database` | SQL client ERROR 2002,866 ms, error ratio 0,9181, firing → resolved | [incident-database.txt](evidence/forward-published/incident-database.txt), [alert rules](infra/prometheus/rules/messenger.alerts.yml) |
|
||||
| 4: queue lag alert и восстановление | `python3 scripts/obs_incidents.py worker` | 8 jobs, age 34,470 s, firing → resolved, depth 8 → 0 | [incident-worker.txt](evidence/forward-published/incident-worker.txt) |
|
||||
| 4: ограниченные очереди, отказ telemetry storage | `python3 scripts/obs_incidents.py storage` | Исторический неизменный механизм: smoke PASS, 74 успешных probes, потеря 2 traces, RAM ≤252,7/256 MiB, очереди после recovery =0 | [storage-incident.txt](evidence/grade4/storage-incident.txt), [основание применимости](evidence/forward-published/preserved-mechanisms.json) |
|
||||
| 4: readiness и shutdown при отказе Collector | `python3 scripts/obs_recovery.py` | Исторический прогон: ready=200, smoke PASS, shutdown API 4,592 s, exit 0 | [telemetry-recovery.txt](evidence/grade3/telemetry-recovery.txt) |
|
||||
| Поздние исправления сессий/HTTP | `.venv/bin/python student-tests/tools/forward_network.py`; stack pytest из логов | Негативный Basic/NUL, logout обеих реплик, идемпотентность; Valkey bypass и logout503→204 | [network.txt](evidence/forward-published/network.txt), [cache-outage.txt](evidence/forward-published/cache-outage.txt) |
|
||||
| Поздние исправления доставки/изображений | `env PYTHONPATH=.:scripts:student-tests .venv/bin/python student-tests/tools/forward_runtime.py postgres-outage` (также `png-http`, `png-boundary`) | 12 requeue без роста DLQ, тот же job/attempt; PNG 40 MP, две версии, конкурентный peak 913 227 776 <1 073 741 824 bytes, OOM=0 | [postgres-outage.json](evidence/forward-published/postgres-outage.json), [png-http.json](evidence/forward-published/png-http.json), [png-boundary.json](evidence/forward-published/png-boundary.json) |
|
||||
| 5: off/on/head/tail/balanced, цена и сохранность | `python3 scripts/obs_cost.py --mode MODE --repeat N --duration 40 --rate 20 --output evidence/reproduction/MODE-N.json` | 15 пригодных серий, 12 000 запросов; balanced −92,2% Tempo ingest, 48/48 error и 48/48 slow | [методика](evidence/forward-published/cost/method.md), [comparison.json](evidence/forward-published/cost/comparison.json), [результаты](evidence/forward-published/cost/results.md) |
|
||||
| OpenSpec propose/apply/archive | `openspec list --json`; `openspec validate --all --strict --no-interactive` | 0 active changes, 26 specs PASS; циклы 3/4/5 и поздний перенос архивированы | [архивы](openspec/changes/archive), [spec-sync.json](evidence/forward-published/spec-sync.json), [проверка отчёта](evidence/report-audit.md) |
|
||||
|
||||
`restart.sh` останавливает `lb api relay worker`, перезапускает `postgres valkey s3 broker`, затем ждёт Compose healthy с прежними volumes. Публичный тест подавляет stdout hook: 14,386 s — время всего сценария, а не измеренная длительность недоступности каждого процесса; отдельного timestamp-аудита всех перезапусков в этом логе нет. `restore.txt` непосредственно подтверждает запуск остановленной api-2. История telemetry проверена отдельным `obs_recovery.py`. Старый запуск из чистого clone на `2903d9d` — [clean-clone.txt](evidence/grade3/clean/clean-clone.txt); он не является свежим clean-clone прогоном позднего кода.
|
||||
|
||||
### Сигналы и запросы
|
||||
|
||||
Resource: `service.name=messenger-api|messenger-relay|messenger-worker`, `service.version=1.6.0`, уникальный `service.instance.id=<hostname>-<pid>`, `deployment.environment.name=lab`. В Prometheus ресурс виден через `job`, `instance` и `target_info`; в Loki — нормализованные поля, включая `service_name`. Технические request/job IDs допустимы в логах/spans для корреляции синтетических данных, но не в labels метрик.
|
||||
|
||||
| Логический сигнал контракта | Реальное имя / поля | Единицы и измерения / запрос |
|
||||
| --- | --- | --- |
|
||||
| HTTP requests | `http_server_request_duration_seconds_count` | counter наблюдений histogram; `http_request_method`, `http_route`, `http_response_status_code`; `sum(messenger:http_requests:rate2m)` — RPS; recording rule формирует `status_class` |
|
||||
| HTTP duration | `http_server_request_duration_seconds_bucket` | секунды; `histogram_quantile(0.95, sum by (le) (rate(http_server_request_duration_seconds_bucket{job="messenger-api",http_route!~"/health/.*"}[5m])))`; для p50/p99 заменить 0.95 |
|
||||
| HTTP errors | `messenger:http_errors:ratio_rate2m` | 5xx / все бизнес-запросы, без health; 4xx остаются в знаменателе, не считаются отказами |
|
||||
| Jobs processed / failed | `messenger_jobs_processed_total` | доставки, `job_type`, `outcome`; `sum by(job_type,outcome)(rate(messenger_jobs_processed_total[5m]))`; outcome содержит done/retry_scheduled/failed и другие ветки |
|
||||
| Job duration | `messenger_job_duration_seconds_bucket` | секунды обработки доставки, `job_type`, `outcome`; percentile из суммы bucket rates |
|
||||
| Time to ready | `messenger_job_time_to_ready_seconds_bucket` | секунды от Job.created_at до done после commit, `job_type`; учитывает ожидание и retries |
|
||||
| Queue depth / oldest age | `messenger_queue_depth`, `messenger_queue_oldest_age_seconds` | jobs / секунды, `queue_name=attachments.process`; SQLAlchemy poll 5 s, durable queued/processing включая leased/retry, не только AMQP messages_ready |
|
||||
| DB pool | `messenger_db_pool_used`, `_waiting`, `_capacity` | занятые connections / acquisitions / лимит; waiting включает получение/создание соединения, не только очередь слотов |
|
||||
| Worker saturation | `messenger_worker_busy`, `messenger_worker_capacity` | активные deliveries / доступная capacity; отношение сумм даёт долю занятости |
|
||||
| Process CPU / RAM | `process_cpu_time_seconds_total`, `process_memory_usage_bytes` | `sum by(job)(rate(process_cpu_time_seconds_total[2m]))` — cores; `sum by(job)(process_memory_usage_bytes)` — bytes RSS; CPU renderer-детей не входит |
|
||||
| Logs | timestamp, severity, resource service.name, event, trace_id, span_id | `request.handled`, `job.processed`; LogQL `{service_name="messenger-api"} | trace_id="<trace_id>"`; поля OTel представлены structured metadata |
|
||||
| Traces | SERVER, PRODUCER, CONSUMER, CLIENT | Tempo по trace_id; DB/S3 операции, duration/status, связь parent; ссылки из Grafana provisioning |
|
||||
|
||||
HTTP histogram (секунды): 0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10, +Inf. Job/time-to-ready: 0.05, 0.1, 0.25, 0.5, 1, 2, 5, 10, 30, 60, +Inf. Они различают быстрый HTTP, таймауты зависимостей и 30-секундный SLO job. Квантили агрегируются по buckets всех реплик; среднее арифметическое p99 реплик не используется. CPU/RAM трека дополнительно измерены извне по cgroups, независимо от состояния SDK.
|
||||
|
||||
## Эксперименты и отказы
|
||||
|
||||
TODO: гипотеза, hardware/лимиты, версии, объём данных, профиль нагрузки, concurrency/arrival rate, длительность/прогрев, повторы, успешные RPS, ошибки, p50/p95/p99, CPU/RAM. Сохранить raw summary без tokens и объяснить ограничения измерения.
|
||||
### SLI/SLO и диагностика
|
||||
|
||||
| Воздействие | Что ожидаем | Что наблюдали | Время восстановления / потеря данных |
|
||||
| --- | --- | --- | --- |
|
||||
| TODO | TODO | TODO | TODO |
|
||||
API availability: `1 − 5xx/все бизнес-HTTP` за **1 h**, цель **≥99%**, health исключён. Это SLI приложения: ответы самого HAProxy не входят. Job SLI: доля **завершённых** jobs с time-to-ready **≤30 s** за **1 h**, цель **≥95%**; незавершённые отдельно контролируются возрастом backlog. Эти цели заданы и измеримы, но короткие опыты не доказывают месячный production SLO.
|
||||
|
||||
`MessengerHighErrorRate`: доля 5xx >5% за 1 min, `for: 15s`. `MessengerQueueLag`: max age >15 s и depth >0, `for: 15s`. Проверка rules каждые 5 s; доставка наружу не требуется. [Runbooks](infra/prometheus/runbooks.md) связывают alert с запросами и действиями.
|
||||
|
||||
| Воздействие и доказательство | Ожидание и наблюдение | Время / потери |
|
||||
| --- | --- | --- |
|
||||
| Остановка worker; [свежий лог](evidence/forward-published/incident-worker.txt) | API принимает 8 jobs, backlog=8, oldest=34,470 s; после возврата depth=0, alert resolved | UTC 06.11: stop 23:47:05, firing 23:47:49 (**44 s**), restore 23:47:52, resolved 23:48:04 (**12 s** после возврата). Все 8 jobs обработаны |
|
||||
| Ограниченная SQL-блокировка users; [свежий лог](evidence/forward-published/incident-database.txt) | 168 контролируемых 503; error ratio=0,9181, pool waiting=0; SELECT client ERROR длится 2002,866 ms | UTC 06.11: lock 23:48:16, firing/снятие lock 23:48:59 (**43 s**), resolved 23:49:54 (**55 s**). Блокировка сама данные не меняет; полноценный RPO здесь не измерялся |
|
||||
| S3 временно недоступен; [retry](evidence/forward-published/incident-retry.txt) | Одна цепочка из 86 spans показывает retry_scheduled → done, затем DB commit | Сценарий 23:46:51–23:47:04 UTC (≈13 s); принятое вложение ready, отдельное время unavailable не выделено |
|
||||
| PostgreSQL недоступен worker; [JSON](evidence/forward-published/postgres-outage.json) | 12 requeue, delivery-limit=-1; job_id и attempt=1 сохранены, DLQ 0→0, после восстановления done без replay | Targeted case 20,39 s; это время кейса, не точный RTO. Потери принятого задания не обнаружены |
|
||||
| Остановка одной API-реплики; [failover](evidence/forward-published/failover.txt) | 130 writes, 0 failed attempts, подтверждённые данные и сессия сохранились | Первый успешный запрос после воздействия через 2,876 s; restore завершился за 3,660 s |
|
||||
| Рестарт приложений и business stores; [persistence](evidence/forward-published/persistence.txt) | Сессия и подтверждённые данные сохранены; volumes не удаляются | 14,386 s на весь сценарий; отдельный RTO не измерен |
|
||||
| Остановка Prometheus/Loki/Tempo; **исторический** [storage](evidence/grade4/storage-incident.txt), неизменные механизмы | Smoke PASS, 74 успешных probes; queue logs/metrics/traces=381/1287/465, после recovery 0/0/0; Collector без наблюдаемого OOM | UTC 06.11: 18:14:29–18:16:16 (**107 s**), проверка закончилась 18:16:39. 72/74 traces найдены, **2 потеряны**; RAM 252,7/256 MiB (98,7%) |
|
||||
| Остановка Collector / рестарт telemetry stores; **исторический** [recovery](evidence/grade3/telemetry-recovery.txt) | Ready=200, smoke PASS, ранее сохранённая история доступна | API shutdown 4,592 s, exit 0; 7/7 прежних spans и лог найдены после рестарта |
|
||||
|
||||
Первый инцидент диагностируется по растущим depth/age при отсутствии обработки: после возврата worker backlog исчезает, значит узкое место — consumer. Во втором 503 server span содержит PostgreSQL client ERROR около 2 s, при этом pool waiting=0: причина в выполнении SQL, а не в очереди пула или просто медленном HTTP handler. Снятие lock и последующий resolved подтверждают гипотезу. Это разбор сохранённых наблюдений контролируемых отказов; слепой runbook-прогон другого оператора (трек 2) не заявлен.
|
||||
|
||||
При отказе telemetry storage retry ограничен 60 s. В сохранённых counters есть 440 failed span exports, 11 log records и 72 metric points; эти единицы не равны числу потерянных запросов/полных трасс. Непосредственный контроль trace IDs показал 2 потерянные трассы из 74 успешных запросов. Рост памяти ограничен наблюдаемым окном и лимитом контейнера; запаса Collector почти нет, бесконечная устойчивость не доказана.
|
||||
|
||||
### Трек 1: цена наблюдаемости
|
||||
|
||||
Гипотеза: head sampling снижает ingest, но теряет важные события; tail sampling оставляет ERROR/slow и уменьшает запись в Tempo, сохраняя расходы SDK. Сбалансированный режим должен сохранить контрольные события при меньшей записи обычных traces и более редком экспорте метрик.
|
||||
|
||||
Измеряемый SHA: `bc1d7aa7713858acb5d65b61d07e69a640f1ee97`, image ID `sha256:66c7d75903f514e14fea21689d039eeba1d9d85a0d27ef3d70d4ab41288e2f6d`. Серии выполнены 06–07.11.2026 UTC. Нагрузка — GET `/api/v1/users/me` по одному созданному для серии пользователю/сессии; это HTTP/DB-профиль, не массовый рендер изображений. Существующие volumes между режимами сохраняются, полный размер БД не нормировался. Условия, host load и список контейнеров сохранены в [conditions-start.json](evidence/forward-published/cost/conditions-start.json), снимках каждого круга и raw JSON. В снимках других Docker projects нет; эксклюзивность всего host не заявляется.
|
||||
|
||||
| Режим | SDK / выбор traces | Метрики |
|
||||
| --- | --- | --- |
|
||||
| off | SDK полностью выключен | Нет метрик приложения; self-scrapes storage продолжаются |
|
||||
| on | Все server roots и их дочерние spans | Каждые 10 s |
|
||||
| head | ParentBased root ratio 10% | Каждые 10 s |
|
||||
| tail | Все spans до Collector; сохранить ERROR, latency ≥300 ms, 10% остальных | Каждые 10 s |
|
||||
| balanced | Все spans до Collector; ERROR, latency ≥300 ms, 5% остальных | Каждые 30 s |
|
||||
|
||||
По три повтора каждого режима, последовательно off/on/head/tail/balanced. 20 прогревочных GET и 35 s ожидания экспорта; затем **40 s open-loop, 20 arrivals/s, 800 запросов**, максимум 64 клиентских потока. В каждой серии 768 обычных, 16 ожидаемых 503 и 16 задержек 350 ms; после — 35 s drain. Всего **12 000 запросов**, 11 760 ожидаемых 200 и 240 намеренных 503, **0 неожиданных ответов**. Фактическая скорость 20,012–20,020 req/s; максимум schedule lag 61,055 ms. Это заданная нагрузка, не поиск предельного throughput.
|
||||
|
||||
Команда серии и разбор всех параметров — [method.md](evidence/forward-published/cost/method.md). CPU: delta cgroup CPU time / длительность внешних samples; RAM: working set usage−inactive_file, 21 sample с периодом около 2 s. Application = API/relay/worker; observability = Collector/Prometheus/Loki/Tempo/Grafana; business stores/LB считаются отдельно. CPU-окно охватывает нагрузку, но не всю работу tail во время drain. Ingest включает drain; bytes Tempo/Loki и samples Prometheus не складываются в одну единицу.
|
||||
|
||||
Медианы трёх повторов; диапазон normal p95 — min/max, не доверительный интервал. Общие p50/p95/p99 посчитаны клиентом по всем категориям, поэтому p99 отражает вброшенную задержку.
|
||||
|
||||
| Режим | p50 / p95 / p99, ms | normal p95, ms [min;max] | CPU app / obs / stores+LB, cores | RAM app / obs / stores+LB, MiB (median peak) |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| off | 8,052 / 12,102 / 358,732 | 11,583 [11,572;11,856] | 0,1404 / 0,0256 / 0,1085 | 655,5 / 1013,3 / 419,9 |
|
||||
| on | 7,460 / 13,148 / 359,469 | 12,709 [12,554;12,993] | 0,1726 / 0,0287 / 0,1030 | 706,8 / 1058,5 / 425,5 |
|
||||
| head | 9,195 / 13,116 / 358,373 | 12,556 [12,354;12,652] | 0,1657 / 0,0261 / 0,1023 | 723,8 / 1076,1 / 347,1 |
|
||||
| tail | 8,942 / 13,281 / 359,109 | 12,781 [12,555;12,920] | 0,1717 / 0,0272 / 0,1026 | 721,0 / 1021,2 / 430,6 |
|
||||
| balanced | 8,269 / 13,230 / 359,753 | 12,895 [12,833;13,031] | 0,1749 / 0,0258 / 0,1030 | 707,1 / 1027,9 / 423,1 |
|
||||
|
||||
Фактические лимиты: API 2×(1 CPU/512 MiB), relay 0,5 CPU/192 MiB, worker 2 CPU/1 GiB; Collector 0,5/256 MiB, Prometheus 0,5/512 MiB, Loki/Tempo/Grafana каждый 0,5/384 MiB; PostgreSQL 2/768 MiB, S3 1/512 MiB, RabbitMQ 1/512 MiB, Valkey 0,5/128 MiB, LB 1/128 MiB. **PG_MEMORY в измерении 768m, в `.env.example` — 1g**: для повторения именно этих условий задайте `PG_MEMORY=768m` до `make up`. Остальные значения сверяйте с [runtime.json](evidence/forward-published/runtime.json).
|
||||
|
||||
| Режим | Tempo / Loki, KiB (median) | Prom samples (median) | SDK ended / sent spans (median) | Найдено normal /2304 | error /48 | slow /48 |
|
||||
| --- | ---: | ---: | ---: | ---: | ---: | ---: |
|
||||
| off | 0,0 / 0,0 | 33118 | 0 / 0 | 0 | 0 | 0 |
|
||||
| on | 1662,2 / 288,3 | 36284 | 5489 / 5489 | 2304 | 48 | 48 |
|
||||
| head | 176,2 / 288,4 | 37234 | 543 / 543 | 237 | 6 | 3 |
|
||||
| tail | 251,8 / 289,7 | 36657 | 5492 / 699 | 235 | 48 | 48 |
|
||||
| balanced | 130,2 / 289,8 | 34459 | 5486 / 352 | 101 | 48 | 48 |
|
||||
|
||||
Во всех пригодных сериях **SDK ended = Collector accepted**, exporter failures=0. Head намеренно не создал 42/48 error и 45/48 slow server traces; число несозданных дочерних spans неизвестно и не выдумывается. Tail/balanced фильтруют уже созданные spans; accepted−sent здесь не означает неисправность доставки. Off означает отключение SDK. В режиме on найдены все 2400 server traces трёх повторов.
|
||||
|
||||
**Balanced снизил медианный Tempo ingest на 92,2% относительно on**, сохранив 48/48 error и 48/48 slow. Loki почти не изменился; Prometheus включает постоянный фон self-scrapes. Normal p95 у on выше off примерно на 1,127 ms (+9,7%), CPU приложения — 0,1726 против 0,1404 cores; это описательные разности данного опыта, не доказательство статистической значимости. Balanced не устраняет цену SDK и не показал ускорения HTTP. Проверенная рекомендация относится к сокращению записи traces при этом профиле и окне решения tail 10 s.
|
||||
|
||||

|
||||
|
||||
[Сырые серии и comparison.json](evidence/forward-published/cost/comparison.json), [сводка](evidence/forward-published/cost/results.md), [аудит пригодности](evidence/forward-published/cost/measurement-audit.json). Первоначальные on-3/head-3 (ещё 1600 запросов) исключены из сравнения из-за разрывов wall clock: 932,714 s после нагрузки и 938,154 s вместо 40 s, gap samples до 900,354 s. Их HTTP PASS не означает пригодность CPU/ingest. Оригиналы с hashes сохранены в [invalid-series.json](evidence/forward-published/cost/invalid-series.json) и [invalid-time-gap](evidence/forward-published/cost/invalid-time-gap); повторены только эти две серии. Причина разрыва времени достоверно не установлена.
|
||||
|
||||
Проверенный запуск balanced:
|
||||
|
||||
```sh
|
||||
OTEL_COLLECTOR_CONFIG=collector-balanced.yaml OTEL_METRIC_EXPORT_INTERVAL=30000 scripts/lab6.sh docker compose up -d --no-deps --wait otel-collector api relay worker
|
||||
```
|
||||
|
||||
После опытов возвращены SDK on/ratio1/interval10s, `collector.yaml`, `COST_EXPERIMENT=false`: [defaults-restored.json](evidence/forward-published/defaults-restored.json). Стенд остановлен без удаления данных, 9 volumes сохранены: [shutdown.txt](evidence/forward-published/shutdown.txt), [closure.json](evidence/forward-published/closure.json). Это зафиксированное состояние окончания реализации, не новое обращение отчётного этапа к Docker.
|
||||
|
||||
### Финальная validation перед публикацией
|
||||
|
||||
На входном HEAD `1e00d861a803a6d49ef443175b8231cbf048fc02` аудит подтвердил применимость всех 15 серий: runtime и измеритель совпадают с прошедшим ревью кодом. Все raw JSON и comparison пересчитаны, временные окна и hashes исключённых оригиналов проверены. **Нагрузку повторно не запускали.** [Аудит](evidence/load-validation.md) содержит решение по каждой серии, конфигурации, dataset, фону и ограничениям.
|
||||
|
||||
Свежие `make check validate lint` и OpenSpec strict (26 specs) прошли. Свежий полный `make student-test` завершился с 993 passed, 2 skipped, 19 deselected и 2 ошибками подготовки RustFS. В окружении был системный прокси macOS без обхода localhost; только два затронутых теста повторены штатной обвязкой с `NO_PROXY`: 2 passed. Полный первый запуск не объявляется PASS; оба лога сохранены. Код и прежние сырые измерения не менялись; публикация в фазе validation не выполнялась.
|
||||
|
||||
## Ограничения и следующие шаги
|
||||
|
||||
TODO: какие отказы выдерживаются и какие нет; что не реализовано; где учебное упрощение; какое улучшение подтверждено, а какое пока гипотеза.
|
||||
Ревью `6ca1c7549978af3127966540385195ab0587f2e1` не выявило major. Пять minor сохранены; по правилу пользователя они не блокируют отчёт/release и в документационном этапе не исправляются:
|
||||
|
||||
| ID | Ограничение и последствие | Файлы / доказательства |
|
||||
| --- | --- | --- |
|
||||
| M1 | Loki leak-check ищет маркеры через line filter, но не во всех attributes/structured metadata. Нулевые hits — ограниченная проверка, не полный аудит отсутствия секретов. Фактическая утечка не обнаружена | [obs_check.py](scripts/obs_check.py), [telemetry.py](src/messenger/shared/infrastructure/telemetry.py), [leaks](evidence/forward-published/telemetry-leaks.txt) |
|
||||
| M2 | Унаследованные allowlists `make limits` и published-port audit CI не учитывают OTel/helper services и отклоняют штатную ЛР6. Весь CI не объявляется зелёным; лимиты проверены отдельно | [limits.py](scripts/limits.py), [workflow](.github/workflows/application.yml), [runtime](evidence/forward-published/runtime.json) |
|
||||
| M3 | API SLI не учитывает 503 HAProxy, rate новой серии может пропустить первый всплеск. Полная пауза БД не вызвала alert; успешен именно отдельный SQL-lock сценарий | [alerts](infra/prometheus/rules/messenger.alerts.yml), [неуспешный старый опыт](evidence/grade4/database-incident.txt), [свежий SQL-lock](evidence/forward-published/incident-database.txt) |
|
||||
| M4 | Collector достиг 98,7% лимита (252,7/256 MiB) без наблюдаемого OOM. Запас мал; опыт не доказывает устойчивость при любой нагрузке/длительности отказа | [collector.yaml](infra/otel/collector.yaml), [compose](compose.yaml), [storage](evidence/grade4/storage-incident.txt) |
|
||||
| M5 | Whitespace в SVG и сыром stdout: ревью получило `git show --check` exit 2, 2320 замечаний. Это косметика артефактов; `make lint` исходников проходит | [comparison.svg](evidence/forward-published/cost/comparison.svg), [whitespace-check.txt](evidence/forward-published/whitespace-check.txt) |
|
||||
|
||||
Полный текст и происхождение замечаний — [review-summary.md](evidence/review-summary.md). Улучшения охвата leak-check, CI allowlists, edge SLI и запаса памяти остаются будущей работой; результат их реализации не заявлен.
|
||||
|
||||
Дополнительные границы: один host, одиночные PostgreSQL/RabbitMQ/S3/Collector и локальные volumes, без HA этих компонентов и disaster recovery. Сбой узла и удаление volumes не покрыты. TLS/mTLS, внешние receivers alerts и multi-window burn-rate относятся к другим задачам. Три повтора, фиксированный порядок, общий host и накопленная история storage ограничивают выводы о CPU/RAM/latency; CPU во время drain и непрерывный пик RAM не измерены. Tail window 10 s не гарантирует полноту очень поздних retry. Queue gauge — durable backlog; time-to-ready SLI не включает pending; process CPU не включает renderer. Full suite имеет 2 macOS skip и 19 deselected stack, поэтому дополнен targeted Docker evidence, но не выдаётся за исполнение всех тестов.
|
||||
|
||||
Старые `grade3`, `grade4`, `track5`, `level3.json` привязаны к своим SHA в [индексе](evidence/README.md); прежние 519 passed и −91,1% Tempo не являются результатом позднего кода. Неуспешные/прерванные smoke, retry, persistence, тесты и измерения сохранены и размечены в исторических notes. Новый clean-clone и динамический прогон в отчётном этапе не выполнялись. Сырые evidence, OpenSpec и реализация не менялись. Конфигурация OpenSpec уже актуальна; новая proposal/apply/archive для документационного этапа не создавалась по его явному ограничению на изменения.
|
||||
|
||||
## Вопросы защиты
|
||||
|
||||
1. **Чем отличаются три сигнала?** Метрика показывает рост error rate/backlog, лог даёт событие и технический ID, trace показывает длительность зависимостей и причинную цепочку.
|
||||
2. **Почему нельзя chat_id в labels?** Число series растёт с чатами и комбинациями labels; память/индекс хранилища расходуются даже при малом RPS. Нужен route template; ID оставляют для выборочного поиска логов/traces.
|
||||
3. **Как связаны API и worker?** W3C carrier сохраняется вместе с durable job/outbox, затем идёт в AMQP headers; consumer извлекает parent, retry сохраняет связь. Сбой relay не стирает контекст из БД.
|
||||
4. **Почему ack после COMMIT?** Ранний ack может потерять работу при падении до commit; поздний допускает повтор, который нейтрализуют effect key и fencing.
|
||||
5. **Почему SQLAlchemy и Alembic?** ORM/Core задают единые транзакции/блокировки и пул, Alembic — упорядоченный head с lock/legacy adoption. OTel asyncpg инструментация наблюдает драйвер под SQLAlchemy, не заменяя его.
|
||||
6. **Почему среднее не заменяет p99?** Редкая задержка скрывается средним; p99 реплик нельзя усреднять. Сначала складываются bucket rates, затем вычисляется quantile.
|
||||
7. **Как отличили DB от медленного handler?** В сохранённом trace SELECT client ERROR около 2 s внутри server 503, pool waiting=0; снятие SQL lock убрало причину и затем alert.
|
||||
8. **Почему head потерял ошибки, а balanced сохранил?** Head решает до исхода, tail — после получения ERROR/duration. Цена tail — создание всех spans и ограниченное ожидание в памяти Collector.
|
||||
9. **Почему наблюдаемость может теряться без потери сообщения?** Её очереди и retry конечны и отделены от бизнес-коммита; 2/74 traces потеряны при продолжающем работать API.
|
||||
10. **Что доказано треком?** Сокращение записи в Tempo на 92,2% с сохранением контрольных событий при 20 req/s. Production capacity, статистическое ускорение и полнота всех поздних retry не доказаны.
|
||||
|
||||
## Источники и помощь
|
||||
|
||||
Нормы: [README](README.md), [контракт наблюдаемости](contracts/observability.md), [API](contracts/openapi.json), [COURSE](COURSE.md). Архитектура портов/UoW — [конспект Персиваля—Грегори](openspec/notes/architecture-patterns-python.md). Код и проверенные конфигурации версионируются в этом репозитории.
|
||||
|
||||
SQLAlchemy async sessions/engine и Alembic async `run_sync` сверены с [SQLAlchemy 2.0](https://docs.sqlalchemy.org/en/20/orm/extensions/asyncio.html) и [Alembic cookbook](https://alembic.sqlalchemy.org/en/latest/cookbook.html#using-asyncio-with-alembic). Context7 в этом этапе ответил `Monthly quota exceeded`, поэтому использована официальная документация; закреплённые версии проекта не обновлялись. Остальные первичные материалы OTel, W3C, Prometheus и Grafana перечислены в README; фактические имена/настройки сверены с локальным кодом и evidence.
|
||||
|
||||
Codex использован как инструмент подготовки реализации, проверок, анализа и отчёта; автор работы — Костылев Артём. Независимое ревью получено отдельным этапом runner. Динамические результаты в этом документе — сохранённые измерения исполнителей, а не повторные прогоны агента отчёта.
|
||||
|
||||
+3
-1
@@ -45,6 +45,7 @@ x-pipeline: &pipeline
|
||||
condition: service_healthy
|
||||
|
||||
x-otel-env: &otel-env
|
||||
OTEL_TRACE_RATIO: ${OTEL_TRACE_RATIO:-1}
|
||||
OTEL_SDK_DISABLED: ${OTEL_SDK_DISABLED:-false}
|
||||
OTEL_EXPORTER_OTLP_ENDPOINT: ${OTEL_EXPORTER_OTLP_ENDPOINT:-http://otel-collector:4318}
|
||||
OTEL_EXPORTER_OTLP_PROTOCOL: ${OTEL_EXPORTER_OTLP_PROTOCOL:-http/protobuf}
|
||||
@@ -148,6 +149,7 @@ services:
|
||||
CURSOR_SECRET_FILE: /run/secrets/cursor_secret
|
||||
SESSION_TTL_SECONDS: ${SESSION_TTL_SECONDS:-3600}
|
||||
IDEMPOTENCY_TTL_SECONDS: ${IDEMPOTENCY_TTL_SECONDS:-86400}
|
||||
COST_EXPERIMENT: ${COST_EXPERIMENT:-false}
|
||||
WEB_CONCURRENCY: ${WEB_CONCURRENCY:-2}
|
||||
DB_POOL_MAX_SIZE: ${DB_POOL_MAX_SIZE:-8}
|
||||
REQUEST_TIMEOUT_SECONDS: ${REQUEST_TIMEOUT_SECONDS:-8}
|
||||
@@ -438,7 +440,7 @@ services:
|
||||
otel-collector:
|
||||
<<: *obs-hardening
|
||||
image: otel/opentelemetry-collector-contrib:0.163.2@sha256:7f22d2a6748110ffb6a59bc0df448bccbf501cdb667d610ede4c61d3863d5849
|
||||
command: ["--config=/etc/otelcol/collector.yaml"]
|
||||
command: ["--config=/etc/otelcol/${OTEL_COLLECTOR_CONFIG:-collector.yaml}"]
|
||||
networks: [backend, edge]
|
||||
environment:
|
||||
GOMEMLIMIT: 200MiB
|
||||
|
||||
+62
-3
@@ -1,5 +1,64 @@
|
||||
# Доказательства
|
||||
# Индекс доказательств ЛР6
|
||||
|
||||
Храните небольшие обезличенные результаты: команды и stdout проверок, JSON/CSV агрегатов нагрузки, EXPLAIN, dashboard JSON, текст разбора отказа. Укажите дату, commit, аппаратные лимиты и профиль нагрузки.
|
||||
Автор: Костылев Артём, БПИ2303. Итог: [REPORT.md](../REPORT.md), заявлены уровни 3/4 и трек 1 «Цена наблюдаемости». **Основной актуальный набор — `forward-published/`**. Имя каталога описывает перенос опубликованного источника ЛР5 и не означает публикацию ЛР6.
|
||||
|
||||
Не добавляйте .env, session tokens, cookies, приватные ключи, credentials, реальные сообщения, raw dumps и signed URLs. Для скриншотов скрывайте секреты. Большие логи/бинарные traces сохраняйте отдельно по правилам преподавателя; одного скриншота без методики недостаточно.
|
||||
## Происхождение и актуальность
|
||||
|
||||
| Набор | SHA и назначение | Как использовать |
|
||||
| --- | --- | --- |
|
||||
| [forward-port.md](forward-port.md), [source-inventory.json](forward-published/source-inventory.json) | ЛР5 `f88e9ba43cdfd7eb6a5a7ae5feb4247b4e820071` → `c7b8feb805d151e878d77b0dff47320a9436b172`; все 281 путь diff учтены | Карта позднего переноса, исключения и причина повторения измерений |
|
||||
| [forward-published](forward-published) | Runtime/измеритель `bc1d7aa7713858acb5d65b61d07e69a640f1ee97`; evidence-коммит/ревью `6ca1c7549978af3127966540385195ab0587f2e1` | Свежие доказательства после исправлений; runtime между этими SHA не менялся |
|
||||
| [grade3/notes.md](grade3/notes.md), [level3.json](level3.json) | **Исторический код** `95511002b12510178a3cc2a22566b43e2b2b6c81`; чистый clone `2903d9d` | Не свежие smoke/нагрузка. История telemetry и независимость от Collector переиспользуются только для незатронутых механизмов |
|
||||
| [grade4/notes.md](grade4/notes.md) | **Исторический код** `44d81fd80ee13faa42bca069245ee0943f88b2df`, retry harness `447a6507f973596e612f40c1484dda922bf0e50d`; storage incident `cd9d91550aa4eeba31489e07b71ee2767acfc7d8` | Отказ storage и кардинальность применимы в пределах [preserved-mechanisms.json](forward-published/preserved-mechanisms.json); chain/retry/alerts заменены свежими |
|
||||
| [track5/notes.md](track5/notes.md) | **Исторический код** `202b985deacda79b6d8df65dcefe8a1af43f1a8e`, измеритель `bc0b1620825b53fd3a3019623326ebf68cbbbeec` | Старые 519 passed, −91,1% Tempo и 15 серий не смешивать с актуальными 995 passed / −92,2%; auth/cache путь изменился и был перемерен |
|
||||
| [review-summary.md](review-summary.md) | Результат независимого review из runner на `6ca1c75…` | 0 major, 5 minor; полный список ограничений, не новое ревью |
|
||||
| [report-audit.md](report-audit.md) | Документационный этап поверх `6ca1c75…` | Только статические проверки и сверка сохранённых чисел; Docker/нагрузка не запускались |
|
||||
| [load-validation.md](load-validation.md) | Финальная validation поверх `1e00d861a803a6d49ef443175b8231cbf048fc02` | Аудит применимости всех 15 серий, свежие проверки в [validation](validation); новых нагрузочных запусков нет, публикация не выполнялась |
|
||||
|
||||
[closure.json](forward-published/closure.json) фиксирует окончание реализации: runtime не менялся после замеров, 22 проверяемых тогда файла и прежний evidence сохранены, своих работающих контейнеров нет, 9 volumes оставлены. Число 22 включает документы, которые отчётный этап имеет право обновить; это исторический снимок, не запрет на REPORT/AGENTS/этот индекс. Нормативные contracts/tests/README/COURSE и infra README неизменны. В отчётном этапе raw evidence не переписывается; в старые notes добавлена только отметка исторического кода.
|
||||
|
||||
## Карта актуального набора
|
||||
|
||||
| Что проверено | Команда / средство | Доказательства |
|
||||
| --- | --- | --- |
|
||||
| Конфигурация, образы, условия и limits | `scripts/lab6.sh make up`; снимки runtime/host | [up.txt](forward-published/up.txt), [runtime.json](forward-published/runtime.json), [conditions-before.json](forward-published/conditions-before.json) |
|
||||
| Структура, схемы, ruff/ty | `make check validate lint` | [quality.txt](forward-published/quality.txt), [final-quality.txt](forward-published/final-quality.txt) |
|
||||
| Полный собственный suite | `make student-test` | [student-test.txt](forward-published/student-test.txt): 995 passed, 2 skipped, 19 deselected; запуск до runtime-коммита на WIP поверх `97feb04…`, зафиксированном затем в `bc1d7aa…` |
|
||||
| Public API, persistent stores, failover | `make test`, `make test-persistence ACTION_SCRIPT=scripts/restart.sh`, `make test-failover ACTION_SCRIPT=scripts/stop-one.sh`, `make restore` | [smoke](forward-published/smoke.txt), [persistence](forward-published/persistence.txt), [failover](forward-published/failover.txt), [restore](forward-published/restore.txt), [final-smoke](forward-published/final-smoke.txt) |
|
||||
| Поздние auth/cache/HTTP регрессии | `student-tests/tools/forward_network.py`, stack tests, точные команды внутри логов | [network](forward-published/network.txt), [cache-outage](forward-published/cache-outage.txt), [HAProxy errors](forward-published/haproxy-errors.txt), [negative upload](forward-published/upload-negative.txt) |
|
||||
| Requeue при отказе PostgreSQL | `student-tests/tools/forward_runtime.py postgres-outage` | [JSON](forward-published/postgres-outage.json), [команда](forward-published/postgres-outage.txt), [worker](forward-published/postgres-outage-worker.txt), [broker policy](forward-published/policy.txt) |
|
||||
| PNG корректность и ограничения памяти | `student-tests/tools/forward_runtime.py png-http` / `png-boundary` | [png-http.json](forward-published/png-http.json), [png-http.txt](forward-published/png-http.txt), [png-boundary.json](forward-published/png-boundary.json), [png-boundary.txt](forward-published/png-boundary.txt) |
|
||||
| Pipeline, retry, COMMIT/ack, DLQ | `scripts/pipeline_suite.py --level 4 --only …` (9 кейсов, полный вызов в txt) | [pipeline.json](forward-published/pipeline.json), [pipeline.txt](forward-published/pipeline.txt) |
|
||||
| Конфиги наблюдаемости и dashboard queries | `make obs-validate`; `scripts/obs_check.py dashboards --strict` | [obs-config](forward-published/obs-config.txt), [dashboards](forward-published/dashboards.txt) |
|
||||
| Корреляция request/job | `scripts/obs_check.py request` / `job` | [telemetry-request](forward-published/telemetry-request.txt), [telemetry-job](forward-published/telemetry-job.txt) |
|
||||
| Контроль запрещённых значений | `scripts/obs_check.py leaks` | [telemetry-leaks](forward-published/telemetry-leaks.txt); ограничение Loki metadata — M1 в review-summary |
|
||||
| Upload trace и retry до результата | `scripts/obs_incidents.py chain` / `retry` | [chain](forward-published/incident-chain.txt), [retry](forward-published/incident-retry.txt): 55/86 spans |
|
||||
| Worker/DB incidents, alerts | `scripts/obs_incidents.py worker` / `database` | [worker](forward-published/incident-worker.txt), [database](forward-published/incident-database.txt): firing → resolved |
|
||||
| История и outage telemetry (исторический код) | `scripts/obs_recovery.py`; `scripts/obs_incidents.py storage` | [recovery](grade3/telemetry-recovery.txt), [storage](grade4/storage-incident.txt), [обоснование неизменности](forward-published/preserved-mechanisms.json) |
|
||||
| OpenSpec | `openspec validate --all --strict --no-interactive`, sync/archive | [validation](forward-published/openspec-validation.txt), [archive](forward-published/openspec-archive.txt), [spec-sync](forward-published/spec-sync.json) |
|
||||
| Завершение без удаления данных | Возврат defaults, `make down` | [defaults-restored](forward-published/defaults-restored.json), [shutdown](forward-published/shutdown.txt), [closure](forward-published/closure.json) |
|
||||
|
||||
## Трек 1: только пригодные серии
|
||||
|
||||
[Методика](forward-published/cost/method.md) · [результаты](forward-published/cost/results.md) · [comparison.json](forward-published/cost/comparison.json) · [PNG](forward-published/cost/comparison.png) · [SVG](forward-published/cost/comparison.svg). Все численные сводки берутся из 15 raw JSON на `bc1d7aa…`; TXT той же серии содержит точный вызов, дату/SHA и exit code.
|
||||
|
||||
| Режим | Raw JSON (повторы 1 / 2 / 3) | Команды/вывод |
|
||||
| --- | --- | --- |
|
||||
| off | [1](forward-published/cost/off-1.json) / [2](forward-published/cost/off-2.json) / [3](forward-published/cost/off-3.json) | [1](forward-published/cost/off-1.txt) / [2](forward-published/cost/off-2.txt) / [3](forward-published/cost/off-3.txt) |
|
||||
| on | [1](forward-published/cost/on-1.json) / [2](forward-published/cost/on-2.json) / [3](forward-published/cost/on-3.json) | [1](forward-published/cost/on-1.txt) / [2](forward-published/cost/on-2.txt) / [3](forward-published/cost/on-3.txt) |
|
||||
| head | [1](forward-published/cost/head-1.json) / [2](forward-published/cost/head-2.json) / [3](forward-published/cost/head-3.json) | [1](forward-published/cost/head-1.txt) / [2](forward-published/cost/head-2.txt) / [3](forward-published/cost/head-3.txt) |
|
||||
| tail | [1](forward-published/cost/tail-1.json) / [2](forward-published/cost/tail-2.json) / [3](forward-published/cost/tail-3.json) | [1](forward-published/cost/tail-1.txt) / [2](forward-published/cost/tail-2.txt) / [3](forward-published/cost/tail-3.txt) |
|
||||
| balanced | [1](forward-published/cost/balanced-1.json) / [2](forward-published/cost/balanced-2.json) / [3](forward-published/cost/balanced-3.json) | [1](forward-published/cost/balanced-1.txt) / [2](forward-published/cost/balanced-2.txt) / [3](forward-published/cost/balanced-3.txt) |
|
||||
|
||||
[Measurement audit](forward-published/cost/measurement-audit.json) проверяет окно 38..42 s, drain/report 30..45 s и max gap samples <5 s. Два непригодных оригинала — [on-3](forward-published/cost/invalid-time-gap/on-3.json), [head-3](forward-published/cost/invalid-time-gap/head-3.json); причина исключения, hashes и решение повторить только их — [invalid-series.json](forward-published/cost/invalid-series.json). Их 1600 запросов не входят в 12000 пригодных.
|
||||
|
||||
Фон: [start](forward-published/cost/conditions-start.json), [round 1](forward-published/cost/conditions-round-1.json), [round 2](forward-published/cost/conditions-round-2.json), [round 3](forward-published/cost/conditions-round-3.json), [repeat start](forward-published/cost/conditions-repeat-start.json), [repeat end](forward-published/cost/conditions-repeat-end.json). Других Docker projects в снимках нет; общий host остаётся ограничением. Пригодные измерения сохраняются для финального аудита; документационные изменения не основание прогонять их заново.
|
||||
|
||||
## Неуспешные попытки и границы доказательств
|
||||
|
||||
- В [grade3/notes.md](grade3/notes.md) размечены преждевременный smoke и job во время рестарта; успешные повторы лежат рядом. Clean-clone evidence относится только к старому `2903d9d`.
|
||||
- В [grade4/notes.md](grade4/notes.md) сохранены ранние неуспешные student tests, retry без реального отказа, прерванный persistence, неправильный cardinality-вызов и DB pause без firing. Ни один не объявлен PASS итоговым отчётом.
|
||||
- В [track5/notes.md](track5/notes.md) отмечены ранний smoke, ошибка Docker stats до нагрузки и пустые validation-файлы. Все результаты этого каталога исторические.
|
||||
- [Старые findings позднего переноса](forward-published/findings.json) содержат четыре minor; [review-summary.md](review-summary.md) добавляет пятое, про Loki metadata. [Whitespaces](forward-published/whitespace-check.txt) — реальный неуспех косметической проверки, не неуспех `make lint`.
|
||||
|
||||
Не добавлять `.env`, tokens/cookies, credentials, реальные сообщения, raw dumps и signed URLs. Технические IDs в проверках синтетические; они служат корреляции, не являются секретами. Наличие файла/скриншота само по себе не доказательство: нужны команда, SHA, наблюдение и границы применимости.
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
# Поздний перенос ЛР5 → ЛР6
|
||||
|
||||
Источник только immutable snapshot `lab5-c7b8feb805d151e878d77b0dff47320a9436b172`; диапазон `f88e9ba43cdfd7eb6a5a7ae5feb4247b4e820071..c7b8feb805d151e878d77b0dff47320a9436b172`. Исходный HEAD ЛР6 `237a7c93e507b984add5b49c51c6720a6bfca505`, дерево было чистым. Полный перечень всех изменённых путей, SHA-256 источника и решение по каждому: [source-inventory.json](forward-published/source-inventory.json).
|
||||
|
||||
## Перенос
|
||||
|
||||
| Группа | Изменение | Разрешение |
|
||||
|---|---|---|
|
||||
| identity handlers/postgres/valkey | Отзыв сессии, блокировка чтения, nonce заполнения кэша | Полный diff; SQLAlchemy и Lua, схема без изменений |
|
||||
| identity authentication/values, messaging values | NUL и не-ASCII Basic | Полный diff; ошибки по существующему контракту |
|
||||
| attachments images.py и png.py | Проверка IDAT, исходная tRNS глубина, tiles памяти | Полный diff; OTel S3/worker не изменён |
|
||||
| infra/haproxy/haproxy.cfg | JSON escaping request_id в 502/503/504 | Полный diff |
|
||||
| infra/rabbitmq/definitions.json | delivery-limit=-1 | Сохранено описание lab6 и существующая топология/DLX |
|
||||
| student-tests (все пути inventory) | Регрессии источника | Сохранены OTelJobObserver/provider ЛР6; прямые handle_job получают observer. Boundary PNG генерируются локально, без зависимости от evidence ЛР5; default project/port заменены на ЛР6 |
|
||||
| openspec/specs (10 capabilities) | 11 изменённых requirements | Полные delta blocks, исходные префиксы capabilities сохранены |
|
||||
| openspec/config.yaml | Версии SQLAlchemy/Alembic, provenance | Применимые строки влиты, контекст ЛР6 сохранён |
|
||||
|
||||
## Неприменимые артефакты
|
||||
|
||||
AGENTS.md, REPORT.md и evidence/README.md источника относятся к ЛР5 и не заменяют документы ЛР6. Результаты evidence источника относятся к другому приложению/SHA и не копируются как доказательство ЛР6. Исполняемая логика двух targeted.py адаптирована в student-tests/tools/forward_runtime.py; их файлы результатов не импортированы. Четыре новых source OpenSpec archives — история выполненных этапов ЛР5; их требования перенесены объединённым change `forward-lab5-published-fixes`, их завершение не выдаётся за проверку ЛР6. Каждый исключённый путь перечислен в inventory с причиной. Применимых runtime-изменений не пропущено; source diff не затрагивает Dockerfile, зависимости, Alembic или compose runtime.
|
||||
|
||||
## Документация
|
||||
|
||||
Context7 resolve для SQLAlchemy и RabbitMQ вернул `Monthly quota exceeded`. Использован официальный fallback: [SQLAlchemy 2.0 with_for_update](https://docs.sqlalchemy.org/en/20/core/selectable.html#sqlalchemy.sql.expression.GenerativeSelect.with_for_update) подтверждает read+key_share; [RabbitMQ 4.1 quorum delivery limit](https://www.rabbitmq.com/docs/4.1/quorum-queues#disabling-the-limit) содержит policy delivery-limit=-1. Новых зависимостей нет; версии остаются закреплёнными.
|
||||
|
||||
## Проверки и затронутые измерения
|
||||
|
||||
Изменение auth/cache влияет на HTTP/DB путь трека, поэтому повторяются все 15 серий с прежними параметрами; `evidence/track5` остаётся историческим результатом bc0b1620825b53fd3a3019623326ebf68cbbbeec. Новые PNG/доставка проверяются через runtime ЛР6 с включённой OTel, включая память, recovery и трассы. Наблюдения, сырые результаты и завершённый повтор трека приведены ниже.
|
||||
|
||||
## Реальные регрессии на новом runtime
|
||||
|
||||
Runtime commit: `bc1d7aa7713858acb5d65b61d07e69a640f1ee97`, образ/ресурсы — forward-published/runtime.json. `make student-test`: 995 passed, 2 Linux-only skipped, 19 stack deselected; `make check validate lint`: PASS. Эти локальные проверки выполнены до runtime-коммита, на WIP поверх 97feb04b3f2a6008f636e1fdbdf284b1c97282a1 (точный SHA и команды в логах); затем код зафиксирован в bc1d7aa. Linux memory paths проверены отдельно реальным worker в Docker с 448 MiB/30 s, concurrency2 и cgroup1GiB.
|
||||
|
||||
- network.txt: некорректный Basic/NUL, атомарность и ключ идемпотентности, logout на обеих репликах.
|
||||
- cache-outage.txt: работа при отказе Valkey, logout503 и успешный204 после восстановления.
|
||||
- postgres-outage.json/txt и postgres-outage-worker.txt: 12 реальных requeue, тот же job_id/attempt1, DLQ без прироста, recovery без replay. policy.txt подтверждает delivery-limit=-1.
|
||||
- png-http.json/txt: восемь PNG tRNS/Adam7/filter/EXIF случаев, v1/v2 и byte-exact сравнение с независимым белым эталоном; duplicate/stale не меняют результат.
|
||||
- png-boundary.json/txt: 40MP gray2/4/16/RGB16 и opaque, обе версии; два RGB16 рендера пересекались по времени, peak913227776 bytes <1073741824, oom/oom_kill0. Forced timeout и memory дали processing_failed без retry, следующее обычное задание ready.
|
||||
- haproxy-errors.txt: 12 сетевых проверок502/503/504 с request_id, JSON валиден и echo совпадает. Временный project hlpipe-lab6-forward-lb остановлен finally.
|
||||
- upload-negative.txt: 56 ответов негативного suite, 0 ответов5xx.
|
||||
- pipeline.json/txt: девять затронутых сценариев, включая retry, восстановление брокера/worker, COMMIT/ack и DLQ, с инвариантами.
|
||||
- persistence.txt, failover.txt, restore.txt: публичные проверки и восстановление реплики PASS.
|
||||
- telemetry-request/job/leaks.txt, incident-chain/retry.txt: свежие spans и логи приложения, сохранённая цепочка retry, 0 утечек.
|
||||
- incident-worker/database.txt: alerts firing→resolved; dashboards.txt и obs-config.txt PASS.
|
||||
|
||||
Прежние проверки отказа telemetry storage и сохранения истории уровней3/4 остаются применимыми: preserved-mechanisms.json подтверждает неизменность21 файла сигналов/хранилищ. 22 защищённых файла также неизменны. Эти незатронутые серии не прогоняются повторно. Новые cost-series хранятся отдельно в forward-published/cost; метод и ограничения — cost/method.md.
|
||||
|
||||
## Сохраняемые ограничения для следующего отчёта
|
||||
|
||||
Четыре ранее установленных minor-замечания не исправляются по правилу пользователя «только критичное»: неполные allowlists вспомогательного аудита лимитов, границы API SLI для ответов HAProxy/первой серии, малый запас памяти Collector при отказе storage и whitespace сгенерированных артефактов. Файлы, доказательства и актуальность перечислены в [findings.json](forward-published/findings.json). Новый REPORT здесь не составляется; эти ограничения передаются следующему агенту отчёта. Ни один обязательный неуспешный тест не объявлен успешным.
|
||||
|
||||
## Итог повторного трека и завершение
|
||||
|
||||
15 пригодных последовательных серий (по три на off/on/head/tail/balanced), 12000 запросов, 0 неожиданных ответов. SDK ended = Collector accepted во всех сериях, экспортных ошибок0. Balanced сохранил48/48 ошибок и48/48 slow; медианный ingest Tempo130,2 KiB против1662,2 KiB у on (−92,2%). Head сохранил6/48 ошибок и3/48 slow. Это наблюдение данного workload, не доказательство статистически значимого изменения latency/CPU. Сводка, диапазоны и графики: [cost/results.md](forward-published/cost/results.md), comparison.json/png/svg. PNG графика визуально проверен.
|
||||
|
||||
Два первоначальных прогона on-3/head-3 с разрывом wall clock исключены; HTTP PASS не выдан за пригодное измерение. Их raw JSON/вывод сохранены с SHA-256 в invalid-time-gap и invalid-series.json. Повторены только эти две серии. measurement-audit.json подтверждает штатные окна всех15 включённых серий. Фактический фон записан при старте, после каждого круга и повторения; сторонние проекты в этих снимках отсутствуют, общий host остаётся ограничением.
|
||||
|
||||
Штатные SDK on/100%/10s, Collector collector.yaml и COST_EXPERIMENT=false проверены в defaults-restored.json. Финальный публичный smoke прошёл (final-smoke.txt). Собственный стенд остановлен make down без удаления volumes (shutdown.txt); closure.json подтверждает9 volumes, отсутствие своих работающих контейнеров, неизменность22 защищённых файлов, предыдущего evidence и runtime после измерений. Все нагрузки и временный caffeinate завершены. Финальные offline/check/validate/lint — final-quality.txt. Публикаций не выполнялось.
|
||||
|
||||
OpenSpec: 11 requirements в10 capabilities синхронизированы и побайтно сверены по блокам с immutable source и delta (spec-sync.json). Архив: openspec/changes/archive/2026-11-07-forward-lab5-published-fixes, archived2026-11-07/lab6;26 specs strict PASS, активных changes0. git diff --cached --check завершился с кодом2 из-за whitespace в сыром выводе/сгенерированных артефактах (whitespace-check.txt), замечание minor сохранено; make lint прошёл.
|
||||
@@ -0,0 +1,10 @@
|
||||
date: 2026-11-06T23:37:24Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ .venv/bin/pytest -m stack -s -q student-tests/stack/test_faults.py::test_valkey_stopped_is_bypassed_but_logout_waits
|
||||
valkey остановлен, действующий токен: 200 за 0.008 с
|
||||
valkey остановлен, неизвестный токен: 401 за 0.004 с
|
||||
valkey остановлен: ready 200, вход 201, выход 503
|
||||
valkey снова запущен: повторный выход 204
|
||||
.
|
||||
1 passed in 4.06s
|
||||
exit_code: 0 elapsed_seconds: 4.831
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"at": "2026-11-07T01:12:37.041033+00:00",
|
||||
"implementation_sha": "bc1d7aa7713858acb5d65b61d07e69a640f1ee97",
|
||||
"source_sha": "c7b8feb805d151e878d77b0dff47320a9436b172",
|
||||
"protected_files": 22,
|
||||
"changed_protected": [],
|
||||
"changed_old_evidence": [],
|
||||
"changed_runtime_since_measurements": [],
|
||||
"own_running_containers": [],
|
||||
"preserved_volumes": [
|
||||
"mtusi2026lab6_broker-data",
|
||||
"mtusi2026lab6_grafana-data",
|
||||
"mtusi2026lab6_healthtools",
|
||||
"mtusi2026lab6_loki-data",
|
||||
"mtusi2026lab6_pgdata",
|
||||
"mtusi2026lab6_prometheus-data",
|
||||
"mtusi2026lab6_s3data",
|
||||
"mtusi2026lab6_tempo-data",
|
||||
"mtusi2026lab6_valkeydata"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
{
|
||||
"at": "2026-11-06T23:37:22.532499+00:00",
|
||||
"runtime_sha": "bc1d7aa7713858acb5d65b61d07e69a640f1ee97",
|
||||
"platform": "Darwin",
|
||||
"architecture": "arm64",
|
||||
"host_cpus": 16,
|
||||
"host_load": [
|
||||
3.3583984375,
|
||||
2.19873046875,
|
||||
2.24169921875
|
||||
],
|
||||
"docker": "16 CPUs; 8217190400 bytes; 28.3.2",
|
||||
"own_project": "mtusi2026lab6",
|
||||
"own": [
|
||||
{
|
||||
"Name": "mtusi2026lab6-relay-1",
|
||||
"CPUPerc": "0.14%",
|
||||
"MemUsage": "116.9MiB / 192MiB",
|
||||
"PIDs": "7"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-api-2",
|
||||
"CPUPerc": "0.97%",
|
||||
"MemUsage": "193.6MiB / 512MiB",
|
||||
"PIDs": "17"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-api-1",
|
||||
"CPUPerc": "0.78%",
|
||||
"MemUsage": "193.4MiB / 512MiB",
|
||||
"PIDs": "17"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-worker-1",
|
||||
"CPUPerc": "0.14%",
|
||||
"MemUsage": "110.9MiB / 1GiB",
|
||||
"PIDs": "6"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-grafana-1",
|
||||
"CPUPerc": "0.31%",
|
||||
"MemUsage": "314.9MiB / 384MiB",
|
||||
"PIDs": "7"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-loki-1",
|
||||
"CPUPerc": "0.84%",
|
||||
"MemUsage": "151.9MiB / 384MiB",
|
||||
"PIDs": "8"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-tempo-1",
|
||||
"CPUPerc": "0.25%",
|
||||
"MemUsage": "106.5MiB / 384MiB",
|
||||
"PIDs": "9"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-otel-collector-1",
|
||||
"CPUPerc": "0.32%",
|
||||
"MemUsage": "238.1MiB / 256MiB",
|
||||
"PIDs": "8"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-broker-1",
|
||||
"CPUPerc": "0.13%",
|
||||
"MemUsage": "94.06MiB / 512MiB",
|
||||
"PIDs": "53"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-postgres-1",
|
||||
"CPUPerc": "0.94%",
|
||||
"MemUsage": "45.65MiB / 768MiB",
|
||||
"PIDs": "13"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-lb-1",
|
||||
"CPUPerc": "0.10%",
|
||||
"MemUsage": "22.77MiB / 128MiB",
|
||||
"PIDs": "17"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-prometheus-1",
|
||||
"CPUPerc": "0.23%",
|
||||
"MemUsage": "173.6MiB / 512MiB",
|
||||
"PIDs": "6"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-s3-1",
|
||||
"CPUPerc": "0.06%",
|
||||
"MemUsage": "71.48MiB / 512MiB",
|
||||
"PIDs": "12"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-valkey-1",
|
||||
"CPUPerc": "1.37%",
|
||||
"MemUsage": "12.66MiB / 128MiB",
|
||||
"PIDs": "6"
|
||||
}
|
||||
],
|
||||
"other_projects": {},
|
||||
"sampling": "Shared Docker snapshot; no throughput claim"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
date: 2026-11-06T23:59:06Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/obs_cost.py --mode balanced --repeat 1 --duration 40 --rate 20 --output evidence/forward-published/cost/balanced-1.json
|
||||
{"mode": "balanced", "repeat": 1, "result": "PASS", "retained": {"normal": 39, "error": 16, "slow": 16}}
|
||||
exit_code: 0 elapsed_seconds: 126.615
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
date: 2026-11-07T00:09:36Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/obs_cost.py --mode balanced --repeat 2 --duration 40 --rate 20 --output evidence/forward-published/cost/balanced-2.json
|
||||
{"mode": "balanced", "repeat": 2, "result": "PASS", "retained": {"normal": 32, "error": 16, "slow": 16}}
|
||||
exit_code: 0 elapsed_seconds: 126.494
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
date: 2026-11-07T01:05:01Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/obs_cost.py --mode balanced --repeat 3 --duration 40 --rate 20 --output evidence/forward-published/cost/balanced-3.json
|
||||
{"mode": "balanced", "repeat": 3, "result": "PASS", "retained": {"normal": 30, "error": 16, "slow": 16}}
|
||||
exit_code: 0 elapsed_seconds: 126.531
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
After Width: | Height: | Size: 128 KiB |
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 99 KiB |
@@ -0,0 +1,102 @@
|
||||
{
|
||||
"at": "2026-11-07T01:11:40.821011+00:00",
|
||||
"runtime_sha": "bc1d7aa7713858acb5d65b61d07e69a640f1ee97",
|
||||
"platform": "Darwin",
|
||||
"architecture": "arm64",
|
||||
"host_cpus": 16,
|
||||
"host_load": [
|
||||
2.5986328125,
|
||||
2.326171875,
|
||||
2.35888671875
|
||||
],
|
||||
"docker": "16 CPUs; 8217190400 bytes; 28.3.2",
|
||||
"own_project": "mtusi2026lab6",
|
||||
"own": [
|
||||
{
|
||||
"Name": "mtusi2026lab6-api-1",
|
||||
"CPUPerc": "0.71%",
|
||||
"MemUsage": "184.3MiB / 512MiB",
|
||||
"PIDs": "13"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-api-2",
|
||||
"CPUPerc": "1.70%",
|
||||
"MemUsage": "192.5MiB / 512MiB",
|
||||
"PIDs": "17"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-relay-1",
|
||||
"CPUPerc": "0.67%",
|
||||
"MemUsage": "116.6MiB / 192MiB",
|
||||
"PIDs": "7"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-worker-1",
|
||||
"CPUPerc": "0.14%",
|
||||
"MemUsage": "108.3MiB / 1GiB",
|
||||
"PIDs": "6"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-otel-collector-1",
|
||||
"CPUPerc": "0.15%",
|
||||
"MemUsage": "52.7MiB / 256MiB",
|
||||
"PIDs": "8"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-grafana-1",
|
||||
"CPUPerc": "0.39%",
|
||||
"MemUsage": "320.1MiB / 384MiB",
|
||||
"PIDs": "12"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-loki-1",
|
||||
"CPUPerc": "0.75%",
|
||||
"MemUsage": "225.5MiB / 384MiB",
|
||||
"PIDs": "8"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-tempo-1",
|
||||
"CPUPerc": "0.25%",
|
||||
"MemUsage": "227MiB / 384MiB",
|
||||
"PIDs": "9"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-broker-1",
|
||||
"CPUPerc": "24.52%",
|
||||
"MemUsage": "95.97MiB / 512MiB",
|
||||
"PIDs": "53"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-postgres-1",
|
||||
"CPUPerc": "0.53%",
|
||||
"MemUsage": "45.99MiB / 768MiB",
|
||||
"PIDs": "12"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-lb-1",
|
||||
"CPUPerc": "0.66%",
|
||||
"MemUsage": "25.02MiB / 128MiB",
|
||||
"PIDs": "17"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-prometheus-1",
|
||||
"CPUPerc": "0.14%",
|
||||
"MemUsage": "158.4MiB / 512MiB",
|
||||
"PIDs": "7"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-s3-1",
|
||||
"CPUPerc": "0.03%",
|
||||
"MemUsage": "160.2MiB / 512MiB",
|
||||
"PIDs": "25"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-valkey-1",
|
||||
"CPUPerc": "0.13%",
|
||||
"MemUsage": "13.07MiB / 128MiB",
|
||||
"PIDs": "6"
|
||||
}
|
||||
],
|
||||
"other_projects": {},
|
||||
"sampling": "Shared Docker snapshot; no throughput claim"
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
{
|
||||
"at": "2026-11-07T01:07:27.961141+00:00",
|
||||
"runtime_sha": "bc1d7aa7713858acb5d65b61d07e69a640f1ee97",
|
||||
"platform": "Darwin",
|
||||
"architecture": "arm64",
|
||||
"host_cpus": 16,
|
||||
"host_load": [
|
||||
1.646484375,
|
||||
1.9970703125,
|
||||
2.29052734375
|
||||
],
|
||||
"docker": "16 CPUs; 8217190400 bytes; 28.3.2",
|
||||
"own_project": "mtusi2026lab6",
|
||||
"own": [
|
||||
{
|
||||
"Name": "mtusi2026lab6-api-1",
|
||||
"CPUPerc": "1.17%",
|
||||
"MemUsage": "192.9MiB / 512MiB",
|
||||
"PIDs": "17"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-api-2",
|
||||
"CPUPerc": "1.03%",
|
||||
"MemUsage": "192.8MiB / 512MiB",
|
||||
"PIDs": "17"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-worker-1",
|
||||
"CPUPerc": "0.62%",
|
||||
"MemUsage": "108.4MiB / 1GiB",
|
||||
"PIDs": "6"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-relay-1",
|
||||
"CPUPerc": "0.80%",
|
||||
"MemUsage": "116.7MiB / 192MiB",
|
||||
"PIDs": "7"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-otel-collector-1",
|
||||
"CPUPerc": "0.27%",
|
||||
"MemUsage": "42.03MiB / 256MiB",
|
||||
"PIDs": "7"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-grafana-1",
|
||||
"CPUPerc": "1.83%",
|
||||
"MemUsage": "320MiB / 384MiB",
|
||||
"PIDs": "12"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-loki-1",
|
||||
"CPUPerc": "0.62%",
|
||||
"MemUsage": "228.5MiB / 384MiB",
|
||||
"PIDs": "8"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-tempo-1",
|
||||
"CPUPerc": "0.33%",
|
||||
"MemUsage": "287.3MiB / 384MiB",
|
||||
"PIDs": "9"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-broker-1",
|
||||
"CPUPerc": "36.74%",
|
||||
"MemUsage": "183.4MiB / 512MiB",
|
||||
"PIDs": "103"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-postgres-1",
|
||||
"CPUPerc": "0.94%",
|
||||
"MemUsage": "47.72MiB / 768MiB",
|
||||
"PIDs": "13"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-lb-1",
|
||||
"CPUPerc": "0.61%",
|
||||
"MemUsage": "24.96MiB / 128MiB",
|
||||
"PIDs": "17"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-prometheus-1",
|
||||
"CPUPerc": "0.59%",
|
||||
"MemUsage": "157.3MiB / 512MiB",
|
||||
"PIDs": "7"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-s3-1",
|
||||
"CPUPerc": "0.93%",
|
||||
"MemUsage": "160.2MiB / 512MiB",
|
||||
"PIDs": "25"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-valkey-1",
|
||||
"CPUPerc": "0.78%",
|
||||
"MemUsage": "13.07MiB / 128MiB",
|
||||
"PIDs": "6"
|
||||
}
|
||||
],
|
||||
"other_projects": {},
|
||||
"sampling": "Shared Docker snapshot; no throughput claim"
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
{
|
||||
"at": "2026-11-07T00:01:16.214846+00:00",
|
||||
"runtime_sha": "bc1d7aa7713858acb5d65b61d07e69a640f1ee97",
|
||||
"platform": "Darwin",
|
||||
"architecture": "arm64",
|
||||
"host_cpus": 16,
|
||||
"host_load": [
|
||||
1.6005859375,
|
||||
1.84521484375,
|
||||
2.02685546875
|
||||
],
|
||||
"docker": "16 CPUs; 8217190400 bytes; 28.3.2",
|
||||
"own_project": "mtusi2026lab6",
|
||||
"own": [
|
||||
{
|
||||
"Name": "mtusi2026lab6-api-1",
|
||||
"CPUPerc": "1.28%",
|
||||
"MemUsage": "184MiB / 512MiB",
|
||||
"PIDs": "13"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-api-2",
|
||||
"CPUPerc": "0.83%",
|
||||
"MemUsage": "184.3MiB / 512MiB",
|
||||
"PIDs": "13"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-worker-1",
|
||||
"CPUPerc": "0.15%",
|
||||
"MemUsage": "108.3MiB / 1GiB",
|
||||
"PIDs": "6"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-relay-1",
|
||||
"CPUPerc": "0.19%",
|
||||
"MemUsage": "116.5MiB / 192MiB",
|
||||
"PIDs": "7"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-otel-collector-1",
|
||||
"CPUPerc": "0.36%",
|
||||
"MemUsage": "46.17MiB / 256MiB",
|
||||
"PIDs": "7"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-grafana-1",
|
||||
"CPUPerc": "0.32%",
|
||||
"MemUsage": "319.3MiB / 384MiB",
|
||||
"PIDs": "10"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-loki-1",
|
||||
"CPUPerc": "0.97%",
|
||||
"MemUsage": "214.4MiB / 384MiB",
|
||||
"PIDs": "8"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-tempo-1",
|
||||
"CPUPerc": "0.23%",
|
||||
"MemUsage": "224.8MiB / 384MiB",
|
||||
"PIDs": "9"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-broker-1",
|
||||
"CPUPerc": "0.24%",
|
||||
"MemUsage": "95.74MiB / 512MiB",
|
||||
"PIDs": "53"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-postgres-1",
|
||||
"CPUPerc": "1.49%",
|
||||
"MemUsage": "44.05MiB / 768MiB",
|
||||
"PIDs": "11"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-lb-1",
|
||||
"CPUPerc": "1.03%",
|
||||
"MemUsage": "23.41MiB / 128MiB",
|
||||
"PIDs": "17"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-prometheus-1",
|
||||
"CPUPerc": "1.11%",
|
||||
"MemUsage": "154.9MiB / 512MiB",
|
||||
"PIDs": "7"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-s3-1",
|
||||
"CPUPerc": "0.05%",
|
||||
"MemUsage": "160.2MiB / 512MiB",
|
||||
"PIDs": "25"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-valkey-1",
|
||||
"CPUPerc": "1.18%",
|
||||
"MemUsage": "13.05MiB / 128MiB",
|
||||
"PIDs": "6"
|
||||
}
|
||||
],
|
||||
"other_projects": {},
|
||||
"sampling": "Shared Docker snapshot; no throughput claim"
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
{
|
||||
"at": "2026-11-07T00:11:45.236693+00:00",
|
||||
"runtime_sha": "bc1d7aa7713858acb5d65b61d07e69a640f1ee97",
|
||||
"platform": "Darwin",
|
||||
"architecture": "arm64",
|
||||
"host_cpus": 16,
|
||||
"host_load": [
|
||||
4.9462890625,
|
||||
3.5625,
|
||||
2.7451171875
|
||||
],
|
||||
"docker": "16 CPUs; 8217190400 bytes; 28.3.2",
|
||||
"own_project": "mtusi2026lab6",
|
||||
"own": [
|
||||
{
|
||||
"Name": "mtusi2026lab6-api-2",
|
||||
"CPUPerc": "1.19%",
|
||||
"MemUsage": "184.1MiB / 512MiB",
|
||||
"PIDs": "13"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-api-1",
|
||||
"CPUPerc": "3.14%",
|
||||
"MemUsage": "191.7MiB / 512MiB",
|
||||
"PIDs": "17"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-relay-1",
|
||||
"CPUPerc": "0.62%",
|
||||
"MemUsage": "116.5MiB / 192MiB",
|
||||
"PIDs": "7"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-worker-1",
|
||||
"CPUPerc": "0.17%",
|
||||
"MemUsage": "108.3MiB / 1GiB",
|
||||
"PIDs": "6"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-otel-collector-1",
|
||||
"CPUPerc": "0.28%",
|
||||
"MemUsage": "42.81MiB / 256MiB",
|
||||
"PIDs": "7"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-grafana-1",
|
||||
"CPUPerc": "0.30%",
|
||||
"MemUsage": "320MiB / 384MiB",
|
||||
"PIDs": "12"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-loki-1",
|
||||
"CPUPerc": "1.56%",
|
||||
"MemUsage": "221.1MiB / 384MiB",
|
||||
"PIDs": "8"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-tempo-1",
|
||||
"CPUPerc": "1.27%",
|
||||
"MemUsage": "233.4MiB / 384MiB",
|
||||
"PIDs": "9"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-broker-1",
|
||||
"CPUPerc": "0.25%",
|
||||
"MemUsage": "95.85MiB / 512MiB",
|
||||
"PIDs": "53"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-postgres-1",
|
||||
"CPUPerc": "0.73%",
|
||||
"MemUsage": "45.72MiB / 768MiB",
|
||||
"PIDs": "12"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-lb-1",
|
||||
"CPUPerc": "0.17%",
|
||||
"MemUsage": "24.55MiB / 128MiB",
|
||||
"PIDs": "17"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-prometheus-1",
|
||||
"CPUPerc": "0.17%",
|
||||
"MemUsage": "155MiB / 512MiB",
|
||||
"PIDs": "7"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-s3-1",
|
||||
"CPUPerc": "0.02%",
|
||||
"MemUsage": "160.2MiB / 512MiB",
|
||||
"PIDs": "25"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-valkey-1",
|
||||
"CPUPerc": "1.13%",
|
||||
"MemUsage": "13.12MiB / 128MiB",
|
||||
"PIDs": "6"
|
||||
}
|
||||
],
|
||||
"other_projects": {},
|
||||
"sampling": "Shared Docker snapshot; no throughput claim"
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
{
|
||||
"at": "2026-11-07T01:07:10.780508+00:00",
|
||||
"runtime_sha": "bc1d7aa7713858acb5d65b61d07e69a640f1ee97",
|
||||
"platform": "Darwin",
|
||||
"architecture": "arm64",
|
||||
"host_cpus": 16,
|
||||
"host_load": [
|
||||
1.6572265625,
|
||||
2.015625,
|
||||
2.30224609375
|
||||
],
|
||||
"docker": "16 CPUs; 8217190400 bytes; 28.3.2",
|
||||
"own_project": "mtusi2026lab6",
|
||||
"own": [
|
||||
{
|
||||
"Name": "mtusi2026lab6-api-1",
|
||||
"CPUPerc": "1.54%",
|
||||
"MemUsage": "183.9MiB / 512MiB",
|
||||
"PIDs": "13"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-api-2",
|
||||
"CPUPerc": "3.32%",
|
||||
"MemUsage": "192.2MiB / 512MiB",
|
||||
"PIDs": "17"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-worker-1",
|
||||
"CPUPerc": "0.18%",
|
||||
"MemUsage": "108.3MiB / 1GiB",
|
||||
"PIDs": "6"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-relay-1",
|
||||
"CPUPerc": "0.53%",
|
||||
"MemUsage": "116.5MiB / 192MiB",
|
||||
"PIDs": "7"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-otel-collector-1",
|
||||
"CPUPerc": "0.40%",
|
||||
"MemUsage": "40.87MiB / 256MiB",
|
||||
"PIDs": "7"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-grafana-1",
|
||||
"CPUPerc": "0.42%",
|
||||
"MemUsage": "320MiB / 384MiB",
|
||||
"PIDs": "12"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-loki-1",
|
||||
"CPUPerc": "0.70%",
|
||||
"MemUsage": "228.8MiB / 384MiB",
|
||||
"PIDs": "8"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-tempo-1",
|
||||
"CPUPerc": "0.31%",
|
||||
"MemUsage": "269.3MiB / 384MiB",
|
||||
"PIDs": "9"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-broker-1",
|
||||
"CPUPerc": "0.23%",
|
||||
"MemUsage": "96.34MiB / 512MiB",
|
||||
"PIDs": "53"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-postgres-1",
|
||||
"CPUPerc": "0.71%",
|
||||
"MemUsage": "45.93MiB / 768MiB",
|
||||
"PIDs": "12"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-lb-1",
|
||||
"CPUPerc": "0.17%",
|
||||
"MemUsage": "24.96MiB / 128MiB",
|
||||
"PIDs": "17"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-prometheus-1",
|
||||
"CPUPerc": "0.14%",
|
||||
"MemUsage": "157.3MiB / 512MiB",
|
||||
"PIDs": "7"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-s3-1",
|
||||
"CPUPerc": "0.04%",
|
||||
"MemUsage": "160.2MiB / 512MiB",
|
||||
"PIDs": "25"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-valkey-1",
|
||||
"CPUPerc": "0.17%",
|
||||
"MemUsage": "13.07MiB / 128MiB",
|
||||
"PIDs": "6"
|
||||
}
|
||||
],
|
||||
"other_projects": {},
|
||||
"sampling": "Shared Docker snapshot; no throughput claim"
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
{
|
||||
"at": "2026-11-06T23:50:46.782935+00:00",
|
||||
"runtime_sha": "bc1d7aa7713858acb5d65b61d07e69a640f1ee97",
|
||||
"platform": "Darwin",
|
||||
"architecture": "arm64",
|
||||
"host_cpus": 16,
|
||||
"host_load": [
|
||||
2.43505859375,
|
||||
2.41015625,
|
||||
2.33154296875
|
||||
],
|
||||
"docker": "16 CPUs; 8217190400 bytes; 28.3.2",
|
||||
"own_project": "mtusi2026lab6",
|
||||
"own": [
|
||||
{
|
||||
"Name": "mtusi2026lab6-worker-1",
|
||||
"CPUPerc": "0.25%",
|
||||
"MemUsage": "339.7MiB / 1GiB",
|
||||
"PIDs": "15"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-relay-1",
|
||||
"CPUPerc": "0.15%",
|
||||
"MemUsage": "118.1MiB / 192MiB",
|
||||
"PIDs": "7"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-api-2",
|
||||
"CPUPerc": "0.80%",
|
||||
"MemUsage": "250.3MiB / 512MiB",
|
||||
"PIDs": "18"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-api-1",
|
||||
"CPUPerc": "8.79%",
|
||||
"MemUsage": "255.3MiB / 512MiB",
|
||||
"PIDs": "19"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-grafana-1",
|
||||
"CPUPerc": "0.34%",
|
||||
"MemUsage": "320.6MiB / 384MiB",
|
||||
"PIDs": "10"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-loki-1",
|
||||
"CPUPerc": "0.51%",
|
||||
"MemUsage": "210.6MiB / 384MiB",
|
||||
"PIDs": "8"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-tempo-1",
|
||||
"CPUPerc": "0.23%",
|
||||
"MemUsage": "200.6MiB / 384MiB",
|
||||
"PIDs": "9"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-otel-collector-1",
|
||||
"CPUPerc": "0.07%",
|
||||
"MemUsage": "107.4MiB / 256MiB",
|
||||
"PIDs": "8"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-broker-1",
|
||||
"CPUPerc": "1.14%",
|
||||
"MemUsage": "87.95MiB / 512MiB",
|
||||
"PIDs": "53"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-postgres-1",
|
||||
"CPUPerc": "1.74%",
|
||||
"MemUsage": "76.54MiB / 768MiB",
|
||||
"PIDs": "29"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-lb-1",
|
||||
"CPUPerc": "0.99%",
|
||||
"MemUsage": "18.9MiB / 128MiB",
|
||||
"PIDs": "17"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-prometheus-1",
|
||||
"CPUPerc": "0.12%",
|
||||
"MemUsage": "154.4MiB / 512MiB",
|
||||
"PIDs": "7"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-s3-1",
|
||||
"CPUPerc": "1.27%",
|
||||
"MemUsage": "160.9MiB / 512MiB",
|
||||
"PIDs": "25"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab6-valkey-1",
|
||||
"CPUPerc": "1.20%",
|
||||
"MemUsage": "13.05MiB / 128MiB",
|
||||
"PIDs": "6"
|
||||
}
|
||||
],
|
||||
"other_projects": {},
|
||||
"sampling": "Shared Docker snapshot; no throughput claim"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
date: 2026-11-06T23:54:56Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/obs_cost.py --mode head --repeat 1 --duration 40 --rate 20 --output evidence/forward-published/cost/head-1.json
|
||||
{"mode": "head", "repeat": 1, "result": "PASS", "retained": {"normal": 85, "error": 1, "slow": 1}}
|
||||
exit_code: 0 elapsed_seconds: 124.106
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
date: 2026-11-07T00:05:25Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/obs_cost.py --mode head --repeat 2 --duration 40 --rate 20 --output evidence/forward-published/cost/head-2.json
|
||||
{"mode": "head", "repeat": 2, "result": "PASS", "retained": {"normal": 76, "error": 4, "slow": 1}}
|
||||
exit_code: 0 elapsed_seconds: 124.746
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
date: 2026-11-07T01:09:32Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/obs_cost.py --mode head --repeat 3 --duration 40 --rate 20 --output evidence/forward-published/cost/head-3.json
|
||||
{"mode": "head", "repeat": 3, "result": "PASS", "retained": {"normal": 76, "error": 1, "slow": 1}}
|
||||
exit_code: 0 elapsed_seconds: 125.216
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"decision_at": "2026-11-07T01:05:32.987756+00:00",
|
||||
"interpretation": "Observed wall-clock gaps while monotonic elapsed remains nominal; likely host suspension or clock discontinuity. Cause not asserted as proven. Only these two completed series are repeated; raw originals preserved byte-for-byte.",
|
||||
"runs": [
|
||||
{
|
||||
"series": "on-3",
|
||||
"reason": "Wall-clock discontinuity inside the measurement/accounting window; excluded from resource/ingest comparison, HTTP PASS alone is insufficient.",
|
||||
"load_seconds": 39.970131158828735,
|
||||
"finish_to_report_seconds": 932.7143309116364,
|
||||
"max_resource_gap_seconds": 2.047463893890381,
|
||||
"files": {
|
||||
"on-3.json": "d0c4799cea3f5a5c819c175c738b6099158bc5ca9b6d2d840a89c9d73d394953",
|
||||
"on-3.txt": "64199cc40d2a81d15a219e63c04aac875929eba41110bfbf3909a4d43518e010"
|
||||
}
|
||||
},
|
||||
{
|
||||
"series": "head-3",
|
||||
"reason": "Wall-clock discontinuity inside the measurement/accounting window; excluded from resource/ingest comparison, HTTP PASS alone is insufficient.",
|
||||
"load_seconds": 938.1542620658875,
|
||||
"finish_to_report_seconds": 34.9133198261261,
|
||||
"max_resource_gap_seconds": 900.3541407585144,
|
||||
"files": {
|
||||
"head-3.json": "3dbecccf017b26bc6a256860b795f8cc9e4c47099da2d46e8303120f49686f45",
|
||||
"head-3.txt": "0b4f1607837921746893700a5897b1a1c94db115d59c750f3ec9631266e95a69"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
date: 2026-11-07T00:30:52Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/obs_cost.py --mode head --repeat 3 --duration 40 --rate 20 --output evidence/forward-published/cost/head-3.json
|
||||
{"mode": "head", "repeat": 3, "result": "PASS", "retained": {"normal": 70, "error": 1, "slow": 3}}
|
||||
exit_code: 0 elapsed_seconds: 125.007
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
date: 2026-11-07T00:13:50Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/obs_cost.py --mode on --repeat 3 --duration 40 --rate 20 --output evidence/forward-published/cost/on-3.json
|
||||
{"mode": "on", "repeat": 3, "result": "PASS", "retained": {"normal": 768, "error": 16, "slow": 16}}
|
||||
exit_code: 0 elapsed_seconds: 123.841
|
||||
@@ -0,0 +1,115 @@
|
||||
{
|
||||
"at": "2026-11-07T01:11:53.670099+00:00",
|
||||
"policy": "40s workload: wall window38..42s, finish-to-report30..45s, maximum2s-sampling gap<5s. All three conditions required independently of HTTP PASS.",
|
||||
"runs": [
|
||||
{
|
||||
"file": "off-1.json",
|
||||
"load_seconds": 39.9768009185791,
|
||||
"finish_to_report_seconds": 34.378885984420776,
|
||||
"max_resource_gap_seconds": 2.047776937484741,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "off-2.json",
|
||||
"load_seconds": 39.96762013435364,
|
||||
"finish_to_report_seconds": 35.243422985076904,
|
||||
"max_resource_gap_seconds": 2.048405885696411,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "off-3.json",
|
||||
"load_seconds": 39.97038507461548,
|
||||
"finish_to_report_seconds": 35.21114897727966,
|
||||
"max_resource_gap_seconds": 2.0483851432800293,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "on-1.json",
|
||||
"load_seconds": 39.960899114608765,
|
||||
"finish_to_report_seconds": 35.31035900115967,
|
||||
"max_resource_gap_seconds": 2.0440289974212646,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "on-2.json",
|
||||
"load_seconds": 39.967061042785645,
|
||||
"finish_to_report_seconds": 34.75409412384033,
|
||||
"max_resource_gap_seconds": 2.045710802078247,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "on-3.json",
|
||||
"load_seconds": 39.961934089660645,
|
||||
"finish_to_report_seconds": 35.3386869430542,
|
||||
"max_resource_gap_seconds": 2.0448179244995117,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "head-1.json",
|
||||
"load_seconds": 39.960408210754395,
|
||||
"finish_to_report_seconds": 34.749109983444214,
|
||||
"max_resource_gap_seconds": 2.0449328422546387,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "head-2.json",
|
||||
"load_seconds": 39.95907402038574,
|
||||
"finish_to_report_seconds": 34.537447929382324,
|
||||
"max_resource_gap_seconds": 2.0501198768615723,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "head-3.json",
|
||||
"load_seconds": 39.96534299850464,
|
||||
"finish_to_report_seconds": 35.03631401062012,
|
||||
"max_resource_gap_seconds": 2.0513830184936523,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "tail-1.json",
|
||||
"load_seconds": 39.969640254974365,
|
||||
"finish_to_report_seconds": 35.31044888496399,
|
||||
"max_resource_gap_seconds": 2.0470268726348877,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "tail-2.json",
|
||||
"load_seconds": 39.96142888069153,
|
||||
"finish_to_report_seconds": 34.63654613494873,
|
||||
"max_resource_gap_seconds": 2.0448548793792725,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "tail-3.json",
|
||||
"load_seconds": 39.968284130096436,
|
||||
"finish_to_report_seconds": 35.04265284538269,
|
||||
"max_resource_gap_seconds": 2.047273874282837,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "balanced-1.json",
|
||||
"load_seconds": 39.965638160705566,
|
||||
"finish_to_report_seconds": 34.83575201034546,
|
||||
"max_resource_gap_seconds": 2.0490190982818604,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "balanced-2.json",
|
||||
"load_seconds": 39.96572422981262,
|
||||
"finish_to_report_seconds": 35.22300386428833,
|
||||
"max_resource_gap_seconds": 2.0449130535125732,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "balanced-3.json",
|
||||
"load_seconds": 39.96644401550293,
|
||||
"finish_to_report_seconds": 35.353606939315796,
|
||||
"max_resource_gap_seconds": 2.0450639724731445,
|
||||
"result": "usable"
|
||||
}
|
||||
],
|
||||
"excluded": [
|
||||
"invalid-time-gap/on-3.json",
|
||||
"invalid-time-gap/head-3.json"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
{
|
||||
"at": "2026-11-07T01:11:53.670099+00:00",
|
||||
"policy": "40s workload: wall window38..42s, finish-to-report30..45s, maximum2s-sampling gap<5s. All three conditions required independently of HTTP PASS.",
|
||||
"runs": [
|
||||
{
|
||||
"file": "off-1.json",
|
||||
"load_seconds": 39.9768009185791,
|
||||
"finish_to_report_seconds": 34.378885984420776,
|
||||
"max_resource_gap_seconds": 2.047776937484741,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "off-2.json",
|
||||
"load_seconds": 39.96762013435364,
|
||||
"finish_to_report_seconds": 35.243422985076904,
|
||||
"max_resource_gap_seconds": 2.048405885696411,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "off-3.json",
|
||||
"load_seconds": 39.97038507461548,
|
||||
"finish_to_report_seconds": 35.21114897727966,
|
||||
"max_resource_gap_seconds": 2.0483851432800293,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "on-1.json",
|
||||
"load_seconds": 39.960899114608765,
|
||||
"finish_to_report_seconds": 35.31035900115967,
|
||||
"max_resource_gap_seconds": 2.0440289974212646,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "on-2.json",
|
||||
"load_seconds": 39.967061042785645,
|
||||
"finish_to_report_seconds": 34.75409412384033,
|
||||
"max_resource_gap_seconds": 2.045710802078247,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "on-3.json",
|
||||
"load_seconds": 39.961934089660645,
|
||||
"finish_to_report_seconds": 35.3386869430542,
|
||||
"max_resource_gap_seconds": 2.0448179244995117,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "head-1.json",
|
||||
"load_seconds": 39.960408210754395,
|
||||
"finish_to_report_seconds": 34.749109983444214,
|
||||
"max_resource_gap_seconds": 2.0449328422546387,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "head-2.json",
|
||||
"load_seconds": 39.95907402038574,
|
||||
"finish_to_report_seconds": 34.537447929382324,
|
||||
"max_resource_gap_seconds": 2.0501198768615723,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "head-3.json",
|
||||
"load_seconds": 39.96534299850464,
|
||||
"finish_to_report_seconds": 35.03631401062012,
|
||||
"max_resource_gap_seconds": 2.0513830184936523,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "tail-1.json",
|
||||
"load_seconds": 39.969640254974365,
|
||||
"finish_to_report_seconds": 35.31044888496399,
|
||||
"max_resource_gap_seconds": 2.0470268726348877,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "tail-2.json",
|
||||
"load_seconds": 39.96142888069153,
|
||||
"finish_to_report_seconds": 34.63654613494873,
|
||||
"max_resource_gap_seconds": 2.0448548793792725,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "tail-3.json",
|
||||
"load_seconds": 39.968284130096436,
|
||||
"finish_to_report_seconds": 35.04265284538269,
|
||||
"max_resource_gap_seconds": 2.047273874282837,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "balanced-1.json",
|
||||
"load_seconds": 39.965638160705566,
|
||||
"finish_to_report_seconds": 34.83575201034546,
|
||||
"max_resource_gap_seconds": 2.0490190982818604,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "balanced-2.json",
|
||||
"load_seconds": 39.96572422981262,
|
||||
"finish_to_report_seconds": 35.22300386428833,
|
||||
"max_resource_gap_seconds": 2.0449130535125732,
|
||||
"result": "usable"
|
||||
},
|
||||
{
|
||||
"file": "balanced-3.json",
|
||||
"load_seconds": 39.96644401550293,
|
||||
"finish_to_report_seconds": 35.353606939315796,
|
||||
"max_resource_gap_seconds": 2.0450639724731445,
|
||||
"result": "usable"
|
||||
}
|
||||
],
|
||||
"excluded": [
|
||||
"invalid-time-gap/on-3.json",
|
||||
"invalid-time-gap/head-3.json"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
# Повтор трека после позднего переноса
|
||||
|
||||
Приложение и измеритель: `bc1d7aa7713858acb5d65b61d07e69a640f1ee97`. Образ/лимиты: `../runtime.json`. Причина повторения — изменён путь auth/cache, используемый GET users/me; исторические серии `evidence/track5` на bc0b162 остаются неизменными и не выдаются за результат нового кода.
|
||||
|
||||
Гипотеза: head 10% уменьшает ingest, теряя редкие события; tail сохраняет ошибки и slow, сокращая запись в Tempo, но сохраняет расходы SDK. Balanced: tail 5% обычных трасс, все ERROR и latency >=300 ms; период метрик 30 s вместо 10 s.
|
||||
|
||||
Команда каждой серии: `scripts/lab6.sh python3 scripts/obs_cost.py --mode MODE --repeat N --duration 40 --rate 20 --output evidence/forward-published/cost/MODE-N.json`. Порядок: off/on/head/tail/balanced, три круга. 20 прогревочных GET, 35 s ожидания экспорта; 40 s open-loop, 800 arrivals с периодом 50 ms, 64 клиентских потока. 768 обычных запросов, 16 контролируемых 503, 16 задержек 350 ms. Затем 35 s drain. finally возвращает обычный Collector, SDK on/ratio1/interval10s и отключает fault hook. Все серии идут последовательно, отдельные проверки и другие нагрузки этого агента одновременно не запускаются.
|
||||
|
||||
Latency измерена клиентом, schedule_lag записан отдельно. CPU — delta cgroup total_usage / время внешних Docker samples; RAM — usage−inactive_file. Это не SDK-метрики. Группы application (API, relay, worker), observability, business stores/LB раздельны. Окно CPU охватывает нагрузку, не последнюю работу tail sampler во время drain; RAM — пик наблюдаемых samples, не непрерывный максимум.
|
||||
|
||||
Ingest: Tempo/Loki received bytes и Prometheus appended samples; разные единицы не складываются. Окно включает drain и постоянный фон self-scrapes. SDK ended сравнивается с Collector accepted, export failures учитываются отдельно; для tail accepted−sent включает намеренную фильтрацию. Отбор server traces по уникальному префиксу каждой серии и категории, search limit5000 >800. Для head неизвестное число несозданных DB spans не оценивается вымышленным числом; наблюдается доля server roots. Off — отсутствие SDK, а не ошибка доставки.
|
||||
|
||||
Фон Docker/host записан в conditions-start и conditions-round-N, inventory дополнительно есть в каждом raw JSON. Host не эксклюзивен, поэтому малые различия latency/CPU не доказывают статистическую значимость. Три повтора дают наблюдаемый диапазон, не доверительный интервал. Workload HTTP/DB, worker ожидает заданий; массовая обработка изображений отдельно проверена в png-boundary.json. Tail decision_wait10s не доказывает полноту цепочек с очень поздними retry. Успешные завершённые серии сохраняются для финального аудита без автоматического повторного прогона.
|
||||
|
||||
Сводка: `python3 scripts/obs_cost_summary.py evidence/forward-published/cost`. Графики: `uv run --no-project --with matplotlib==3.11.2 python tools/plot_observability.py evidence/forward-published/cost`.
|
||||
|
||||
## Пригодность серий и повтор двух прогонов
|
||||
|
||||
После двух первых кругов обнаружен разрыв настенных часов относительно монотонного таймера (вероятен сон host, причина не утверждается доказанной). В первоначальном on-3 окно от конца нагрузки до отчёта стало 932,714 s, в head-3 сама нагрузка по wall clock — 938,154 s, максимальный разрыв внешних samples — 900,354 s. HTTP PASS этих прогонов не означает пригодность CPU/ingest. Оба оригинала сохранены без изменения в invalid-time-gap, SHA-256 и решение — invalid-series.json; они исключены из сравнения. Остальные завершённые серии не перезапускаются.
|
||||
|
||||
Для оставшихся измерений включён ограниченный по времени `caffeinate -i -s`; повторяются только on-3 и head-3 с теми же параметрами и SHA, последовательно. Проверка пригодности всех включённых серий: finished−started 38..42 s, utc−finished 30..45 s (35 s drain плюс запросы/округление), max соседнего resource.at gap <5 s при периоде2 s. Результат — measurement-audit.json. Отдельные паузы до начала измеряемого окна не включаются в CPU/ingest и сами по себе не бракуют серию. Контекст общего host и фактический фон остаются ограничениями.
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
date: 2026-11-06T23:50:47Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/obs_cost.py --mode off --repeat 1 --duration 40 --rate 20 --output evidence/forward-published/cost/off-1.json
|
||||
{"mode": "off", "repeat": 1, "result": "PASS", "retained": {"normal": 0, "error": 0, "slow": 0}}
|
||||
exit_code: 0 elapsed_seconds: 125.202
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
date: 2026-11-07T00:01:16Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/obs_cost.py --mode off --repeat 2 --duration 40 --rate 20 --output evidence/forward-published/cost/off-2.json
|
||||
{"mode": "off", "repeat": 2, "result": "PASS", "retained": {"normal": 0, "error": 0, "slow": 0}}
|
||||
exit_code: 0 elapsed_seconds: 125.016
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
date: 2026-11-07T00:11:45Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/obs_cost.py --mode off --repeat 3 --duration 40 --rate 20 --output evidence/forward-published/cost/off-3.json
|
||||
{"mode": "off", "repeat": 3, "result": "PASS", "retained": {"normal": 0, "error": 0, "slow": 0}}
|
||||
exit_code: 0 elapsed_seconds: 125.038
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
date: 2026-11-06T23:52:52Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/obs_cost.py --mode on --repeat 1 --duration 40 --rate 20 --output evidence/forward-published/cost/on-1.json
|
||||
{"mode": "on", "repeat": 1, "result": "PASS", "retained": {"normal": 768, "error": 16, "slow": 16}}
|
||||
exit_code: 0 elapsed_seconds: 124.436
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
date: 2026-11-07T00:03:21Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/obs_cost.py --mode on --repeat 2 --duration 40 --rate 20 --output evidence/forward-published/cost/on-2.json
|
||||
{"mode": "on", "repeat": 2, "result": "PASS", "retained": {"normal": 768, "error": 16, "slow": 16}}
|
||||
exit_code: 0 elapsed_seconds: 123.922
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
date: 2026-11-07T01:07:28Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/obs_cost.py --mode on --repeat 3 --duration 40 --rate 20 --output evidence/forward-published/cost/on-3.json
|
||||
{"mode": "on", "repeat": 3, "result": "PASS", "retained": {"normal": 768, "error": 16, "slow": 16}}
|
||||
exit_code: 0 elapsed_seconds: 124.718
|
||||
@@ -0,0 +1,29 @@
|
||||
# Результаты повторного трека
|
||||
|
||||
Приложение и измеритель: bc1d7aa7713858acb5d65b61d07e69a640f1ee97. Все 15 пригодных серий завершены: 12000 запросов, 0 неожиданных ответов. Два первоначальных прогона (ещё 1600 запросов) исключены по разрывам времени, сохранены в invalid-time-gap и повторены; подробности в method.md и invalid-series.json. Все включённые серии прошли measurement-audit.json. Во всех сериях SDK ended = Collector accepted, exporter failures = 0.
|
||||
|
||||
| Режим | normal p95 ms: median [min;max] | общий p99 ms | CPU app / obs cores | RAM app / obs MiB, median peak |
|
||||
|---|---:|---:|---:|---:|
|
||||
| off | 11.583 [11.572; 11.856] | 358.73 | 0.1404 / 0.0256 | 655.5 / 1013.3 |
|
||||
| on | 12.709 [12.554; 12.993] | 359.47 | 0.1726 / 0.0287 | 706.8 / 1058.5 |
|
||||
| head | 12.556 [12.354; 12.652] | 358.37 | 0.1657 / 0.0261 | 723.8 / 1076.1 |
|
||||
| tail | 12.781 [12.555; 12.920] | 359.11 | 0.1717 / 0.0272 | 721.0 / 1021.2 |
|
||||
| balanced | 12.895 [12.833; 13.031] | 359.75 | 0.1749 / 0.0258 | 707.1 / 1027.9 |
|
||||
|
||||
| Режим | Tempo KiB | Loki KiB | Prom samples | SDK / sent spans, median | normal /2304 | error /48 | slow /48 |
|
||||
|---|---:|---:|---:|---:|---:|---:|---:|
|
||||
| off | 0.0 | 0.0 | 33118 | 0 / 0 | 0 | 0 | 0 |
|
||||
| on | 1662.2 | 288.3 | 36284 | 5489 / 5489 | 2304 | 48 | 48 |
|
||||
| head | 176.2 | 288.4 | 37234 | 543 / 543 | 237 | 6 | 3 |
|
||||
| tail | 251.8 | 289.7 | 36657 | 5492 / 699 | 235 | 48 | 48 |
|
||||
| balanced | 130.2 | 289.8 | 34459 | 5486 / 352 | 101 | 48 | 48 |
|
||||
|
||||
Balanced сохраняет 48/48 errors и 48/48 slow, медианный Tempo ingest ниже on на 92.2%. Head пропустил 42 ошибок и 45 slow. Это отбор sampling, а не сбой доставки.
|
||||
|
||||
Фактическая скорость 20.012–20.020 requests/s. Максимальный schedule lag 61.055 ms. Внешних samples на серию: 21–21.
|
||||
|
||||
Рекомендация в пределах этого workload: balanced сокращает запись трасс и сохраняет контрольные ERROR/slow, но не устраняет цену SDK. Все spans создаются до tail-решения. Малые различия latency/CPU не доказывают статистическую значимость; ограничения общего host, HTTP/DB workload и окна CPU приведены в method.md. Поздние spans за пределами decision window отдельно не доказаны.
|
||||
|
||||
Проверенная конфигурация: `OTEL_COLLECTOR_CONFIG=collector-balanced.yaml OTEL_METRIC_EXPORT_INTERVAL=30000 scripts/lab6.sh docker compose up -d --no-deps --wait otel-collector api relay worker`. Экспериментальные fault hooks по умолчанию выключены. После серий восстановлен default on/100%, рекомендация не включается скрыто.
|
||||
|
||||
comparison.json рассчитан из 15 raw JSON; comparison.png/svg показывают median, отдельные повторы и min/max. Старые evidence/track5 не изменены и не смешаны с этим набором.
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
date: 2026-11-06T23:57:01Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/obs_cost.py --mode tail --repeat 1 --duration 40 --rate 20 --output evidence/forward-published/cost/tail-1.json
|
||||
{"mode": "tail", "repeat": 1, "result": "PASS", "retained": {"normal": 82, "error": 16, "slow": 16}}
|
||||
exit_code: 0 elapsed_seconds: 125.775
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
date: 2026-11-07T00:07:30Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/obs_cost.py --mode tail --repeat 2 --duration 40 --rate 20 --output evidence/forward-published/cost/tail-2.json
|
||||
{"mode": "tail", "repeat": 2, "result": "PASS", "retained": {"normal": 65, "error": 16, "slow": 16}}
|
||||
exit_code: 0 elapsed_seconds: 125.706
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
date: 2026-11-07T00:47:55Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/obs_cost.py --mode tail --repeat 3 --duration 40 --rate 20 --output evidence/forward-published/cost/tail-3.json
|
||||
{"mode": "tail", "repeat": 3, "result": "PASS", "retained": {"normal": 88, "error": 16, "slow": 16}}
|
||||
exit_code: 0 elapsed_seconds: 127.417
|
||||
@@ -0,0 +1,230 @@
|
||||
date: 2026-11-06T23:49:55Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/obs_check.py dashboards --strict
|
||||
{
|
||||
"checked_at": "2026-11-06T23:49:56+00:00",
|
||||
"targets": [
|
||||
{
|
||||
"dashboard": "messenger-api.json",
|
||||
"panel": "RPS бизнес-запросов",
|
||||
"datasource": "prometheus",
|
||||
"series": 1,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-api.json",
|
||||
"panel": "Доля 5xx (2m)",
|
||||
"datasource": "prometheus",
|
||||
"series": 1,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-api.json",
|
||||
"panel": "p95 latency (5m)",
|
||||
"datasource": "prometheus",
|
||||
"series": 1,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-api.json",
|
||||
"panel": "Доля не-5xx (окно 1h)",
|
||||
"datasource": "prometheus",
|
||||
"series": 1,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-api.json",
|
||||
"panel": "RPS по маршруту и классу статуса",
|
||||
"datasource": "prometheus",
|
||||
"series": 11,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-api.json",
|
||||
"panel": "Доля ошибок",
|
||||
"datasource": "prometheus",
|
||||
"series": 1,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-api.json",
|
||||
"panel": "Доля ошибок",
|
||||
"datasource": "prometheus",
|
||||
"series": 1,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-api.json",
|
||||
"panel": "Latency p50 / p95 / p99",
|
||||
"datasource": "prometheus",
|
||||
"series": 1,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-api.json",
|
||||
"panel": "Latency p50 / p95 / p99",
|
||||
"datasource": "prometheus",
|
||||
"series": 1,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-api.json",
|
||||
"panel": "Latency p50 / p95 / p99",
|
||||
"datasource": "prometheus",
|
||||
"series": 1,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-api.json",
|
||||
"panel": "p95 по маршруту",
|
||||
"datasource": "prometheus",
|
||||
"series": 9,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-api.json",
|
||||
"panel": "RPS по реплике",
|
||||
"datasource": "prometheus",
|
||||
"series": 4,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-api.json",
|
||||
"panel": "Активные запросы",
|
||||
"datasource": "prometheus",
|
||||
"series": 6,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-api.json",
|
||||
"panel": "Логи API (ошибки и предупреждения)",
|
||||
"datasource": "loki",
|
||||
"lines": 5
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-api.json",
|
||||
"panel": "Трассы API с ошибкой",
|
||||
"datasource": "tempo",
|
||||
"traces": 5
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-pipeline.json",
|
||||
"panel": "Jobs по исходу",
|
||||
"datasource": "prometheus",
|
||||
"series": 1,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-pipeline.json",
|
||||
"panel": "Длительность обработки job",
|
||||
"datasource": "prometheus",
|
||||
"series": 1,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-pipeline.json",
|
||||
"panel": "Длительность обработки job",
|
||||
"datasource": "prometheus",
|
||||
"series": 1,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-pipeline.json",
|
||||
"panel": "Длительность обработки job",
|
||||
"datasource": "prometheus",
|
||||
"series": 1,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-pipeline.json",
|
||||
"panel": "Логи worker",
|
||||
"datasource": "loki",
|
||||
"lines": 5
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-pipeline.json",
|
||||
"panel": "Трассы worker",
|
||||
"datasource": "tempo",
|
||||
"traces": 5
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-pipeline.json",
|
||||
"panel": "Durable queue depth (includes retry)",
|
||||
"datasource": "prometheus",
|
||||
"series": 1,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-pipeline.json",
|
||||
"panel": "Oldest durable job age",
|
||||
"datasource": "prometheus",
|
||||
"series": 1,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-pipeline.json",
|
||||
"panel": "DB pool used / waiting / capacity",
|
||||
"datasource": "prometheus",
|
||||
"series": 9,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-pipeline.json",
|
||||
"panel": "Worker busy / capacity",
|
||||
"datasource": "prometheus",
|
||||
"series": 2,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-pipeline.json",
|
||||
"panel": "Process CPU cores",
|
||||
"datasource": "prometheus",
|
||||
"series": 3,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-pipeline.json",
|
||||
"panel": "Process resident memory",
|
||||
"datasource": "prometheus",
|
||||
"series": 3,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-pipeline.json",
|
||||
"panel": "Time to ready p50 / p95 / p99",
|
||||
"datasource": "prometheus",
|
||||
"series": 1,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-pipeline.json",
|
||||
"panel": "Time to ready p50 / p95 / p99",
|
||||
"datasource": "prometheus",
|
||||
"series": 1,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-pipeline.json",
|
||||
"panel": "Time to ready p50 / p95 / p99",
|
||||
"datasource": "prometheus",
|
||||
"series": 1,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-pipeline.json",
|
||||
"panel": "Ready within 30s, SLO 95% / 1h",
|
||||
"datasource": "prometheus",
|
||||
"series": 1,
|
||||
"missing_metrics": []
|
||||
},
|
||||
{
|
||||
"dashboard": "messenger-pipeline.json",
|
||||
"panel": "API availability, SLO 99% / 1h",
|
||||
"datasource": "prometheus",
|
||||
"series": 1,
|
||||
"missing_metrics": []
|
||||
}
|
||||
],
|
||||
"problems": []
|
||||
}
|
||||
exit_code: 0 elapsed_seconds: 0.112
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"at": "2026-11-07T01:11:54.405624+00:00",
|
||||
"process_settings": [
|
||||
{
|
||||
"name": "/mtusi2026lab6-api-1",
|
||||
"settings": {
|
||||
"OTEL_SDK_DISABLED": "false",
|
||||
"OTEL_TRACE_RATIO": "1",
|
||||
"OTEL_METRIC_EXPORT_INTERVAL": "10000",
|
||||
"COST_EXPERIMENT": "false"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "/mtusi2026lab6-api-2",
|
||||
"settings": {
|
||||
"OTEL_SDK_DISABLED": "false",
|
||||
"OTEL_TRACE_RATIO": "1",
|
||||
"OTEL_METRIC_EXPORT_INTERVAL": "10000",
|
||||
"COST_EXPERIMENT": "false"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "/mtusi2026lab6-relay-1",
|
||||
"settings": {
|
||||
"OTEL_SDK_DISABLED": "false",
|
||||
"OTEL_TRACE_RATIO": "1",
|
||||
"OTEL_METRIC_EXPORT_INTERVAL": "10000",
|
||||
"COST_EXPERIMENT": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "/mtusi2026lab6-worker-1",
|
||||
"settings": {
|
||||
"OTEL_SDK_DISABLED": "false",
|
||||
"OTEL_TRACE_RATIO": "1",
|
||||
"OTEL_METRIC_EXPORT_INTERVAL": "10000",
|
||||
"COST_EXPERIMENT": null
|
||||
}
|
||||
}
|
||||
],
|
||||
"collector_command": [
|
||||
"--config=/etc/otelcol/collector.yaml"
|
||||
],
|
||||
"result": "PASS"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
date: 2026-11-06T23:44:50Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ .venv/bin/python -c 'import sqlalchemy,alembic; from sqlalchemy import select,literal; from sqlalchemy.dialects import postgresql; print("SQLAlchemy",sqlalchemy.__version__,"Alembic",alembic.__version__); print(select(literal(1)).with_for_update(read=True,key_share=True).compile(dialect=postgresql.dialect()))'
|
||||
SQLAlchemy 2.0.45 Alembic 1.16.5
|
||||
SELECT %(param_1)s AS anon_1 FOR KEY SHARE
|
||||
exit_code: 0 elapsed_seconds: 0.182
|
||||
@@ -0,0 +1,8 @@
|
||||
date: 2026-11-06T23:45:11Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ 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:18086"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 130, "failed_attempts": 0, "first_recovery_seconds": 2.876}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
exit_code: 0 elapsed_seconds: 16.433
|
||||
@@ -0,0 +1,14 @@
|
||||
date: 2026-11-07T01:12:37Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ make check validate lint
|
||||
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 scripts/obs_cost_summary.py scripts/obs_cost.py scripts/obs_incidents.py scripts/obs_recovery.py scripts/capture_evidence.py alembic scripts/scaling.py tools scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py scripts/make_images.py scripts/pipeline_suite.py scripts/pipeline_evidence.py
|
||||
All checks passed!
|
||||
.venv/bin/ruff format --check src student-tests scripts/obs_cost_summary.py scripts/obs_cost.py scripts/obs_incidents.py scripts/obs_recovery.py scripts/capture_evidence.py alembic scripts/scaling.py tools scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py scripts/make_images.py scripts/pipeline_suite.py scripts/pipeline_evidence.py
|
||||
216 files already formatted
|
||||
.venv/bin/ty check src student-tests alembic
|
||||
All checks passed!
|
||||
exit_code: 0 elapsed_seconds: 0.763
|
||||
@@ -0,0 +1,6 @@
|
||||
date: 2026-11-07T01:11:54Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ make test
|
||||
python3 tests/smoke.py --base-url "http://127.0.0.1:18086"
|
||||
PASS: lab6 public API scenario; infrastructure and grading evidence remain separate.
|
||||
exit_code: 0 elapsed_seconds: 1.813
|
||||
@@ -0,0 +1,22 @@
|
||||
[
|
||||
{
|
||||
"severity": "minor",
|
||||
"file": "scripts/limits.py:33; .github/workflows/application.yml:85",
|
||||
"problem": "Inherited service allowlists omit OTel/helper services. Runtime limits checked independently in evidence/grade3/runtime.json; helper audit remains incompatible. Late-forward audit: evidence/forward-published/runtime.json confirms current container limits independently."
|
||||
},
|
||||
{
|
||||
"severity": "minor",
|
||||
"file": "infra/prometheus/rules/messenger.alerts.yml",
|
||||
"problem": "API error-rate SLI excludes HAProxy-generated 503 and can miss the first burst of a new counter series. Full PostgreSQL pause did not fire (database-incident.txt); sustained SQL-lock incident is verified separately. Late-forward SQL-lock alert firing/resolved: evidence/forward-published/incident-database.txt. No alert rules changed."
|
||||
},
|
||||
{
|
||||
"severity": "minor",
|
||||
"file": "infra/otel/collector.yaml; compose.yaml",
|
||||
"problem": "Collector reached 252.7 MiB / 256 MiB (98.7%) during storage outage without observed OOM; memory headroom is small (storage-incident.txt). Configuration unchanged, evidence/forward-published/preserved-mechanisms.json; no claim of a new storage-outage run."
|
||||
},
|
||||
{
|
||||
"severity": "minor",
|
||||
"file": "evidence/track5/comparison.svg; evidence/track5/*.txt; openspec/specs/lab6-observability-cost/spec.md; evidence/forward-published/cost/comparison.svg; evidence/forward-published/*.txt",
|
||||
"problem": "git show --check reports trailing whitespace in generated SVG/raw command output and a final blank line in generated OpenSpec. This cosmetic check did not pass; make lint passed. Raw output preserved without reformatting. Current evidence has the same cosmetic class; actual result retained in evidence/forward-published/whitespace-check.txt. No source formatting failure."
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,52 @@
|
||||
date: 2026-11-06T23:41:45Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ sh -c '
|
||||
set -eu
|
||||
export API_IMAGE=mtusi-messenger:mtusi2026lab6
|
||||
dc() { docker compose -p hlpipe-lab6-forward-lb -f student-tests/tools/lb_errors/compose.yaml "$@"; }
|
||||
trap "dc down" EXIT
|
||||
dc up -d --wait api lb
|
||||
dc run --rm probe 502
|
||||
dc run --rm probe 504
|
||||
dc stop api
|
||||
dc run --rm probe 503
|
||||
'
|
||||
Network hlpipe-lab6-forward-lb_default Creating
|
||||
Network hlpipe-lab6-forward-lb_default Created
|
||||
Container hlpipe-lab6-forward-lb-api-1 Creating
|
||||
Container hlpipe-lab6-forward-lb-lb-1 Creating
|
||||
Container hlpipe-lab6-forward-lb-api-1 Created
|
||||
Container hlpipe-lab6-forward-lb-lb-1 Created
|
||||
Container hlpipe-lab6-forward-lb-api-1 Starting
|
||||
Container hlpipe-lab6-forward-lb-lb-1 Starting
|
||||
Container hlpipe-lab6-forward-lb-api-1 Started
|
||||
Container hlpipe-lab6-forward-lb-lb-1 Started
|
||||
Container hlpipe-lab6-forward-lb-api-1 Waiting
|
||||
Container hlpipe-lab6-forward-lb-lb-1 Waiting
|
||||
Container hlpipe-lab6-forward-lb-lb-1 Healthy
|
||||
Container hlpipe-lab6-forward-lb-api-1 Healthy
|
||||
{"status": 502, "request_id": "a\"b", "json_valid": true, "echo_matches": true, "seconds": 0.001}
|
||||
{"status": 502, "request_id": "a\\b", "json_valid": true, "echo_matches": true, "seconds": 0.001}
|
||||
{"status": 502, "request_id": "a\tb", "json_valid": true, "echo_matches": true, "seconds": 0.001}
|
||||
{"status": 502, "request_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "json_valid": true, "echo_matches": true, "seconds": 0.001}
|
||||
{"status": 504, "request_id": "a\"b", "json_valid": true, "echo_matches": true, "seconds": 10.012}
|
||||
{"status": 504, "request_id": "a\\b", "json_valid": true, "echo_matches": true, "seconds": 10.006}
|
||||
{"status": 504, "request_id": "a\tb", "json_valid": true, "echo_matches": true, "seconds": 10.012}
|
||||
{"status": 504, "request_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "json_valid": true, "echo_matches": true, "seconds": 10.005}
|
||||
Container hlpipe-lab6-forward-lb-api-1 Stopping
|
||||
Container hlpipe-lab6-forward-lb-api-1 Stopped
|
||||
{"status": 503, "request_id": "a\"b", "json_valid": true, "echo_matches": true, "seconds": 0.004}
|
||||
{"status": 503, "request_id": "a\\b", "json_valid": true, "echo_matches": true, "seconds": 0.0}
|
||||
{"status": 503, "request_id": "a\tb", "json_valid": true, "echo_matches": true, "seconds": 0.0}
|
||||
{"status": 503, "request_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "json_valid": true, "echo_matches": true, "seconds": 0.0}
|
||||
Container hlpipe-lab6-forward-lb-api-1 Stopping
|
||||
Container hlpipe-lab6-forward-lb-lb-1 Stopping
|
||||
Container hlpipe-lab6-forward-lb-api-1 Stopped
|
||||
Container hlpipe-lab6-forward-lb-api-1 Removing
|
||||
Container hlpipe-lab6-forward-lb-api-1 Removed
|
||||
Container hlpipe-lab6-forward-lb-lb-1 Stopped
|
||||
Container hlpipe-lab6-forward-lb-lb-1 Removing
|
||||
Container hlpipe-lab6-forward-lb-lb-1 Removed
|
||||
Network hlpipe-lab6-forward-lb_default Removing
|
||||
Network hlpipe-lab6-forward-lb_default Removed
|
||||
exit_code: 0 elapsed_seconds: 56.915
|
||||
@@ -0,0 +1,570 @@
|
||||
date: 2026-11-06T23:46:44Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/obs_incidents.py chain
|
||||
{
|
||||
"started": "2026-11-06T23:46:44+00:00",
|
||||
"finished": "2026-11-06T23:46:51+00:00",
|
||||
"result": "PASS",
|
||||
"scenario": "chain",
|
||||
"observations": {
|
||||
"upload_request_id": "353d6004-0fce-4307-b74f-3e1330e099f1",
|
||||
"trace_id": "2a788dd8fe3bdba6c2b00ff3c6578b34",
|
||||
"retry": false,
|
||||
"outcomes": [
|
||||
"done"
|
||||
],
|
||||
"spans": [
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "POST /api/v1/chats/{chat_id}/attachments",
|
||||
"kind": "SPAN_KIND_SERVER",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "1KnDTB7ilNc=",
|
||||
"parent_span_id": null,
|
||||
"duration_ms": 12.268,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "kOTXX/pL+PI=",
|
||||
"parent_span_id": "1KnDTB7ilNc=",
|
||||
"duration_ms": 0.111,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": ";",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "N7KwpItUcOg=",
|
||||
"parent_span_id": "1KnDTB7ilNc=",
|
||||
"duration_ms": 0.063,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "ROLLBACK;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "ExH/3uFnT+c=",
|
||||
"parent_span_id": "1KnDTB7ilNc=",
|
||||
"duration_ms": 0.049,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "6r9mViaW30k=",
|
||||
"parent_span_id": "1KnDTB7ilNc=",
|
||||
"duration_ms": 0.059,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "VV9EDONJaKo=",
|
||||
"parent_span_id": "1KnDTB7ilNc=",
|
||||
"duration_ms": 0.176,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "ROLLBACK;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "LGXb7KbUBKk=",
|
||||
"parent_span_id": "1KnDTB7ilNc=",
|
||||
"duration_ms": 0.054,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "cY2vJIoHh+I=",
|
||||
"parent_span_id": "1KnDTB7ilNc=",
|
||||
"duration_ms": 0.058,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": ";",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "4WNnApqEnW4=",
|
||||
"parent_span_id": "1KnDTB7ilNc=",
|
||||
"duration_ms": 0.046,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "ROLLBACK;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "afET0pqdh0w=",
|
||||
"parent_span_id": "1KnDTB7ilNc=",
|
||||
"duration_ms": 0.042,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "qqkEFWjNMRc=",
|
||||
"parent_span_id": "1KnDTB7ilNc=",
|
||||
"duration_ms": 0.044,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "B2NutixhjjM=",
|
||||
"parent_span_id": "1KnDTB7ilNc=",
|
||||
"duration_ms": 0.185,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "COMMIT;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "iXFIfBn80Z4=",
|
||||
"parent_span_id": "1KnDTB7ilNc=",
|
||||
"duration_ms": 0.222,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "ClGR/8bvx7s=",
|
||||
"parent_span_id": "1KnDTB7ilNc=",
|
||||
"duration_ms": 0.091,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": ";",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "KHHQiGtugf8=",
|
||||
"parent_span_id": "1KnDTB7ilNc=",
|
||||
"duration_ms": 0.055,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "ROLLBACK;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "h6ioIL28mmE=",
|
||||
"parent_span_id": "1KnDTB7ilNc=",
|
||||
"duration_ms": 0.062,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "d1s9gYOAjTY=",
|
||||
"parent_span_id": "1KnDTB7ilNc=",
|
||||
"duration_ms": 0.044,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "Z73gIsACvyk=",
|
||||
"parent_span_id": "1KnDTB7ilNc=",
|
||||
"duration_ms": 0.226,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "ZU4nVi/O270=",
|
||||
"parent_span_id": "1KnDTB7ilNc=",
|
||||
"duration_ms": 0.155,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "2xriCNx45Ss=",
|
||||
"parent_span_id": "1KnDTB7ilNc=",
|
||||
"duration_ms": 0.142,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "7clq4wwABWo=",
|
||||
"parent_span_id": "1KnDTB7ilNc=",
|
||||
"duration_ms": 0.117,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "COMMIT;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "HCWi0TAraeg=",
|
||||
"parent_span_id": "1KnDTB7ilNc=",
|
||||
"duration_ms": 0.192,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "S3 put_object",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "eqo0RZhx2r4=",
|
||||
"parent_span_id": "1KnDTB7ilNc=",
|
||||
"duration_ms": 5.315,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-relay",
|
||||
"name": "attachments.attachment.process.v1 create",
|
||||
"kind": "SPAN_KIND_PRODUCER",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "DdVW16xtPjM=",
|
||||
"parent_span_id": "1KnDTB7ilNc=",
|
||||
"duration_ms": 0.033,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-relay",
|
||||
"name": "attachments.attachment.process.v1 publish",
|
||||
"kind": "SPAN_KIND_PRODUCER",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "T6EWXaDDQRY=",
|
||||
"parent_span_id": "DdVW16xtPjM=",
|
||||
"duration_ms": 4.356,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "attachments.attachment.process.v1 process",
|
||||
"kind": "SPAN_KIND_CONSUMER",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "IJrEIXz5vQU=",
|
||||
"parent_span_id": "DdVW16xtPjM=",
|
||||
"duration_ms": 42.854,
|
||||
"attempt": "1"
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "6yaGj8OjHpo=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 0.284,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": ";",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "wvYv52Ceymw=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 0.195,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "ROLLBACK;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "IXF/7Dnea8I=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 0.17,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "ZFDgbFUJ38s=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 0.164,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "IiJRka3nsOk=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 0.55,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "Ql3IoVPxbuk=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 0.385,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "dZVxc0YqKd4=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 0.207,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "z1F9TtIQdcA=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 0.185,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "COMMIT;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "eMgOi4KYRuM=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 0.571,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "2qFq/3351v8=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 0.173,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": ";",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "f3lKJAgUqPM=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 0.142,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "ROLLBACK;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "LN76EV7HKBo=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 0.133,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "jylzdd/SomQ=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 0.132,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "ZrNx+53YHDg=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 0.282,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "COMMIT;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "C3gPIERIt/0=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 0.45,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "o//TrE5/tR8=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 0.095,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": ";",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "eU7D/wTzm3s=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 0.082,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "ROLLBACK;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "hbXwj1bqqr0=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 0.066,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "7WW7O9uzEag=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 0.081,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "R5CuUJ4DKx4=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 0.139,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "BscD3XrQ6IM=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 0.236,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "yJ5825EbSlY=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 0.177,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "ctFlHkHK3w4=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 0.131,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "COMMIT;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "miaP4WbLSsw=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 0.2,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "S3 get_object",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "51Ks1BHIgsY=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 3.52,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "S3 copy_object",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "xKXCi8QQTjI=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 6.112,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "S3 put_object",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "7yfvSxRV3Io=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 3.501,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "S3 put_object",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "qW0rRHnhoqo=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 3.845,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "S3 put_object",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "8LvmSmoKWfM=",
|
||||
"parent_span_id": "IJrEIXz5vQU=",
|
||||
"duration_ms": 3.201,
|
||||
"attempt": null
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
exit_code: 0 elapsed_seconds: 7.279
|
||||
@@ -0,0 +1,730 @@
|
||||
date: 2026-11-06T23:48:04Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/obs_incidents.py database
|
||||
{
|
||||
"started": "2026-11-06T23:48:04+00:00",
|
||||
"finished": "2026-11-06T23:49:55+00:00",
|
||||
"result": "PASS",
|
||||
"scenario": "database",
|
||||
"observations": {
|
||||
"paused": "2026-11-06T23:48:16+00:00",
|
||||
"restored": "2026-11-06T23:48:59+00:00",
|
||||
"requests": [
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-10",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-11",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-12",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-13",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-14",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-15",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-16",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-17",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-18",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-19",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-20",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-21",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-22",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-23",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-24",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-25",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-26",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-27",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-28",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-29",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-30",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-31",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-32",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-33",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-34",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-35",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-36",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-37",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-38",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-39",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-40",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-41",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-42",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-43",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-44",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-45",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-46",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-47",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-48",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-49",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-50",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-51",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-52",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-53",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-54",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-55",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-56",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-57",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-58",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-59",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-60",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-61",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-62",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-63",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-64",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-65",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-66",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-67",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-68",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-69",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-70",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-71",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-72",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-73",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-74",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-75",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-76",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-77",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-78",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-79",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-80",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-81",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-82",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-83",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-84",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-85",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-86",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-87",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-88",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-89",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-90",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-91",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-92",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-93",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-94",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-95",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-96",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-97",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-98",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-99",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-100",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-101",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-102",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-103",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-104",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-105",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-106",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-107",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-108",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-109",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-110",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-111",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-112",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-113",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-114",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-115",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-116",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-117",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-118",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-119",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-120",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-121",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-122",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-123",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-124",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-125",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-126",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-127",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-128",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-129",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-130",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-131",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-132",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-133",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-134",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-135",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-136",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-137",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-138",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-139",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-140",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-141",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-142",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-143",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-144",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-145",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-146",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-147",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-148",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-149",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-150",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-151",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-152",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-153",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-154",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-155",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-156",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-157",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-158",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-159",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-160",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-161",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-162",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-163",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-164",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-165",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-166",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-167",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-168",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-169",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-170",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-171",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-172",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-173",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-174",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-175",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-176",
|
||||
"status": 503
|
||||
},
|
||||
{
|
||||
"request_id": "db-incident-8b5642602908-177",
|
||||
"status": 503
|
||||
}
|
||||
],
|
||||
"signals": {
|
||||
"error_ratio": 0.9181136211080942,
|
||||
"pool_waiting": 0.0
|
||||
},
|
||||
"firing": {
|
||||
"utc": "2026-11-06T23:48:59+00:00",
|
||||
"state": "firing",
|
||||
"alerts": [
|
||||
{
|
||||
"labels": {
|
||||
"alertname": "MessengerHighErrorRate",
|
||||
"severity": "warning"
|
||||
},
|
||||
"annotations": {
|
||||
"description": "Availability target is 99% over 1 hour; health and client 4xx are excluded from failures.",
|
||||
"runbook": "infra/prometheus/runbooks.md#messengerhigherrorrate",
|
||||
"summary": "More than 5% business HTTP 5xx over 1 minute"
|
||||
},
|
||||
"state": "firing",
|
||||
"activeAt": "2026-11-06T23:48:43.389340978Z",
|
||||
"value": "9.181136211080942e-01"
|
||||
}
|
||||
]
|
||||
},
|
||||
"resolved": {
|
||||
"utc": "2026-11-06T23:49:54+00:00",
|
||||
"state": "resolved",
|
||||
"alerts": []
|
||||
},
|
||||
"dependency_traces": [
|
||||
{
|
||||
"trace_id": "1cee5df1144b8c4eb2b801d449bfc0d4",
|
||||
"db_errors": [
|
||||
{
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_ERROR",
|
||||
"duration_ms": 2002.866
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
exit_code: 0 elapsed_seconds: 111.140
|
||||
@@ -0,0 +1,881 @@
|
||||
date: 2026-11-06T23:46:51Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/obs_incidents.py retry
|
||||
{
|
||||
"started": "2026-11-06T23:46:51+00:00",
|
||||
"finished": "2026-11-06T23:47:04+00:00",
|
||||
"result": "PASS",
|
||||
"scenario": "retry",
|
||||
"observations": {
|
||||
"upload_request_id": "6d25dbc3-0394-4733-8ecb-63c1ac721847",
|
||||
"trace_id": "933831a64efb8a5deb62b2669afc9698",
|
||||
"retry": true,
|
||||
"outcomes": [
|
||||
"retry_scheduled",
|
||||
"done"
|
||||
],
|
||||
"spans": [
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "POST /api/v1/chats/{chat_id}/attachments",
|
||||
"kind": "SPAN_KIND_SERVER",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "Debvq4Digx0=",
|
||||
"parent_span_id": null,
|
||||
"duration_ms": 21.315,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "Waullyq3N34=",
|
||||
"parent_span_id": "Debvq4Digx0=",
|
||||
"duration_ms": 0.148,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": ";",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "K0kakII6xo4=",
|
||||
"parent_span_id": "Debvq4Digx0=",
|
||||
"duration_ms": 0.094,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "ROLLBACK;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "AiKsaFLbKb8=",
|
||||
"parent_span_id": "Debvq4Digx0=",
|
||||
"duration_ms": 0.088,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "VrrcbEJGSCc=",
|
||||
"parent_span_id": "Debvq4Digx0=",
|
||||
"duration_ms": 0.076,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "AEIu7yg0sn0=",
|
||||
"parent_span_id": "Debvq4Digx0=",
|
||||
"duration_ms": 0.247,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "ROLLBACK;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "Wng5k5TYN4E=",
|
||||
"parent_span_id": "Debvq4Digx0=",
|
||||
"duration_ms": 0.118,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "sQsK2QPQPJU=",
|
||||
"parent_span_id": "Debvq4Digx0=",
|
||||
"duration_ms": 0.106,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": ";",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "7asDsVS6+xs=",
|
||||
"parent_span_id": "Debvq4Digx0=",
|
||||
"duration_ms": 0.089,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "ROLLBACK;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "EdJsPxFHnjM=",
|
||||
"parent_span_id": "Debvq4Digx0=",
|
||||
"duration_ms": 0.092,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "PcoY45akFEQ=",
|
||||
"parent_span_id": "Debvq4Digx0=",
|
||||
"duration_ms": 0.072,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "CdbrJRYuFnE=",
|
||||
"parent_span_id": "Debvq4Digx0=",
|
||||
"duration_ms": 0.438,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "COMMIT;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "DBBcI9Ulv/M=",
|
||||
"parent_span_id": "Debvq4Digx0=",
|
||||
"duration_ms": 0.317,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "VtOmph6FOBI=",
|
||||
"parent_span_id": "Debvq4Digx0=",
|
||||
"duration_ms": 0.104,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": ";",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "DPXHG5HHGa8=",
|
||||
"parent_span_id": "Debvq4Digx0=",
|
||||
"duration_ms": 0.068,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "ROLLBACK;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "1BvLOYIb1uQ=",
|
||||
"parent_span_id": "Debvq4Digx0=",
|
||||
"duration_ms": 0.074,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "WUjMiYKCT8Q=",
|
||||
"parent_span_id": "Debvq4Digx0=",
|
||||
"duration_ms": 0.069,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "hyJX1jww6uc=",
|
||||
"parent_span_id": "Debvq4Digx0=",
|
||||
"duration_ms": 0.305,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "48fAH8bMuSA=",
|
||||
"parent_span_id": "Debvq4Digx0=",
|
||||
"duration_ms": 0.294,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "bT2xInlvctI=",
|
||||
"parent_span_id": "Debvq4Digx0=",
|
||||
"duration_ms": 0.284,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "k/ENR5nG9/g=",
|
||||
"parent_span_id": "Debvq4Digx0=",
|
||||
"duration_ms": 0.153,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "COMMIT;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "t3n5uTl2PlM=",
|
||||
"parent_span_id": "Debvq4Digx0=",
|
||||
"duration_ms": 0.362,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "S3 put_object",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "0U2pHU/RDjU=",
|
||||
"parent_span_id": "Debvq4Digx0=",
|
||||
"duration_ms": 5.47,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-relay",
|
||||
"name": "attachments.attachment.process.v1 create",
|
||||
"kind": "SPAN_KIND_PRODUCER",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "bwRa62vgs2k=",
|
||||
"parent_span_id": "Debvq4Digx0=",
|
||||
"duration_ms": 0.008,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-relay",
|
||||
"name": "attachments.attachment.process.v1 publish",
|
||||
"kind": "SPAN_KIND_PRODUCER",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "KBBn1geg3IA=",
|
||||
"parent_span_id": "bwRa62vgs2k=",
|
||||
"duration_ms": 1.818,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "attachments.attachment.process.v1 process",
|
||||
"kind": "SPAN_KIND_CONSUMER",
|
||||
"status": "STATUS_CODE_ERROR",
|
||||
"span_id": "BfeHo65w9oE=",
|
||||
"parent_span_id": "bwRa62vgs2k=",
|
||||
"duration_ms": 1042.638,
|
||||
"attempt": "1"
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "bukxkY2R92E=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.116,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "select",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "FcFtes5C2S0=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.122,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "select",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "VnuhpEWn90A=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.109,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "show",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "c4vU6fUOroM=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.087,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "show",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "vs4kP7fYreM=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.082,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "ROLLBACK;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "QRTMZ3eRZuQ=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.087,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "QDbAA2U75Jw=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.086,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "i6m5Do6EEvo=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.562,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "dFJa0q3l5c4=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.545,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "H3ogXCCzG0A=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.211,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "RaAOGgl3WQk=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.167,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "COMMIT;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "/r2s8Kv3oxI=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.365,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "kAk9rtMbpVM=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.088,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": ";",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "9IR9tpNfKLc=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.167,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "ROLLBACK;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "M9S+7N7xuvQ=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.072,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "AFBHKda3lQU=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.086,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "fmP3rOGz/6Y=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.149,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "COMMIT;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "4bmV8TnBwkU=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.228,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "VlQ2TBIQJ18=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.284,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": ";",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "g+FdHSn48nA=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.229,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "ROLLBACK;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "IcDc7gRMQrI=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.205,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "pUxoqQhJ7e8=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.223,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "PGfPW8e8aUc=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.599,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "O8F+/YbnorM=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.438,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "G3uEKRm668s=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.282,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "N9g279eP5uk=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.596,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "COMMIT;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "AnDJGXjW+eE=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 1.173,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "UkN0hQ86NWs=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 0.192,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": ";",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "7uLkyTzXADQ=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 0.141,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "ROLLBACK;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "8oCbHKZgLgA=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 0.129,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "rEsJdw/1gEA=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 0.107,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "6rP7QLkb1I8=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 0.342,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "fXmqpv3ea4A=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 0.243,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "4n80obWEpfo=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 0.153,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "w060gr0ejnc=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 0.126,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "COMMIT;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "BK1ZrQHnpFA=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 0.291,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "10uHmCMpWZg=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 0.08,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": ";",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "FeXJXVagnQk=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 0.07,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "ROLLBACK;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "Zy5J9SneT4I=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 0.061,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "OgHgDqHQkAA=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 0.069,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "UGk4+2mR1SY=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 0.147,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "COMMIT;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "JHlQA/pOcPQ=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 0.204,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "S3 get_object",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_ERROR",
|
||||
"span_id": "+ZFBPxYYZB8=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 979.107,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-relay",
|
||||
"name": "attachments.attachment.process.v1 create",
|
||||
"kind": "SPAN_KIND_PRODUCER",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "ElpYDj40+k0=",
|
||||
"parent_span_id": "BfeHo65w9oE=",
|
||||
"duration_ms": 0.02,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-relay",
|
||||
"name": "attachments.attachment.process.v1 publish",
|
||||
"kind": "SPAN_KIND_PRODUCER",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "orqs4nj6zdU=",
|
||||
"parent_span_id": "ElpYDj40+k0=",
|
||||
"duration_ms": 3.277,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "attachments.attachment.process.v1 process",
|
||||
"kind": "SPAN_KIND_CONSUMER",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "8xpUCowkZ+s=",
|
||||
"parent_span_id": "ElpYDj40+k0=",
|
||||
"duration_ms": 2490.326,
|
||||
"attempt": "2"
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "S3 get_object",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "zhEmRuqzYl4=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 1755.064,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "S3 copy_object",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "uvNwJ0jDn4g=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 6.867,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "S3 put_object",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "gkl/eAs8x4o=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 3.521,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "S3 put_object",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "wCX2paxCccQ=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 2.763,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "S3 put_object",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "8UCt7bEeO+Q=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 2.431,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "VMB1TYgfTdk=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 0.134,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": ";",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "UHP5U7dMydE=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 0.063,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "ROLLBACK;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "GSoLKxyZ0WA=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 0.055,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "m+xW8xOWVyQ=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 0.06,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "c+H4LJWBCek=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 0.19,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "AYRYePBZsqE=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 0.343,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "XUj8IqOu4fY=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 0.34,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "f1ZCF+vhHKg=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 0.106,
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "COMMIT;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"span_id": "EGs4gQZnt0g=",
|
||||
"parent_span_id": "8xpUCowkZ+s=",
|
||||
"duration_ms": 0.219,
|
||||
"attempt": null
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
exit_code: 0 elapsed_seconds: 13.425
|
||||
@@ -0,0 +1,45 @@
|
||||
date: 2026-11-06T23:47:04Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/obs_incidents.py worker
|
||||
{
|
||||
"started": "2026-11-06T23:47:04+00:00",
|
||||
"finished": "2026-11-06T23:48:04+00:00",
|
||||
"result": "PASS",
|
||||
"scenario": "worker",
|
||||
"observations": {
|
||||
"stopped": "2026-11-06T23:47:05+00:00",
|
||||
"restored": "2026-11-06T23:47:52+00:00",
|
||||
"jobs": 8,
|
||||
"backlog": {
|
||||
"depth": 8.0,
|
||||
"age_seconds": 34.470043
|
||||
},
|
||||
"firing": {
|
||||
"utc": "2026-11-06T23:47:49+00:00",
|
||||
"state": "firing",
|
||||
"alerts": [
|
||||
{
|
||||
"labels": {
|
||||
"alertname": "MessengerQueueLag",
|
||||
"severity": "warning"
|
||||
},
|
||||
"annotations": {
|
||||
"description": "Target is 95% ready within 30 seconds over 1 hour; depth includes retry and leased work.",
|
||||
"runbook": "infra/prometheus/runbooks.md#messengerqueuelag",
|
||||
"summary": "Durable attachment backlog has waited more than 15 seconds"
|
||||
},
|
||||
"state": "firing",
|
||||
"activeAt": "2026-11-06T23:47:33.389340978Z",
|
||||
"value": "3.4470043e+01"
|
||||
}
|
||||
]
|
||||
},
|
||||
"resolved": {
|
||||
"utc": "2026-11-06T23:48:04+00:00",
|
||||
"state": "resolved",
|
||||
"alerts": []
|
||||
},
|
||||
"depth_after": 0.0
|
||||
}
|
||||
}
|
||||
exit_code: 0 elapsed_seconds: 59.808
|
||||
@@ -0,0 +1,154 @@
|
||||
date: 2026-11-06T23:37:24Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ .venv/bin/python student-tests/tools/forward_network.py
|
||||
{
|
||||
"checks": [
|
||||
{
|
||||
"case": "non_ascii_basic",
|
||||
"raw_hex": "42617369632080",
|
||||
"status": 401,
|
||||
"instance": "88b81a690916"
|
||||
},
|
||||
{
|
||||
"case": "non_ascii_basic",
|
||||
"raw_hex": "426173696320ff",
|
||||
"status": 401,
|
||||
"instance": "cbf0e0c086a8"
|
||||
},
|
||||
{
|
||||
"case": "non_ascii_basic",
|
||||
"raw_hex": "426173696320c3a9",
|
||||
"status": 401,
|
||||
"instance": "88b81a690916"
|
||||
},
|
||||
{
|
||||
"case": "non_ascii_basic",
|
||||
"raw_hex": "42617369632059577870593255366332566a636d5630ff",
|
||||
"status": 401,
|
||||
"instance": "cbf0e0c086a8"
|
||||
},
|
||||
{
|
||||
"case": "nul_basic_display_title",
|
||||
"position": "'\\x00'",
|
||||
"status": [
|
||||
401,
|
||||
400,
|
||||
201,
|
||||
400
|
||||
],
|
||||
"instance": "88b81a690916"
|
||||
},
|
||||
{
|
||||
"case": "nul_basic_display_title",
|
||||
"position": "'\\x00abc'",
|
||||
"status": [
|
||||
401,
|
||||
400,
|
||||
201,
|
||||
400
|
||||
],
|
||||
"instance": "cbf0e0c086a8"
|
||||
},
|
||||
{
|
||||
"case": "nul_basic_display_title",
|
||||
"position": "'abc\\x00def'",
|
||||
"status": [
|
||||
401,
|
||||
400,
|
||||
201,
|
||||
400
|
||||
],
|
||||
"instance": "88b81a690916"
|
||||
},
|
||||
{
|
||||
"case": "nul_basic_display_title",
|
||||
"position": "'abc\\x00'",
|
||||
"status": [
|
||||
401,
|
||||
400,
|
||||
201,
|
||||
400
|
||||
],
|
||||
"instance": "cbf0e0c086a8"
|
||||
},
|
||||
{
|
||||
"case": "nul_message_corrected_retry",
|
||||
"position": "'\\x00'",
|
||||
"instances": [
|
||||
"cbf0e0c086a8",
|
||||
"88b81a690916"
|
||||
],
|
||||
"status": [
|
||||
400,
|
||||
201,
|
||||
201
|
||||
],
|
||||
"copies": 1
|
||||
},
|
||||
{
|
||||
"case": "nul_message_corrected_retry",
|
||||
"position": "'\\x00abc'",
|
||||
"instances": [
|
||||
"88b81a690916",
|
||||
"cbf0e0c086a8"
|
||||
],
|
||||
"status": [
|
||||
400,
|
||||
201,
|
||||
201
|
||||
],
|
||||
"copies": 1
|
||||
},
|
||||
{
|
||||
"case": "nul_message_corrected_retry",
|
||||
"position": "'abc\\x00def'",
|
||||
"instances": [
|
||||
"cbf0e0c086a8",
|
||||
"88b81a690916"
|
||||
],
|
||||
"status": [
|
||||
400,
|
||||
201,
|
||||
201
|
||||
],
|
||||
"copies": 1
|
||||
},
|
||||
{
|
||||
"case": "nul_message_corrected_retry",
|
||||
"position": "'abc\\x00'",
|
||||
"instances": [
|
||||
"88b81a690916",
|
||||
"cbf0e0c086a8"
|
||||
],
|
||||
"status": [
|
||||
400,
|
||||
201,
|
||||
201
|
||||
],
|
||||
"copies": 1
|
||||
},
|
||||
{
|
||||
"case": "nul_access",
|
||||
"status": [
|
||||
404,
|
||||
404
|
||||
]
|
||||
},
|
||||
{
|
||||
"case": "logout_across_replicas",
|
||||
"status": [
|
||||
204,
|
||||
401,
|
||||
401,
|
||||
401,
|
||||
401
|
||||
]
|
||||
}
|
||||
],
|
||||
"instances": [
|
||||
"88b81a690916",
|
||||
"cbf0e0c086a8"
|
||||
],
|
||||
"pass": true
|
||||
}
|
||||
exit_code: 0 elapsed_seconds: 0.326
|
||||
@@ -0,0 +1,19 @@
|
||||
date: 2026-11-06T23:46:04Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ make obs-validate
|
||||
sh scripts/obs-validate.sh
|
||||
otelcol-contrib validate collector.yaml: OK
|
||||
Checking /etc/prometheus/prometheus.yml
|
||||
SUCCESS: 2 rule files found
|
||||
SUCCESS: /etc/prometheus/prometheus.yml is valid prometheus config file syntax
|
||||
|
||||
Checking /etc/prometheus/rules/messenger.alerts.yml
|
||||
SUCCESS: 5 rules found
|
||||
|
||||
Checking /etc/prometheus/rules/messenger.recording.yml
|
||||
SUCCESS: 8 rules found
|
||||
|
||||
loki -verify-config: OK
|
||||
tempo -config.verify: OK
|
||||
grafana dashboards: valid JSON with uid and panels
|
||||
exit_code: 0 elapsed_seconds: 1.003
|
||||
@@ -0,0 +1,43 @@
|
||||
date: 2026-11-07T01:12:53Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ openspec archive forward-lab5-published-fixes --yes
|
||||
|
||||
Proposal warnings in proposal.md (non-blocking):
|
||||
⚠ Consider splitting changes with more than 10 deltas
|
||||
Task status: ✓ Complete
|
||||
|
||||
Specs to update:
|
||||
lab1-messenger-chats: update
|
||||
lab1-messenger-history: update
|
||||
lab1-messenger-identity: update
|
||||
lab2-auth-sessions: update
|
||||
lab2-session-cache: update
|
||||
lab3-load-balancing: update
|
||||
lab4-attachments: update
|
||||
lab5-image-variants: update
|
||||
lab5-job-delivery: update
|
||||
lab5-job-recovery: update
|
||||
Applying changes to openspec/specs/lab1-messenger-chats/spec.md:
|
||||
~ 1 modified
|
||||
Applying changes to openspec/specs/lab1-messenger-history/spec.md:
|
||||
~ 1 modified
|
||||
Applying changes to openspec/specs/lab1-messenger-identity/spec.md:
|
||||
~ 1 modified
|
||||
Applying changes to openspec/specs/lab2-auth-sessions/spec.md:
|
||||
~ 1 modified
|
||||
Applying changes to openspec/specs/lab2-session-cache/spec.md:
|
||||
~ 1 modified
|
||||
Applying changes to openspec/specs/lab3-load-balancing/spec.md:
|
||||
~ 1 modified
|
||||
Applying changes to openspec/specs/lab4-attachments/spec.md:
|
||||
~ 1 modified
|
||||
Applying changes to openspec/specs/lab5-image-variants/spec.md:
|
||||
~ 2 modified
|
||||
Applying changes to openspec/specs/lab5-job-delivery/spec.md:
|
||||
~ 1 modified
|
||||
Applying changes to openspec/specs/lab5-job-recovery/spec.md:
|
||||
~ 1 modified
|
||||
Totals: + 0, ~ 11, - 0, → 0
|
||||
Specs updated successfully.
|
||||
Change 'forward-lab5-published-fixes' archived as '2026-11-07-forward-lab5-published-fixes'.
|
||||
exit_code: 0 elapsed_seconds: 0.799
|
||||
@@ -0,0 +1,32 @@
|
||||
date: 2026-11-07T01:12:54Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ openspec validate --all --strict
|
||||
- Validating...
|
||||
✓ 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/lab4-attachments
|
||||
✓ spec/lab4-object-storage
|
||||
✓ spec/lab4-storage-reconciler
|
||||
✓ spec/lab4-upload-resilience
|
||||
✓ spec/lab5-attachment-pipeline
|
||||
✓ spec/lab5-image-variants
|
||||
✓ spec/lab5-job-delivery
|
||||
✓ spec/lab5-job-recovery
|
||||
✓ spec/lab5-versioned-pipeline
|
||||
✓ spec/lab6-observability-cost
|
||||
✓ spec/lab6-observability-resilience
|
||||
✓ spec/lab6-service-telemetry
|
||||
✓ spec/lab6-telemetry-stack
|
||||
Totals: 26 passed, 0 failed (26 items)
|
||||
exit_code: 0 elapsed_seconds: 0.840
|
||||
@@ -0,0 +1,7 @@
|
||||
date: 2026-11-06T23:44:57Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ 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:18086"
|
||||
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_code: 0 elapsed_seconds: 14.386
|
||||
@@ -0,0 +1,396 @@
|
||||
{
|
||||
"suite": "lab5-pipeline-idempotency",
|
||||
"started_at": "2026-11-06T23:43:01.778840Z",
|
||||
"source_sha": "bc1d7aa7713858acb5d65b61d07e69a640f1ee97",
|
||||
"config": {
|
||||
"base_url": "http://127.0.0.1:18086",
|
||||
"level": 4,
|
||||
"only": "smoke_pipeline,worker_down_broker_restart,duplicate_after_ready,poison_image,s3_outage_recovers,retry_exhausted,crash_after_s3_before_commit,crash_after_commit_before_ack,malformed_message_dead_lettered",
|
||||
"expect_variants": "thumbnail,crop,optimized",
|
||||
"max_attempts": 5,
|
||||
"stall_seconds": 15.0,
|
||||
"compose": "docker compose",
|
||||
"compose_faults": "docker compose -f compose.yaml -f infra/compose.faults.yaml"
|
||||
},
|
||||
"invariants": [
|
||||
{
|
||||
"id": "terminal",
|
||||
"statement": "every 202 reaches its expected terminal state",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"accepted": 7
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "single_effect",
|
||||
"statement": "one variant set per (attachment_id, pipeline_version, variant)",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"rows": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "no_ready_rollback",
|
||||
"statement": "ready never returns to queued or processing",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"traced": 7
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "monotonic_publication",
|
||||
"statement": "published_version only moves forward",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"sampled": 4
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "bytes_match_metadata",
|
||||
"statement": "sha256, size and real dimensions match served bytes",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"verified": 6
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "bounded_attempts",
|
||||
"statement": "attempt <= JOB_MAX_ATTEMPTS",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"rows": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "no_orphans",
|
||||
"statement": "no pending outbox, messages, dead letters, staging, objects",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"queues": {
|
||||
"attachments.process": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"attachments.process.dlq": [
|
||||
1,
|
||||
0
|
||||
]
|
||||
},
|
||||
"s3_objects": 25,
|
||||
"scoped_attachments": 7
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "no_lost_202",
|
||||
"statement": "every 202 is present in PostgreSQL and the API",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"accepted": 7
|
||||
}
|
||||
}
|
||||
],
|
||||
"accepted_ids": [
|
||||
"01a1b33e-a321-7142-83b3-3fdee94a1e28",
|
||||
"01a1b33e-aa74-7790-8cd5-3fee8c57126d",
|
||||
"01a1b33e-f795-73b2-b69a-743288712b08",
|
||||
"01a1b33f-0b50-777a-9469-1535113a47a9",
|
||||
"01a1b33f-5692-76e5-8536-f28c4945ae13",
|
||||
"01a1b33f-a49c-7103-b67d-c29f1bd65c84",
|
||||
"01a1b33f-d382-774e-9583-d5cef2d30c38"
|
||||
],
|
||||
"scenarios": [
|
||||
{
|
||||
"name": "smoke_pipeline",
|
||||
"level": 3,
|
||||
"window": "upload, ready, variants match metadata",
|
||||
"seconds": 1.3,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b33e-a321-7142-83b3-3fdee94a1e28",
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "worker_down_broker_restart",
|
||||
"level": 3,
|
||||
"window": "worker down, API and broker restart",
|
||||
"seconds": 20.3,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b33e-aa74-7790-8cd5-3fee8c57126d",
|
||||
"timeline": [
|
||||
{
|
||||
"at": "2026-11-06T23:43:10.959629Z",
|
||||
"step": "worker stopped",
|
||||
"containers": [
|
||||
"mtusi2026lab6-worker-1 1751d02b9333 exited Exited (0) Less than a second ago"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": "2026-11-06T23:43:10.973606Z",
|
||||
"step": "upload 202 queued",
|
||||
"attachment_id": "01a1b33e-aa74-7790-8cd5-3fee8c57126d"
|
||||
},
|
||||
{
|
||||
"at": "2026-11-06T23:43:10.978342Z",
|
||||
"step": "content 409 while queued"
|
||||
},
|
||||
{
|
||||
"at": "2026-11-06T23:43:10.990681Z",
|
||||
"step": "message with attachment 201, other messages work",
|
||||
"message_id": "01a1b33e-aa83-71e1-aaff-3b25d41ca558"
|
||||
},
|
||||
{
|
||||
"at": "2026-11-06T23:43:15.525465Z",
|
||||
"step": "job is in the broker queue",
|
||||
"queues": {
|
||||
"attachments.process": [
|
||||
1,
|
||||
0
|
||||
],
|
||||
"attachments.process.dlq": [
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"at": "2026-11-06T23:43:21.703039Z",
|
||||
"step": "API replicas and relay restarted"
|
||||
},
|
||||
{
|
||||
"at": "2026-11-06T23:43:27.716415Z",
|
||||
"step": "broker restarted with its volume, job survived",
|
||||
"queues": {
|
||||
"attachments.process": [
|
||||
1,
|
||||
0
|
||||
],
|
||||
"attachments.process.dlq": [
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"at": "2026-11-06T23:43:30.530159Z",
|
||||
"step": "worker started"
|
||||
},
|
||||
{
|
||||
"at": "2026-11-06T23:43:30.703821Z",
|
||||
"step": "ready",
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "duplicate_after_ready",
|
||||
"level": 3,
|
||||
"window": "redelivery of a finished job",
|
||||
"seconds": 4.6,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b33e-f795-73b2-b69a-743288712b08",
|
||||
"events": [
|
||||
{
|
||||
"kind": "enqueued",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "done",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "duplicate_noop",
|
||||
"attempt": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "poison_image",
|
||||
"level": 3,
|
||||
"window": "permanent error without retries",
|
||||
"seconds": 0.0,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"rejected_by_api": 415
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "s3_outage_recovers",
|
||||
"level": 3,
|
||||
"window": "transient error with retry",
|
||||
"seconds": 15.9,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b33f-0b50-777a-9469-1535113a47a9",
|
||||
"jobs": [
|
||||
{
|
||||
"job_id": "01a1b33f-0b59-7414-89dc-2384926372d0",
|
||||
"pipeline_version": 1,
|
||||
"status": "done",
|
||||
"attempt": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "retry_exhausted",
|
||||
"level": 3,
|
||||
"window": "transient error until JOB_MAX_ATTEMPTS",
|
||||
"seconds": 20.0,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b33f-5692-76e5-8536-f28c4945ae13",
|
||||
"jobs": [
|
||||
{
|
||||
"job_id": "01a1b33f-569e-75f6-9488-c469cbd4d0f4",
|
||||
"pipeline_version": 1,
|
||||
"status": "failed",
|
||||
"attempt": 5
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_after_s3_before_commit",
|
||||
"level": 4,
|
||||
"window": "after S3 write, before COMMIT",
|
||||
"seconds": 11.9,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b33f-a49c-7103-b67d-c29f1bd65c84",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"status": "processing",
|
||||
"variant_rows": 0,
|
||||
"containers": [
|
||||
"mtusi2026lab6-worker-1 3382d464922e exited Exited (137) Less than a second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1b33f-a49c-7103-b67d-c29f1bd65c84/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1b33f-a49c-7103-b67d-c29f1bd65c84/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1b33f-a49c-7103-b67d-c29f1bd65c84/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_after_commit_before_ack",
|
||||
"level": 4,
|
||||
"window": "after COMMIT, before ack",
|
||||
"seconds": 12.7,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b33f-d382-774e-9583-d5cef2d30c38",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"status": "ready",
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1b33f-d382-774e-9583-d5cef2d30c38/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1b33f-d382-774e-9583-d5cef2d30c38/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1b33f-d382-774e-9583-d5cef2d30c38/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
],
|
||||
"queues": {
|
||||
"attachments.process": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"attachments.process.dlq": [
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
"containers": [
|
||||
"mtusi2026lab6-worker-1 efd5bb99e208 exited Exited (137) 1 second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1b33f-d382-774e-9583-d5cef2d30c38/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1b33f-d382-774e-9583-d5cef2d30c38/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1b33f-d382-774e-9583-d5cef2d30c38/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "malformed_message_dead_lettered",
|
||||
"level": 4,
|
||||
"window": "message that is not a job goes to the DLQ",
|
||||
"seconds": 5.9,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"dead_letters": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"result": "PASS",
|
||||
"finished_at": "2026-11-06T23:44:57.145369Z"
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
date: 2026-11-06T23:43:01Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/pipeline_suite.py --level 4 --only smoke_pipeline,worker_down_broker_restart,duplicate_after_ready,poison_image,s3_outage_recovers,retry_exhausted,crash_after_s3_before_commit,crash_after_commit_before_ack,malformed_message_dead_lettered --output evidence/forward-published/pipeline.json
|
||||
RUN smoke_pipeline
|
||||
PASS smoke_pipeline
|
||||
RUN worker_down_broker_restart
|
||||
PASS worker_down_broker_restart
|
||||
RUN duplicate_after_ready
|
||||
PASS duplicate_after_ready
|
||||
RUN poison_image
|
||||
PASS poison_image
|
||||
RUN s3_outage_recovers
|
||||
PASS s3_outage_recovers
|
||||
RUN retry_exhausted
|
||||
PASS retry_exhausted
|
||||
RUN crash_after_s3_before_commit
|
||||
PASS crash_after_s3_before_commit
|
||||
RUN crash_after_commit_before_ack
|
||||
PASS crash_after_commit_before_ack
|
||||
RUN malformed_message_dead_lettered
|
||||
PASS malformed_message_dead_lettered
|
||||
PASS: lab5 pipeline suite, report evidence/forward-published/pipeline.json
|
||||
exit_code: 0 elapsed_seconds: 115.421
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,12 @@
|
||||
date: 2026-11-06T23:39:45Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ env PYTHONPATH=.:scripts:student-tests .venv/bin/python student-tests/tools/forward_runtime.py png-boundary
|
||||
gray2 PASS
|
||||
gray4 PASS
|
||||
gray16 PASS
|
||||
rgb16 PASS
|
||||
gray16-without-trns PASS
|
||||
concurrent-rgb16 PASS
|
||||
forced-timeout PASS
|
||||
forced-memory PASS
|
||||
exit_code: 0 elapsed_seconds: 98.076
|
||||
@@ -0,0 +1,748 @@
|
||||
{
|
||||
"mode": "png-http",
|
||||
"source_sha": "bc1d7aa7713858acb5d65b61d07e69a640f1ee97",
|
||||
"started_at": "2026-11-06T23:38:53.013357Z",
|
||||
"cases": [
|
||||
{
|
||||
"name": "gray1",
|
||||
"started_at": "2026-11-06T23:38:54.717702Z",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b33a-c188-72af-b1ce-4978e1626795",
|
||||
"input_sha256": "1bf59ee41fbd12bf572ac294e0505cc00b904363dd479d643b43062199dd67e3",
|
||||
"input_bytes": 154,
|
||||
"versions": [
|
||||
{
|
||||
"version": 1,
|
||||
"variants": [
|
||||
{
|
||||
"name": "crop",
|
||||
"sha256": "1b88218fd7e3ff00d6fa3e4bb732411617126591b2b6837aecdcaef426327eda",
|
||||
"bytes": 380,
|
||||
"dimensions": [
|
||||
128,
|
||||
128
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"sha256": "315ce3f53ac2012226bbeb906c7d37997a7f6fabb3d0ede23a797e66fe4b51ee",
|
||||
"bytes": 66,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"sha256": "c5745603d7848377a38bb5228f7817f5d4d4f5af26dadd7d3b2fb97b6a598a8e",
|
||||
"bytes": 308,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": 2,
|
||||
"variants": [
|
||||
{
|
||||
"name": "crop",
|
||||
"sha256": "45eac1bd54dba273142a01a3f01a1530787db5a9fe04aa2483862256dbf16132",
|
||||
"bytes": 380,
|
||||
"dimensions": [
|
||||
128,
|
||||
128
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"sha256": "8c5e7cc56874d00f7d5731a6a89461b264ef4e3b450899b63f4608231180b5aa",
|
||||
"bytes": 66,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"sha256": "19305cfd18dc8f3e504d6ef5667ddd7be788836e16317dba5b2c6f590b6a2667",
|
||||
"bytes": 308,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"stale_and_duplicate_noop": true
|
||||
},
|
||||
"result": "PASS",
|
||||
"elapsed_seconds": 5.09
|
||||
},
|
||||
{
|
||||
"name": "gray2",
|
||||
"started_at": "2026-11-06T23:38:59.807965Z",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b33a-d565-77b2-994f-7518e468fdf5",
|
||||
"input_sha256": "80754a3aa0c8a6014dc7a282b2009d49d064a5c02ed48e634d05d01c0aa3df6b",
|
||||
"input_bytes": 189,
|
||||
"versions": [
|
||||
{
|
||||
"version": 1,
|
||||
"variants": [
|
||||
{
|
||||
"name": "crop",
|
||||
"sha256": "def030bc04042aa23362c895a36b18d1d9748360df045decaf68eaeb0aa68deb",
|
||||
"bytes": 1324,
|
||||
"dimensions": [
|
||||
128,
|
||||
128
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"sha256": "fd49dc2d33e7b7963cd8f8f6ef0f0b80117e2c4a7dfb4fd2ee79285e47ff789a",
|
||||
"bytes": 98,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"sha256": "1b6f714677aa69673da7ed9eefba73376b8df42eae70a3d91002d2aab7272d9e",
|
||||
"bytes": 332,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": 2,
|
||||
"variants": [
|
||||
{
|
||||
"name": "crop",
|
||||
"sha256": "d14b6cc6fe415bd8c4fef55402a4fb196bc4f39d493ee505d536594b28841697",
|
||||
"bytes": 1489,
|
||||
"dimensions": [
|
||||
128,
|
||||
128
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"sha256": "c8f23e1adbf1add646f23531e270dc25d5108453d50947dec3e73700b0d6741f",
|
||||
"bytes": 96,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"sha256": "93107a3ba1a8aba475f8993dfb0d03658cef12a416c08a230653370921dcc00b",
|
||||
"bytes": 335,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"stale_and_duplicate_noop": true
|
||||
},
|
||||
"result": "PASS",
|
||||
"elapsed_seconds": 4.397
|
||||
},
|
||||
{
|
||||
"name": "gray4",
|
||||
"started_at": "2026-11-06T23:39:04.205343Z",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b33a-e693-7245-b762-fe88b9d29eaa",
|
||||
"input_sha256": "d0ed5b64b3b875be881dd286bedb7948fd06570f9ef1d2cfe41b665a838e426b",
|
||||
"input_bytes": 263,
|
||||
"versions": [
|
||||
{
|
||||
"version": 1,
|
||||
"variants": [
|
||||
{
|
||||
"name": "crop",
|
||||
"sha256": "43323e552e3c79e1a1688478d72c2ce370c21e55f1560958f9f6a225bc32f909",
|
||||
"bytes": 1034,
|
||||
"dimensions": [
|
||||
128,
|
||||
128
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"sha256": "dbc0ec3736c18df42f26b8f396b2eb243a18c6a0f5b6bbef8bf4ff7e563032c3",
|
||||
"bytes": 90,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"sha256": "d594ebb80ca7939643379ba54392070444eb900ca40bec9c6beee75175fd81ab",
|
||||
"bytes": 330,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": 2,
|
||||
"variants": [
|
||||
{
|
||||
"name": "crop",
|
||||
"sha256": "16e27d4c1df7aac7185381a1f4c8c9cceb05647e98f941c41e38f4dfe4c5ec75",
|
||||
"bytes": 1197,
|
||||
"dimensions": [
|
||||
128,
|
||||
128
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"sha256": "cd31de25056767d9050108c4475d4b72ccd1ab3c36c1c96159b104019e4e3493",
|
||||
"bytes": 92,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"sha256": "86afdaf8b40f77c2426ebf10c8d603535d75caa4fc720462be9acc43e39d4fbd",
|
||||
"bytes": 330,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"stale_and_duplicate_noop": true
|
||||
},
|
||||
"result": "PASS",
|
||||
"elapsed_seconds": 4.34
|
||||
},
|
||||
{
|
||||
"name": "gray8",
|
||||
"started_at": "2026-11-06T23:39:08.545858Z",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b33a-f788-73e9-a214-04c3c430adc6",
|
||||
"input_sha256": "31cb54aacd9e1c324b14e38377f83a21d4084dc134aa3d3e1e5c40e3d9c5dd2f",
|
||||
"input_bytes": 286,
|
||||
"versions": [
|
||||
{
|
||||
"version": 1,
|
||||
"variants": [
|
||||
{
|
||||
"name": "crop",
|
||||
"sha256": "14a6e4afbe7e4cf766330007adda1c14168f16957f9409f402a8699a0e5de62f",
|
||||
"bytes": 621,
|
||||
"dimensions": [
|
||||
128,
|
||||
128
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"sha256": "d35d7d59302099ea5fea9e91a405f4ebf8823aae1f53a59f88a09015619136fa",
|
||||
"bytes": 74,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"sha256": "d8fac3c82defab08dbb276681b1a7fb2545d883830dae5f965349474897373c7",
|
||||
"bytes": 324,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": 2,
|
||||
"variants": [
|
||||
{
|
||||
"name": "crop",
|
||||
"sha256": "dba34622f93edcd2d3449e217eb9605b1fac739c7c873a875af5d88d8e76bf2e",
|
||||
"bytes": 637,
|
||||
"dimensions": [
|
||||
128,
|
||||
128
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"sha256": "3d4823a2da9971a444b16cf060be5f0b2b7a16bf50a26e7343283d48b562d105",
|
||||
"bytes": 76,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"sha256": "d9d4ed6ef383acdf227745e511acaffddf6e90c4f100d0f6ea117f5783581d29",
|
||||
"bytes": 324,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"stale_and_duplicate_noop": true
|
||||
},
|
||||
"result": "PASS",
|
||||
"elapsed_seconds": 4.784
|
||||
},
|
||||
{
|
||||
"name": "gray16",
|
||||
"started_at": "2026-11-06T23:39:13.331133Z",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b33b-0a3a-7163-8d8a-72d0bb6dd9e3",
|
||||
"input_sha256": "f7fbc2506997045f18891037f3cde42cf1e3b55461948f790779817317574f77",
|
||||
"input_bytes": 344,
|
||||
"versions": [
|
||||
{
|
||||
"version": 1,
|
||||
"variants": [
|
||||
{
|
||||
"name": "crop",
|
||||
"sha256": "e49a69181bafd0ebb4348db7030ad2cbf632b296a65f0ba05fe984b3d2b1ccdc",
|
||||
"bytes": 632,
|
||||
"dimensions": [
|
||||
128,
|
||||
128
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"sha256": "751dc647784804af94b6cda23248840f73cab0cfe03227c4568b75195c00603a",
|
||||
"bytes": 80,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"sha256": "1bc87b25d02a179dc0cf5a883fb624fda094ba042ed9476c883ae1c12da6f1b6",
|
||||
"bytes": 322,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": 2,
|
||||
"variants": [
|
||||
{
|
||||
"name": "crop",
|
||||
"sha256": "a94faef9b08b5ab6ab239b6618c0e92b0ab92abca889acd714d6d9179dde90ef",
|
||||
"bytes": 662,
|
||||
"dimensions": [
|
||||
128,
|
||||
128
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"sha256": "b22468814595a3ae63a9b326ed55fefb9a833a0e621be5f366b113ad6cf18a12",
|
||||
"bytes": 72,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"sha256": "d2267d9adb990db045e8c186737a4bdf66aa4e8d82d785c0bb3d8e87c34c5072",
|
||||
"bytes": 323,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"stale_and_duplicate_noop": true
|
||||
},
|
||||
"result": "PASS",
|
||||
"elapsed_seconds": 4.03
|
||||
},
|
||||
{
|
||||
"name": "rgb8",
|
||||
"started_at": "2026-11-06T23:39:17.361270Z",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b33b-19fb-706d-b760-19cb45783bf0",
|
||||
"input_sha256": "8c27c74500758b1a24ccc96261334265e304d55530780aefc7ef4a1109c11852",
|
||||
"input_bytes": 385,
|
||||
"versions": [
|
||||
{
|
||||
"version": 1,
|
||||
"variants": [
|
||||
{
|
||||
"name": "crop",
|
||||
"sha256": "c36bf54d185cfcf7abddd219a5e586e11b0c4d10007df5db55978f74ddcad2d0",
|
||||
"bytes": 1069,
|
||||
"dimensions": [
|
||||
128,
|
||||
128
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"sha256": "7b78675ebd18218e82922e75072a801eea74b4d5f26cde2b5810407c86509b88",
|
||||
"bytes": 116,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"sha256": "f6e37a29401efe000eb8deb1490975d745f621f2ab229f4d85162945189e1791",
|
||||
"bytes": 385,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": 2,
|
||||
"variants": [
|
||||
{
|
||||
"name": "crop",
|
||||
"sha256": "fd82664e5924528cd7916b3b9e30b71517fa13c2763a8705e750fd4293f3027c",
|
||||
"bytes": 1184,
|
||||
"dimensions": [
|
||||
128,
|
||||
128
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"sha256": "a05ef5a9f1305b2941cc99ab594eb3671bb87babe35d28ac97127791881137bb",
|
||||
"bytes": 120,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"sha256": "3cac9f1ca274bcac1dc05cf186cd88eb622fd947fb1a7958a1175e77623a96d6",
|
||||
"bytes": 392,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"stale_and_duplicate_noop": true
|
||||
},
|
||||
"result": "PASS",
|
||||
"elapsed_seconds": 4.223
|
||||
},
|
||||
{
|
||||
"name": "rgb16",
|
||||
"started_at": "2026-11-06T23:39:21.585038Z",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b33b-2a7e-7352-89bf-3b612ebf49bd",
|
||||
"input_sha256": "e8e5f64cf3a0312b17549aed29f062e3cb03d0c1bf327396c6a25c4b88dec89f",
|
||||
"input_bytes": 724,
|
||||
"versions": [
|
||||
{
|
||||
"version": 1,
|
||||
"variants": [
|
||||
{
|
||||
"name": "crop",
|
||||
"sha256": "6386114c3d0b89c4df88745eec318b5db1a779d488e1b08f34ac34138c7feb99",
|
||||
"bytes": 671,
|
||||
"dimensions": [
|
||||
128,
|
||||
128
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"sha256": "fed7e1bf230e91296a5ea9a85b51d190152639bb2963b661f872029d852cc4ad",
|
||||
"bytes": 94,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"sha256": "af0a65a6596a0905a79403a9a6ef32a1301671a98ae3c8b5c3d6ced2d20a1009",
|
||||
"bytes": 332,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": 2,
|
||||
"variants": [
|
||||
{
|
||||
"name": "crop",
|
||||
"sha256": "dedcbac123226e3012a4dbd178b7aae7a7aba4f2c44c91be274c86804238b208",
|
||||
"bytes": 696,
|
||||
"dimensions": [
|
||||
128,
|
||||
128
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"sha256": "bc09a1696563daae4385190d2c52afac8230e18fff4b5eba701a42f0facde043",
|
||||
"bytes": 94,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"sha256": "218bc7fd6fa995a3c4cf725016714408073699d13f39d0d364ffe3595856d272",
|
||||
"bytes": 333,
|
||||
"dimensions": [
|
||||
64,
|
||||
64
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"stale_and_duplicate_noop": true
|
||||
},
|
||||
"result": "PASS",
|
||||
"elapsed_seconds": 5.404
|
||||
},
|
||||
{
|
||||
"name": "rgb16-adam7-filter4-exif6",
|
||||
"started_at": "2026-11-06T23:39:26.989752Z",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b33b-3f9a-74e5-8ce1-3e819686cf10",
|
||||
"input_sha256": "b9c1cb1e309024e4578d1f17bf6bb0f0645aad4d8973e16098b65c54cfd4930a",
|
||||
"input_bytes": 1297,
|
||||
"versions": [
|
||||
{
|
||||
"version": 1,
|
||||
"variants": [
|
||||
{
|
||||
"name": "crop",
|
||||
"sha256": "f257bf8fa4f30f0e4df6672de140799375cebd2bf735a656432cf702663414a1",
|
||||
"bytes": 601,
|
||||
"dimensions": [
|
||||
128,
|
||||
128
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"sha256": "cb92af5a047068048eba212d944513edb2c454f64e124339820d46c24e69ea45",
|
||||
"bytes": 112,
|
||||
"dimensions": [
|
||||
63,
|
||||
65
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"sha256": "110cf7571f07d2db04821e8ef1861f74b5a16978851a4b0082ca60aedc1d29e4",
|
||||
"bytes": 419,
|
||||
"dimensions": [
|
||||
63,
|
||||
65
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": 2,
|
||||
"variants": [
|
||||
{
|
||||
"name": "crop",
|
||||
"sha256": "0a7fea5640c5877026100e65e39848e7b15ee5eebb93897ebbeb95d441e8d652",
|
||||
"bytes": 675,
|
||||
"dimensions": [
|
||||
128,
|
||||
128
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"sha256": "9d4b7431a72adfc10284e4443c4e56b4cd19a67c0729979041fc8b0bc2c6ca34",
|
||||
"bytes": 116,
|
||||
"dimensions": [
|
||||
63,
|
||||
65
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"sha256": "529ceb55a8675e5ed870ed7917d7f1a5753c898b689f3e431e403b9b3682a732",
|
||||
"bytes": 440,
|
||||
"dimensions": [
|
||||
63,
|
||||
65
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"stale_and_duplicate_noop": true
|
||||
},
|
||||
"result": "PASS",
|
||||
"elapsed_seconds": 4.435
|
||||
}
|
||||
],
|
||||
"conditions": {
|
||||
"host_load": [
|
||||
2.11083984375,
|
||||
2.130859375,
|
||||
2.21337890625
|
||||
],
|
||||
"containers": [
|
||||
"mtusi2026lab6-api-1 cbf0e0c086a8 running Up 2 minutes (healthy)",
|
||||
"mtusi2026lab6-api-2 88b81a690916 running Up 2 minutes (healthy)",
|
||||
"mtusi2026lab6-broker-1 7873087d1e11 running Up 2 minutes (healthy)",
|
||||
"mtusi2026lab6-grafana-1 4941a61de404 running Up 2 minutes (healthy)",
|
||||
"mtusi2026lab6-healthtools-1 8f69bafc4222 exited Exited (0) 2 minutes ago",
|
||||
"mtusi2026lab6-lb-1 15275930393c running Up 2 minutes (healthy)",
|
||||
"mtusi2026lab6-loki-1 0ec38f765d14 running Up 2 minutes (healthy)",
|
||||
"mtusi2026lab6-migrate-1 defa24920883 exited Exited (0) 2 minutes ago",
|
||||
"mtusi2026lab6-otel-collector-1 c3358f2286f1 running Up 2 minutes (healthy)",
|
||||
"mtusi2026lab6-postgres-1 048b32582d06 running Up About a minute (healthy)",
|
||||
"mtusi2026lab6-prometheus-1 a5beedf02a59 running Up 2 minutes (healthy)",
|
||||
"mtusi2026lab6-relay-1 72f54d7a9ffa running Up 2 minutes (healthy)",
|
||||
"mtusi2026lab6-s3-1 f5d31170eb6e running Up 2 minutes (healthy)",
|
||||
"mtusi2026lab6-s3-init-1 16089f3dbc16 exited Exited (0) 2 minutes ago",
|
||||
"mtusi2026lab6-tempo-1 33a125d574c3 running Up 2 minutes (healthy)",
|
||||
"mtusi2026lab6-valkey-1 4377a65332f0 running Up About a minute (healthy)",
|
||||
"mtusi2026lab6-worker-1 f492f4c8ff12 running Up About a minute (healthy)"
|
||||
],
|
||||
"running": "mtusi2026lab6-relay-1 Up 2 minutes (healthy)\nmtusi2026lab6-api-2 Up 2 minutes (healthy)\nmtusi2026lab6-api-1 Up 2 minutes (healthy)\nmtusi2026lab6-worker-1 Up About a minute (healthy)\nmtusi2026lab6-grafana-1 Up 2 minutes (healthy)\nmtusi2026lab6-loki-1 Up 2 minutes (healthy)\nmtusi2026lab6-tempo-1 Up 2 minutes (healthy)\nmtusi2026lab6-otel-collector-1 Up 2 minutes (healthy)\nmtusi2026lab6-broker-1 Up 2 minutes (healthy)\nmtusi2026lab6-postgres-1 Up About a minute (healthy)\nmtusi2026lab6-lb-1 Up 2 minutes (healthy)\nmtusi2026lab6-prometheus-1 Up 2 minutes (healthy)\nmtusi2026lab6-s3-1 Up 2 minutes (healthy)\nmtusi2026lab6-valkey-1 Up About a minute (healthy)\n",
|
||||
"worker_limits": "448\n30\n2\n"
|
||||
},
|
||||
"accepted_ids": [
|
||||
"01a1b33a-c188-72af-b1ce-4978e1626795",
|
||||
"01a1b33a-d565-77b2-994f-7518e468fdf5",
|
||||
"01a1b33a-e693-7245-b762-fe88b9d29eaa",
|
||||
"01a1b33a-f788-73e9-a214-04c3c430adc6",
|
||||
"01a1b33b-0a3a-7163-8d8a-72d0bb6dd9e3",
|
||||
"01a1b33b-19fb-706d-b760-19cb45783bf0",
|
||||
"01a1b33b-2a7e-7352-89bf-3b612ebf49bd",
|
||||
"01a1b33b-3f9a-74e5-8ce1-3e819686cf10"
|
||||
],
|
||||
"invariants": [
|
||||
{
|
||||
"id": "terminal",
|
||||
"statement": "every 202 reaches its expected terminal state",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"accepted": 8
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "single_effect",
|
||||
"statement": "one variant set per (attachment_id, pipeline_version, variant)",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"rows": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "no_ready_rollback",
|
||||
"statement": "ready never returns to queued or processing",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"traced": 8
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "monotonic_publication",
|
||||
"statement": "published_version only moves forward",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"sampled": 8
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "bytes_match_metadata",
|
||||
"statement": "sha256, size and real dimensions match served bytes",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"verified": 8
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "bounded_attempts",
|
||||
"statement": "attempt <= JOB_MAX_ATTEMPTS",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"rows": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "no_orphans",
|
||||
"statement": "no pending outbox, messages, dead letters, staging, objects",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"queues": {
|
||||
"attachments.process": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"attachments.process.dlq": [
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
"s3_objects": 56,
|
||||
"scoped_attachments": 8
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "no_lost_202",
|
||||
"statement": "every 202 is present in PostgreSQL and the API",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"accepted": 8
|
||||
}
|
||||
}
|
||||
],
|
||||
"finished_at": "2026-11-06T23:39:45.742835Z",
|
||||
"result": "PASS"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
date: 2026-11-06T23:38:52Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ env PYTHONPATH=.:scripts:student-tests .venv/bin/python student-tests/tools/forward_runtime.py png-http
|
||||
gray1 PASS
|
||||
gray2 PASS
|
||||
gray4 PASS
|
||||
gray8 PASS
|
||||
gray16 PASS
|
||||
rgb8 PASS
|
||||
rgb16 PASS
|
||||
rgb16-adam7-filter4-exif6 PASS
|
||||
exit_code: 0 elapsed_seconds: 52.917
|
||||
@@ -0,0 +1,7 @@
|
||||
date: 2026-11-06T23:38:52Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ docker compose exec -T broker rabbitmqctl -q list_policies -p messenger
|
||||
vhost name pattern apply-to definition priority
|
||||
messenger attachments-process ^attachments\.process$ queues {"dead-letter-exchange":"attachments.dlx","dead-letter-strategy":"at-least-once","delivery-limit":-1,"overflow":"reject-publish"} 10
|
||||
messenger attachments-dlq ^attachments\.process\.dlq$ queues {"max-length":100000,"overflow":"reject-publish"} 10
|
||||
exit_code: 0 elapsed_seconds: 0.567
|
||||
@@ -0,0 +1,12 @@
|
||||
worker-1 | {"job_id":"01a1b339-834c-74bb-84db-3d19ddd39140","error":"Unavailable","event":"job.requeued","level":"warning","ts":"2026-11-06T23:37:35.499371Z","trace_id":"9668448662e45c1066c59b646f8f7a71","span_id":"41be89a662b9a221"}
|
||||
worker-1 | {"job_id":"01a1b339-834c-74bb-84db-3d19ddd39140","error":"Unavailable","event":"job.requeued","level":"warning","ts":"2026-11-06T23:37:36.513321Z","trace_id":"9668448662e45c1066c59b646f8f7a71","span_id":"4ab8e795558d967a"}
|
||||
worker-1 | {"job_id":"01a1b339-834c-74bb-84db-3d19ddd39140","error":"Unavailable","event":"job.requeued","level":"warning","ts":"2026-11-06T23:37:37.527402Z","trace_id":"9668448662e45c1066c59b646f8f7a71","span_id":"8c1d13fb7e34cdd4"}
|
||||
worker-1 | {"job_id":"01a1b339-834c-74bb-84db-3d19ddd39140","error":"Unavailable","event":"job.requeued","level":"warning","ts":"2026-11-06T23:37:38.540916Z","trace_id":"9668448662e45c1066c59b646f8f7a71","span_id":"df8d28b163fa5561"}
|
||||
worker-1 | {"job_id":"01a1b339-834c-74bb-84db-3d19ddd39140","error":"Unavailable","event":"job.requeued","level":"warning","ts":"2026-11-06T23:37:39.547003Z","trace_id":"9668448662e45c1066c59b646f8f7a71","span_id":"145b6b3ee1335b63"}
|
||||
worker-1 | {"job_id":"01a1b339-834c-74bb-84db-3d19ddd39140","error":"Unavailable","event":"job.requeued","level":"warning","ts":"2026-11-06T23:37:40.554934Z","trace_id":"9668448662e45c1066c59b646f8f7a71","span_id":"38334953e59c2602"}
|
||||
worker-1 | {"job_id":"01a1b339-834c-74bb-84db-3d19ddd39140","error":"Unavailable","event":"job.requeued","level":"warning","ts":"2026-11-06T23:37:41.567220Z","trace_id":"9668448662e45c1066c59b646f8f7a71","span_id":"b0ea8561dd0af7eb"}
|
||||
worker-1 | {"job_id":"01a1b339-834c-74bb-84db-3d19ddd39140","error":"Unavailable","event":"job.requeued","level":"warning","ts":"2026-11-06T23:37:42.588765Z","trace_id":"9668448662e45c1066c59b646f8f7a71","span_id":"ff0cfaf8f2f76fd5"}
|
||||
worker-1 | {"job_id":"01a1b339-834c-74bb-84db-3d19ddd39140","error":"Unavailable","event":"job.requeued","level":"warning","ts":"2026-11-06T23:37:43.598837Z","trace_id":"9668448662e45c1066c59b646f8f7a71","span_id":"e5feda78982252ca"}
|
||||
worker-1 | {"job_id":"01a1b339-834c-74bb-84db-3d19ddd39140","error":"Unavailable","event":"job.requeued","level":"warning","ts":"2026-11-06T23:37:44.614558Z","trace_id":"9668448662e45c1066c59b646f8f7a71","span_id":"2a30c82af924f4ab"}
|
||||
worker-1 | {"job_id":"01a1b339-834c-74bb-84db-3d19ddd39140","error":"Unavailable","event":"job.requeued","level":"warning","ts":"2026-11-06T23:37:45.621422Z","trace_id":"9668448662e45c1066c59b646f8f7a71","span_id":"cb3d9011e5e6edaf"}
|
||||
worker-1 | {"job_id":"01a1b339-834c-74bb-84db-3d19ddd39140","error":"Unavailable","event":"job.requeued","level":"warning","ts":"2026-11-06T23:37:46.629166Z","trace_id":"9668448662e45c1066c59b646f8f7a71","span_id":"c49f0f088039a6b2"}
|
||||
@@ -0,0 +1,217 @@
|
||||
{
|
||||
"mode": "postgres-outage",
|
||||
"source_sha": "bc1d7aa7713858acb5d65b61d07e69a640f1ee97",
|
||||
"started_at": "2026-11-06T23:37:29.930841Z",
|
||||
"cases": [
|
||||
{
|
||||
"name": "published_outbox_database_outage",
|
||||
"started_at": "2026-11-06T23:37:31.636682Z",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b339-8342-75ca-b4aa-731491bfcd0d",
|
||||
"jobs_before": [
|
||||
{
|
||||
"job_id": "01a1b339-834c-74bb-84db-3d19ddd39140",
|
||||
"pipeline_version": 1,
|
||||
"status": "queued",
|
||||
"attempt": 1
|
||||
}
|
||||
],
|
||||
"jobs_after": [
|
||||
{
|
||||
"job_id": "01a1b339-834c-74bb-84db-3d19ddd39140",
|
||||
"pipeline_version": 1,
|
||||
"status": "done",
|
||||
"attempt": 1
|
||||
}
|
||||
],
|
||||
"requeues": 12,
|
||||
"queues_during": {
|
||||
"attachments.process": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"attachments.process.dlq": [
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
"queues_after": {
|
||||
"attachments.process": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"attachments.process.dlq": [
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
"replay": false,
|
||||
"stopped_containers": [
|
||||
"mtusi2026lab6-api-1 cbf0e0c086a8 running Up 41 seconds (healthy)",
|
||||
"mtusi2026lab6-api-2 88b81a690916 running Up 41 seconds (healthy)",
|
||||
"mtusi2026lab6-broker-1 7873087d1e11 running Up 48 seconds (healthy)",
|
||||
"mtusi2026lab6-grafana-1 4941a61de404 running Up 47 seconds (healthy)",
|
||||
"mtusi2026lab6-healthtools-1 8f69bafc4222 exited Exited (0) 48 seconds ago",
|
||||
"mtusi2026lab6-lb-1 15275930393c running Up 48 seconds (healthy)",
|
||||
"mtusi2026lab6-loki-1 0ec38f765d14 running Up 47 seconds (healthy)",
|
||||
"mtusi2026lab6-migrate-1 defa24920883 exited Exited (0) 46 seconds ago",
|
||||
"mtusi2026lab6-otel-collector-1 c3358f2286f1 running Up 47 seconds (healthy)",
|
||||
"mtusi2026lab6-postgres-1 048b32582d06 exited Exited (0) Less than a second ago",
|
||||
"mtusi2026lab6-prometheus-1 a5beedf02a59 running Up 48 seconds (healthy)",
|
||||
"mtusi2026lab6-relay-1 72f54d7a9ffa running Up 41 seconds (healthy)",
|
||||
"mtusi2026lab6-s3-1 f5d31170eb6e running Up 48 seconds (healthy)",
|
||||
"mtusi2026lab6-s3-init-1 16089f3dbc16 exited Exited (0) 42 seconds ago",
|
||||
"mtusi2026lab6-tempo-1 33a125d574c3 running Up 47 seconds (healthy)",
|
||||
"mtusi2026lab6-valkey-1 4377a65332f0 running Up 8 seconds (healthy)",
|
||||
"mtusi2026lab6-worker-1 f492f4c8ff12 exited Exited (0) 1 second ago"
|
||||
]
|
||||
},
|
||||
"result": "PASS",
|
||||
"elapsed_seconds": 20.39
|
||||
}
|
||||
],
|
||||
"conditions": {
|
||||
"host_load": [
|
||||
3.24951171875,
|
||||
2.1953125,
|
||||
2.240234375
|
||||
],
|
||||
"containers": [
|
||||
"mtusi2026lab6-api-1 cbf0e0c086a8 running Up 38 seconds (healthy)",
|
||||
"mtusi2026lab6-api-2 88b81a690916 running Up 38 seconds (healthy)",
|
||||
"mtusi2026lab6-broker-1 7873087d1e11 running Up 44 seconds (healthy)",
|
||||
"mtusi2026lab6-grafana-1 4941a61de404 running Up 44 seconds (healthy)",
|
||||
"mtusi2026lab6-healthtools-1 8f69bafc4222 exited Exited (0) 44 seconds ago",
|
||||
"mtusi2026lab6-lb-1 15275930393c running Up 44 seconds (healthy)",
|
||||
"mtusi2026lab6-loki-1 0ec38f765d14 running Up 44 seconds (healthy)",
|
||||
"mtusi2026lab6-migrate-1 defa24920883 exited Exited (0) 43 seconds ago",
|
||||
"mtusi2026lab6-otel-collector-1 c3358f2286f1 running Up 44 seconds (healthy)",
|
||||
"mtusi2026lab6-postgres-1 048b32582d06 running Up 44 seconds (healthy)",
|
||||
"mtusi2026lab6-prometheus-1 a5beedf02a59 running Up 44 seconds (healthy)",
|
||||
"mtusi2026lab6-relay-1 72f54d7a9ffa running Up 38 seconds (healthy)",
|
||||
"mtusi2026lab6-s3-1 f5d31170eb6e running Up 44 seconds (healthy)",
|
||||
"mtusi2026lab6-s3-init-1 16089f3dbc16 exited Exited (0) 39 seconds ago",
|
||||
"mtusi2026lab6-tempo-1 33a125d574c3 running Up 44 seconds (healthy)",
|
||||
"mtusi2026lab6-valkey-1 4377a65332f0 running Up 5 seconds (healthy)",
|
||||
"mtusi2026lab6-worker-1 f492f4c8ff12 running Up 38 seconds (healthy)"
|
||||
],
|
||||
"running": "mtusi2026lab6-relay-1 Up 38 seconds (healthy)\nmtusi2026lab6-api-2 Up 38 seconds (healthy)\nmtusi2026lab6-api-1 Up 38 seconds (healthy)\nmtusi2026lab6-worker-1 Up 38 seconds (healthy)\nmtusi2026lab6-grafana-1 Up 44 seconds (healthy)\nmtusi2026lab6-loki-1 Up 44 seconds (healthy)\nmtusi2026lab6-tempo-1 Up 44 seconds (healthy)\nmtusi2026lab6-otel-collector-1 Up 44 seconds (healthy)\nmtusi2026lab6-broker-1 Up 45 seconds (healthy)\nmtusi2026lab6-postgres-1 Up 45 seconds (healthy)\nmtusi2026lab6-lb-1 Up 45 seconds (healthy)\nmtusi2026lab6-prometheus-1 Up 45 seconds (healthy)\nmtusi2026lab6-s3-1 Up 45 seconds (healthy)\nmtusi2026lab6-valkey-1 Up 5 seconds (healthy)\n",
|
||||
"worker_limits": "448\n30\n2\n"
|
||||
},
|
||||
"accepted_ids": [
|
||||
"01a1b339-8342-75ca-b4aa-731491bfcd0d"
|
||||
],
|
||||
"outage_checkpoint": {
|
||||
"attachment_id": "01a1b339-8342-75ca-b4aa-731491bfcd0d",
|
||||
"jobs_before": [
|
||||
{
|
||||
"job_id": "01a1b339-834c-74bb-84db-3d19ddd39140",
|
||||
"pipeline_version": 1,
|
||||
"status": "queued",
|
||||
"attempt": 1
|
||||
}
|
||||
],
|
||||
"dlq_before": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"stopped_containers": [
|
||||
"mtusi2026lab6-api-1 cbf0e0c086a8 running Up 41 seconds (healthy)",
|
||||
"mtusi2026lab6-api-2 88b81a690916 running Up 41 seconds (healthy)",
|
||||
"mtusi2026lab6-broker-1 7873087d1e11 running Up 48 seconds (healthy)",
|
||||
"mtusi2026lab6-grafana-1 4941a61de404 running Up 47 seconds (healthy)",
|
||||
"mtusi2026lab6-healthtools-1 8f69bafc4222 exited Exited (0) 48 seconds ago",
|
||||
"mtusi2026lab6-lb-1 15275930393c running Up 48 seconds (healthy)",
|
||||
"mtusi2026lab6-loki-1 0ec38f765d14 running Up 47 seconds (healthy)",
|
||||
"mtusi2026lab6-migrate-1 defa24920883 exited Exited (0) 46 seconds ago",
|
||||
"mtusi2026lab6-otel-collector-1 c3358f2286f1 running Up 47 seconds (healthy)",
|
||||
"mtusi2026lab6-postgres-1 048b32582d06 exited Exited (0) Less than a second ago",
|
||||
"mtusi2026lab6-prometheus-1 a5beedf02a59 running Up 48 seconds (healthy)",
|
||||
"mtusi2026lab6-relay-1 72f54d7a9ffa running Up 41 seconds (healthy)",
|
||||
"mtusi2026lab6-s3-1 f5d31170eb6e running Up 48 seconds (healthy)",
|
||||
"mtusi2026lab6-s3-init-1 16089f3dbc16 exited Exited (0) 42 seconds ago",
|
||||
"mtusi2026lab6-tempo-1 33a125d574c3 running Up 47 seconds (healthy)",
|
||||
"mtusi2026lab6-valkey-1 4377a65332f0 running Up 8 seconds (healthy)",
|
||||
"mtusi2026lab6-worker-1 f492f4c8ff12 exited Exited (0) 1 second ago"
|
||||
]
|
||||
},
|
||||
"invariants": [
|
||||
{
|
||||
"id": "terminal",
|
||||
"statement": "every 202 reaches its expected terminal state",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"accepted": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "single_effect",
|
||||
"statement": "one variant set per (attachment_id, pipeline_version, variant)",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"rows": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "no_ready_rollback",
|
||||
"statement": "ready never returns to queued or processing",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"traced": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "monotonic_publication",
|
||||
"statement": "published_version only moves forward",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"sampled": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "bytes_match_metadata",
|
||||
"statement": "sha256, size and real dimensions match served bytes",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"verified": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "bounded_attempts",
|
||||
"statement": "attempt <= JOB_MAX_ATTEMPTS",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"rows": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "no_orphans",
|
||||
"statement": "no pending outbox, messages, dead letters, staging, objects",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"queues": {
|
||||
"attachments.process": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"attachments.process.dlq": [
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
"s3_objects": 4,
|
||||
"scoped_attachments": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "no_lost_202",
|
||||
"statement": "every 202 is present in PostgreSQL and the API",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"accepted": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"finished_at": "2026-11-06T23:37:57.234619Z",
|
||||
"result": "PASS"
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
date: 2026-11-06T23:37:29Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ env PYTHONPATH=.:scripts:student-tests .venv/bin/python student-tests/tools/forward_runtime.py postgres-outage
|
||||
published_outbox_database_outage PASS
|
||||
exit_code: 0 elapsed_seconds: 27.475
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"base_sha": "237a7c93e507b984add5b49c51c6720a6bfca505",
|
||||
"protected_files": 22,
|
||||
"changed_protected": [],
|
||||
"unchanged_telemetry_paths": [
|
||||
"infra/grafana/dashboards/messenger-api.json",
|
||||
"infra/grafana/dashboards/messenger-pipeline.json",
|
||||
"infra/grafana/provisioning/alerting/alerting.yaml",
|
||||
"infra/grafana/provisioning/dashboards/messenger.yaml",
|
||||
"infra/grafana/provisioning/datasources/datasources.yaml",
|
||||
"infra/grafana/provisioning/plugins/plugins.yaml",
|
||||
"infra/loki/loki.yaml",
|
||||
"infra/otel/README.md",
|
||||
"infra/otel/collector-balanced.yaml",
|
||||
"infra/otel/collector-tail.yaml",
|
||||
"infra/otel/collector.yaml",
|
||||
"infra/prometheus/prometheus.yml",
|
||||
"infra/prometheus/rules/messenger.alerts.yml",
|
||||
"infra/prometheus/rules/messenger.recording.yml",
|
||||
"infra/prometheus/runbooks.md",
|
||||
"infra/tempo/tempo.yaml",
|
||||
"src/messenger/attachments/infrastructure/telemetry.py",
|
||||
"src/messenger/shared/entrypoints/telemetry.py",
|
||||
"src/messenger/shared/infrastructure/runtime_metrics.py",
|
||||
"src/messenger/shared/infrastructure/telemetry.py",
|
||||
"src/messenger/shared/infrastructure/trace_context.py"
|
||||
],
|
||||
"changed_telemetry": [],
|
||||
"basis": "Prior grade3/grade4 storage-outage and persisted-history series remain applicable: instrumentation and collector/storage/provisioning configs unchanged. Request/job/retry/alerts and cost repeated for auth/PNG/broker changes."
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
date: 2026-11-06T23:35:28Z commit: 97feb04b3f2a6008f636e1fdbdf284b1c97282a1
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ make check validate lint
|
||||
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 scripts/obs_cost_summary.py scripts/obs_cost.py scripts/obs_incidents.py scripts/obs_recovery.py scripts/capture_evidence.py alembic scripts/scaling.py tools scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py scripts/make_images.py scripts/pipeline_suite.py scripts/pipeline_evidence.py
|
||||
All checks passed!
|
||||
.venv/bin/ruff format --check src student-tests scripts/obs_cost_summary.py scripts/obs_cost.py scripts/obs_incidents.py scripts/obs_recovery.py scripts/capture_evidence.py alembic scripts/scaling.py tools scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py scripts/make_images.py scripts/pipeline_suite.py scripts/pipeline_evidence.py
|
||||
216 files already formatted
|
||||
.venv/bin/ty check src student-tests alembic
|
||||
All checks passed!
|
||||
exit_code: 0 elapsed_seconds: 0.590
|
||||
@@ -0,0 +1,12 @@
|
||||
date: 2026-11-06T23:45:28Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ make restore
|
||||
scripts/restore.sh
|
||||
Container mtusi2026lab6-api-1 Running
|
||||
Container mtusi2026lab6-api-2 Starting
|
||||
Container mtusi2026lab6-api-2 Started
|
||||
Container mtusi2026lab6-api-2 Waiting
|
||||
Container mtusi2026lab6-api-1 Waiting
|
||||
Container mtusi2026lab6-api-2 Healthy
|
||||
Container mtusi2026lab6-api-1 Healthy
|
||||
exit_code: 0 elapsed_seconds: 3.660
|
||||
@@ -0,0 +1,132 @@
|
||||
{
|
||||
"utc": "2026-11-06T23:50:47.030278+00:00",
|
||||
"application_sha": "bc1d7aa7713858acb5d65b61d07e69a640f1ee97",
|
||||
"containers": [
|
||||
{
|
||||
"name": "/mtusi2026lab6-worker-1",
|
||||
"image": "mtusi-messenger:mtusi2026lab6",
|
||||
"image_id": "sha256:66c7d75903f514e14fea21689d039eeba1d9d85a0d27ef3d70d4ab41288e2f6d",
|
||||
"memory": 1073741824,
|
||||
"nano_cpus": 2000000000,
|
||||
"user": "10001:10001",
|
||||
"oom": false
|
||||
},
|
||||
{
|
||||
"name": "/mtusi2026lab6-relay-1",
|
||||
"image": "mtusi-messenger:mtusi2026lab6",
|
||||
"image_id": "sha256:66c7d75903f514e14fea21689d039eeba1d9d85a0d27ef3d70d4ab41288e2f6d",
|
||||
"memory": 201326592,
|
||||
"nano_cpus": 500000000,
|
||||
"user": "10001:10001",
|
||||
"oom": false
|
||||
},
|
||||
{
|
||||
"name": "/mtusi2026lab6-api-2",
|
||||
"image": "mtusi-messenger:mtusi2026lab6",
|
||||
"image_id": "sha256:66c7d75903f514e14fea21689d039eeba1d9d85a0d27ef3d70d4ab41288e2f6d",
|
||||
"memory": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"user": "10001:10001",
|
||||
"oom": false
|
||||
},
|
||||
{
|
||||
"name": "/mtusi2026lab6-api-1",
|
||||
"image": "mtusi-messenger:mtusi2026lab6",
|
||||
"image_id": "sha256:66c7d75903f514e14fea21689d039eeba1d9d85a0d27ef3d70d4ab41288e2f6d",
|
||||
"memory": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"user": "10001:10001",
|
||||
"oom": false
|
||||
},
|
||||
{
|
||||
"name": "/mtusi2026lab6-grafana-1",
|
||||
"image": "grafana/grafana:12.4.14@sha256:ae509d9ae8c1021ca32ec370a9ca975d40165eda9fccd1e1102d317ff8787cd7",
|
||||
"image_id": "sha256:ae509d9ae8c1021ca32ec370a9ca975d40165eda9fccd1e1102d317ff8787cd7",
|
||||
"memory": 402653184,
|
||||
"nano_cpus": 500000000,
|
||||
"user": "472",
|
||||
"oom": false
|
||||
},
|
||||
{
|
||||
"name": "/mtusi2026lab6-loki-1",
|
||||
"image": "grafana/loki:3.7.9@sha256:0db216b630ae1f348a1584c67f3cead8b4c1fc839169a39501db664744158e28",
|
||||
"image_id": "sha256:0db216b630ae1f348a1584c67f3cead8b4c1fc839169a39501db664744158e28",
|
||||
"memory": 402653184,
|
||||
"nano_cpus": 500000000,
|
||||
"user": "10001",
|
||||
"oom": false
|
||||
},
|
||||
{
|
||||
"name": "/mtusi2026lab6-tempo-1",
|
||||
"image": "grafana/tempo:2.10.10@sha256:12b0820f13ffa10ce956b6e9acc3b03f3cffded99109be6cc09d106fe56e5d38",
|
||||
"image_id": "sha256:12b0820f13ffa10ce956b6e9acc3b03f3cffded99109be6cc09d106fe56e5d38",
|
||||
"memory": 402653184,
|
||||
"nano_cpus": 500000000,
|
||||
"user": "10001:10001",
|
||||
"oom": false
|
||||
},
|
||||
{
|
||||
"name": "/mtusi2026lab6-otel-collector-1",
|
||||
"image": "otel/opentelemetry-collector-contrib:0.163.2@sha256:7f22d2a6748110ffb6a59bc0df448bccbf501cdb667d610ede4c61d3863d5849",
|
||||
"image_id": "sha256:7f22d2a6748110ffb6a59bc0df448bccbf501cdb667d610ede4c61d3863d5849",
|
||||
"memory": 268435456,
|
||||
"nano_cpus": 500000000,
|
||||
"user": "10001:10001",
|
||||
"oom": false
|
||||
},
|
||||
{
|
||||
"name": "/mtusi2026lab6-broker-1",
|
||||
"image": "rabbitmq:4.1.8-management-alpine@sha256:54ef5ff505352c1beef05a97ee9bd6ab95b3559a76629ba0119b1d63d8d6e4b2",
|
||||
"image_id": "sha256:54ef5ff505352c1beef05a97ee9bd6ab95b3559a76629ba0119b1d63d8d6e4b2",
|
||||
"memory": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"user": "100:101",
|
||||
"oom": false
|
||||
},
|
||||
{
|
||||
"name": "/mtusi2026lab6-postgres-1",
|
||||
"image": "postgres:17.11-alpine@sha256:266d3c257594e195b309ae9d1805e54c788f1d7b375f56bf6c367aac6c917e7b",
|
||||
"image_id": "sha256:266d3c257594e195b309ae9d1805e54c788f1d7b375f56bf6c367aac6c917e7b",
|
||||
"memory": 805306368,
|
||||
"nano_cpus": 2000000000,
|
||||
"user": "70:70",
|
||||
"oom": false
|
||||
},
|
||||
{
|
||||
"name": "/mtusi2026lab6-lb-1",
|
||||
"image": "haproxy:3.2.26-alpine@sha256:5893840576071e6217cd52ebdcc14f454c6f7a631056fa6f4e0f40d3cac4215b",
|
||||
"image_id": "sha256:5893840576071e6217cd52ebdcc14f454c6f7a631056fa6f4e0f40d3cac4215b",
|
||||
"memory": 134217728,
|
||||
"nano_cpus": 1000000000,
|
||||
"user": "haproxy",
|
||||
"oom": false
|
||||
},
|
||||
{
|
||||
"name": "/mtusi2026lab6-prometheus-1",
|
||||
"image": "prom/prometheus:v3.15.1@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2",
|
||||
"image_id": "sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2",
|
||||
"memory": 536870912,
|
||||
"nano_cpus": 500000000,
|
||||
"user": "nobody",
|
||||
"oom": false
|
||||
},
|
||||
{
|
||||
"name": "/mtusi2026lab6-s3-1",
|
||||
"image": "rustfs/rustfs:1.0.4@sha256:ed9210d6411d77ffceb70d94b964a3cb7d225983368bc25bebe01e995293dcc2",
|
||||
"image_id": "sha256:ed9210d6411d77ffceb70d94b964a3cb7d225983368bc25bebe01e995293dcc2",
|
||||
"memory": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"user": "rustfs",
|
||||
"oom": false
|
||||
},
|
||||
{
|
||||
"name": "/mtusi2026lab6-valkey-1",
|
||||
"image": "valkey/valkey:8.1.11-alpine@sha256:2602ace2be6569bc2bbb06f873776516ab9089821525be34f4305c67eb9db02a",
|
||||
"image_id": "sha256:2602ace2be6569bc2bbb06f873776516ab9089821525be34f4305c67eb9db02a",
|
||||
"memory": 134217728,
|
||||
"nano_cpus": 500000000,
|
||||
"user": "999:1000",
|
||||
"oom": false
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
date: 2026-11-07T01:12:03Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ make down
|
||||
docker compose --profile bench --profile tools --profile reconcile down
|
||||
Container mtusi2026lab6-relay-1 Stopping
|
||||
Container mtusi2026lab6-api-2 Stopping
|
||||
Container mtusi2026lab6-lb-1 Stopping
|
||||
Container mtusi2026lab6-worker-1 Stopping
|
||||
Container mtusi2026lab6-api-1 Stopping
|
||||
Container mtusi2026lab6-otel-collector-1 Stopping
|
||||
Container mtusi2026lab6-grafana-1 Stopping
|
||||
Container mtusi2026lab6-grafana-1 Stopped
|
||||
Container mtusi2026lab6-grafana-1 Removing
|
||||
Container mtusi2026lab6-grafana-1 Removed
|
||||
Container mtusi2026lab6-tempo-1 Stopping
|
||||
Container mtusi2026lab6-loki-1 Stopping
|
||||
Container mtusi2026lab6-prometheus-1 Stopping
|
||||
Container mtusi2026lab6-lb-1 Stopped
|
||||
Container mtusi2026lab6-lb-1 Removing
|
||||
Container mtusi2026lab6-otel-collector-1 Stopped
|
||||
Container mtusi2026lab6-otel-collector-1 Removing
|
||||
Container mtusi2026lab6-lb-1 Removed
|
||||
Container mtusi2026lab6-prometheus-1 Stopped
|
||||
Container mtusi2026lab6-prometheus-1 Removing
|
||||
Container mtusi2026lab6-otel-collector-1 Removed
|
||||
Container mtusi2026lab6-prometheus-1 Removed
|
||||
Container mtusi2026lab6-tempo-1 Stopped
|
||||
Container mtusi2026lab6-tempo-1 Removing
|
||||
Container mtusi2026lab6-tempo-1 Removed
|
||||
Container mtusi2026lab6-loki-1 Stopped
|
||||
Container mtusi2026lab6-loki-1 Removing
|
||||
Container mtusi2026lab6-loki-1 Removed
|
||||
Container mtusi2026lab6-healthtools-1 Stopping
|
||||
Container mtusi2026lab6-healthtools-1 Stopped
|
||||
Container mtusi2026lab6-healthtools-1 Removing
|
||||
Container mtusi2026lab6-healthtools-1 Removed
|
||||
Container mtusi2026lab6-relay-1 Stopped
|
||||
Container mtusi2026lab6-relay-1 Removing
|
||||
Container mtusi2026lab6-relay-1 Removed
|
||||
Container mtusi2026lab6-worker-1 Stopped
|
||||
Container mtusi2026lab6-worker-1 Removing
|
||||
Container mtusi2026lab6-worker-1 Removed
|
||||
Container mtusi2026lab6-broker-1 Stopping
|
||||
Container mtusi2026lab6-broker-1 Stopped
|
||||
Container mtusi2026lab6-broker-1 Removing
|
||||
Container mtusi2026lab6-broker-1 Removed
|
||||
Container mtusi2026lab6-api-1 Stopped
|
||||
Container mtusi2026lab6-api-1 Removing
|
||||
Container mtusi2026lab6-api-1 Removed
|
||||
Container mtusi2026lab6-api-2 Stopped
|
||||
Container mtusi2026lab6-api-2 Removing
|
||||
Container mtusi2026lab6-api-2 Removed
|
||||
Container mtusi2026lab6-s3-init-1 Stopping
|
||||
Container mtusi2026lab6-migrate-1 Stopping
|
||||
Container mtusi2026lab6-valkey-1 Stopping
|
||||
Container mtusi2026lab6-s3-init-1 Stopped
|
||||
Container mtusi2026lab6-s3-init-1 Removing
|
||||
Container mtusi2026lab6-migrate-1 Stopped
|
||||
Container mtusi2026lab6-migrate-1 Removing
|
||||
Container mtusi2026lab6-s3-init-1 Removed
|
||||
Container mtusi2026lab6-s3-1 Stopping
|
||||
Container mtusi2026lab6-migrate-1 Removed
|
||||
Container mtusi2026lab6-postgres-1 Stopping
|
||||
Container mtusi2026lab6-valkey-1 Stopped
|
||||
Container mtusi2026lab6-valkey-1 Removing
|
||||
Container mtusi2026lab6-valkey-1 Removed
|
||||
Container mtusi2026lab6-s3-1 Stopped
|
||||
Container mtusi2026lab6-s3-1 Removing
|
||||
Container mtusi2026lab6-postgres-1 Stopped
|
||||
Container mtusi2026lab6-postgres-1 Removing
|
||||
Container mtusi2026lab6-s3-1 Removed
|
||||
Container mtusi2026lab6-postgres-1 Removed
|
||||
Network mtusi2026lab6_backend Removing
|
||||
Network mtusi2026lab6_edge Removing
|
||||
Network mtusi2026lab6_edge Removed
|
||||
Network mtusi2026lab6_backend Removed
|
||||
exit_code: 0 elapsed_seconds: 5.193
|
||||
@@ -0,0 +1,6 @@
|
||||
date: 2026-11-06T23:37:22Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ make test
|
||||
python3 tests/smoke.py --base-url "http://127.0.0.1:18086"
|
||||
PASS: lab6 public API scenario; infrastructure and grading evidence remain separate.
|
||||
exit_code: 0 elapsed_seconds: 1.751
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"source_sha": "c7b8feb805d151e878d77b0dff47320a9436b172",
|
||||
"requirements": [
|
||||
{
|
||||
"capability": "lab1-messenger-chats",
|
||||
"requirement": "Создание чата",
|
||||
"matches_source_and_delta": true
|
||||
},
|
||||
{
|
||||
"capability": "lab1-messenger-history",
|
||||
"requirement": "Отправка сообщения",
|
||||
"matches_source_and_delta": true
|
||||
},
|
||||
{
|
||||
"capability": "lab1-messenger-identity",
|
||||
"requirement": "Регистрация пользователя",
|
||||
"matches_source_and_delta": true
|
||||
},
|
||||
{
|
||||
"capability": "lab2-auth-sessions",
|
||||
"requirement": "Вход по Basic выдаёт сессию",
|
||||
"matches_source_and_delta": true
|
||||
},
|
||||
{
|
||||
"capability": "lab2-session-cache",
|
||||
"requirement": "Выход инвалидирует кэш",
|
||||
"matches_source_and_delta": true
|
||||
},
|
||||
{
|
||||
"capability": "lab3-load-balancing",
|
||||
"requirement": "Готовность backend и обновление адресов",
|
||||
"matches_source_and_delta": true
|
||||
},
|
||||
{
|
||||
"capability": "lab4-attachments",
|
||||
"requirement": "Тип определяется по содержимому",
|
||||
"matches_source_and_delta": true
|
||||
},
|
||||
{
|
||||
"capability": "lab5-image-variants",
|
||||
"requirement": "Crop и optimized",
|
||||
"matches_source_and_delta": true
|
||||
},
|
||||
{
|
||||
"capability": "lab5-image-variants",
|
||||
"requirement": "Пределы обработки изображения в worker",
|
||||
"matches_source_and_delta": true
|
||||
},
|
||||
{
|
||||
"capability": "lab5-job-delivery",
|
||||
"requirement": "Брокер и отдельные процессы в стенде",
|
||||
"matches_source_and_delta": true
|
||||
},
|
||||
{
|
||||
"capability": "lab5-job-recovery",
|
||||
"requirement": "Реестр failed и явный replay",
|
||||
"matches_source_and_delta": true
|
||||
}
|
||||
],
|
||||
"active_changes": 0
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
date: 2026-11-06T23:32:01Z commit: 97feb04b3f2a6008f636e1fdbdf284b1c97282a1
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ make student-test
|
||||
.venv/bin/pytest
|
||||
============================= test session starts ==============================
|
||||
platform darwin -- Python 3.14.5, pytest-9.1.1, pluggy-1.6.0
|
||||
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
|
||||
collected 1016 items / 19 deselected / 997 selected
|
||||
|
||||
student-tests/adapters/test_rabbitmq.py ..... [ 0%]
|
||||
student-tests/adapters/test_s3_storage.py ... [ 0%]
|
||||
student-tests/api/test_access.py ......... [ 1%]
|
||||
student-tests/api/test_attachments.py .................................. [ 5%]
|
||||
...... [ 5%]
|
||||
student-tests/api/test_bounded_contexts.py .................... [ 7%]
|
||||
student-tests/api/test_cache.py ............ [ 8%]
|
||||
student-tests/api/test_concurrency.py .... [ 9%]
|
||||
student-tests/api/test_consistency.py ........ [ 10%]
|
||||
student-tests/api/test_cost_experiment.py ... [ 10%]
|
||||
student-tests/api/test_drain.py .. [ 10%]
|
||||
student-tests/api/test_events.py ...... [ 11%]
|
||||
student-tests/api/test_http_telemetry.py . [ 11%]
|
||||
student-tests/api/test_idempotency.py ............... [ 12%]
|
||||
student-tests/api/test_instance.py .... [ 13%]
|
||||
student-tests/api/test_job_returning.py . [ 13%]
|
||||
student-tests/api/test_message_attachments.py ............. [ 14%]
|
||||
student-tests/api/test_migrations.py ................................... [ 18%]
|
||||
. [ 18%]
|
||||
student-tests/api/test_negative.py ..................................... [ 21%]
|
||||
[ 21%]
|
||||
student-tests/api/test_nul_validation.py ................. [ 23%]
|
||||
student-tests/api/test_operability.py .............. [ 25%]
|
||||
student-tests/api/test_pagination.py .................. [ 26%]
|
||||
student-tests/api/test_pipeline.py ............. [ 28%]
|
||||
student-tests/api/test_pool.py ............ [ 29%]
|
||||
student-tests/api/test_reconciler.py ........... [ 30%]
|
||||
student-tests/api/test_recovery.py ............ [ 31%]
|
||||
student-tests/api/test_sessions.py ...................... [ 33%]
|
||||
student-tests/api/test_timeout.py ........ [ 34%]
|
||||
student-tests/api/test_trace_context.py . [ 34%]
|
||||
student-tests/api/test_upload_consistency.py ......... [ 35%]
|
||||
student-tests/api/test_versioned_pipeline.py ........... [ 36%]
|
||||
student-tests/api/test_wire_format.py .. [ 37%]
|
||||
student-tests/unit/test_attachments_domain.py .......................... [ 39%]
|
||||
. [ 39%]
|
||||
student-tests/unit/test_authentication.py ............................. [ 42%]
|
||||
student-tests/unit/test_cursor.py ........... [ 43%]
|
||||
student-tests/unit/test_domain.py ...................................... [ 47%]
|
||||
.. [ 47%]
|
||||
student-tests/unit/test_haproxy_errors.py ............... [ 49%]
|
||||
student-tests/unit/test_image_inspection.py ............................ [ 52%]
|
||||
........................................................................ [ 59%]
|
||||
........................................................................ [ 66%]
|
||||
..................................................... [ 71%]
|
||||
student-tests/unit/test_job_observer.py . [ 71%]
|
||||
student-tests/unit/test_nul_inputs.py ...................... [ 74%]
|
||||
student-tests/unit/test_pipeline_domain.py ....................... [ 76%]
|
||||
student-tests/unit/test_png_memory.py ....s [ 76%]
|
||||
student-tests/unit/test_png_transparency.py ............................ [ 79%]
|
||||
........................................................................ [ 86%]
|
||||
.............................................. [ 91%]
|
||||
student-tests/unit/test_png_upload.py .. [ 91%]
|
||||
student-tests/unit/test_probe.py .............. [ 93%]
|
||||
student-tests/unit/test_reconcile_measurements.py ...... [ 93%]
|
||||
student-tests/unit/test_render_pool.py .....s. [ 94%]
|
||||
student-tests/unit/test_renderer.py .............................. [ 97%]
|
||||
student-tests/unit/test_scaling.py ..... [ 97%]
|
||||
student-tests/unit/test_session_cache.py .......... [ 98%]
|
||||
student-tests/unit/test_telemetry_platform.py ..... [ 99%]
|
||||
student-tests/unit/test_timeouts.py . [ 99%]
|
||||
student-tests/unit/test_worker_delivery.py .... [100%]
|
||||
|
||||
========== 995 passed, 2 skipped, 19 deselected in 176.45s (0:02:56) ===========
|
||||
exit_code: 0 elapsed_seconds: 179.184
|
||||
@@ -0,0 +1,546 @@
|
||||
date: 2026-11-06T23:46:11Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/obs_check.py job --base-url http://127.0.0.1:18086
|
||||
{
|
||||
"checked_at": "2026-11-06T23:46:28+00:00",
|
||||
"upload_request_id": "da03c5c0-d3b6-4dc3-bf9c-8abc9532a5b4",
|
||||
"attachment_status": "ready",
|
||||
"traces": [
|
||||
"ea7dfcc8afa7b7d4975b31e90a165abf"
|
||||
],
|
||||
"spans": [
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.09,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": ";",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.052,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "ROLLBACK;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.056,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.047,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.282,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "ROLLBACK;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.055,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.062,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": ";",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.051,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "ROLLBACK;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.046,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.046,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.405,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "COMMIT;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.193,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.089,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": ";",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.069,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "ROLLBACK;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.061,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.055,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.233,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.226,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.251,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.126,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "COMMIT;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.387,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "POST /api/v1/chats/{chat_id}/attachments",
|
||||
"kind": "SPAN_KIND_SERVER",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 17.162,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "S3 put_object",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 4.703,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-relay",
|
||||
"name": "attachments.attachment.process.v1 create",
|
||||
"kind": "SPAN_KIND_PRODUCER",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.01,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-relay",
|
||||
"name": "attachments.attachment.process.v1 publish",
|
||||
"kind": "SPAN_KIND_PRODUCER",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 1.233,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.133,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": ";",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.08,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "ROLLBACK;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.086,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.067,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.176,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.171,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.097,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.105,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "COMMIT;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.217,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.056,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": ";",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.041,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "ROLLBACK;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.036,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.043,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.084,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "COMMIT;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.16,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.084,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.448,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.616,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.347,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.141,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "COMMIT;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.231,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "S3 get_object",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 1.552,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "S3 copy_object",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 5.49,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "S3 put_object",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 3.138,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "S3 put_object",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 3.72,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "S3 put_object",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 2.525,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": null
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "attachments.attachment.process.v1 process",
|
||||
"kind": "SPAN_KIND_CONSUMER",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 723.018,
|
||||
"links": 0,
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"attempt": "1"
|
||||
}
|
||||
],
|
||||
"worker_logs": [
|
||||
{
|
||||
"line": "job.processed",
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"span_id": "1cdf50be931b71b9"
|
||||
},
|
||||
{
|
||||
"line": "audit.job_settled",
|
||||
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
|
||||
"span_id": "1cdf50be931b71b9"
|
||||
}
|
||||
]
|
||||
}
|
||||
exit_code: 0 elapsed_seconds: 17.315
|
||||
@@ -0,0 +1,27 @@
|
||||
date: 2026-11-06T23:46:28Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/obs_check.py leaks --base-url http://127.0.0.1:18086
|
||||
{
|
||||
"checked_at": "2026-11-06T23:46:43+00:00",
|
||||
"window_seconds": 20,
|
||||
"traces_scanned": 8,
|
||||
"hits": {
|
||||
"password": {
|
||||
"loki": 0,
|
||||
"tempo": 0
|
||||
},
|
||||
"token": {
|
||||
"loki": 0,
|
||||
"tempo": 0
|
||||
},
|
||||
"message_text": {
|
||||
"loki": 0,
|
||||
"tempo": 0
|
||||
},
|
||||
"filename": {
|
||||
"loki": 0,
|
||||
"tempo": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
exit_code: 0 elapsed_seconds: 15.296
|
||||
@@ -0,0 +1,66 @@
|
||||
date: 2026-11-06T23:46:05Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/obs_check.py request --base-url http://127.0.0.1:18086
|
||||
{
|
||||
"checked_at": "2026-11-06T23:46:11+00:00",
|
||||
"request_id": "961b6674-246d-474e-8567-6ecfdc920756",
|
||||
"log": {
|
||||
"line": "request.handled",
|
||||
"trace_id": "86f716d7557e4ef4208ded75f75d6173",
|
||||
"span_id": "b24b56e1b1b421d8",
|
||||
"service_name": "messenger-api",
|
||||
"severity": "INFO"
|
||||
},
|
||||
"trace": [
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.785
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": ";",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.251
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "ROLLBACK;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.233
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "BEGIN;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.172
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.259
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "COMMIT;",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 0.631
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "POST /api/v1/users",
|
||||
"kind": "SPAN_KIND_SERVER",
|
||||
"status": "STATUS_CODE_UNSET",
|
||||
"duration_ms": 15.934
|
||||
}
|
||||
]
|
||||
}
|
||||
exit_code: 0 elapsed_seconds: 6.128
|
||||
@@ -0,0 +1,230 @@
|
||||
date: 2026-11-06T23:35:40Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ make up
|
||||
sh scripts/secrets.sh
|
||||
sh scripts/broker-secrets.sh
|
||||
broker and S3 worker secrets ready in secrets/ (values not printed)
|
||||
sh scripts/secrets-lab6.sh
|
||||
secrets/grafana_admin_password is ready (value not printed)
|
||||
docker compose build
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 432B 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.4s
|
||||
|
||||
#5 [internal] load .dockerignore
|
||||
#5 transferring context: 453B 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 0.0s done
|
||||
#7 DONE 0.0s
|
||||
|
||||
#8 [internal] load build context
|
||||
#8 transferring context: 137.54kB 0.0s done
|
||||
#8 DONE 0.0s
|
||||
|
||||
#9 [builder 3/7] WORKDIR /build
|
||||
#9 CACHED
|
||||
|
||||
#10 [builder 4/7] COPY pyproject.toml uv.lock README.md ./
|
||||
#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 6/7] COPY src ./src
|
||||
#13 DONE 0.1s
|
||||
|
||||
#14 [builder 7/7] RUN uv sync --locked --no-dev --no-editable
|
||||
#14 0.246 Resolved 100 packages in 9ms
|
||||
#14 0.275 Building mtusi-messenger @ file:///build
|
||||
#14 1.692 Built mtusi-messenger @ file:///build
|
||||
#14 1.697 Prepared 1 package in 1.42s
|
||||
#14 1.701 Installed 1 package in 3ms
|
||||
#14 1.938 Bytecode compiled 2806 files in 237ms
|
||||
#14 1.938 + mtusi-messenger==1.6.0 (from file:///build)
|
||||
#14 DONE 2.0s
|
||||
|
||||
#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.4s
|
||||
|
||||
#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 3.0s done
|
||||
#20 exporting manifest sha256:492ff49bc1f0a99e4adb59e711800539c0cc7feaad62c7fd83bfd7ccdcf68cce
|
||||
#20 exporting manifest sha256:492ff49bc1f0a99e4adb59e711800539c0cc7feaad62c7fd83bfd7ccdcf68cce done
|
||||
#20 exporting config sha256:7d56cd97955ba1fe0f95f59f060ba7e79ace5c63756412be8674e188edcf933a done
|
||||
#20 exporting attestation manifest sha256:031044e4b9cd3d8af8d60bed863e0f3ff85984fc717b9912ce15acb4e6366e2f done
|
||||
#20 exporting manifest list sha256:66c7d75903f514e14fea21689d039eeba1d9d85a0d27ef3d70d4ab41288e2f6d done
|
||||
#20 naming to docker.io/library/mtusi-messenger:mtusi2026lab6 done
|
||||
#20 unpacking to docker.io/library/mtusi-messenger:mtusi2026lab6
|
||||
#20 unpacking to docker.io/library/mtusi-messenger:mtusi2026lab6 0.7s done
|
||||
#20 DONE 3.7s
|
||||
|
||||
#21 resolving provenance for metadata file
|
||||
#21 DONE 0.0s
|
||||
api Built
|
||||
docker compose up -d --wait
|
||||
Network mtusi2026lab6_backend Creating
|
||||
Network mtusi2026lab6_backend Created
|
||||
Network mtusi2026lab6_edge Creating
|
||||
Network mtusi2026lab6_edge Created
|
||||
Container mtusi2026lab6-healthtools-1 Creating
|
||||
Container mtusi2026lab6-broker-1 Creating
|
||||
Container mtusi2026lab6-lb-1 Creating
|
||||
Container mtusi2026lab6-s3-1 Creating
|
||||
Container mtusi2026lab6-prometheus-1 Creating
|
||||
Container mtusi2026lab6-postgres-1 Creating
|
||||
Container mtusi2026lab6-valkey-1 Creating
|
||||
Container mtusi2026lab6-valkey-1 Created
|
||||
Container mtusi2026lab6-s3-1 Created
|
||||
Container mtusi2026lab6-s3-init-1 Creating
|
||||
Container mtusi2026lab6-healthtools-1 Created
|
||||
Container mtusi2026lab6-otel-collector-1 Creating
|
||||
Container mtusi2026lab6-loki-1 Creating
|
||||
Container mtusi2026lab6-tempo-1 Creating
|
||||
Container mtusi2026lab6-lb-1 Created
|
||||
Container mtusi2026lab6-postgres-1 Created
|
||||
Container mtusi2026lab6-prometheus-1 Created
|
||||
Container mtusi2026lab6-migrate-1 Creating
|
||||
Container mtusi2026lab6-broker-1 Created
|
||||
Container mtusi2026lab6-s3-init-1 Created
|
||||
Container mtusi2026lab6-otel-collector-1 Created
|
||||
Container mtusi2026lab6-tempo-1 Created
|
||||
Container mtusi2026lab6-loki-1 Created
|
||||
Container mtusi2026lab6-grafana-1 Creating
|
||||
Container mtusi2026lab6-migrate-1 Created
|
||||
Container mtusi2026lab6-relay-1 Creating
|
||||
Container mtusi2026lab6-worker-1 Creating
|
||||
Container mtusi2026lab6-api-2 Creating
|
||||
Container mtusi2026lab6-api-1 Creating
|
||||
Container mtusi2026lab6-api-1 Created
|
||||
Container mtusi2026lab6-grafana-1 Created
|
||||
Container mtusi2026lab6-worker-1 Created
|
||||
Container mtusi2026lab6-relay-1 Created
|
||||
Container mtusi2026lab6-api-2 Created
|
||||
Container mtusi2026lab6-postgres-1 Starting
|
||||
Container mtusi2026lab6-broker-1 Starting
|
||||
Container mtusi2026lab6-s3-1 Starting
|
||||
Container mtusi2026lab6-prometheus-1 Starting
|
||||
Container mtusi2026lab6-healthtools-1 Starting
|
||||
Container mtusi2026lab6-valkey-1 Starting
|
||||
Container mtusi2026lab6-lb-1 Starting
|
||||
Container mtusi2026lab6-healthtools-1 Started
|
||||
Container mtusi2026lab6-healthtools-1 Waiting
|
||||
Container mtusi2026lab6-healthtools-1 Waiting
|
||||
Container mtusi2026lab6-healthtools-1 Waiting
|
||||
Container mtusi2026lab6-postgres-1 Started
|
||||
Container mtusi2026lab6-postgres-1 Waiting
|
||||
Container mtusi2026lab6-valkey-1 Started
|
||||
Container mtusi2026lab6-s3-1 Started
|
||||
Container mtusi2026lab6-s3-1 Waiting
|
||||
Container mtusi2026lab6-lb-1 Started
|
||||
Container mtusi2026lab6-prometheus-1 Started
|
||||
Container mtusi2026lab6-broker-1 Started
|
||||
Container mtusi2026lab6-healthtools-1 Exited
|
||||
Container mtusi2026lab6-healthtools-1 Exited
|
||||
Container mtusi2026lab6-otel-collector-1 Starting
|
||||
Container mtusi2026lab6-loki-1 Starting
|
||||
Container mtusi2026lab6-healthtools-1 Exited
|
||||
Container mtusi2026lab6-tempo-1 Starting
|
||||
Container mtusi2026lab6-postgres-1 Healthy
|
||||
Container mtusi2026lab6-migrate-1 Starting
|
||||
Container mtusi2026lab6-tempo-1 Started
|
||||
Container mtusi2026lab6-migrate-1 Started
|
||||
Container mtusi2026lab6-loki-1 Started
|
||||
Container mtusi2026lab6-grafana-1 Starting
|
||||
Container mtusi2026lab6-otel-collector-1 Started
|
||||
Container mtusi2026lab6-grafana-1 Started
|
||||
Container mtusi2026lab6-s3-1 Healthy
|
||||
Container mtusi2026lab6-s3-init-1 Starting
|
||||
Container mtusi2026lab6-s3-init-1 Started
|
||||
Container mtusi2026lab6-migrate-1 Waiting
|
||||
Container mtusi2026lab6-s3-init-1 Waiting
|
||||
Container mtusi2026lab6-s3-init-1 Waiting
|
||||
Container mtusi2026lab6-broker-1 Waiting
|
||||
Container mtusi2026lab6-migrate-1 Waiting
|
||||
Container mtusi2026lab6-migrate-1 Waiting
|
||||
Container mtusi2026lab6-s3-init-1 Waiting
|
||||
Container mtusi2026lab6-broker-1 Waiting
|
||||
Container mtusi2026lab6-migrate-1 Exited
|
||||
Container mtusi2026lab6-migrate-1 Exited
|
||||
Container mtusi2026lab6-s3-init-1 Exited
|
||||
Container mtusi2026lab6-migrate-1 Exited
|
||||
Container mtusi2026lab6-s3-init-1 Exited
|
||||
Container mtusi2026lab6-api-2 Starting
|
||||
Container mtusi2026lab6-s3-init-1 Exited
|
||||
Container mtusi2026lab6-broker-1 Healthy
|
||||
Container mtusi2026lab6-worker-1 Starting
|
||||
Container mtusi2026lab6-broker-1 Healthy
|
||||
Container mtusi2026lab6-relay-1 Starting
|
||||
Container mtusi2026lab6-api-2 Started
|
||||
Container mtusi2026lab6-api-1 Starting
|
||||
Container mtusi2026lab6-relay-1 Started
|
||||
Container mtusi2026lab6-worker-1 Started
|
||||
Container mtusi2026lab6-api-1 Started
|
||||
Container mtusi2026lab6-broker-1 Waiting
|
||||
Container mtusi2026lab6-lb-1 Waiting
|
||||
Container mtusi2026lab6-loki-1 Waiting
|
||||
Container mtusi2026lab6-postgres-1 Waiting
|
||||
Container mtusi2026lab6-healthtools-1 Waiting
|
||||
Container mtusi2026lab6-worker-1 Waiting
|
||||
Container mtusi2026lab6-migrate-1 Waiting
|
||||
Container mtusi2026lab6-s3-init-1 Waiting
|
||||
Container mtusi2026lab6-otel-collector-1 Waiting
|
||||
Container mtusi2026lab6-prometheus-1 Waiting
|
||||
Container mtusi2026lab6-tempo-1 Waiting
|
||||
Container mtusi2026lab6-grafana-1 Waiting
|
||||
Container mtusi2026lab6-api-2 Waiting
|
||||
Container mtusi2026lab6-api-1 Waiting
|
||||
Container mtusi2026lab6-s3-1 Waiting
|
||||
Container mtusi2026lab6-relay-1 Waiting
|
||||
Container mtusi2026lab6-valkey-1 Waiting
|
||||
Container mtusi2026lab6-valkey-1 Healthy
|
||||
Container mtusi2026lab6-postgres-1 Healthy
|
||||
Container mtusi2026lab6-grafana-1 Healthy
|
||||
Container mtusi2026lab6-s3-1 Healthy
|
||||
Container mtusi2026lab6-broker-1 Healthy
|
||||
Container mtusi2026lab6-otel-collector-1 Healthy
|
||||
Container mtusi2026lab6-prometheus-1 Healthy
|
||||
Container mtusi2026lab6-s3-init-1 Exited
|
||||
Container mtusi2026lab6-healthtools-1 Exited
|
||||
Container mtusi2026lab6-migrate-1 Exited
|
||||
Container mtusi2026lab6-api-2 Healthy
|
||||
Container mtusi2026lab6-api-1 Healthy
|
||||
Container mtusi2026lab6-relay-1 Healthy
|
||||
Container mtusi2026lab6-worker-1 Healthy
|
||||
Container mtusi2026lab6-lb-1 Healthy
|
||||
Container mtusi2026lab6-loki-1 Healthy
|
||||
Container mtusi2026lab6-tempo-1 Healthy
|
||||
scripts/lb-wait.sh
|
||||
exit_code: 0 elapsed_seconds: 85.591
|
||||
@@ -0,0 +1,45 @@
|
||||
date: 2026-11-06T23:42:59Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ .venv/bin/pytest -m stack -s -q student-tests/stack/test_attachment_faults.py::test_user_errors_never_become_500
|
||||
10 MiB + 1 с Content-Length, тело не отправлено: 413
|
||||
10 MiB + 1 chunked: 413
|
||||
PNG 100000×100000 (бомба): 413
|
||||
PNG 8001×5000: 413
|
||||
PNG с корректными CRC и битым IDAT: 415
|
||||
PNG с повторным IHDR: 415
|
||||
обрезанный PNG: 415
|
||||
обрезанный JPEG: 415
|
||||
JPEG как image/png: 415
|
||||
GIF как image/png: 415
|
||||
WebP как image/png: 415
|
||||
текст как image/png: 415
|
||||
PNG как image/jpeg: 415
|
||||
пустое тело: 415
|
||||
application/octet-stream: 415
|
||||
без Content-Type: 415
|
||||
filename='../a.png': 400
|
||||
filename='a/b.png': 400
|
||||
filename='a\\b.png': 400
|
||||
filename='a\x00.png': 400
|
||||
filename='a\x01.png': 400
|
||||
filename='a\x7f.png': 400
|
||||
filename='': 400
|
||||
filename=' ': 400
|
||||
filename='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx: 400
|
||||
filename=None: 400
|
||||
посторонний: upload в чужой чат: 404
|
||||
посторонний: метаданные: 404
|
||||
посторонний: /content: 404
|
||||
посторонний: ссылка на чужое вложение: 404
|
||||
вложение другого чата: 404
|
||||
неизвестное вложение: 404
|
||||
11 вложений: 400
|
||||
повтор вложения: 400
|
||||
невалидный UUID: 400
|
||||
пустой текст без вложений: 400
|
||||
невалидный id вложения: 400
|
||||
variant=preview: 400
|
||||
строк вложений в чате: 2 (= ответов 202); ответов в журнале реплик: 56, из них 5xx: 0
|
||||
.
|
||||
1 passed in 1.02s
|
||||
exit_code: 0 elapsed_seconds: 1.790
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,7 @@
|
||||
# Уровень 3 — сведения для отдельного отчёта
|
||||
|
||||
> Исторический уровень 3: результаты кода до позднего переноса ЛР5. Для текущего SHA используйте [индекс](../README.md) и `../forward-published/`. Эти исходные заметки сохранены как история; применимость отдельных незатронутых механизмов оговорена в индексе.
|
||||
|
||||
Приложение проверено на SQLAlchemy-коде 95511002b12510178a3cc2a22566b43e2b2b6c81. Новый код этой фазы — обвязка запуска и строгая проверка реальных spans. Команды запускаются через `scripts/lab6.sh`, задающий только порты ЛР6, project и NO_PROXY; значения secrets не выводятся. Дата/SHA и exit_code есть в каждом command log.
|
||||
|
||||
| Критерий | Команда и доказательство |
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user