10 Commits
Author SHA1 Message Date
ricoromaandClaude Opus 5.5 d947781591 docs: complete lab 4 report and add the application CI job
Application / application (push) Failing after 3s
Skeleton contracts / contracts (push) Failing after 30s
- fill the skeleton sections of REPORT.md: author and target grade,
  launch from a clean clone, architecture and variable mapping, open
  questions to the teacher, limitations, sources and AI use
- add evidence/tests/clean-clone-final.md: clean clone of de98d77
- add .github/workflows/application.yml (CONTRIBUTING.md, CI) and the
  .github/ci/ override for the Gitea runner: configs instead of bind
  mounts, no host ports; evidence/tests/ci-application.md
- remove PLAN.md now that all changes are archived; point AGENTS.md
  and the rules at REPORT.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 18:12:55 +03:00
ricoromaandClaude Opus 5.5 de98d77312 docs: archive track2-reconcile-cost and sync its specs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 20:28:49 +03:00
ricoromaandClaude Opus 5.5 fd03b84b68 docs: record track2-reconcile-cost verify fix evidence and numbers
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 20:26:54 +03:00
ricoromaandClaude Opus 5.5 ca0c4b2f71 fix: address track2-reconcile-cost verify findings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 20:03:00 +03:00
ricoromaandClaude Opus 5.5 16f2cdeddb docs: report reconcile cost results and evidence
Add the baseline label results to REPORT.md: H1, H2, H3 and S4
confirmed, H4 not verified (the fast-unlimited contrast did not
saturate S3, r 1.08). Keep 2000 objects/s as a bound on the S3 share
and give head/deep limits by S3 CPU per object. Refresh failure_checks
(54/54, red run of task 1.3), test_isolated and the pace stop evidence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 19:14:08 +03:00
ricoromaandClaude Opus 5.5 0072dbee94 docs: add reconcile cost label baseline
make bench_reconcile on d8b8ae3, quiet host: 51/51 passes,
swapouts_delta 0, no host warnings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 18:52:27 +03:00
ricoromaandClaude Opus 5.5 d8b8ae3dab fix: check bg k6 lines from below and allow interrupted extras
An iteration interrupted by SIGINT after its line loses both the
iteration count and the bg_lines counter sample, so neither can match
the console lines exactly. line_problems now requires lines >= each
count (fewer: "lines lost") and at most MAX_VUS extra lines over each.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 18:06:43 +03:00
ricoromaandClaude Opus 5.5 a42dd27c24 fix: count bg lines in k6 so SIGINT-interrupted iterations do not fail the check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 07:55:42 +03:00
ricoromaandClaude Opus 5.5 aaf3fa3b29 docs: add reconcile cost hypotheses before the label
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 04:56:09 +03:00
ricoromaandClaude Opus 5.5 8d4cf7eebf feat: add reconcile strategies, deep check, rate limit and cost profile
- reconcile --strategy head, --deep (checksum_mismatch), restore needs the same SHA-256
- [reconciler] max_objects_per_second (2000), pause interrupted by signal
- --apply stops rechecks once the limit is exceeded (unchecked)
- pass cost in the summary: S3 objects and requests, bytes, DB sessions, phases
- S3 client counters, cleaner exits with os._exit after main()
- fault tests, hook args, driver reconcile-signal --pace
- bench profile reconcile / reconcile_quick: fill outside the API, gateway metrics, background load
- sync spec deltas, rules, AGENTS.md, PLAN.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 04:52:56 +03:00
120 changed files with 14410 additions and 2050 deletions
+3 -3
View File
@@ -88,7 +88,7 @@ FastAPI 0.141 из `uv.lock`:
`Retry-After` — положительное целое. У нас 429 — только у загрузки, когда
заняты места процесса (design change `upload-memory`, решение 2). Места
ограничивают одновременность, а не частоту: трактовка — вопрос 1
преподавателю (`PLAN.md`, `### upload-memory`). До ответа — 429, ответ
преподавателю (`REPORT.md`, «Открытые вопросы преподавателю»). До ответа — 429, ответ
«503» меняет строку `DOMAIN_ERRORS`, сценарии и тесты, но не подход.
`DELETE /auth/sessions/current` отвечает 204 без тела.
@@ -334,8 +334,8 @@ ACTION_SCRIPT=scripts/restart.sh` (`tests/README.md`), hook —
(`status=ready`, `error_code=null`: другого статуса контракт лабы 4 не
знает), ссылка в новом сообщении — 201. До пометки — 500, как выше.
Контракт неоднозначен («404 — объекта нет», «неожиданное исключение —
500», `status` только `ready`): это вопрос преподавателю (`PLAN.md`,
`### track2-reconciler`, «Вопросы», п. 1), сделан вариант по
500», `status` только `ready`): это вопрос преподавателю (`REPORT.md`,
«Открытые вопросы преподавателю», п. 2), сделан вариант по
умолчанию. Ответ «иначе» меняет ветку `open_content`, сценарий
`attachments` «Потерянный оригинал» и тест
`test_reconcile_finds_and_fixes`.
+123 -4
View File
@@ -99,6 +99,7 @@ change `s3-storage`, решение 9): старт стенда перечисл
| `run.py` (профили `failover`, `failover_quick`), `failover.py`, `resources.py`, `sampler.sh` (режим `scan`), `k6/failover.js`, `k6/retry.js` | `make bench_failover`, `make bench_failover_quick` | две реплики с лимитами рабочего стенда, постоянная интенсивность записи с ключом и чтения, каждая реплика в каждом режиме (`stop`, `kill`, `pause`) с возвратом: посекундная шкала, время обнаружения и восстановления, сверка записей, CPU и память каждого компонента по окнам фазы; результаты — `evidence/failover/<метка>/` |
| `run.py` (профили `rollout`, `rollout_quick`), `rollout.py`, `resources.py`, `sampler.sh` (режим `scan`), `k6/failover.js`, `k6/retry.js`, `scripts/rolling-update.sh` | `make bench_rollout`, `make bench_rollout_quick` | две реплики с лимитами рабочего стенда на образе прежнего commit, та же постоянная нагрузка, посреди неё — поочерёдная замена на образ текущего checkout: посекундная шкала с ответами старых и новых реплик, шаги по каждой реплике, контейнеры, образы и ревизия схемы до и после, сверка записей, CPU и память каждого компонента по окнам замены; результаты — `evidence/rollout/<метка>/` |
| `run.py` (профили `uploads`, `uploads_quick`), `uploads.py`, `sampler.sh` (режим `peak`), `k6/uploads.js`, `k6/prepare.js` | `make bench_uploads [UPLOADS_LABEL=…]`, `make bench_uploads_quick` | память реплики при одновременных загрузках вложений (change `upload-memory`): одна реплика 1 CPU / 512 МБ без swap, S3 рабочего стенда, варианты «до» / «без лимита» / «с лимитом», тела PNG ~1 и ~10 MiB, 1 / 10 / 20 / 40 клиентов; пик `memory.peak` окна, OOM, ответы по кодам, загрузок/с и p50/p95/p99; результаты — `evidence/uploads/<метка>/` |
| `run.py` (профили `reconcile`, `reconcile_quick`), `reconcile.py`, `fill_objects.py`, `sampler.sh` (режим `scan`), `k6/background.js`, `k6/prepare.js` | `make bench_reconcile [RECONCILE_LABEL=…]`, `make bench_reconcile_quick` | стоимость сверки bucket и БД (change `track2-reconcile-cost`): наполнение мимо API (`\copy` и PUT в S3), разовые проходы уборщика — стратегии `batch` и `head`, глубокая, CPU уборщика, предел скорости, фоновая нагрузка, отказ по пределу «до» и «после»; счёт сверки против метрик шлюза S3, CPU и память за окно прохода; результаты — `evidence/reconcile/<метка>/` |
| `run.py` (профили `scaling_*`), `scaling.py`, `sampler.sh`, `k6/mixed.js` | `make bench_scaling SERIES=a\|b\|pool\|ab\|db\|db4`, `make bench_scaling_quick`, `SERIES=db_quick` | серии трека 1: конфигурации реплик и лимитов, на каждую ячейку — свежий стенд, открытая модель, фиксированные уровни и поиск R* по SLO, посекундный сэмплер контейнеров, ВМ, LB и PostgreSQL; результаты — `evidence/bench/<метка>/` |
| `plots.py` | `make bench_plots LABELS="…"` | графики SVG и сводка серий (R* от числа реплик, p95 от интенсивности, CPU по компонентам, точка насыщения) — `evidence/plots/<PLOTS>/` |
| `compare.py` | `make bench_compare` | дельта двух меток стенда (ячейки матрицы или общие конфигурации серий), эффект или шум |
@@ -158,10 +159,15 @@ change `s3-storage`, решение 9): старт стенда перечисл
поля в паспорте не имеют. Там же исправлено: контейнер сэмплера (образ
PostgreSQL) удаляется с `-v`, иначе каждый запуск оставлял анонимный
volume `/var/lib/postgresql`;
- **S3** — запускает только профиль `uploads`: образ, аргументы и
лимиты рабочего стенда (`BENCH_S3_*`, 1 CPU / 512 МБ, swap = память),
bucket `bench` (`bench.env`) и пользователи — тот же `s3-bootstrap`;
override `s3` нужен compose и в остальных профилях;
- **S3** — запускают только профили `uploads` и `reconcile`: образ,
аргументы и лимиты рабочего стенда (`BENCH_S3_*`, 1 CPU / 512 МБ, swap =
память; у `reconcile` — ещё порт метрик шлюза на loopback), bucket
`bench` (`bench.env`) и пользователи — тот же `s3-bootstrap`; override
`s3` нужен compose и в остальных профилях;
- **уборщик** — запускает только профиль `reconcile` разовыми проходами:
лимиты `BENCH_CLEANER_*` (`cleaner_cpus` 0,25, `cleaner_memory` 256m —
рабочего стенда, без swap) compose требует при разборе у всех профилей;
окружение реплик (`stand.app_env`) они не меняют;
- **PostgreSQL `max_connections`:** 100, как у образа (`-c
max_connections` в override); у серий — из конфигурации ячейки,
лимиты конфигурации в паспорте (`limits.<конфигурация>`);
@@ -375,6 +381,119 @@ docker — `bench/uploads.py` (`--selftest`).
рабочий стенд остановлен (`make stop`), гипотезы H1–H4 закоммичены
раньше метки.
## Профиль сверки (`reconcile`)
Спек `load-benchmark`, «Профиль сверки» и «Стоимость сверки в отчёте»;
design change `track2-reconcile-cost`, решения 1–3, 7–13. Методика — поля
`Profile` (`reconcile_*`, `cleaner_*`) в `run.py`, модель набора, план,
разбор, вердикты и сводка без docker — `bench/reconcile.py`
(`--selftest`), загрузчик объектов — `bench/fill_objects.py`, фоновая
нагрузка — `bench/k6/background.js`.
- **Стенд:** LB, две реплики 1 CPU / 512 МБ, PostgreSQL 2 / 1 ГБ, Valkey
0,5 / 128 МБ, S3 и `s3-bootstrap` рабочего стенда; к аргументам S3
добавлен `-metricsPort=9327` (override `.work/s3-metrics.compose.yml`
из `command` сервиса `s3` по `docker compose config` того же стенда —
списка аргументов в двух местах нет). Порт слушает loopback контейнера
S3, из сети стенда недоступен; **у прочих профилей и рабочего стенда его
нет**. Сэмплер `scan` с интервалом 0,5 с (`reconcile_sample_interval_s`)
на этап, k6 без лимита.
- **Проход** — разовый уборщик `docker compose run -d --name
mtusi-bench-reconcile-<n> --no-deps -e CLEANER__PENDING_GRACE_SECONDS=30
cleaner reconcile …` (лимиты `BENCH_CLEANER_*` в `bench.compose.yml` —
0,25 CPU / 256 МБ без swap, в управляемом опыте `BENCH_CLEANER_CPUS=1`
на вызов), затем `docker wait`, журнал, `docker inspect` и `docker rm`
при любом исходе. Вариант «до» — тот же вызов с override
`.work/cleaner-before.compose.yml` (`image: mtusi-messenger:bench-from`,
`Profile.reconcile_before` — `7f4e626`, последний commit до change;
`git archive` → тег `bench-from`, проверка commit до стенда — код 2, как
у `rollout_from`; смена при переходе в лабу 5 — так же). Тег стенда не
меняется.
- **Этапы полной метки:** A — свежий стенд, 1 000 × 1 MiB, `batch`,
`deep`, `deep-fast`; B — свежий, 10 000 × 4 KiB, `batch`, `head`,
`deep`; C — тот же, +20 000, `batch`, `head`; D — тот же, +70 000,
`batch` и блок под нагрузкой `stand`, `stand-unlimited`,
`fast-unlimited`, `fast-limited`; S4 — свежий, 10 000 согласованных и
1 000, затем 10 000 строк `ready` без объектов, `before` и `after`
(`--apply --max-changes 100`, у `after` — без предела скорости). Три
повтора кругами внутри группы (`reconcile.plan_passes`), план — в
`meta.json` до первого прохода. У группы из одной ячейки (D без
нагрузки — только `batch`) повторы идут подряд: остальные проходы
набора — блок под нагрузкой (спек `load-benchmark`, verify S8). Ячейки без нагрузки — dry-run без
предела скорости. `reconcile_quick` — один стенд 2 000 × 4 KiB, все
виды по одному проходу, окна 5 с, S4 с 300 кандидатами на своём свежем
стенде.
- **Набор** (решение 2): объект `i` — `id` UUID v4 из SHA-256
`<зерно>:<i>`, содержимое — повторённый SHA-256 `<зерно>:<i>:c`, класс —
`i mod 400` (0 — объект без строки, 1 — строка без объекта, 2 — размер
в строке на байт больше, 3 — зависшая загрузка `pending` с объектом);
строки — читаемый чат и его владелец из `prepare.js`, `created_at` =
`updated_at` = сутки назад. Проходы этапа — через grace + 2 с после
последнего PUT. Каждый проход сверяет `found` по классам,
`listed_objects` и `checked_rows` с моделью (`reconcile.model`):
расхождение — отказ команды с проходом, классом и обоими числами.
- **Граница чёрного ящика** — новые исключения, только у этого профиля и
только на свежем стенде `mtusi-bench`:
- метаданные набора — `\copy attachments (…) FROM STDIN` через `docker
exec -i … psql` (данные стенда, схему не трогает; файла CSV нет —
строки генерирует `reconcile.rows_csv`);
- объекты — `bench/fill_objects.py` в контейнере `mtusi-bench-fill` на
образе стенда (botocore образа, `src` не импортируется, `bench/` на
чтение, ключи API — `docker run -e <имя>` без значения в argv, три
процесса × 24 потока);
- метрики шлюза S3 — `docker exec mtusi-bench-s3 wget` на loopback до
и после прохода; `pg_stat_database` — psql до и после;
- проход — процесс уборщика из образа, результат — его записи
«Started cleaner», «Finished reconcile pass», «Reconcile changes
exceed limit» (`raw/<проход>-cleaner.json`; записи о расхождениях —
числом).
`mtusi-bench-fill` и `mtusi-bench-reconcile-*` — в остатках стенда и в
уборке `Stand.stop()`.
- **Счёт S3:** шлюз считает HEAD типом GET, поэтому `LIST = list`,
`GET = head + get`, `DELETE = delete`; в ячейках без нагрузки неравенство
— пометка `count_mismatch` (строка остаётся).
- **Ресурсы:** окно прохода — `[t − duration_ms, t]`, `t` — время записи
«Finished reconcile pass» (часы ВМ); CPU уборщика (по `id` контейнера
прохода), S3, PostgreSQL, реплик и LB — по отсчётам сэмплера; память
уборщика — выборка у начала окна и наибольшая за жизнь контейнера.
- **Фоновая нагрузка (H4):** один k6 `background.js` на блок — 300
скачиваний (5 000 согласованных вложений от зерна, `.work/downloads.json`),
50 записей и 50 чтений истории в секунду; тихие окна 30 с перед первым
проходом и после каждого; окна «до» и «после» — по старту и выходу
контейнера, окно прохода — по итогу. k6 останавливается `pkill -INT -f
background.js` в контейнере k6 (итог он пишет и тогда). Полнота строк
(`reconcile.line_problems`): строк `bg,…` сценария не меньше итераций
сценария и не меньше счётчика k6 `bg_lines_<сценарий>` (его
увеличивает тот же код перед строкой; меньше — «lines lost», отказ), а
лишних против каждого — не больше VU сценария (`reconcile_bg_max_vus`)
и не больше VU, созданных k6 за прогон (`vus_max` итога, verify S4).
Лишние — итерации, прерванные SIGINT уже после строки: k6 их в
`iterations` не считает, а их отсчёт счётчика может не принять (метка
`aaf3fa3` упала на 264 071 строке download против 264 070 итераций,
`a42dd27` — на 43 997 строках write против 43 996 и итераций, и
отсчётов). Число прерванных — в `meta.reconcile.bg_interrupted`.
Точного равенства нет ни с одним счётом. `r` = p95 прохода
/ p95 тихих, `a` = p95 до / p95 после; 5xx окон прохода — пометка
`bg_5xx`, неуспешные запросы (`http_req_failed`) и недосланные итерации
(`dropped_iterations`) по всему итогу k6 — пометки `bg_failed` и
`bg_dropped` всех проходов блока (`meta.reconcile.bg_errors`, verify
S9); с любой из трёх H4 не подтверждается.
- **Сравнение:** все варианты — внутри одной метки; второй метки A/A нет
(шум — разброс повторов и `a`). `make bench_compare` метки сверки не
сравнивает: он читает `evidence/bench/`, у сверки другая методика.
- **Результаты:** `evidence/reconcile/<метка>/` — `meta.json` (раздел
`reconcile`: план, этапы и модели, commit и образы «до», аргументы S3,
CPU уборщика, фоновая нагрузка; `limits.cleaner` по CPU), `passes.csv`
(строка на проход, новые столбцы — в конец; с verify S6 —
`fixed_total` и `fixed_records`, неизменность данных S4; у метки
`baseline` их нет), `windows.csv`, `summary.md`
(таблицы, S4, вердикты H1–H4 и S4), `cost-by-n.svg`, `requests-by-n.svg`,
`background-p95.svg`, `raw/`. `quick-reconcile-*` — в `.gitignore`.
- **Время:** полная метка ~50 мин (45 мин у `baseline`), быстрая ~4 мин
(3,7 мин на шумном хосте). Замер для отчёта —
`make bench_reconcile` на тихом хосте, рабочий стенд остановлен (`make
stop`), гипотезы H1–H4 закоммичены раньше метки.
## Серии трека 1 (`scaling_*`)
Доказательство уровня «5», трек 1 «Цена масштабирования» (design change
+17 -1
View File
@@ -5,6 +5,8 @@ paths:
- ".dockerignore"
- "scripts/restart.sh"
- "infra/**"
- ".github/ci/**"
- ".github/workflows/application.yml"
---
# Dockerfile и compose
@@ -313,7 +315,11 @@ git ls-files -z -co --exclude-standard | tar --null -T - -cf - | docker build -t
уборщика нет; разовый проход — `docker compose run --rm --no-deps
cleaner --once`. Стенд отказов запускает его с grace 20 с, интервалом
1 с и без плановой сверки (`RECONCILER__INTERVAL_SECONDS: "0"`,
`student-tests.md`), `bench/` описывает (тоже с 0), но не запускает.
`student-tests.md`), `bench/` описывает (тоже с 0) и запускает только
разовыми проходами профиля сверки (`bench.md`, «Профиль сверки»). Выход
процесса — `os._exit` после `main()` (`src/cleaner/__main__.py`):
финализация интерпретатора при 0,25 CPU — до 1,5 с (design change
`track2-reconcile-cost`, «Уточнения apply», п. 14).
С change `track2-reconciler` сервис ещё и сверяет bucket с БД — при
старте и раз в `[reconciler] interval_seconds` (3600 с); разовая
сверка — `make reconcile [APPLY=1] [MAX_CHANGES=N]` (`docker compose
@@ -330,6 +336,16 @@ git ls-files -z -co --exclude-standard | tar --null -T - -cf - | docker build -t
длинной записью с `create_host_path: false` (`infra/README.md`). В
`REPORT.md` — таблица роль → сервис → версия/digest → healthcheck →
volume → порт → способ передачи credentials.
- **Стенд в CI** — тот же `docker-compose.yml` плюс override
`.github/ci/compose.yml` (job `.github/workflows/application.yml`,
AGENTS.md, карта кода). Job раннера Gitea — контейнер на том же Docker,
что стенд: bind mount файла из рабочего каталога там не работает (пути
нет на хосте раннера), порты хоста job не видит. Override заменяет
каждый bind mount на `configs` из переменной окружения
(`.github/ci/stand-env.sh`), убирает `ports` (`!reset []`) и даёт образу
API тег прогона. Поэтому новый bind mount, новый порт или новый сервис
на образе API в `docker-compose.yml` — строка и в override, иначе job
упадёт на `bind source path does not exist` или возьмёт чужой образ.
## Обновление кода на стенде
+11
View File
@@ -56,3 +56,14 @@ paths:
`ReconcileFindingDTO` (класс, ключ, `id`, возраст, размеры) и
`ReconcilePassDTO` (итог прохода; `found` и `fixed` — неизменяемые
отображения `MappingProxyType`, а не `dict`: DTO frozen).
- Стоимость сверки (design change `track2-reconcile-cost`, решения 8 и
15): `ReconcileFinding.CHECKSUM_MISMATCH` (`checksum_mismatch`) и
`ReconcileStrategy` (`batch`, `head`) в `enums/attachment.py`;
`ReconcilePassDTO` — новые поля в конце со значениями по умолчанию:
`strategy`, `deep`, `max_objects_per_second`, `storage_objects`,
`s3_requests` и `phase_ms` (`MappingProxyType`, по умолчанию пустой —
`field(default_factory=…)`), `read_bytes`, `db_sessions`, `unchecked`;
`ReconcileFindingDTO.sha256: bytes | None = None` — SHA-256 строки для
перепроверки прочитанного объекта, в журнал не попадает. Снимок
счётчиков клиента S3 `StorageStats` — тип `src/infra/s3`, не DTO
слоёв.
+12 -3
View File
@@ -219,12 +219,21 @@ paths:
префикс). Нет bucket — `ObjectStorageUnavailable` («bucket is
missing»), а не пустая страница: у списка и 404 без тела считается
отсутствующим bucket; отказ в списке — «denied access».
`StoredObjectInfo.last_modified` — из списка и HEAD (часы S3,
точность — секунда), у `open` — `None`. Порядок списка SeaweedFS —
`StoredObjectInfo.last_modified` — из списка, HEAD и GET (часы S3,
точность — секунда). Порядок списка SeaweedFS —
обход каталогов, а не порядок байтов: сверка не сливает
отсортированные потоки, а собирает множество ключей. Префикс —
только `<namespace>/attachments/` (repo): политика уборщика другие
префиксы запрещает;
- счётчики клиента (design change `track2-reconcile-cost`, решение 8):
попытки вызовов по операциям — в `_call` до вызова, в том числе
неудачные (`OPERATION_NAMES`: `list`, `head`, `get`, `delete`, `put`),
ключи страниц — в `list_page`, прочитанные байты — в `_read_chunk`.
`stats()` — неизменяемый снимок `StorageStats` (`calls` —
`MappingProxyType`); стоимость прохода сверка считает разностью
снимков. На поведение, сроки и перевод ошибок счётчики не влияют.
`open` отдаёт и `last_modified` (GET), чтобы глубокая сверка `head`
проверяла свежесть без HEAD;
- адресация `path`: `bucket.s3` Docker DNS не разрешает;
простаивающее соединение aiohttp закрывает через
`S3_KEEPALIVE_TIMEOUT_SECONDS` (15 с), раньше шлюза (120 с);
@@ -243,7 +252,7 @@ paths:
дефект;
- обхода и пропуска после отказа, как у Valkey, нет: без S3 путь
вложений всё равно 503. `/health/ready` S3 не проверяет (спек
`health`, решение 3 `PLAN.md`): текст работает без него.
`health`, design change `s3-storage`): текст работает без него.
- Клиенты внешних сервисов: адреса и секреты из `settings`
(`.claude/rules/settings.md`), таймаут на каждый вызов, ошибки
переводятся в доменные исключения. Логи — по `logging.md`, без
+11 -1
View File
@@ -201,7 +201,17 @@ paths:
`fresh_rows`, `lost_known`, `refused`, `unlogged`, `interrupted_by`,
`duration_ms`): `info`, если ничего не осталось, иначе `warning`;
- предел — `error` «Reconcile changes exceed limit» (`changes`,
`max_changes`);
`max_changes`, с change `track2-reconcile-cost` — `unchecked`;
`changes` после раннего отказа — `max_changes + 1`, нижняя граница);
- стоимость прохода (change `track2-reconcile-cost`, решения 8 и 15):
записи прохода связаны полями `strategy` и `deep`; итог ещё называет
`max_objects_per_second`, `storage_objects`, `s3_requests` (`list`,
`head`, `get`, `delete`), `read_bytes`, `db_sessions`, `unchecked`,
`phase_ms` (`list`, `rows`, `stale`, `recheck`, `act`) — ключи
постоянные, значения числа; «Started cleaner» — ещё
`reconcile_max_objects_per_second`, а у разового прохода
`reconcile_strategy` и `reconcile_deep` (у сервиса — `null`). SHA-256
объектов и строк в записях нет;
- непредвиденная ошибка — `error` «Reconcile pass failed» с traceback
(`cleaner`); «Started cleaner» с change называет ещё `mode`,
`reconcile_interval_seconds`, `reconcile_page_size`,
+13 -1
View File
@@ -137,7 +137,19 @@ access_log=False)`. Импорты в `src/__main__.py` — внутри `if __n
уборки и времени до сверки. Пока идёт сверка, уборка ждёт;
- SIGTERM во время сверки: текущий вызов S3 или шаг с БД доводится,
новые страницы и действия не начинаются, итог — `interrupted_by:
stop`; сервис выходит с кодом 0, разовый проход — с 1.
stop`; сервис выходит с кодом 0, разовый проход — с 1. Паузу предела
скорости сигнал прерывает сразу (куски по 0,2 с): остановка — не
позже секунды (`driver.py reconcile-signal --pace`). Для этого
`src/cleaner/__main__.py` после `main()` выходит `os._exit(code)`
(stdout и stderr сброшены, клиенты закрыты): финализация
интерпретатора при 0,25 CPU — 0,8–1,5 с (design change
`track2-reconcile-cost`, «Уточнения apply», п. 14);
- с change `track2-reconcile-cost` (решения 4–6) у разового прохода ещё
`--strategy {batch,head}` (по умолчанию `batch`), `--deep` и
`--max-objects-per-second R` (≥ 0, иначе ошибка argparse, код 2; без
аргумента — `[reconciler] max_objects_per_second`); `make reconcile
STRATEGY=head DEEP=1 RATE=R`. Плановая сверка — всегда `batch`, без
глубокой, предел из настроек.
- Непредвиденная ошибка прохода — `error` с traceback, процесс живёт
до следующего прохода; отказ S3 или PostgreSQL — `warning`, без
перезапуска (решение 5).
+55 -4
View File
@@ -148,7 +148,7 @@ paths:
lost» и `AttachmentNotFound` (404) до обращения к S3; метаданные и
`MessageService` эту колонку не смотрят (200 и 201, как у любого
`ready`). Ответ — вариант по умолчанию до ответа преподавателя
(`PLAN.md`, `### track2-reconciler`, «Вопросы», п. 1);
(`REPORT.md`, «Открытые вопросы преподавателю», п. 2);
- сверка bucket и БД — `AttachmentReconcileService(db_scope,
storage)` (`services/attachment_reconcile.py`, design change
`track2-reconciler`, решения 3, 4, 7, 8), сервис процесса уборщика:
@@ -180,9 +180,60 @@ paths:
объект»: без HEAD, без пометки и без уборки; HEAD, пометка, снятие и
DELETE ещё раз проверяют префикс (design change `track2-reconciler`,
«Уточнения apply», п. 19). Отказ S3 или БД — `interrupted_by`, после
сигнала — `stop`; `stop_requested()` (`_check_stop`) — перед каждым
вызовом S3 и шагом с БД: остановка ждёт не больше одного вызова (п.
20);
сигнала — `stop`; `stop_requested()` (`_Pass.check_stop`) — перед
каждым вызовом S3 и шагом с БД: остановка ждёт не больше одного вызова
(п. 20);
- стоимость сверки (design change `track2-reconcile-cost`, решения
4–8): `reconcile(…, strategy, deep, max_objects_per_second, …)`.
Параметры, счётчики и находки прохода — `_Pass`, вызовы S3 — свои
обёртки сервиса (`_list_page`, `_probe`, `_head`, `_read`, `_delete`):
сигнал до вызова, предел скорости после;
- `strategy=head` — только разовый проход: шаг S3 → БД — выборка
строки на объект (`get_attachments_for_objects` с одним элементом),
пара «строка — объект» с тем же ключом пропускается; шаг БД → S3 —
HEAD на строку своей базы (с `deep` у непомеченной строки старше
grace — сразу GET). Множества `seen` нет. Классификация пары —
общая `_row_with_object`, строки без объекта — `_row_without_object`:
расхождения те же, что у `batch`. Каждая строка сравнивается с
объектом по своему ключу: у `batch` шаг списка сравнивает объект
стандартного ключа со строкой своего `id`, нестандартного — с
каждой строкой этого ключа, а строку с ключом `<id>/original`
другого вложения — шаг строк HEAD (`_key_of_other_id`; verify W2,
design, «Правки по verify», п. 2);
- `deep` — GET и SHA-256 потоком (`open_original`, блоки клиента,
`hashlib`) у строки `ready` без пометки, старше grace, с объектом
того же размера, не моложе grace; класс `checksum_mismatch` — в
`LIMITED_KINDS` и `ACTION_ORDER` (пометка), не в `NEEDS_BUCKET`.
«Оригинал вернулся» и «другой SHA-256» (`NEEDS_READ`) перепроверка и
действие подтверждают заново прочитанным объектом: размер и SHA-256
строки (`ReconcileFindingDTO.sha256`). Без `deep` вернувшийся объект
тоже читается — пометку снимает только тот же SHA-256; другой —
`lost_known`. Объект моложе grace — свежий и в перепроверке: «другой
SHA-256» читается с `fresh_before` (`_fresh_before`), объект другого
размера свежим не подтверждается ни в классификации, ни в
перепроверке, ни перед пометкой; вернувшийся читается без порога
(verify S1);
- предел скорости — после каждого вызова S3 (`_pace`): затронуто
(`_touched` — ключи страниц и HEAD/GET/DELETE, разность
`storage.stats()` с начала) больше `R × время с начала прохода` —
`asyncio.sleep` кусками ≤ `RECONCILE_PACE_STEP_SECONDS` (0,2 с) с
проверкой сигнала. Пауза после вызова, а не перед следующим: тогда и
последний вызов прохода не обгоняет предел (design, «Уточнения
apply»). DELETE шага уборки зависшей — тоже: `_pace` после
`remove_stale_pending`. Сигнал прекращает ожидание, но `_pace` не
бросает `_Stopped`: итог вызова перед паузой (страница, удаление)
доходит до записи «Fixed» и счёта, а проход останавливает
`check_stop()` перед следующим вызовом (verify W1);
- ранний отказ: с `apply` в `_recheck_all`, как только подтверждённых
классов `LIMITED_KINDS` больше `max_changes`, остальные кандидаты
этих классов не перепроверяются, а считаются в `unchecked`; `_act`
отказывает тем же условием (`changes` = `max_changes + 1`). Dry-run
перепроверяет всех;
- счёт сеансов — обёртка `db_scope` сервиса (`self.db_scope` считает
и вызывает фабрику), её же получает внутренний
`AttachmentCleanupService`; длительность шагов — `_Pass.phase` (`list`,
`rows`, `stale`, `recheck`, `act`). Плановая сверка — `batch`, без
`deep`, предел из настроек (`src/cleaner/main.py`);
- `MessageService.send_message(..., attachment_ids)`: членство →
`get_attachments` (все найдены, чат этого сообщения, `ready`; иначе
`AttachmentNotFound` до захвата ключа) → хэш → ключ → сообщение →
+17 -2
View File
@@ -138,8 +138,8 @@ compose полю секции:
`POSTGRES_PASSWORD`, `VALKEY_PASSWORD` и шесть секретов S3 и печатает
только их имена. Существующий `.env` он не перезаписывает, а дописывает
в конец переменные шаблона, которых в нём нет (с change
`upload-consistency`, ответ основной сессии на вопрос 1 его
`PLAN.md`): секреты — случайными значениями той же подстановкой, что для
`upload-consistency`, design, «Уточнения apply», п. 1): секреты —
случайными значениями той же подстановкой, что для
нового `.env` (`ENV_FILLED`), остальные — значениями шаблона, под
комментарием `# added by make env_setup from .env.example`. Прежние
строки не меняются, в вывод — только имена («added to existing .env:
@@ -241,6 +241,21 @@ pending_grace_seconds` и его проверка при старте (одна
`reconcile_page_size`, `reconcile_max_changes` и `mode`. Стенд отказов и
`bench/` — `RECONCILER__INTERVAL_SECONDS: "0"`.
С change `track2-reconcile-cost` (решение 6) ещё `max_objects_per_second`
(float, `ge=0`, `allow_inf_nan=False`, 2000; 0 — без предела; `inf` —
ошибка: «Started cleaner» было бы не JSON, verify S2; у прочих полей
`float` тот же дефект — `KNOWN_ISSUES.md`) — предел скорости прохода:
объектов S3 в секунду в среднем от начала прохода (ключи страниц списка,
HEAD, GET, DELETE). Разовая подмена — `RECONCILER__MAX_OBJECTS_PER_SECOND`,
у разового прохода — `--max-objects-per-second R` (`make reconcile
RATE=R`); плановая сверка берёт значение из настроек. Почему 2000: CPU
шлюза на ключ списка — 0,085–0,11 мс (проба), 2000 ключей в секунду —
~0,2 ядра S3 из 1; проход 100k на лимите стенда — с ~30 до ~65 с, на
рабочем стенде (2–3 тыс. объектов) — ~1,5 с в час; граница нагрузки на
S3 не зависит от CPU уборщика. Проверка выбора — метка профиля сверки
(`bench.md`), итог — `REPORT.md`. «Started cleaner» называет
`reconcile_max_objects_per_second`.
`.env.example` skeleton lab2 предлагает «логические» имена: `APP_HOST`,
`APP_PORT`, `APP_ENV`, `SESSION_TTL_SECONDS`, `DATABASE_URL_FILE`,
`SESSION_STORE`, `CACHE_URL_FILE`; шапка шаблона просит сопоставить их
+53 -1
View File
@@ -289,6 +289,54 @@ paths:
первом раунде (загрузки 4, 8, 3: 503 `unavailable`, в журнале API —
`put_object` `ReadTimeoutError` за 1 мс); после правки — 1 passed,
~16 с (`evidence/tests/failure-checks.md`);
- с change `track2-reconcile-cost` (design, решение 14) — стоимость
сверки, тоже проверки отказов, в конце `test_failures.py`:
- hook: `reconcile dry-run|apply [<предел>] [--strategy batch|head]
[--deep] [--max-objects-per-second R]` — каждый аргумент по списку
(`reconcile_options`: стратегия из двух, R — неотрицательное число,
повтор флага — отказ), иначе код 2 hook; команде передаются как есть.
`run_reconcile(stand, mode, limit, options=…)` в тестах;
- тесты: `test_reconcile_head_strategy_same_findings` (расхождения как в
`…_finds_and_fixes`, уборщик стоит; dry-run `batch` и `head` — свои
классы и ключи, весь отчёт, `found`, `listed_objects`, `checked_rows` и
коды равны, у `head` больше HEAD и сеансов; затем apply — стенд без
внесённого), `test_reconcile_deep_checksum` (A в сообщении
перезаписано другими байтами того же размера, `age-row`, G + 1:
поверхностная A не называет, `--deep` — `checksum_mismatch`,
`read_bytes`, код 3, ничего не изменилось, SHA-256 обоих тел в журнале
нет; `--deep --apply` — пометка, 404 / 200),
`test_reconcile_restore_needs_same_bytes` (помечено → другие байты
того же размера, G + 1: apply пометку не снимает, 404 → те же байты,
G + 1: снята, 200 с тем же SHA-256), `test_reconcile_rate_limit`
(восемь загрузок и одна потеря, уборщик стоит; dry-run с пределом 0 и
с R = max(5, ⌈объектов / 4⌉): `duration_ms ≥ 1000 × storage_objects /
R × 0,95`, без предела короче, находки и коды равны),
`test_reconcile_limit_stops_rechecks` (6 потерь, apply с пределом 2:
код 3, `changes` = 3, `unchecked` ≥ 3, ни одной пометки; dry-run
называет все шесть, `unchecked` 0; apply 100 — помечены). Байты
«того же размера» — `same_size_bytes(data, seed=…)` от зерна теста;
по замечаниям verify — `test_reconcile_row_with_other_id_key` (W2: Y1
и Y2 ссылаются на `<Z1>/original` другого размера и `<Z2>/original`
тех же размера с другими байтами; dry-run `--deep` обеими стратегиями
— Y1 `size_mismatch`, Y2 `checksum_mismatch`, четыре объекта чужие,
без `--deep` — только Y1; `--deep --apply` — обе помечены, объекты на
месте; записи сравниваются тройкой «класс, ключ, `id`»,
`own_findings`) и `test_reconcile_fresh_overwrite_untouched` (S1:
объекты двух состаренных вложений перезаписаны только что — другим
размером и другими байтами; `--deep --apply` и `--deep --strategy
head` в пределах grace — ни находок, ни пометок, `fresh_objects` ≥ 2;
после G + 1 — `size_mismatch` и `checksum_mismatch`; исходные байты
возвращаются в `finally`);
- красный прогон на `7f4e626` (тесты и hook из рабочего дерева): упали
все пять — новые аргументы — ошибка argparse (код 2; у `head` пустой
отчёт, у предела скорости нет итога), у глубокой нет поля `deep`,
пометку снимал другой объект того же размера, `changes` 7 вместо 3
(`evidence/tests/failure-checks.md`). Тесты verify — на `16f2cde`:
`…_row_with_other_id_key` красный (`batch` не назвал Y1 и Y2),
`…_fresh_overwrite_untouched` красный (объект другого размера,
перезаписанный только что, помечен); W1 тестом отказов не
проверяется — hook не шлёт сигнал посреди прохода, это `driver.py
reconcile-signal --pace --apply`;
- исключения сверки: «Принявшая реплика остановлена» — `driver.py
attachment-failover` → `evidence/attachments/failover.md`; «Байты не в
БД и не на диске API» — `driver.py attachment-storage` →
@@ -379,7 +427,11 @@ paths:
С change `track2-reconciler` — без плановой сверки
(`RECONCILER__INTERVAL_SECONDS: "0"`, строка `start cleaner` называет
и её интервал), а `<проект>-cleaner-scheduled` hook `run-cleaner`
убирается вместе с API. Прогон — ~10 мин (с change
убирается вместе с API. Прогон — ~15 мин (с правками по verify
`track2-reconcile-cost` — 56 проверок, pytest 877 с, вся команда 898 с
на шумном хосте: два теста verify ~1,5 мин; до них — 54 проверки,
pytest 712 с: пять тестов
стоимости сверки ~3,5 мин, из них ожидание grace — 4 × 21 с; с change
`fix-upload-put-flake` — 49 проверок, pytest ~550–570 с: тест простоя S3
~17 с, остальное — разброс хоста; до него 48 проверок, pytest ~535 с;
до правок по verify `track2-reconciler` — 45 и ~460 с;
+3 -1
View File
@@ -126,7 +126,7 @@ python3 $D stop
| `upload-consistency` | только стенд с LB: спеки `attachments` «Порядок записи» и `storage-consistency` (design change `upload-consistency`, решение 11). Синтетические Алиса, Боб и чат; готовое вложение R. Шаги: (1) `docker compose pause s3` → загрузка через LB — 503 за ~5 с → `unpause` в `finally`; новая строка `pending` по psql (`id`, статус, возраст, ключ); (2) триггер «фиксация `ready` падает» (SQLSTATE 08006) на рабочей базе только для уникального `filename` прогона → загрузка 503 → строка `pending`, объекта уже нет (компенсация), триггер снят (`finally`, и остаток прошлого прогона — в начале); (3) метаданные, байты и сообщение со ссылкой на обе строки — 404; (4) после grace прогона 30 с — `docker compose run --rm --no-deps -e CLEANER__PENDING_GRACE_SECONDS=30 cleaner --once`, его JSON-вывод; (5) psql и `weed shell fs.tree` (файлы `original`, а не каталоги) — ни строк, ни объектов обеих загрузок, объектов без строки под префиксом рабочей базы нет; R скачивается с тем же SHA-256. Таблица «проверка → ожидаемо → получено» без токенов и секретов; код 1 при расхождении, без LB — код 2. ~45 с. Вывод — `evidence/attachments/consistency.md` |
| `reconcile-cycle` | только стенд с LB: спеки `storage-consistency` (сверка bucket и БД) и `attachments` «Потерянный оригинал» (design change `track2-reconciler`, решение 12). (1) исходный dry-run с grace по умолчанию — расхождений нет, иначе код 2; (2) синтетические Алиса, Боб, чат, вложения A (в сообщении), B, C; (3) объект O без строки и чужой ключ X — `docker exec` реплики (botocore образа её ключами), объект A удалён (`weed shell fs.rm`), строка B удалена и размер C изменён (psql), P — триггер COMMIT на уникальный `filename` (503, строка `pending` и объект); (4) после grace 30 с dry-run: таблица «класс → действие → ключ → `id` → возраст», снимки строк, объектов и пометок до и после совпали; (5) байты A — 500; (6) свежий F, `--apply`: O, B удалены, A, C помечены, P убрана, F не тронут, байты A — 404, метаданные A — 200 и равны ответу загрузки, история отдаёт A; (7) повтор — только чужой X, код 3; оператор удаляет X — код 0; после grace F удалён; (8) A возвращён теми же байтами — «оригинал вернулся», байты 200 с тем же SHA-256, итоговый dry-run — код 0. Таблица «проверка → ожидаемо → получено» без токенов; код 1 при расхождении, без LB — код 2. ~2 мин. Вывод — `evidence/reconcile/cycle.md` |
| `reconcile-stress [--seconds S] [--clients N]` | только стенд с LB: «Сверка под нагрузкой». Предусловие — dry-run с grace 20 с без расхождений (иначе код 2); два объекта без строки и два вложения без объекта; N клиентов (4) S секунд (40, больше grace) загружают PNG ~100 KiB из шума и отправляют сообщения, поток сверки — `--apply` с grace 20 с раз в ~3 с, затем ещё один проход. Итог: загрузки по кодам, сообщения, коды проходов, исправления по классам; проверки — внесённые исправлены (объекты удалены, новые пометки — ровно внесённые), каждое 201 скачивается с тем же SHA-256, каждое сообщение отдаёт своё вложение, ни одного прерванного прохода, повтор dry-run — код 0. Проверка корректности, не замер. Вывод — `evidence/reconcile/stress.md` |
| `reconcile-signal` | только не рабочий проект compose (выбор — окружением `COMPOSE_PROJECT_NAME`, `COMPOSE_FILE`, `COMPOSE_ENV_FILES`; `mtusi-lab4` — отказ, код 2): спек `graceful-shutdown`, разовый проход сверки, прерванный сигналом, — код 1 (design change `track2-reconciler`, «Уточнения apply», п. 23). Нужны запущенные `s3` и образ уборщика, LB и реплики не нужны. `docker compose pause s3` → `run -d --no-deps --name <проект>-reconcile-signal cleaner reconcile --apply` → через секунду после «Started cleaner» `docker stop` → код контейнера и журнал → `rm`, `unpause s3` в `finally`. Записи процесса (событие, уровень, операция, `interrupted_by`, `exit_code`) и таблица: код 1, `interrupted_by: stop`, «Stopped cleaner» с `exit_code` 1, записей «Fixed» 0, остановка быстрее 10 с; код 1 при расхождении. ~10 с. Вывод — раздел `evidence/reconcile/service.md` |
| `reconcile-signal` | только не рабочий проект compose (выбор — окружением `COMPOSE_PROJECT_NAME`, `COMPOSE_FILE`, `COMPOSE_ENV_FILES`; `mtusi-lab4` — отказ, код 2): спек `graceful-shutdown`, разовый проход сверки, прерванный сигналом, — код 1 (design change `track2-reconciler`, «Уточнения apply», п. 23). Нужны запущенные `s3` и образ уборщика, LB и реплики не нужны. `docker compose pause s3` → `run -d --no-deps --name <проект>-reconcile-signal cleaner reconcile --apply` → через секунду после «Started cleaner» `docker stop` → код контейнера и журнал → `rm`, `unpause s3` в `finally`. Записи процесса (событие, уровень, операция, `interrupted_by`, `exit_code`) и таблица: код 1, `interrupted_by: stop`, «Stopped cleaner» с `exit_code` 1, записей «Fixed» 0, остановка быстрее 10 с; код 1 при расхождении. ~10 с. `--pace` (design change `track2-reconcile-cost`, решение 14): вместо `pause s3` — 8 объектов пробы под `<база>/attachments/pace-signal-*` мимо API (`docker compose run --rm --no-deps -T --entrypoint python api -`: botocore образа ключами API из окружения контейнера), `cleaner reconcile --max-objects-per-second 1` (dry-run), `docker stop` через 2 с после «Started cleaner» — во время паузы предела скорости; ожидание — код 1, `interrupted_by: stop`, «Stopped cleaner» с `exit_code` 1, остановка ≤ 1 с, `listed_objects` итога — 8 (ключи страницы перед паузой, verify W1); объекты пробы удаляются в `finally`. `--pace --apply` (verify W1, ~45 с): объекты пробы — `<база>/attachments/<uuid>/original` без строки, через 19 с (grace прохода 18 с, `-e CLEANER__PENDING_GRACE_SECONDS=18`) `reconcile --apply --max-objects-per-second 1`, `docker stop` через 19,5 с после «Started cleaner» — посреди удалений, в паузе после DELETE; перед уборкой — сколько объектов пробы осталось (HEAD); ожидание — то же и «Fixed» = `fixed.orphan_object` = удалённых > 0. Нужен ещё сервис `api` в конфигурации проекта (реплики не нужны). Вывод — раздел `evidence/reconcile/service.md` |
| `s3-idle [--rounds 3] [--downloads 10] [--puts 12] [--size-mib 4] [--pause-ms 0.5]` | только стенд с LB: спеки `object-storage` «Вызов после простоя» и `attachments` «Загрузка после простоя S3» (design change `fix-upload-put-flake`, решение 4). Проба клиента S3 в первой работающей реплике `api`: `docker exec -i <реплика> python -` со скриптом из stdin — код, настройки и ключи образа, ключи в драйвер не попадают; uvloop, если есть. Два варианта по очереди, у каждого свой `ObjectStorage` и пул: `image` (как в образе) и `reference` (прежний `read_timeout` aiohttp = `[s3] timeout_seconds`, подменой `AioConfig` при создании клиента). Раунд: `--downloads` одновременных скачиваний объекта `--size-mib` MiB через `open` / `iter_chunks` с паузой `--pause-ms` после блока 64 KiB, простой `[s3] timeout_seconds + 0,5` с, `--puts` PUT по 128 KiB по одному. Таблица по раундам: `read_timeout` клиента, скачивания с тем же SHA-256, соединения пула со взведённым сроком чтения после скачиваний (`armed`) и с сохранённым исключением после простоя (`broken`) — закрытые поля aiohttp `_conns`, `_read_timeout_handle`, `_exception`, нет их — «n/a», тогда судят только по PUT; PUT прошло и упало, у упавших — цепочка исключений и мс; каждый записанный объект читается обратно (размер и SHA-256). Объекты — под `<база>/.s3-idle-probe/<uuid>/` (сверка этот префикс не читает), удаляются в `finally` отдельным клиентом; затем `weed shell fs.tree` — файлов пробы 0. Код 0 — у `image` ни испорченного соединения, ни упавшего PUT, ни расхождения байтов, все раунды пройдены и файлов не осталось; 1 — иначе (эталон может падать: так видно механизм); 2 — нет реплики или консольный процесс драйвера. Пул API не трогает (отдельный процесс), но на время команды берёт ~100 MiB и CPU реплики — без нагрузки на стенд. ~40 с при 3 раундах и `timeout_seconds` 5. Вывод — `evidence/s3/idle-connection.md` |
| `lb-upload-timeouts [--config F] [--image ТЕГ]` | без стенда (рабочий стенд и проекты compose не трогает): спек `load-balancing` «Загрузки через балансировщик» и «Ошибки балансировщика в формате контракта» (design change `upload-memory`, решение 7). `haproxy -c` конфигурации F (по умолчанию `infra/haproxy/haproxy.cfg`) в закреплённом образе LB из `docker-compose.yml`, затем временная сеть `mtusi-lbto-<метка>`: заглушка реплики на образе API (по умолчанию `mtusi-messenger:lab4`, asyncio stdlib) под сетевым именем `api` и HAProxy с F и `API_PORT=8080` на свободном `127.0.0.1`; ожидание `UP` заглушки по `/health/ready` через LB. Пять случаев параллельно, у каждого своё соединение и свой `case` в строке запроса: заглушка молчит 12 с до чтения тела загрузки 10 MiB и после него — 201 от заглушки; 12 с на `GET /api/v1/users/me` — 504 LB через ~10 с; 32 с на пути загрузки — 504 LB через ~30 с; клиент отправил половину тела и молчит — 400 LB через ~30 с (`timeout client`). Ошибки LB — `application/json`, ровно `{"error": {"code", "message", "request_id"}}`, `code` по статусу, `request_id` = `X-Request-Id`. Таблица «случай → ожидаемо → получено → время», код 1 при расхождении. Сеть и контейнеры (метка `mtusi.lb-upload-timeouts`) удаляются при любом исходе, в том числе по Ctrl+C, SIGTERM, SIGHUP. ~35 с. На `haproxy.cfg` до change (`git archive f894040 infra/haproxy/haproxy.cfg \| tar -x -C <каталог>`, `--config <каталог>/infra/haproxy/haproxy.cfg`) — код 1: 502 и 504 через 10 с на пути загрузки, 400 в HTML. Вывод — `evidence/uploads/lb-timeouts.md` |
| `stop-at-start [--image ТЕГ] [--delays 0.2,0.3,0.4,1.5,5] [--server-start 3]` | спек `graceful-shutdown` «Остановка во время старта»: контейнеры образа (по умолчанию `mtusi-messenger:lab4`) с лимитами реплики (1 CPU / 512 МиБ без swap), без сети и `config.toml`; `docker stop --timeout 10` через паузу после `docker run` и сразу по строке «Started server process». По потоку `docker events` и журналу: «сигнал через», время `docker stop`, «выход после сигнала», код выхода, этап (`import` / `server-start` / `running`), кто остановил (`early` / `uvicorn`). Код 0 — каждая попытка с кодом 0 и `docker stop` ≤ 1 с, есть `import`, остановленный ранним обработчиком, и `running`. Проекты compose не трогает, свои контейнеры удаляет по метке `mtusi.stop-at-start`. Вывод — `evidence/failover/stop-at-start.md` |
@@ -184,6 +184,8 @@ make reconcile APPLY=1 [MAX_CHANGES=N] # то же с исправлени
python3 $D --port 8080 reconcile-cycle # расхождения с обеих сторон: dry-run, --apply, 404/200, повтор = 0, возврат оригинала; ~2 мин
python3 $D --port 8080 reconcile-stress # --apply раз в 3 с под загрузками 4 клиентов 40 с: все 201 скачиваются с тем же SHA-256
COMPOSE_PROJECT_NAME=<временный> python3 $D reconcile-signal # pause s3 + docker stop разового --apply: код 1, interrupted_by stop; не на mtusi-lab4
COMPOSE_PROJECT_NAME=<временный> python3 $D reconcile-signal --pace # docker stop во время паузы предела скорости: код 1, ≤ 1 с
COMPOSE_PROJECT_NAME=<временный> python3 $D reconcile-signal --pace --apply # то же посреди удалений: каждое удалённое — «Fixed»
python3 $D --port 8080 s3-idle # клиент S3 после скачиваний и простоя: у образа 0 испорченных соединений и упавших PUT, эталон портит; ~40 с
python3 $D lb-upload-timeouts # сроки LB пути загрузки на заглушке: 201 после 12 с молчания, 504 через 10/30 с, 400 в формате контракта; ~35 с
docker compose logs --no-log-prefix cleaner | tail -3 # уборщик: Started cleaner (60/900/100), проходы, отказы
+270 -30
View File
@@ -119,7 +119,16 @@
--apply, через секунду после «Started cleaner» docker stop;
interrupted_by stop, «Stopped cleaner» с exit_code 1, остановка
быстрее stop_grace_period 10 с; S3 размораживается в finally;
код 1 при расхождении
код 1 при расхождении. --pace (change track2-reconcile-cost):
вместо pause s3 — объекты пробы мимо API (botocore в одноразовом
контейнере api его ключами), reconcile --max-objects-per-second
1, docker stop через 2 с после «Started cleaner» во время паузы
предела скорости — остановка не дольше секунды, listed_objects
итога — ключи страницы; объекты удаляются в finally.
--pace --apply (verify W1): объекты пробы без строки
(<id>/original), через grace 18 с + 1 — reconcile --apply с тем
же пределом, docker stop во время паузы после DELETE: удалённых
объектов столько же, сколько записей «Fixed» и fixed итога
s3-idle [--rounds 3] [--downloads 10] [--puts 12] [--size-mib 4]
[--pause-ms 0.5] только стенд с LB: спеки object-storage
«Вызов после простоя» и attachments «Загрузка после простоя
@@ -3644,15 +3653,106 @@ RS_START_TIMEOUT_S = 30
RS_AFTER_START_S = 1.0
# stop_grace_period уборщика в docker-compose.yml: дольше — был бы SIGKILL
RS_STOP_LIMIT_S = 10
# режим --pace (design change track2-reconcile-cost, решение 14): пауза
# предела скорости вместо замороженного S3. Объекты под префиксом вложений
# с ключом, которого API не пишет (чужие для сверки): при пределе 1 объект/с
# проход после страницы списка ждёт столько секунд, сколько ключей
RS_PACE_OBJECTS = 8
RS_PACE_RATE = "1"
RS_PACE_AFTER_START_S = 2.0
# остановка во время паузы — не позже секунды после сигнала
RS_PACE_STOP_LIMIT_S = 1.0
# режим --pace --apply (verify W1 change track2-reconcile-cost): объекты
# пробы — без строки (<id>/original), и сверка с --apply их удаляет. Grace
# прохода — наименьший, который примет уборщик (граница живой загрузки
# 17 с), объекты старше него через секунду. При пределе 1 объект/с: список
# — 8 с, перепроверка — HEAD на объект (ещё 8 с), затем DELETE раз в
# секунду, и после каждого — пауза ~1 с. docker stop — посреди удалений
RS_PACE_APPLY_GRACE_S = 18
RS_PACE_APPLY_AFTER_START_S = 19.5
# объекты пробы — botocore в одноразовом контейнере сервиса api его
# ключами из окружения (как put-object hook стенда отказов); в argv и
# вывод ключи доступа не попадают. argv: действие (put, delete, count) и
# хвосты ключей под <база>/attachments/
RS_PACE_OBJECTS_PY = r"""
import os, sys
import botocore.session
from botocore.config import Config
from botocore.exceptions import ClientError
s3 = botocore.session.get_session().create_client(
"s3",
endpoint_url=f"http://{os.environ['S3__HOST']}:{os.environ['S3__PORT']}",
region_name="us-east-1",
aws_access_key_id=os.environ["S3__ACCESS_KEY_ID"],
aws_secret_access_key=os.environ["S3__SECRET_ACCESS_KEY"],
config=Config(s3={"addressing_style": "path"}),
)
bucket = os.environ["S3__BUCKET"]
prefix = os.environ["DATABASE__NAME"] + "/attachments/"
action, tails = sys.argv[1], sys.argv[2:]
present = 0
for tail in tails:
key = prefix + tail
if action == "put":
s3.put_object(Bucket=bucket, Key=key, Body=b"pace", ContentType="image/png")
elif action == "delete":
s3.delete_object(Bucket=bucket, Key=key)
else:
try:
s3.head_object(Bucket=bucket, Key=key)
present += 1
except ClientError:
pass
print(f"present {present}" if action == "count" else f"{action} {len(tails)} objects")
"""
def cmd_reconcile_signal() -> int:
def rfc3339_ns(text: str) -> int:
"""`2026-10-23T01:33:32.338748123Z` (Docker) → наносекунды эпохи;
без `fromisoformat`: Python 3.9 не принимает `Z` и наносекунды."""
base, _, rest = text.strip().partition(".")
digits = "".join(ch for ch in rest if ch.isdigit())
moment = datetime.strptime(base.rstrip("Z"), "%Y-%m-%dT%H:%M:%S")
seconds = int(moment.replace(tzinfo=UTC).timestamp())
return seconds * 10**9 + int((digits + "0" * 9)[:9])
def rs_pace_objects(action: str, tails: list[str]) -> str:
"""`put`, `delete` или `count` объектов пробы режима `--pace`; вывод
скрипта (у `count` — `present N`)."""
return compose(
"run",
"--rm",
"--no-deps",
"-T",
"--entrypoint",
"python",
"api",
"-",
action,
*tails,
stdin=RS_PACE_OBJECTS_PY,
)
def cmd_reconcile_signal(*, pace: bool = False, apply: bool = False) -> int:
"""Спек `graceful-shutdown`, разовый проход сверки, прерванный сигналом,
— код 1: на стенде проекта compose из окружения (`COMPOSE_PROJECT_NAME`
и др., рабочий `mtusi-lab4` — отказ, код 2) `docker compose pause s3`,
`run -d --no-deps cleaner reconcile --apply`, через секунду после
«Started cleaner» — `docker stop`; S3 размораживается в `finally`.
Таблица и записи процесса без секретов; код 1 при расхождении."""
`pace` — вместо замороженного S3 пауза предела скорости: объекты пробы,
`reconcile --max-objects-per-second 1` (dry-run), `docker stop` через
2 с после «Started cleaner», остановка не дольше секунды, итог называет
ключи страницы (`listed_objects`); объекты удаляются в `finally`.
`pace` и `apply` (verify W1) — объекты пробы без строки, через grace
`reconcile --apply` с тем же пределом и `docker stop` посреди удалений:
каждое удалённое — запись «Fixed» и счёт `fixed`. Таблица и записи
процесса без секретов; код 1 при расхождении."""
if apply and not pace:
print("reconcile-signal: --apply is a variant of --pace")
return 2
try:
config = json.loads(compose("config", "--format", "json"))
except (RuntimeError, ValueError) as e:
@@ -3661,8 +3761,8 @@ def cmd_reconcile_signal() -> int:
project = str(config.get("name", ""))
if project == RS_WORKING_PROJECT:
print(
"reconcile-signal pauses S3: run it on a temporary stand "
f"(COMPOSE_PROJECT_NAME), not {RS_WORKING_PROJECT}",
"reconcile-signal pauses S3 or adds probe objects: run it on a "
f"temporary stand (COMPOSE_PROJECT_NAME), not {RS_WORKING_PROJECT}",
)
return 2
services = config.get("services", {})
@@ -3676,10 +3776,38 @@ def cmd_reconcile_signal() -> int:
subprocess.run(["docker", "rm", "-f", name], capture_output=True)
started = False
took = -1.0
after_signal = -1.0
exit_code = ""
logs = ""
compose("pause", "s3")
print(f"{project}: s3 paused")
left = -1
tails: list[str] = []
run_env: list[str] = []
if pace:
if apply:
tails = [
f"{uuid.uuid4()}/original" for _ in range(RS_PACE_OBJECTS)
]
else:
tails = [f"pace-signal-{i}" for i in range(RS_PACE_OBJECTS)]
rs_pace_objects("put", tails)
print(f"{project}: {RS_PACE_OBJECTS} probe objects put")
args = ["reconcile", "--max-objects-per-second", RS_PACE_RATE]
after_start, limit = RS_PACE_AFTER_START_S, RS_PACE_STOP_LIMIT_S
waiting = "the rate limit pause"
if apply:
args.append("--apply")
grace = RS_PACE_APPLY_GRACE_S
run_env = ["-e", f"CLEANER__PENDING_GRACE_SECONDS={grace}"]
after_start = RS_PACE_APPLY_AFTER_START_S
waiting = "the rate limit pause after a DELETE"
print(f"waiting {grace + 1} s: probe objects older than grace")
time.sleep(grace + 1)
else:
compose("pause", "s3")
print(f"{project}: s3 paused")
args = ["reconcile", "--apply"]
after_start, limit = RS_AFTER_START_S, float(RS_STOP_LIMIT_S)
waiting = "paused S3"
try:
compose(
"run",
@@ -3687,9 +3815,9 @@ def cmd_reconcile_signal() -> int:
"--no-deps",
"--name",
name,
*run_env,
"cleaner",
"reconcile",
"--apply",
*args,
)
deadline = time.monotonic() + RS_START_TIMEOUT_S
while time.monotonic() < deadline:
@@ -3699,29 +3827,77 @@ def cmd_reconcile_signal() -> int:
break
time.sleep(0.2)
if started:
time.sleep(RS_AFTER_START_S)
print("docker stop while reconcile waits for paused S3")
time.sleep(after_start)
print(f"docker stop while reconcile waits for {waiting}")
# момент сигнала — событие kill Docker (часы ВМ, как FinishedAt):
# время docker stop включает ещё разбор контейнера демоном
events = subprocess.Popen(
[
"docker",
"events",
"--filter",
f"container={name}",
"--filter",
"event=kill",
"--format",
"{{.TimeNano}}",
],
stdout=subprocess.PIPE,
stderr=subprocess.DEVNULL,
text=True,
)
time.sleep(0.3)
began = time.monotonic()
subprocess.run(["docker", "stop", name], capture_output=True)
took = time.monotonic() - began
exit_code = subprocess.run(
["docker", "inspect", "-f", "{{.State.ExitCode}}", name],
capture_output=True,
text=True,
check=False,
).stdout.strip()
time.sleep(0.3)
events.terminate()
kill_lines = (events.communicate()[0] or "").split()
exit_code, finished_at = (
subprocess.run(
[
"docker",
"inspect",
"-f",
"{{.State.ExitCode}}|{{.State.FinishedAt}}",
name,
],
capture_output=True,
text=True,
check=False,
).stdout.strip()
+ "|"
).split("|")[:2]
if kill_lines and finished_at:
after_signal = (
rfc3339_ns(finished_at) - int(kill_lines[0])
) / 1e9
logs = docker_logs(name)
finally:
subprocess.run(["docker", "rm", "-f", name], capture_output=True)
compose("unpause", "s3")
print(f"{project}: s3 unpaused")
if pace:
if apply:
lines = rs_pace_objects("count", tails).strip().splitlines()
counted = lines[-1].split() if lines else []
if counted[:1] == ["present"]:
left = int(counted[1])
print(f"{project}: probe objects left after the pass: {left}")
rs_pace_objects("delete", tails)
print(f"{project}: probe objects deleted")
else:
compose("unpause", "s3")
print(f"{project}: s3 unpaused")
records = []
for line in logs.splitlines():
if line.startswith("{"):
with contextlib.suppress(json.JSONDecodeError):
records.append(json.loads(line))
shown = ("event", "level", "mode", "operation", "error_type")
shown += ("duration_ms", "interrupted_by", "exit_code", "timestamp")
shown += ("reconcile_max_objects_per_second", "reconcile_apply")
shown += ("kind", "action", "object_key", "listed_objects", "found")
shown += ("fixed", "storage_objects", "s3_requests")
shown += ("max_objects_per_second", "duration_ms", "interrupted_by")
shown += ("exit_code", "timestamp")
print("== records of the one-off reconcile")
for record in records:
print(
@@ -3734,7 +3910,13 @@ def cmd_reconcile_signal() -> int:
stopped = [
item for item in records if item.get("event") == "Stopped cleaner"
]
print(f"docker stop took {took:.1f} s, exit code {exit_code or '-'}")
# удалённые до сигнала объекты пробы: каждый — запись «Fixed» и fixed
deleted = RS_PACE_OBJECTS - left if left >= 0 else -1
print(
f"docker stop took {took:.1f} s, container exited "
f"{after_signal:.2f} s after the kill event, exit code "
f"{exit_code or '-'}",
)
rows = [
("Started cleaner (mode reconcile)", "yes", yes(started)),
("exit code", "1", exit_code),
@@ -3750,19 +3932,75 @@ def cmd_reconcile_signal() -> int:
),
(
"Fixed storage discrepancy records",
"0",
str(deleted) if apply else "0",
str(len(rc_events(records, RC_FIXED))),
),
(
f"docker stop faster than {RS_STOP_LIMIT_S} s",
f"exited within {limit:g} s after the signal"
if pace
else f"docker stop faster than {limit:g} s",
"yes",
yes(0 <= took < RS_STOP_LIMIT_S),
yes(0 <= after_signal <= limit if pace else 0 <= took < limit),
),
]
return report_reconcile(
rows,
passed="one-off reconcile stopped by SIGTERM: exit 1, nothing changed",
)
if pace:
rate = next(
(
item.get("reconcile_max_objects_per_second")
for item in records
if item.get("event") == "Started cleaner"
),
None,
)
rows.insert(
1,
(
"Started cleaner reconcile_max_objects_per_second",
RS_PACE_RATE,
"-" if rate is None else f"{float(rate):g}",
),
)
# ключи страницы, после которой пришёл сигнал, — в итоге (verify W1)
rows.append(
(
"Finished reconcile pass listed_objects",
str(RS_PACE_OBJECTS),
str(finished.get("listed_objects")),
),
)
if apply:
fixed = finished.get("fixed")
rows += [
(
"probe objects deleted before the signal",
">0",
">0" if deleted > 0 else str(deleted),
),
(
"Finished reconcile pass fixed orphan_object",
str(deleted),
str(
fixed.get("orphan_object", 0)
if isinstance(fixed, dict)
else "-",
),
),
]
if apply:
passed = (
"one-off reconcile --apply stopped by SIGTERM during the rate "
"limit pause: exit 1 within a second, every deleted object fixed"
)
elif pace:
passed = (
"one-off reconcile stopped by SIGTERM during the rate limit "
"pause: exit 1 within a second"
)
else:
passed = (
"one-off reconcile stopped by SIGTERM: exit 1, nothing changed"
)
return report_reconcile(rows, passed=passed)
def docker_logs(name: str) -> str:
@@ -4999,7 +5237,9 @@ def main() -> int:
stress = sub.add_parser("reconcile-stress")
stress.add_argument("--seconds", type=float, default=40)
stress.add_argument("--clients", type=int, default=4)
sub.add_parser("reconcile-signal")
signal_cmd = sub.add_parser("reconcile-signal")
signal_cmd.add_argument("--pace", action="store_true")
signal_cmd.add_argument("--apply", action="store_true")
idle_s3 = sub.add_parser("s3-idle")
idle_s3.add_argument("--rounds", type=int, default=3)
idle_s3.add_argument("--downloads", type=int, default=10)
@@ -5113,7 +5353,7 @@ def main() -> int:
clients=args.clients,
)
if args.cmd == "reconcile-signal":
return cmd_reconcile_signal()
return cmd_reconcile_signal(pace=args.pace, apply=args.apply)
if args.cmd == "s3-idle":
return cmd_s3_idle(
port,
+72
View File
@@ -0,0 +1,72 @@
# Стенд в CI: docker-compose.yml + этот файл (COMPOSE_FILE job
# application, .github/workflows/application.yml). Раннер Gitea
# (act_runner) запускает job в контейнере рядом со стендом, на том же
# Docker. Файлы рабочего каталога есть только в контейнере job, а bind
# mount ищет их на хосте раннера; порты на 127.0.0.1 хоста из job не
# видны и на общем хосте заняли бы чужие. Поэтому отличия от рабочего
# стенда только такие:
# - конфиги — configs из переменных окружения (их выставляет
# .github/ci/stand-env.sh): compose копирует содержимое в контейнер при
# создании, пути на хосте не нужно;
# - портов на хосте нет: job подключается к сети стенда и ходит на
# haproxy по имени;
# - образ API — с тегом прогона: тег mtusi-messenger:lab4 на общем хосте
# раннера может собрать и чужой job.
# Остальное — сервисы, лимиты, volumes, секреты по сервисам — как в
# рабочем стенде. Нужен Compose ≥ 2.24 (!reset).
services:
postgres:
ports: !reset []
valkey:
ports: !reset []
volumes: !reset []
configs:
- source: valkey_conf
target: /usr/local/etc/valkey/valkey.conf
s3:
ports: !reset []
s3-bootstrap:
volumes: !reset []
configs:
- source: s3_bootstrap
target: /opt/s3/bootstrap.sh
migrate:
image: &ci-image mtusi-messenger:${CI_IMAGE_TAG:?CI_IMAGE_TAG is not set}
volumes: !reset []
configs: &config-toml
- source: config_toml
target: /app/config.toml
api:
image: *ci-image
volumes: !reset []
configs: *config-toml
cleaner:
image: *ci-image
volumes: !reset []
configs: *config-toml
haproxy:
ports: !reset []
volumes: !reset []
configs:
- source: haproxy_cfg
target: /usr/local/etc/haproxy/haproxy.cfg
# файлы по умолчанию 0444 и root: непривилегированные пользователи
# контейнеров читают, но не меняют — как read_only у bind mount
configs:
config_toml:
environment: CI_CONFIG_TOML
valkey_conf:
environment: CI_VALKEY_CONF
s3_bootstrap:
environment: CI_S3_BOOTSTRAP
haproxy_cfg:
environment: CI_HAPROXY_CFG
+38
View File
@@ -0,0 +1,38 @@
# Окружение шага job application (.github/workflows/application.yml),
# подключается через «.» из корня репозитория после make env_setup.
# Содержимое конфигов — в переменные для configs override
# .github/ci/compose.yml. $(cat …) срезает перевод строки в конце файла,
# поэтому он возвращается: копия побайтно равна файлу, а HAProxy без него
# конфиг не принимает («Missing LF on last line»). Значения не печатаются.
nl='
'
CI_CONFIG_TOML="$(cat config.toml)$nl"
CI_VALKEY_CONF="$(cat infra/valkey/valkey.conf)$nl"
CI_S3_BOOTSTRAP="$(cat infra/s3/bootstrap.sh)$nl"
CI_HAPROXY_CFG="$(cat infra/haproxy/haproxy.cfg)$nl"
export CI_CONFIG_TOML CI_VALKEY_CONF CI_S3_BOOTSTRAP CI_HAPROXY_CFG
# готовность стенда через LB: /health/ready отвечает 200 от API_REPLICAS
# (из .env, по умолчанию 2) разных реплик — X-Instance-Id. Срок 60 с:
# make replicas ждёт healthy контейнеров, а слот LB включается ещё через
# rise проверок
wait_replicas() {
want=$(sed -n 's/^API_REPLICAS=//p' .env)
want=${want:-2}
seen=""
deadline=$(($(date +%s) + 60))
while [ "$(date +%s)" -lt "$deadline" ]; do
reply=$(curl -s -o /dev/null -w '%{http_code} %header{x-instance-id}' \
"$BASE_URL/health/ready" || true)
case "$reply" in
"200 "?*) seen=$(printf '%s\n%s\n' "$seen" "${reply#200 }" | sort -u | grep .) ;;
esac
if [ "$(printf '%s\n' "$seen" | grep -c .)" -ge "$want" ]; then
echo "LB ready: $(printf '%s ' $seen)"
return 0
fi
sleep 0.5
done
echo "LB: $(printf '%s\n' "$seen" | grep -c .) of $want replicas ready in 60 s" >&2
return 1
}
+129
View File
@@ -0,0 +1,129 @@
# Job приложения (CONTRIBUTING.md, «CI»): сборка образа, стенд и его
# готовность через LB, make check и make test, затем проверки, которым
# хватает сети стенда: приватность bucket для анонима, собственные тесты,
# сохранность после рестарта и отказ реплики. Workflow skeleton
# contracts.yml проверяет только контракт и не меняется.
# Раннер Gitea (act_runner) запускает job в контейнере на том же Docker,
# что и стенд: конфиги и порты — override .github/ci/compose.yml, к LB job
# ходит по сети стенда. Секретов CI не получает: пароли и ключи — случайные
# из make env_setup и живут только в прогоне. pull_request_target не
# используется (CONTRIBUTING.md). Нет make s3_check, test_isolated и
# failure_checks: им нужны порты на хосте; их результат — evidence/.
name: Application
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read
# прогоны репозитория по очереди и без отмены: отменённый посреди прогона
# job оставил бы стенд на общем хосте раннера, а уборка хвостов не должна
# задеть стенд соседнего прогона
concurrency:
group: application-${{ github.repository }}
cancel-in-progress: false
jobs:
application:
runs-on: ubuntu-latest
timeout-minutes: 40
env:
# свой проект, volumes и образ у каждого прогона
COMPOSE_PROJECT_NAME: mtusi-lab4-safronov-ci-${{ github.run_id }}
COMPOSE_FILE: docker-compose.yml:.github/ci/compose.yml
CI_IMAGE_TAG: safronov-ci-${{ github.run_id }}
# LB по имени сервиса в сети стенда, порт — APP__PORT из .env.example
BASE_URL: http://haproxy:8080
steps:
- name: Checkout
# ровно commit прогона; репозиторий публичный, токен не нужен
run: |
git init -q .
git remote add origin "${{ github.server_url }}/${{ github.repository }}.git"
git fetch -q --depth=1 origin "${{ github.sha }}"
git checkout -q --detach FETCH_HEAD
git log --oneline -1
- name: Runner
run: |
docker info --format 'docker {{.ServerVersion}}, {{.OSType}}/{{.Architecture}}, {{.NCPU}} CPU, {{.MemTotal}} B'
docker compose version
python3 -V
- name: Remove stands of interrupted runs
# только проекты этого workflow: прогон, прерванный без уборки
# (сбой раннера), оставил бы их на хосте
run: |
for p in $(docker ps -a --format '{{.Label "com.docker.compose.project"}}' | grep '^mtusi-lab4-safronov-ci-' | sort -u || true); do
echo "remove leftover stand $p"
docker ps -aq --filter "label=com.docker.compose.project=$p" | xargs -r docker rm -f >/dev/null
docker volume ls -q --filter "label=com.docker.compose.project=$p" | xargs -r docker volume rm >/dev/null
docker network ls -q --filter "label=com.docker.compose.project=$p" | xargs -r docker network rm >/dev/null || true
done
- name: Build and start the stand
run: |
make env_setup
. .github/ci/stand-env.sh
docker compose config --quiet
make run_docker
make replicas
docker network connect "${COMPOSE_PROJECT_NAME}_default" "$HOSTNAME"
wait_replicas
docker compose ps -a --format 'table {{.Service}}\t{{.Status}}'
- name: make check and make test
run: |
make check
make test
- name: Bucket is closed to anonymous requests
# без подписи: список bucket и объектов — 403. Полная проверка
# приватности — make s3_check (evidence/s3/privacy.md)
run: |
s3="http://s3:$(sed -n 's/^S3_PORT=//p' .env)"
bucket=$(sed -n 's/^S3__BUCKET=//p' .env)
for url in "$s3/" "$s3/$bucket" "$s3/$bucket?list-type=2"; do
code=$(curl -s -o /dev/null -w '%{http_code}' "$url")
echo "anonymous GET $url -> $code"
test "$code" = 403
done
- name: Install uv
# та же версия, что в Dockerfile
run: |
python3 -m venv "$RUNNER_TEMP/uv"
"$RUNNER_TEMP/uv/bin/pip" install -q uv==0.12.17
echo "$RUNNER_TEMP/uv/bin" >> "$GITHUB_PATH"
- name: make student_test
# через LB: тесты реплик выполняются, проверки отказов — нет
run: make student_test
- name: make test-persistence
run: |
. .github/ci/stand-env.sh
make test-persistence ACTION_SCRIPT=scripts/restart.sh
wait_replicas
- name: make test-failover, stop and kill
# остановленную реплику возвращает make replicas (те же ID)
run: |
. .github/ci/stand-env.sh
log="$RUNNER_TEMP/stop-one.log"
STOP_ONE_LOG="$log" make test-failover ACTION_SCRIPT=scripts/stop-one.sh
make replicas
wait_replicas
STOP_ONE_LOG="$log" STOP_MODE=kill make test-failover ACTION_SCRIPT=scripts/stop-one.sh
make replicas
wait_replicas
cat "$log"
- name: Stand logs
if: failure()
run: |
if [ -f .env ]; then docker compose ps -a; docker compose logs --no-color --tail=200; fi
- name: Remove the stand
if: always()
run: |
docker network disconnect "${COMPOSE_PROJECT_NAME}_default" "$HOSTNAME" 2>/dev/null || true
if [ -f .env ]; then docker compose down -v --remove-orphans; fi
docker image rm "mtusi-messenger:$CI_IMAGE_TAG" >/dev/null 2>&1 || true
+2
View File
@@ -38,6 +38,8 @@ evidence/failover/quick-*/
evidence/rollout/quick-*/
# make bench_uploads_quick: то же для профиля загрузок
evidence/uploads/quick-*/
# make bench_reconcile_quick: то же для профиля сверки
evidence/reconcile/quick-reconcile-*/
# сравнения пробных меток
evidence/compare/*quick-*
# make bench_plots на пробных метках
+60 -27
View File
@@ -41,8 +41,17 @@ LB пути загрузки 30 с, дренаж замены 90 с, профи
S3 нет срока чтения aiohttp (он переживал ответ и портил соединение в
пуле), срок — только `asyncio.timeout` вызова и блока; четвёртый API
стенда отказов со сроком S3 1 с (`test_upload_after_idle_s3`), проба
`driver.py s3-idle`. План работ, решения и
трек «5» — `PLAN.md`. Из лабы 2: PostgreSQL
`driver.py s3-idle`. Стоимость сверки (трек 2) — change
`track2-reconcile-cost` (заархивирован 2026-10-23,
`openspec/changes/archive/2026-10-23-track2-reconcile-cost/`): стратегия «HEAD на строку» и
глубокая сверка (класс «другой SHA-256», пометку снимает только тот же
SHA-256) в разовом проходе, предел скорости `[reconciler]
max_objects_per_second` (2000 объектов S3/с), отказ по пределу без
лишних перепроверок, стоимость прохода в его итоге, профиль `reconcile`
стенда `bench/`. Рабочий план лабы 4 (`PLAN.md`) удалён после закрытия
всех changes: итоги — в `REPORT.md`, открытые вопросы преподавателю — в
его разделе «Открытые вопросы преподавателю», последняя версия плана —
`git show fd03b84:PLAN.md`. Из лабы 2: PostgreSQL
как источник истины, вход по Basic → Bearer-сессия, Valkey — кэш
карточек чатов. Из лабы 3: HAProxy перед ≥2 репликами API
(`replicas-lb`), `X-Instance-Id` и обязательный `Idempotency-Key`
@@ -54,13 +63,13 @@ S3 нет срока чтения aiohttp (он переживал ответ и
`rollout`, серии трека 1 лабы 3 (`scaling-bench`, `scaling-improvement`,
`profile-resources`). Changes лаб 2 и 3 и `s3-storage`, `attachments`,
`upload-consistency`, `upload-memory`, `track2-reconciler`,
`fix-upload-put-flake` лабы 4 — в
`openspec/changes/archive/`, активных нет, спеки синхронизированы
`fix-upload-put-flake`, `track2-reconcile-cost` лабы 4 — в
`openspec/changes/archive/`, активных changes нет, спеки синхронизированы
(новые capability: с `s3-storage` —
`object-storage`, с `attachments` — `attachments`, с
`upload-consistency` — `storage-consistency`); в `KNOWN_ISSUES.md` три открытые записи (bootstrap после удаления
`upload-consistency` — `storage-consistency`); в `KNOWN_ISSUES.md` четыре открытые записи (bootstrap после удаления
bucket; уборщик
удаляет объект зависшей загрузки по ключу вне своего префикса; 408 LB на медленные заголовки текстом HAProxy). Отчёт, evidence и рабочий план лабы 3 остались в её
удаляет объект зависшей загрузки по ключу вне своего префикса; 408 LB на медленные заголовки текстом HAProxy; поля `float` настроек принимают `inf`). Отчёт, evidence и рабочий план лабы 3 остались в её
репозитории (`REPORT.md`, `evidence/`, `git show 063eedb:PLAN.md`).
Стек: Python 3.12, uv, FastAPI, pydantic v2, pydantic-settings,
structlog (JSON в stdout), redis-py (клиент Valkey), aiobotocore
@@ -76,7 +85,9 @@ structlog (JSON в stdout), redis-py (клиент Valkey), aiobotocore
(кроме своих `scripts/restart.sh` и `scripts/stop-one.sh` по образцам
`restart.example.sh` и `stop-one.example.sh`),
`lab.json`, `README.md`, `COURSE.md`, `CONTRIBUTING.md`,
`MAINTAINERS.md`, `.github/`, `compose.example.yaml`,
`MAINTAINERS.md`, `.github/` (кроме своего CI job по `CONTRIBUTING.md`,
«CI»: `.github/workflows/application.yml` и `.github/ci/`),
`compose.example.yaml`,
`infra/README.md`, цели `check` / `validate` / `test` / `load` /
`test-persistence` / `test-failover` в `Makefile`. Если публичный тест упал, чиним
приложение, а не тест. Если в контракте противоречие — сказать
@@ -177,10 +188,20 @@ structlog (JSON в stdout), redis-py (клиент Valkey), aiobotocore
только при живом bucket; больше `[reconciler] max_changes` (100)
изменений — ни одного и код 3. Потерянный оригинал помечается
(`attachments.lost_at`): скачивание — 404, метаданные — 200, ссылка —
201 (вопрос преподавателю, `PLAN.md`). Уборщику разрешён список только
201 (вопрос преподавателю, `REPORT.md`, «Открытые вопросы
преподавателю»). Уборщику разрешён список только
с префиксом `<база>/attachments/` (`S3_CLEANER_LIST_PREFIX` у
bootstrap). На время восстановления базы уборщик останавливают
(`docker.md`).
(`docker.md`). С change `track2-reconcile-cost`: проход затрагивает в
среднем не больше `[reconciler] max_objects_per_second` (2000; 0 — без
предела) объектов S3 в секунду, паузу прерывает сигнал; разовый проход
— ещё `--strategy head` (выборка строки на объект, HEAD на строку, без
множества ключей) и `--deep` (GET и SHA-256: «другой SHA-256» помечается
потерянным), плановая — всегда `batch`, поверхностная; «оригинал
вернулся» — только тот же SHA-256; с `--apply`, как только
подтверждённых изменений больше предела, остальные кандидаты не
перепроверяются (`unchecked`); итог называет стоимость — объекты и
запросы S3, байты, сеансы, длительность шагов (`service-layer.md`).
- Лаба 4, память загрузок (change `upload-memory`): память загрузок
реплики ограничена числом мест, а не числом клиентов. Место берётся
после проверок 401/400/404/415/413 и до чтения тела, держится до
@@ -223,7 +244,6 @@ structlog (JSON в stdout), redis-py (клиент Valkey), aiobotocore
| Файл | Что в нём |
|---|---|
| `README.md` | задание лабы: рубрика 3/4/5, сценарий и вопросы защиты, что приложить к PR |
| `PLAN.md` | наш план лабы 4 на «5»: рубрика → change, ключевые решения (S3-сервер, порядок записи, память), трек 2, порядок changes, риски; удаляется, когда все changes закрыты |
| `COURSE.md` | карта семи лаб, три объявленных перехода API (1→2, 2→3, 4→5), правила честных измерений |
| `contracts/openapi.json` | нормативный OpenAPI 3.1: пути, схемы, коды ответов |
| `contracts/README.md` | нормативная семантика: формат ошибок, валидация, пагинация, Basic → Bearer-сессии, TTL и отзыв, с lab3 — `Idempotency-Key` и `X-Instance-Id`, с lab4 — вложения: сырые bytes PNG/JPEG ≤10 MiB и ≤40 млн пикселей, `201 Attachment` (`ready`), `attachment_ids` в сообщении, download только участникам; пустой текст (в том числе из пробелов) — только с вложением (согласование 2026-10-20); разделы lab5+ — на будущее; как это сделано — `api-contract.md`, «Вложения (лаба 4)» |
@@ -241,7 +261,7 @@ structlog (JSON в stdout), redis-py (клиент Valkey), aiobotocore
| `REPORT.md` | отчёт: запуск из чистого clone, архитектура, доказательства по каждому критерию, эксперименты, ИИ и источники |
| `evidence/` | сохранённые выводы проверок и измерений (что можно класть — `evidence/README.md`) |
| `CONTRIBUTING.md` | fork/PR, имя ветки, что переносить в следующую лабу |
| `.github/pull_request_template.md` | шаблон PR; CI `workflows/contracts.yml` проверяет только контракт, приложение не запускает |
| `.github/pull_request_template.md` | шаблон PR; CI `workflows/contracts.yml` проверяет только контракт, приложение не запускает; сборку, стенд и `make test` — свой job `workflows/application.yml` (карта кода) |
| `Dockerfile.example` | опорные шаги Dockerfile, не рабочий файл |
| `.env.example` | шаблон `.env`; «логические» имена skeleton (lab2, lab3 `API_REPLICAS`, `IDEMPOTENCY_TTL_SECONDS` и новые lab4 `S3_*`, `MAX_UPLOAD_BYTES`, `MAX_IMAGE_PIXELS`) перечислены в шапке, их соответствие — в `REPORT.md` (`settings.md`) |
| `examples/requests.http` | ручные запросы для HTTP-клиента IDE |
@@ -269,7 +289,7 @@ structlog (JSON в stdout), redis-py (клиент Valkey), aiobotocore
| `logging.md` | сервисы, API, инфраструктура, `src/main.py`: где и как логировать, чего в логах быть не должно |
| `settings.md` | `src/config/**`, `.env.example`, `config_example.toml`: источники настроек, что куда класть |
| `run-modes.md` | точки входа, `Makefile`, compose, шаблоны конфигов: console и docker, uvicorn, SIGTERM |
| `docker.md` | `Dockerfile`, `docker-compose.yml`, `.dockerignore`, `scripts/restart.sh`, `infra/**`: мультистейдж, non-root, пины, healthcheck, стенд compose, S3 и bootstrap, секреты по сервисам, volumes, restart hook |
| `docker.md` | `Dockerfile`, `docker-compose.yml`, `.dockerignore`, `scripts/restart.sh`, `infra/**`, `.github/ci/**`, `.github/workflows/application.yml`: мультистейдж, non-root, пины, healthcheck, стенд compose, S3 и bootstrap, секреты по сервисам, volumes, restart hook |
| `balancer.md` | `docker-compose.yml`, `infra/haproxy/**`, `scripts/stop-one.sh`, `scripts/rolling-update.sh`: реплики за HAProxy, проверки и цепочка таймаутов, повторы LB, failover hook, поочерёдная замена, лимиты и пулы (с лабы 3) |
| `student-tests.md` | `student-tests/**`: обязательные проверки уровня 4, black-box по HTTP, особый стенд |
| `bench.md` | `bench/**`: нагрузочный стенд на Postgres (проект compose `mtusi-bench`), что не меняется между метками замеров, граница чёрного ящика и планы запроса, сравнение меток, коммиты измеренных состояний |
@@ -374,10 +394,12 @@ structlog (JSON в stdout), redis-py (клиент Valkey), aiobotocore
| `driver.py --port <LB> upload-consistency` | согласованность БД и S3 на рабочем стенде (~45 с): загрузка при `pause` S3 и со сбоем фиксации `ready` (триггер на `filename` прогона) — 503, строки `pending` не видны, компенсация удалила объект; `cleaner --once` с grace 30 с убирает обе, объектов без строки нет, готовое вложение цело; `evidence/attachments/consistency.md` |
| `driver.py lb-upload-timeouts [--config F]` | сроки LB пути загрузки без стенда (~35 с): `haproxy -c`, временная сеть, HAProxy закреплённого образа с F (по умолчанию `infra/haproxy/haproxy.cfg`) и заглушка реплики `api` на образе API; молчание 12 с до и после тела загрузки — 201, 12 с на другом пути — 504 через ~10 с, 32 с на пути загрузки — 504 через ~30 с, клиент молчит посреди тела — 400 в формате контракта; уборка при любом исходе, код 1 при расхождении; `evidence/uploads/lb-timeouts.md` |
| `driver.py --port <LB> s3-idle [--rounds 3]` | клиент S3 после простоя (~40 с, change `fix-upload-put-flake`): проба в реплике стенда (`docker exec -i … python -`, код и ключи образа), варианты «образ» и «эталон» с прежним `read_timeout` aiohttp; раунд — 10 одновременных медленных скачиваний 4 MiB, простой срока вызова + 0,5 с, 12 PUT; взведённые и испорченные соединения пула, PUT прошло и упало (цепочка ошибки, мс), чтение обратно; объекты под `<база>/.s3-idle-probe/` удаляются в `finally`; код 0 — у образа ни порчи, ни упавших PUT, 1 — иначе, 2 — нет стенда; `evidence/s3/idle-connection.md` |
| `make reconcile [APPLY=1] [MAX_CHANGES=N]` | разовая сверка bucket и БД в контейнере уборщика (`docker compose run --rm --no-deps cleaner reconcile [--apply] [--max-changes N]`): по умолчанию dry-run — записи «Found storage discrepancy» по классам и итог; `APPLY=1` — исправить; 0 — расхождений нет, 3 — остались (чужие объекты, отказ по пределу), 1 — прервана, 2 — конфигурация |
| `make reconcile [APPLY=1] [MAX_CHANGES=N] [STRATEGY=head] [DEEP=1] [RATE=R]` | разовая сверка bucket и БД в контейнере уборщика (`docker compose run --rm --no-deps cleaner reconcile [--apply] [--max-changes N] [--strategy batch\|head] [--deep] [--max-objects-per-second R]`): по умолчанию dry-run — записи «Found storage discrepancy» по классам и итог со стоимостью прохода; `APPLY=1` — исправить; `STRATEGY=head` — HEAD на строку, `DEEP=1` — SHA-256 содержимого, `RATE` — предел скорости (0 — без него); 0 — расхождений нет, 3 — остались (чужие объекты, отказ по пределу), 1 — прервана, 2 — конфигурация |
| `driver.py --port <LB> reconcile-cycle` | сверка на рабочем стенде (~2 мин): исходный dry-run без расхождений (иначе код 2), расхождения с обеих сторон, dry-run без изменений, 500 → `--apply` → 404 и 200, повтор, удаление чужого объекта, свежий объект после grace, возврат оригинала; `evidence/reconcile/cycle.md` |
| `driver.py --port <LB> reconcile-stress [--seconds S] [--clients N]` | `--apply` раз в ~3 с под загрузками и отправками N клиентов S секунд (4 × 40 с): внесённое исправлено, каждое 201 скачивается с тем же SHA-256, повтор — 0; `evidence/reconcile/stress.md` |
| `driver.py reconcile-signal` | только не рабочий проект compose (`COMPOSE_PROJECT_NAME` и др., `mtusi-lab4` — код 2): `pause s3`, разовый `reconcile --apply` отдельным контейнером, `docker stop` через секунду после «Started cleaner» — код 1, `interrupted_by: stop`, «Stopped cleaner» с `exit_code` 1, быстрее 10 с; `unpause` в `finally`; `evidence/reconcile/service.md` |
| `driver.py reconcile-signal [--pace [--apply]]` | только не рабочий проект compose (`COMPOSE_PROJECT_NAME` и др., `mtusi-lab4` — код 2): `pause s3`, разовый `reconcile --apply` отдельным контейнером, `docker stop` через секунду после «Started cleaner» — код 1, `interrupted_by: stop`, «Stopped cleaner» с `exit_code` 1, быстрее 10 с; `unpause` в `finally`. `--pace` (change `track2-reconcile-cost`) — вместо `pause s3` объекты пробы мимо API и `reconcile --max-objects-per-second 1`, `docker stop` через 2 с во время паузы предела скорости — остановка ≤ 1 с, `listed_objects` — ключи страницы; `--pace --apply` (verify W1) — объекты пробы без строки, grace 18 с, `reconcile --apply`, `docker stop` посреди удалений: записей «Fixed» и `fixed` столько же, сколько удалено; объекты удаляются в `finally`; `evidence/reconcile/service.md` |
| `make bench_reconcile [RECONCILE_LABEL=...]` | трек 2, стоимость сверки (~50 мин, метка `baseline`; change `track2-reconcile-cost`): стенд `mtusi-bench` с LB, двумя репликами, PostgreSQL, Valkey и S3 с лимитами рабочего стенда, порт метрик шлюза S3 на loopback; наполнение мимо API (`\copy` метаданных, PUT объектов загрузчиком `bench/fill_objects.py`), 1 000 × 1 MiB и 10k → 30k → 100k × 4 KiB с 0,25 % расхождений каждого класса; разовые проходы уборщика (0,25 CPU / 256 МБ, управляемый опыт — 1 CPU): `batch`, `head`, глубокая, фоновая нагрузка с пределом скорости и без, отказ по пределу на образе `Profile.reconcile_before` (`7f4e626`) и checkout; 3 повтора, найденное сверяется с моделью (иначе отказ), счёт сверки — с метриками шлюза; `evidence/reconcile/<метка>/` (`passes.csv`, `windows.csv`, `summary.md` с H1–H4 и S4, SVG). Перед запуском — проверка хоста (`bench.md`), рабочий стенд — `make stop` |
| `make bench_reconcile_quick` | то же на 2 000 × 4 KiB, по одному проходу каждого вида, окна 5 с, S4 с 300 кандидатами (~4 мин: 3,7 мин на шумном хосте), метка `quick-reconcile-<время>`, в git не идёт |
| `docker compose run --rm --no-deps cleaner --once` | разовый проход уборщика незавершённых загрузок (grace — `[cleaner]` или `-e CLEANER__PENDING_GRACE_SECONDS=…`, не меньше 18 с): 0 — проход дошёл до конца, 1 — прерван отказом, 2 — неверная конфигурация; журнал сервиса — `docker compose logs --no-log-prefix cleaner` |
| `make lb_stats` | слоты HAProxy: адрес, состояние проверки (`DRAIN`, `MAINT` при замене), запросы, повторы, перенаправления (CSV статистики изнутри контейнера LB) |
| `make rolling_update [COMMIT=...] [MIGRATE=0]` | поочерёдная замена реплик без простоя (`scripts/rolling-update.sh`, `balancer.md`): сборка из рабочего дерева (или файлов `COMMIT` через `git archive`), миграции один раз, затем по одной — новая `healthy` и `UP` в LB, старая `drain` → запросов в полёте 0 → `maint` → stop → rm → слот `ready`. Нужен штатный стенд (`make replicas`) без слотов LB в ручном `drain` / `maint` (иначе код 2 и команда `set server … state ready`); сбой и Ctrl+C — `API_REPLICAS` готовых реплик, повтор доводит; `MIGRATE=0` — откат на прежний образ (после него `docker compose up` без сборки не запускать: `migrate` прежнего образа упадёт на новой ревизии) |
@@ -390,7 +412,7 @@ structlog (JSON в stdout), redis-py (клиент Valkey), aiobotocore
| `make wipe_data` | `down -v` — удалить данные стенда (volumes Postgres и S3 называются в запросе) и кэш; только после ввода `yes` |
| `make test_isolated [KEEP_TEST_DB=1]` | образ на временной базе `test_<db>` с Valkey и S3 стенда (ключи кэша и объектов разделены именем базы): сборка, миграции, отдельный контейнер API на `TEST_APP_PORT`, `make test` + `make student_test EXPECT_REPLICAS=1` (тесты реплик пропускаются с причиной), уборка при любом исходе — база и объекты под префиксом `test_<db>/` (`student-tests.md`) |
| `make student_test [BASE_URL=...] [EXPECT_REPLICAS=...]` | собственные тесты `student-tests/` (pytest) против запущенного сервера, кроме проверок отказов (`-m 'not fault'`); `EXPECT_REPLICAS` (по умолчанию `API_REPLICAS`) — сколько реплик за `BASE_URL`, против одного процесса — 1; сервер недоступен — код 2 и одна строка с адресом |
| `make failure_checks [FAULT_ARGS=...]` | проверки отказов (`pytest -m fault`, 49 проверок, ~10 мин) на отдельном стенде: проект `<рабочий>-failures` со своими Postgres, Valkey и S3 (с bootstrap), уборщик (grace 20 с, интервал 1 с), четыре API — обычный, «тесный» (срок 2 с, пул 1), «узкий по загрузкам» и «с коротким сроком S3» (1 с), hook `student-tests/fault_hook.py`; после тестов — журнал PostgreSQL стенда: сводка (`crash markers`, «too many clients», «administrator command») и ненулевой код при признаках аварийного перезапуска; стенд и его volumes удаляются при любом исходе, рабочий не трогается (`student-tests.md`) |
| `make failure_checks [FAULT_ARGS=...]` | проверки отказов (`pytest -m fault`, 56 проверок, ~15 мин) на отдельном стенде: проект `<рабочий>-failures` со своими Postgres, Valkey и S3 (с bootstrap), уборщик (grace 20 с, интервал 1 с), четыре API — обычный, «тесный» (срок 2 с, пул 1), «узкий по загрузкам» и «с коротким сроком S3» (1 с), hook `student-tests/fault_hook.py`; после тестов — журнал PostgreSQL стенда: сводка (`crash markers`, «too many clients», «administrator command») и ненулевой код при признаках аварийного перезапуска; стенд и его volumes удаляются при любом исходе, рабочий не трогается (`student-tests.md`) |
| `make bench [BENCH_LABEL=...]` | полная матрица 10k / 100k / 500k читаемого чата плюс 100 000 сообщений в 1 110 фоновых чатах разного размера (~35 мин, оценка по `bench_quick`) на своём проекте compose `mtusi-bench` (HAProxy и одна реплика API, Postgres, Valkey с лимитами, без портов хоста и без `.env` рабочего стенда; k6 ходит через LB); на каждый размер — свежий стенд, `VACUUM (ANALYZE)`, планы запроса истории (`auto_explain`) по уровням чатов с вариантами индекса и запроса, в конце — пробы стоимости записи по вариантам. Результаты в `evidence/bench/<метка>/`, занятая метка — отказ. Перед запуском — подготовка хоста (`bench.md`) |
| `make bench_quick` | самопроверка стенда на 1k / 5k / 10k и 3 500 фоновых сообщений (~3 мин), метка `quick-<время>`, в git не идёт |
| `make bench_restore [RESTORE_LABEL=...]` | трек 2, восстановление (~20 мин, метка `restore` по умолчанию): тот же стенд и данные, без матрицы прогонов; на каждый размер — `pg_dump` во время записи через HTTP, активность после backup, `pg_restore -j` в новый контейнер Postgres на новом volume, сверка обеих баз построчно, переключение API, проверки через HTTP до и после `FLUSHALL`; время dump / restore / RTO и потерянные сообщения — в `summary.md` |
@@ -423,8 +445,8 @@ src/
__main__.py # python -m src: early_stop.install() до импорта приложения → main.main()
main.py # FastAPI app: lifespan, middlewares, обработчики ошибок, uvicorn.run
cleaner/__main__.py # python -m src.cleaner [--once]: early_stop.install("cleaner") до импорта → main(); неверные настройки — запись без значений и код 2
cleaner/main.py # уборщик незавершённых загрузок: проверка grace > 2 × request_timeout + s3 timeout (иначе код 2), свой engine и клиент S3, цикл с интервалом и плановой сверкой (при старте и раз в [reconciler] interval_seconds), SIGTERM — довести текущий шаг и выйти 0, --once — коды 0/1/2; reconcile [--apply] [--max-changes N] — разовая сверка, коды 0/3/1/2
config/settings.py # Settings (pydantic-settings), экземпляр settings; [app] instance_id (пусто → hostname) и keep_alive_seconds, [database] pool_size 10 и max_overflow 0 (постоянный пул без переполнения), idle_in_transaction_timeout_ms, [s3] адрес, bucket (валидатор имени), ключи API, регион, сроки, пул и endpoint_url, [idempotency] ttl_seconds, [uploads] max_concurrent 4, max_waiting 16, wait_timeout_seconds 5, body_timeout_seconds 30 (места загрузок процесса API), [cleaner] interval_seconds 60, pending_grace_seconds 900, batch_size 100, [reconciler] interval_seconds 3600, page_size 1000, max_changes 100
cleaner/main.py # уборщик незавершённых загрузок: проверка grace > 2 × request_timeout + s3 timeout (иначе код 2), свой engine и клиент S3, цикл с интервалом и плановой сверкой (при старте и раз в [reconciler] interval_seconds), SIGTERM — довести текущий шаг и выйти 0, --once — коды 0/1/2; reconcile [--apply] [--max-changes N] [--strategy batch|head] [--deep] [--max-objects-per-second R] — разовая сверка, коды 0/3/1/2; плановая — batch, поверхностная, предел скорости из настроек
config/settings.py # Settings (pydantic-settings), экземпляр settings; [app] instance_id (пусто → hostname) и keep_alive_seconds, [database] pool_size 10 и max_overflow 0 (постоянный пул без переполнения), idle_in_transaction_timeout_ms, [s3] адрес, bucket (валидатор имени), ключи API, регион, сроки, пул и endpoint_url, [idempotency] ttl_seconds, [uploads] max_concurrent 4, max_waiting 16, wait_timeout_seconds 5, body_timeout_seconds 30 (места загрузок процесса API), [cleaner] interval_seconds 60, pending_grace_seconds 900, batch_size 100, [reconciler] interval_seconds 3600, page_size 1000, max_changes 100, max_objects_per_second 2000 (предел скорости сверки; 0 — без него)
api/
routers/health.py # /health/live, /health/ready: вне версии, без идентификации
routers/v1/<domain>.py # ручки под /api/v1, сборка в routers/v1/__init__.py; Idempotency-Key — параметр POST сообщения (message.py); attachment.py — один роутер с двумя префиксами: загрузка (тело через request.stream(), схема — openapi_extra, строгий UTF-8 filename по scope["query_string"]), метаданные, байты StreamingResponse
@@ -442,7 +464,7 @@ src/
services/<domain>.py # <Domain>Service: логика, проверки доступа, id и время, логи; чаты и сообщения — с кэшем; отправка — ключ, сообщение и связи с вложениями одной транзакцией
services/attachment.py # AttachmentService(db_scope, cache, storage, slots): загрузка (проверки → место загрузки, 429 → тело со счётчиком и сроком в BytesIO, 400 по сроку → структура и SHA-256 в потоке над getvalue() → del → pending → PUT тем же BytesIO → ready; сбой ready до COMMIT или пропавшая строка — удаление объекта и 503; место — до ответа), метаданные, отдача потоком
services/attachment_cleanup.py # AttachmentCleanupService(db_scope, storage): проход уборщика — кандидаты keyset, каждая строка в два шага (remove_stale_pending): блокировка и пометка (commit) → блокировка, DELETE объекта и DELETE строки (commit); отказ S3 или БД прерывает проход, SIGTERM — после текущего шага; CleanupPassDTO
services/attachment_reconcile.py # AttachmentReconcileService(db_scope, storage): сверка bucket и БД — S3 → БД (страницы списка, выборка на страницу, множество ключей), БД → S3 (keyset ready; ключ строки вне префикса вложений — чужой объект без HEAD), зависшие, перепроверка в БД и HEAD (bucket — probe), сигнал — перед каждым вызовом хранилища, предел изменений, действия с apply (зависшие шагом уборщика → объекты без строки → пометки → снятия); журнал Found / Fixed / Finished; ReconcilePassDTO
services/attachment_reconcile.py # AttachmentReconcileService(db_scope, storage): сверка bucket и БД — S3 → БД (страницы списка, выборка на страницу, множество ключей), БД → S3 (keyset ready; ключ строки вне префикса вложений — чужой объект без HEAD; строка с ключом <id>/original другого вложения — HEAD её объекта, verify W2), зависшие, перепроверка в БД и HEAD (bucket — probe), сигнал — перед каждым вызовом хранилища, предел изменений, действия с apply (зависшие шагом уборщика → объекты без строки → пометки → снятия); журнал Found / Fixed / Finished; ReconcilePassDTO. С change track2-reconcile-cost: strategy head (выборка строки на объект, HEAD на строку, без множества), deep (GET и SHA-256 потоком, checksum_mismatch; «оригинал вернулся» — тот же SHA-256), предел скорости после каждого вызова S3 (_pace, куски 0,2 с; сигнал прекращает паузу, останавливает следующий check_stop — verify W1), ранний отказ по пределу (unchecked), счёт сеансов обёрткой db_scope, стоимость в итоге (storage_objects, s3_requests, read_bytes, db_sessions, phase_ms)
exceptions/<domain>.py # доменные исключения, реэкспорт в __init__.py; storage.py — ObjectStorageUnavailable (503) и StoredObjectMissing; attachment.py — 404, 413, 415, 400 обрыва и срока тела (UploadTimedOut), 429 занятых мест (UploadsBusy), 500 пропавшего объекта
infra/
early_stop.py # ранний обработчик SIGTERM/SIGINT (только stdlib): до старта сервера — запись «Stopped <процесс> before startup» (API, cleaner) и выход 0; disarm() — первая строка lifespan; write_record — запись мимо structlog
@@ -456,11 +478,11 @@ src/
db/models/ # модели SQLAlchemy (Base с created_at и to_dict); idempotency.py — ключи, FK на сообщение отложен до commit; attachment.py — Attachment (частичный индекс pending по (created_at, id), lost_at — пометка потерянного оригинала) и MessageAttachment (порядок position, FK без каскада)
cache/client.py # create_cache (redis-py: повтор только на обрыв, блокирующий пул), Cache: срок на команду, отказ — промах и пропуск
cache/instance.py # глобал cache процесса API
s3/client.py # create_object_storage (aiobotocore: path-адресация, без повторов, пул), ObjectStorage: put (поток read/seek/tell и size) / head / open (чтение блоками) / delete / list_page (ListObjectsV2 по префиксу, нет bucket — ошибка), срок на вызов и блок — единственный срок клиента (read_timeout aiohttp выключен: переживал ответ и портил соединение в пуле, change fix-upload-put-flake), ошибки → ObjectStorageUnavailable / StoredObjectMissing; StoredObjectInfo (с last_modified), StoredObject, StoredObjectPage
s3/client.py # create_object_storage (aiobotocore: path-адресация, без повторов, пул), ObjectStorage: put (поток read/seek/tell и size) / head / open (чтение блоками) / delete / list_page (ListObjectsV2 по префиксу, нет bucket — ошибка), срок на вызов и блок — единственный срок клиента (read_timeout aiohttp выключен: переживал ответ и портил соединение в пуле, change fix-upload-put-flake), ошибки → ObjectStorageUnavailable / StoredObjectMissing; StoredObjectInfo (с last_modified, у open — тоже), StoredObject, StoredObjectPage; счётчики попыток по операциям, ключей списка и прочитанных байт — stats() → StorageStats (change track2-reconcile-cost)
s3/instance.py # глобал object_storage процесса API, namespace — имя базы; start() и aclose() в lifespan
schemas/
dataclasses/<domain>.py # DTO между repo → service → api
enums/<domain>.py # StrEnum доменов, RunModeEnum; attachment.py — AttachmentStatus, ImageType, ReconcileFinding, ReconcileAction
enums/<domain>.py # StrEnum доменов, RunModeEnum; attachment.py — AttachmentStatus, ImageType, ReconcileFinding, ReconcileAction, ReconcileStrategy (batch, head)
utils/
constants.py # лимиты контракта (с лабы 4 — 10 MiB, 40 млн пикселей, filename, 10 вложений), размер страницы, префиксы путей, имя bucket S3, разделитель и части ключа объекта, keep-alive клиента S3
image.py # inspect_image: структурная проверка PNG/JPEG без декодирования пикселей (stdlib), тип, размеры, UnsupportedImage / DamagedImage / TooManyPixels
@@ -480,20 +502,22 @@ student-tests/ # black-box тесты по HTTP (уровень 4)
test_failures.py # проверки отказов (маркер fault): только make failure_checks
run_isolated.py # make test_isolated: образ на временной базе test_<db>, уборка базы и префикса test_<db>/ в S3 (weed shell fs.rm, затем проверка fs.ls: код 0 weed shell успеха не значит; префикс только из проверенного имени) (stdlib)
run_failures.py # make failure_checks: стенд <рабочий>-failures (Postgres, Valkey, S3 + bootstrap, уборщик с grace 20 с и интервалом 1 с без плановой сверки → FAULT_CLEANER_*, FAULT_RECONCILER_INTERVAL_S; уборщик с плановой сверкой <проект>-cleaner-scheduled убирается вместе с API), четыре API (обычный, «тесный», «узкий по загрузкам» с UPLOADS_ENV → FAULT_UPLOADS_BASE_URL / FAULT_UPLOADS_ENV, «с коротким сроком S3» с S3_ENV → FAULT_S3_BASE_URL / FAULT_S3_ENV), pytest -m fault, журнал PostgreSQL стенда (сводка, признаки аварии — ненулевой код), журналы API и уборщика при падении, уборка (stdlib)
fault_hook.py # hook стенда отказов: stop/start/pause/unpause postgres|valkey|s3, кэш, триггеры сбоя участников, сообщений и вложений (fail-attachments insert|ready|stall|commit|outlive|undeletable: сбой вставки, перевода в ready до и на COMMIT, задержка, строка «старше grace» с ожиданием уборщика, неудаляемая строка), заполнение слотов max_connections, счётчик сессий PostgreSQL db-sessions, attachment-ids, last-pending, object-ids (файлы original по fs.tree), kill-api / start-api; расхождения и сверка (change track2-reconciler): put-object (тело — stdin, botocore в контейнере API его ключами) / delete-object (weed fs.rm) только под <база>/attachments/, delete-row, set-size, age-row, set-key (object_key строки под <база>/), lost-ids, fail-attachments mark, reconcile dry-run|apply [предел] (записи и exit_code=), stop|start cleaner, run-cleaner <с> (stdlib)
fault_hook.py # hook стенда отказов: stop/start/pause/unpause postgres|valkey|s3, кэш, триггеры сбоя участников, сообщений и вложений (fail-attachments insert|ready|stall|commit|outlive|undeletable: сбой вставки, перевода в ready до и на COMMIT, задержка, строка «старше grace» с ожиданием уборщика, неудаляемая строка), заполнение слотов max_connections, счётчик сессий PostgreSQL db-sessions, attachment-ids, last-pending, object-ids (файлы original по fs.tree), kill-api / start-api; расхождения и сверка (change track2-reconciler): put-object (тело — stdin, botocore в контейнере API его ключами) / delete-object (weed fs.rm) только под <база>/attachments/, delete-row, set-size, age-row, set-key (object_key строки под <база>/), lost-ids, fail-attachments mark, reconcile dry-run|apply [предел] [--strategy batch|head] [--deep] [--max-objects-per-second R] (аргументы по списку, записи и exit_code=), stop|start cleaner, run-cleaner <с> (stdlib)
failures.compose.yml # override стенда отказов: без публикации портов (Postgres, Valkey, S3, LB), уборщик с CLEANER__* 20 / 1, RECONCILER__INTERVAL_SECONDS 0 и restart "no", stop_grace_period 2 с у S3, healthcheck PostgreSQL — на служебную базу postgres (не добавляет сессий в базу приложения), init: true у PostgreSQL (сирот psql из fill-connections подбирает init, а не postmaster)
bench/ # нагрузочный стенд на HAProxy + N реплик API + Postgres + Valkey: make bench / bench_quick / bench_restore / bench_failover / bench_rollout / bench_scaling / bench_uploads (с S3)
run.py # оркестратор: стенд compose, реплики и готовность по LB, фоновые чаты и расписание наполнения, матрица, обслуживание БД, планы и варианты, пробы записи, backup и восстановление во второе хранилище со сверкой, фазы профиля failover (события цели — поток docker events по контейнеру, а не буфер демона), профиль rollout (образ прежнего commit через git archive, scripts/rolling-update.sh против проекта стенда, поток событий Docker с exec_start), ресурсы профилей failover и rollout (Profile.sample_resources: сэмплер scan, карта контейнеров по меткам compose, окна, бюджет на пике, сторож), серии трека 1 (профили scaling_*, ячейки на свежем стенде, ступени k6 и поиск R*, сэмплер, продолжение RESUME, блокировка bench/.bench.lock), метрики (сумма по репликам), runs.csv / phases.csv / searches.csv / samples.csv / summary.md / meta.json; профиль uploads (S3 и bootstrap на стенде, на прогон — новый volume S3 и реплика с окружением варианта через .work/variant.compose.yml, образ «до» — тег bench-from, сэмплер peak), в паспорте всех профилей stand.api_tcp_rmem и docker.kernel
run.py # оркестратор: стенд compose, реплики и готовность по LB, фоновые чаты и расписание наполнения, матрица, обслуживание БД, планы и варианты, пробы записи, backup и восстановление во второе хранилище со сверкой, фазы профиля failover (события цели — поток docker events по контейнеру, а не буфер демона), профиль rollout (образ прежнего commit через git archive, scripts/rolling-update.sh против проекта стенда, поток событий Docker с exec_start), ресурсы профилей failover и rollout (Profile.sample_resources: сэмплер scan, карта контейнеров по меткам compose, окна, бюджет на пике, сторож), серии трека 1 (профили scaling_*, ячейки на свежем стенде, ступени k6 и поиск R*, сэмплер, продолжение RESUME, блокировка bench/.bench.lock), метрики (сумма по репликам), runs.csv / phases.csv / searches.csv / samples.csv / summary.md / meta.json; профиль uploads (S3 и bootstrap на стенде, на прогон — новый volume S3 и реплика с окружением варианта через .work/variant.compose.yml, образ «до» — тег bench-from, сэмплер peak), в паспорте всех профилей stand.api_tcp_rmem и docker.kernel; профиль reconcile (S3 с портом метрик через .work/s3-metrics.compose.yml, наполнение \copy и загрузчиком, разовые проходы mtusi-bench-reconcile-<n> с лимитом CPU варианта, «до» — .work/cleaner-before.compose.yml, метрики шлюза и pg_stat_database до и после, блок H4 с k6 background.js, отказ по пределу S4)
scaling.py # серии трека 1 без docker: лестница и автомат поиска R*, разбор итога k6 и строк сэмплера, агрегаты окна, вердикт SLO и брака генератора, признаки узкого места (THRESHOLDS), предельный CPU на запрос, сводка серии; --selftest
plots.py # make bench_plots: SVG на stdlib (R* от числа реплик, p95 от интенсивности, CPU по компонентам) и сводка с точкой насыщения; render_series — графики в каталоге метки
sampler.sh # сэмплер (только в контейнере mtusi-bench-sampler на образе PostgreSQL, --cgroupns host): режим list (серии) — cpu.stat, память и PSI заданных контейнеров, /proc/stat и PSI ВМ, статистика HAProxy, psql \watch по pg_stat_activity / database / wal / io; режим scan (failover, rollout) — обход cgroup всех контейнеров и /proc/stat, без сети, psql и LB; режим peak (uploads) — сброс memory.peak реплики, S3 и LB через свой дескриптор (perl), чтение пика в конце окна, выборка current / anon / sock / oom_kill раз в 0,2 с (--user 0, cgroupfs rw, без сети)
uploads.py # профиль uploads без docker: тела PNG из шума от зерна, план кругами, разбор строк k6 и сэмплера peak, строка runs.csv, пометки oom / host_swap / peak_sampled / s3_down, summary.md (медиана и min–max по ячейкам, сценарии спеков, H1–H4); --selftest
reconcile.py # профиль reconcile без docker (change track2-reconcile-cost): модель набора (id, содержимое и класс по номеру и зерну, строки CSV для \copy, ожидаемое по классам), план кругами, разбор записей уборщика, метрик шлюза S3, строк bg k6 и сэмплера, окна и r / a H4, passes.csv и windows.csv, вердикты H1–H4 и S4, summary.md и SVG (plots.Svg); --selftest
fill_objects.py # загрузчик объектов профиля reconcile: только в контейнере mtusi-bench-fill на образе стенда (botocore образа, bench/ на чтение, ключи API из окружения), процессы × потоки PUT по модели reconcile.py
resources.py # ресурсы профилей failover и rollout без docker: интервалы контейнеров (сброс при новой cgroup, заморозка, новые контейнеры с момента запуска), окна, CPU / троттлинг / память по компонентам и ВМ, CPU на запрос в установившихся окнах, resources.csv / samples.csv, разделы summary.md; --selftest
failover.py # профиль failover без docker: строки k6 о запросах, статистика и журнал HAProxy, события Docker, посекундная шкала, величины фазы, summary.md
rollout.py # профиль rollout без docker: строки скрипта замены, события контейнеров проекта, состояния слотов LB (UP, drain, maint, ready), шаги по репликам, шкала со старыми и новыми ответами, окна до / во время / после, summary.md
bench.compose.yml # override стенда mtusi-bench: имена, BENCH_API_REPLICAS реплик api без container_name, haproxy с лимитами BENCH_LB_*, лимиты BENCH_* (deploy.resources), без портов и config.toml, auto_explain; s3 (лимиты BENCH_S3_*, swap = память) запускает только профиль uploads, cleaner описан (mtusi-bench-cleaner, без порта), но профили его не запускают; буфер приёма реплики — sysctls основного compose
bench.compose.yml # override стенда mtusi-bench: имена, BENCH_API_REPLICAS реплик api без container_name, haproxy с лимитами BENCH_LB_*, лимиты BENCH_* (deploy.resources), без портов и config.toml, auto_explain; s3 (лимиты BENCH_S3_*, swap = память) запускают профили uploads и reconcile, cleaner (mtusi-bench-cleaner, без порта, лимиты BENCH_CLEANER_* без swap) — только разовыми проходами профиля reconcile; буфер приёма реплики — sysctls основного compose
bench.env # подстановки compose стенда вместо .env рабочего стенда (без паролей и секретов S3: их генерирует run.py)
k6/ # сценарии k6 (через LB http://haproxy:8080): prepare (вход по Basic, фоновые чаты), prefill (по расписанию), cursors, plan_cursors (страницы плана фоновых чатов), explain, read, tail, write, after_backup и restore_check (этап восстановления), failover (постоянная интенсивность записи и чтения, строка на запрос) и retry (повтор неуспешных записей с тем же ключом), mixed (ступень серии трека 1: ramping-arrival-rate 70/20/10, тег окна, распределение по X-Instance-Id, досрочный выход), uploads (constant-vus загрузок тела из /work, пауза Retry-After на 429 и 1 с на прочие ошибки, строка на запрос, WARMUP — одна загрузка); lib.js — Bearer, messageHeaders (новый или заданный Idempotency-Key) и хелперы
k6/ # сценарии k6 (через LB http://haproxy:8080): prepare (вход по Basic, фоновые чаты), prefill (по расписанию), cursors, plan_cursors (страницы плана фоновых чатов), explain, read, tail, write, after_backup и restore_check (этап восстановления), failover (постоянная интенсивность записи и чтения, строка на запрос) и retry (повтор неуспешных записей с тем же ключом), mixed (ступень серии трека 1: ramping-arrival-rate 70/20/10, тег окна, распределение по X-Instance-Id, досрочный выход), uploads (constant-vus загрузок тела из /work, пауза Retry-After на 429 и 1 с на прочие ошибки, строка на запрос, WARMUP — одна загрузка), background (профиль reconcile: constant-arrival-rate скачиваний, записи и чтения истории, строка bg на запрос, остановка SIGINT); lib.js — Bearer, messageHeaders (новый или заданный Idempotency-Key) и хелперы
compare.py # make bench_compare: дельта двух меток (ячейки матрицы или общие конфигурации серий), уровень шума, эффект или шум; отказ при разной методике, в том числе метке без LB и серии против матрицы
ab.py # make bench_ab: прогоны «до» и «после» одного изменения подряд, с --series — серии трека 1
migrations/, alembic.ini # ревизии alembic, async env.py; применяет одноразовый сервис compose; 739b8f04d5fb — частичный индекс pending CONCURRENTLY в autocommit_block; 5c3e1f0a9b7d — attachments.lost_at (NULL, SET LOCAL lock_timeout)
@@ -510,12 +534,13 @@ docker-compose.yml # проект mtusi-lab4: postgres, valkey, s3 (Se
config_example.toml, .env.example
evidence/attachments/ # change attachments: smoke.md, failover.md (driver.py attachment-failover stop и kill), storage.md (driver.py attachment-storage), slow-transfer.md (10 MiB через LB дольше 6 с); change upload-consistency: consistency.md (driver.py upload-consistency и журналы API и уборщика), cleaner-process.md (старт, отказ конфигурации, остановка, окно 0, рестарт хранилищ, отказ S3 во время прохода)
evidence/s3/ # change s3-storage: bootstrap.md (первый запуск, повтор, смена секрета, ошибка шага, до bootstrap), privacy.md (make s3_check, нарушение и исправление, порты, секреты по сервисам), grpc-admin.md (gRPC шлюза без токена), restart.md (restart.sh и SIGKILL S3), client.md (операции, pause/stop, неверный секрет, журнал), memory.md (20 × 10 MiB PUT); change upload-consistency: cleaner-key.md (пользователь уборщика в bootstrap, смена секрета, make s3_check с ключом уборщика, секреты по сервисам); change track2-reconciler: cleaner-list.md (bootstrap с политикой списка по префиксу, неверный префикс, make s3_check со строками списка уборщика, окружение s3-bootstrap)
evidence/reconcile/ # change track2-reconciler: cycle.md (driver.py reconcile-cycle), stress.md (driver.py reconcile-stress), service.md (Started cleaner с параметрами сверки, плановая сверка при старте, docker stop во время сверки при pause s3, код 1 разового прохода по сигналу — driver.py reconcile-signal, отказ старта на RECONCILER__*, коды 3 и 0)
evidence/reconcile/ # change track2-reconciler: cycle.md (driver.py reconcile-cycle), stress.md (driver.py reconcile-stress), service.md (Started cleaner с параметрами сверки, плановая сверка при старте, docker stop во время сверки при pause s3, код 1 разового прохода по сигналу — driver.py reconcile-signal, отказ старта на RECONCILER__*, коды 3 и 0; с change track2-reconcile-cost — остановка во время паузы предела скорости, driver.py reconcile-signal --pace)
evidence/reconcile/<метка>/ # результаты make bench_reconcile (change track2-reconcile-cost): meta.json (раздел reconcile: план, этапы и модели, commit и образы «до», аргументы S3), passes.csv, windows.csv, summary.md (H1–H4 и S4), cost-by-n.svg, requests-by-n.svg, background-p95.svg, raw/ (записи уборщика по проходам, итог k6 блока H4)
evidence/storage/ # отказы БД, пул, statement_timeout, рестарт, порты Postgres, свежий clone; connection-cost.md — цена нового соединения и пинга
evidence/migrations/ # миграции с нуля и повторно, ошибка миграции; лаба 4: pending-index.md (ревизия 739b8f04d5fb с нуля, повтор, откат, EXPLAIN общего плана кандидатов уборщика на рабочей базе с откатом, rollout_quick), lost-at.md (ревизия 5c3e1f0a9b7d колонки lost_at: с нуля, повтор, откат, --sql с lock_timeout, make rolling_update с ревизией до и после)
evidence/auth/ # passwords-and-tokens.md — driver.py auth-storage на стенде текущей лабы: Argon2id в users, SHA-256 токена в sessions, ни токена, ни пароля в pg_dump (исключения сверки покрытия)
evidence/cache/ # hits.md — make test_isolated + driver.py cache-check на стенде текущей лабы: одно чтение chats на 50 через LB, TTL, ключи двух баз (исключения сверки покрытия)
evidence/tests/ # выводы make test_isolated, make student_test (через LB) и make failure_checks для REPORT.md; лаба 4: failure-checks.md (стенд отказов со своим S3 и уборщиком, 32 проверки, красные прогоны до upload-consistency и до правок по verify), student-test-lb.md, test-isolated-s3-cleanup.md (уборка префикса test_<db>/) — до attachments с ожидаемо красными тестами схемы Message; лаба 3 (в этом репозитории пока нет): profile-resources-checks.md — проверки сэмплера, быстрые профили, сторож, хост и сравнение меток resources с baseline; fix-known-issues-checks.md — сверка событий поток/буфер, красный и зелёный failure_checks, консоль, сверка ссылок исключений, регрессия; strict-id-validation-checks.md — красный и зелёный прогоны курсора и UUID на входе, пересмотр проверки курсора, замена реплик, клон во временном проекте
evidence/tests/ # выводы make test_isolated, make student_test (через LB) и make failure_checks для REPORT.md; лаба 4: failure-checks.md (стенд отказов со своим S3 и уборщиком, 56 проверок с `ca0c4b2`, красные прогоны новых тестов каждого change лабы 4 и правок по verify), student-test-lb.md, test-isolated-s3-cleanup.md (уборка префикса test_<db>/) — до attachments с ожидаемо красными тестами схемы Message; лаба 3 (в этом репозитории пока нет): profile-resources-checks.md — проверки сэмплера, быстрые профили, сторож, хост и сравнение меток resources с baseline; fix-known-issues-checks.md — сверка событий поток/буфер, красный и зелёный failure_checks, консоль, сверка ссылок исключений, регрессия; strict-id-validation-checks.md — красный и зелёный прогоны курсора и UUID на входе, пересмотр проверки курсора, замена реплик, клон во временном проекте
evidence/idempotency/ # повтор, 409, гонка, таблица ключей, X-Instance-Id
evidence/replicas/ # стенд с LB: порты, лимиты и их цена для Argon2id, окружение, распределение, ответы LB (нет реплик, зависшая, без PostgreSQL), test-persistence, чистый clone на нестандартных портах
evidence/failover/ # make test-failover для каждой реплики (stop и kill), отказы stop-one.sh; замер обнаружения, keep-alive, зависшая реплика и ключ; stop-at-start.md — docker stop стартующей реплики «до/после» раннего обработчика и ветка сбоя rolling-update.sh
@@ -528,6 +553,9 @@ evidence/plots/scaling/ # make bench_plots по сериям a и b: гра
evidence/plots/scaling-db/ # make bench_plots по серии db: R* по лимитам PostgreSQL и раздел «Насыщение PostgreSQL»
evidence/uploads/ # change upload-memory: <метка>/ — make bench_uploads (meta.json, runs.csv, summary.md, raw/), lb-timeouts.md — driver.py lb-upload-timeouts, rollout-upload.md — медленная загрузка во время make rolling_update
evidence/compare/ # таблицы make bench_compare: <до>__<после>.md
.github/workflows/application.yml # свой CI job (CONTRIBUTING.md, «CI»; contracts.yml — skeleton): checkout commit прогона, сборка и стенд под проектом mtusi-lab4-safronov-ci-<run_id>, job подключается к сети стенда, готовность — обе реплики через LB, make check / test, аноним в S3 — 403, make student_test, test-persistence, test-failover stop и kill, уборка при любом исходе; без s3_check, test_isolated и failure_checks (порты хоста). Раннер Gitea (act_runner) запускает job в контейнере на том же Docker, что стенд
.github/ci/compose.yml # override стенда в CI: конфиги — configs из переменных окружения вместо bind mount (файлов job нет на хосте раннера), без портов на хосте, образ API с тегом прогона
.github/ci/stand-env.sh # «.» в шагах job: содержимое конфигов в CI_* для configs (с переводом строки в конце: без него HAProxy конфиг не принимает), wait_replicas — /health/ready 200 от API_REPLICAS разных реплик через LB за 60 с
KNOWN_ISSUES.md # найденные попутно дефекты, не исправленные без просьбы
```
@@ -609,7 +637,12 @@ KNOWN_ISSUES.md # найденные попутно дефекты,
`scripts/rolling-update.sh` (без примеров и проверок skeleton в
`scripts/`), `pyproject.toml`, `uv.lock`, `.python-version`,
`config_example.toml`, `AGENTS.md`, `CLAUDE.md`, `.claude/`,
`openspec/`, `.graphifyignore`, `bench/`, `KNOWN_ISSUES.md`.
`openspec/`, `.graphifyignore`, `bench/`, `KNOWN_ISSUES.md`, свой CI
job `.github/workflows/application.yml` и `.github/ci/` (остальное в
`.github/` — из нового skeleton). В job поменять номер лабы в префиксе
проекта `mtusi-lab4-safronov-ci-` (и в шаге уборки хвостов), в
override — новые сервисы и конфиги нового стенда; Actions в новом fork
включить в его настройках.
- Сливать, а не копировать поверх: `Makefile`, `.env.example`,
`.gitignore`, `.dockerignore`. Берём версию нового skeleton (в ней
новые цели и проверки) и дописываем свои секции.
+22
View File
@@ -81,3 +81,25 @@
либо поднять `timeout http-request` и назвать ограничение в
`REPORT.md` (уже названо в спеке `load-balancing`, «Ошибки
балансировщика в формате контракта»).
## Поля `float` настроек принимают `inf`
- **Где:** `src/config/settings.py` — все поля `float` с `gt=0` или
`ge=0`, кроме `[reconciler] max_objects_per_second`: сроки `[database]`,
`[cache]`, `[s3]`, `[uploads]`, `[cleaner] interval_seconds`,
`[reconciler] interval_seconds`. Найдено verify change
`track2-reconcile-cost` (S2) на `max_objects_per_second`; там исправлено
(`allow_inf_nan=False`), остальные поля — вне change.
- **Что:** pydantic принимает `inf` (`RECONCILER__INTERVAL_SECONDS=inf`,
`UPLOADS__WAIT_TIMEOUT_SECONDS=inf`): `inf > 0` верно. `nan` отсекают
`gt` и `ge`. Записи старта («Started API», «Started cleaner») выводят
значение как `Infinity` — это не JSON, и разбор журнала по строкам
ломается.
- **Чем грозит:** оператор, ошибившийся в значении, получает срок без
конца (ожидание места загрузки, вызов S3 без срока, плановая сверка,
которая не наступит) и журнал, который не разбирается как JSON.
Значения по умолчанию и `config_example.toml` не затронуты.
- **Предложение:** `allow_inf_nan=False` у каждого поля `float` (или
`model_config = ConfigDict(allow_inf_nan=False)` у секций), сценарий в
требовании «Некорректное значение останавливает запуск» спека
`service-configuration` и проверка `uv run python -c` с `inf` по полям.
+28 -3
View File
@@ -210,11 +210,15 @@ s3_check:
# разовая сверка bucket и БД в контейнере уборщика (образ собирает
# make run_docker): по умолчанию dry-run — отчёт без изменений; APPLY=1 —
# исправить, MAX_CHANGES=N — предел изменений прохода вместо [reconciler]
# max_changes. Код 0 — расхождений нет, 3 — остались, 1 — прерван, 2 —
# конфигурация (design change track2-reconciler, решения 1 и 8)
# max_changes; STRATEGY=head — HEAD на строку вместо страниц, DEEP=1 —
# глубокая (SHA-256 содержимого), RATE=R — предел скорости, объектов S3 в
# секунду (0 — без предела) вместо [reconciler] max_objects_per_second.
# Код 0 — расхождений нет, 3 — остались, 1 — прерван, 2 — конфигурация
# (design change track2-reconciler, решения 1 и 8; track2-reconcile-cost,
# решения 4–6)
.PHONY: reconcile
reconcile:
$(DC) run --rm --no-deps cleaner reconcile$(if $(filter 1,$(APPLY)), --apply)$(if $(MAX_CHANGES), --max-changes $(MAX_CHANGES))
$(DC) run --rm --no-deps cleaner reconcile$(if $(filter 1,$(APPLY)), --apply)$(if $(MAX_CHANGES), --max-changes $(MAX_CHANGES))$(if $(STRATEGY), --strategy $(STRATEGY))$(if $(filter 1,$(DEEP)), --deep)$(if $(RATE), --max-objects-per-second $(RATE))
# -------------------------
@@ -363,6 +367,27 @@ bench_uploads:
bench_uploads_quick:
$(KEEP_AWAKE) uv run python bench/run.py --profile uploads_quick --label quick-uploads-$(shell date -u +%Y%m%dT%H%M%SZ)
RECONCILE_LABEL ?= baseline
# трек 2 «5» лабы 4: стоимость сверки bucket и БД на стенде mtusi-bench
# (HAProxy, две реплики, PostgreSQL, Valkey и S3 с лимитами рабочего
# стенда, разовые проходы уборщика 0,25 CPU / 256 МБ, в управляемом опыте
# 1 CPU): наполнение мимо API, этапы 1 000 × 1 MiB и 10k → 30k → 100k ×
# 4 KiB, стратегии batch и head, глубокая сверка, фоновая нагрузка с
# пределом скорости и без, отказ по пределу на образе до change
# (Profile.reconcile_before) и checkout, 3 повтора; ~50 мин; результат —
# evidence/reconcile/$(RECONCILE_LABEL)/ (design change track2-reconcile-cost)
.PHONY: bench_reconcile
bench_reconcile:
$(KEEP_AWAKE) uv run python bench/run.py --profile reconcile --label $(RECONCILE_LABEL)
# то же коротко (самопроверка): 2 000 × 4 KiB, по одному проходу каждого
# вида, окна под нагрузкой по 5 с, отказ по пределу с 300 кандидатами,
# ~4 мин (3,7 мин на шумном хосте, 2026-10-23); в git не идёт
.PHONY: bench_reconcile_quick
bench_reconcile_quick:
$(KEEP_AWAKE) uv run python bench/run.py --profile reconcile_quick --label quick-reconcile-$(shell date -u +%Y%m%dT%H%M%SZ)
SCALING_LABEL ?= scaling-$(SERIES)
# уровень 5, трек 1 «Цена масштабирования»: серия на стенде mtusi-bench —
-1522
View File
File diff suppressed because it is too large Load Diff
+1009 -43
View File
File diff suppressed because it is too large Load Diff
+13 -6
View File
@@ -62,12 +62,13 @@ services:
memswap_limit: ${BENCH_S3_MEMORY:?run make bench}
# уборщик незавершённых загрузок (design change upload-consistency,
# решение 9) описан, как s3, и тоже не запускается: старт стенда
# перечисляет сервисы, реплики — с --no-deps. Если его всё же запустят —
# образ стенда, без config.toml рабочего стенда, без перезапуска и без
# плановой сверки bucket и БД: профиль сверки (change
# track2-reconcile-cost) задаст её интервал сам (design change
# track2-reconciler, решение 9)
# решение 9) описан, как s3; сервис не запускается: старт стенда
# перечисляет сервисы, реплики — с --no-deps. Профиль сверки (change
# track2-reconcile-cost, решения 1 и 3) запускает его разовыми проходами
# `docker compose run --name mtusi-bench-reconcile-<n> cleaner reconcile`.
# Образ стенда, без config.toml рабочего стенда, без перезапуска и без
# плановой сверки bucket и БД; лимиты BENCH_CLEANER_* без swap — рабочего
# стенда, в управляемом опыте — CPU варианта
cleaner:
container_name: mtusi-bench-cleaner
image: mtusi-messenger:bench
@@ -75,6 +76,12 @@ services:
volumes: !reset []
environment:
RECONCILER__INTERVAL_SECONDS: "0"
deploy:
resources:
limits:
cpus: ${BENCH_CLEANER_CPUS:?run make bench}
memory: ${BENCH_CLEANER_MEMORY:?run make bench}
memswap_limit: ${BENCH_CLEANER_MEMORY:?run make bench}
migrate:
image: mtusi-messenger:bench
+116
View File
@@ -0,0 +1,116 @@
"""Загрузчик объектов профиля сверки: прямой PUT в S3 стенда мимо API.
Работает только в контейнере `mtusi-bench-fill` на образе стенда
(`mtusi-messenger:bench`): botocore образа, `src` не импортируется, каталог
`bench/` смонтирован только на чтение, номера, ключи и содержимое объектов
— генератор набора `bench/reconcile.py` (design change
`track2-reconcile-cost`, решение 3). Ключи пользователя API — окружение
контейнера (`S3__ACCESS_KEY_ID`, `S3__SECRET_ACCESS_KEY`: `docker run -e
<имя>` без значения в argv); в вывод они не попадают.
Объекты — номера диапазона [--start, --end), у которых по модели набора
есть объект; несколько процессов по нескольку потоков, у каждого процесса
свой клиент. Вывод — одна строка `fill: <объектов> objects, <PUT/с>
put/s, <с> s`; ошибка любого PUT — код 1.
"""
import argparse
import os
import sys
import time
from concurrent.futures import ThreadPoolExecutor
from multiprocessing import Pool
from pathlib import Path
from typing import Any
sys.path.insert(0, str(Path(__file__).resolve().parent))
import reconcile # noqa: E402
KEY_ENV = ("S3__ACCESS_KEY_ID", "S3__SECRET_ACCESS_KEY")
def client(endpoint: str, threads: int) -> Any:
import botocore.session
from botocore.config import Config
session = botocore.session.get_session()
return session.create_client(
"s3",
endpoint_url=endpoint,
region_name="us-east-1",
aws_access_key_id=os.environ[KEY_ENV[0]],
aws_secret_access_key=os.environ[KEY_ENV[1]],
config=Config(
s3={"addressing_style": "path"},
retries={"total_max_attempts": 3},
max_pool_connections=threads,
),
)
def put_chunk(job: tuple[dict[str, Any], list[int]]) -> int:
"""Один процесс: свой клиент, потоки по номерам; число записанных."""
args, indices = job
s3 = client(args["endpoint"], args["threads"])
def put(index: int) -> None:
attachment_id = reconcile.object_id(args["seed"], index)
s3.put_object(
Bucket=args["bucket"],
Key=reconcile.object_key(args["namespace"], attachment_id),
Body=reconcile.content(args["seed"], index, args["size"]),
ContentType=reconcile.CONTENT_TYPE,
)
with ThreadPoolExecutor(max_workers=args["threads"]) as pool:
for _ in pool.map(put, indices):
pass
return len(indices)
def main(argv: list[str]) -> int:
parser = argparse.ArgumentParser(description=__doc__.splitlines()[0])
parser.add_argument("--endpoint", required=True)
parser.add_argument("--bucket", required=True)
parser.add_argument("--namespace", required=True)
parser.add_argument("--seed", type=int, required=True)
parser.add_argument("--start", type=int, required=True)
parser.add_argument("--end", type=int, required=True)
parser.add_argument("--size", type=int, required=True)
parser.add_argument("--force", choices=(reconcile.FORCE_OK,))
parser.add_argument("--processes", type=int, default=3)
parser.add_argument("--threads", type=int, default=24)
args = parser.parse_args(argv)
if not Path("/.dockerenv").exists():
print("fill: run only in the bench container", flush=True)
return 2
if any(not os.environ.get(name) for name in KEY_ENV):
print(f"fill: {' and '.join(KEY_ENV)} are required", flush=True)
return 2
indices = reconcile.object_indices(args.start, args.end, args.force)
parts = [indices[i :: args.processes] for i in range(args.processes)]
shared = {
key: getattr(args, key)
for key in ("endpoint", "bucket", "namespace", "seed", "size")
}
shared["threads"] = args.threads
started = time.monotonic()
try:
with Pool(args.processes) as pool:
done = sum(pool.map(put_chunk, [(shared, p) for p in parts if p]))
except Exception as exc:
# без текста исключения botocore: в нём может быть адрес и заголовки
print(f"fill: put failed ({type(exc).__name__})", flush=True)
return 1
seconds = time.monotonic() - started
print(
f"fill: {done} objects, {done / seconds if seconds else 0:.0f} "
f"put/s, {seconds:.1f} s",
flush=True,
)
return 0 if done == len(indices) else 1
if __name__ == "__main__":
sys.exit(main(sys.argv[1:]))
+138
View File
@@ -0,0 +1,138 @@
// Фоновая нагрузка профиля сверки (design change track2-reconcile-cost,
// решение 10): открытая модель, три сценария constant-arrival-rate через
// LB — скачивания оригиналов вложений набора (`/work/downloads.json` от
// run.py; читатель фикстуры — владелец и участник чата набора), запись
// сообщений в чат записи и чтение его первой страницы истории. Каждый
// запрос — строка «bg,<d|w|r>,<отправка мс>,<длительность мс>,<статус>» в
// файл консоли k6; run.py делит их на окна до, во время и после прохода
// сверки и сверяет число строк со счётчиком bg_lines_<сценарий> и с
// итерациями сценариев: снизу, а сверху — с запасом на VU. Оркестратор
// останавливает прогон сигналом SIGINT, когда блок проходов закончен:
// итог (handleSummary) k6 пишет и тогда.
import exec from "k6/execution";
import http from "k6/http";
import { SharedArray } from "k6/data";
import { Counter } from "k6/metrics";
import {
API,
PAGE_LIMIT,
SUMMARY_THRESHOLDS,
SUMMARY_TREND_STATS,
WORK_DIR,
authHeaders,
messageHeaders,
summaryFiles,
syntheticText,
} from "./lib.js";
const fixture = JSON.parse(open(`${WORK_DIR}/fixture.json`));
const ids = new SharedArray(
"downloads",
() => JSON.parse(open(`${WORK_DIR}/downloads.json`)),
);
const DURATION = __ENV.DURATION || "1h";
const PRE_VUS = Number(__ENV.PRE_VUS || 100);
const MAX_VUS = Number(__ENV.MAX_VUS || 600);
const TIMEOUT = __ENV.TIMEOUT || "15s";
const READER = authHeaders(fixture.tokens[fixture.readerId]);
// счёт строк bg,… тем же кодом, что их пишет. Итерация, которую остановка
// SIGINT прервала уже после строки, в iterations не входит, а её отсчёт
// здесь k6 может не принять (контекст итерации уже отменён). run.py
// требует строк не меньше счётчика и итераций, а лишних — не больше VU
// сценария (design change track2-reconcile-cost, «Уточнения apply», п. 15)
const LINES = {
d: new Counter("bg_lines_download"),
w: new Counter("bg_lines_write"),
r: new Counter("bg_lines_read"),
};
const WRITE_URL = `${API}/chats/${fixture.writeChatId}/messages`;
function scenario(fn, rate) {
return {
executor: "constant-arrival-rate",
exec: fn,
rate,
timeUnit: "1s",
duration: DURATION,
preAllocatedVUs: PRE_VUS,
maxVUs: MAX_VUS,
gracefulStop: "5s",
};
}
export const options = {
scenarios: {
download: scenario("download", Number(__ENV.DOWNLOAD_RATE)),
write: scenario("write", Number(__ENV.WRITE_RATE)),
read: scenario("read", Number(__ENV.READ_RATE)),
},
summaryTrendStats: SUMMARY_TREND_STATS,
// пороги всегда выполняются: подметрики итераций по сценариям попадают
// в итог, и run.py сверяет с ними число строк о запросах
thresholds: {
...SUMMARY_THRESHOLDS,
"iterations{scenario:download}": ["count>=0"],
"iterations{scenario:write}": ["count>=0"],
"iterations{scenario:read}": ["count>=0"],
},
};
// длительность — по монотонным таймингам k6 (как в failover.js), с точностью
// 0,01 мс: p95 чтения истории — единицы миллисекунд, и целые мс огрубляли
// бы отношение r; без ответа (status 0) — разность часов
function report(kind, start, res) {
const t = res.timings;
const measured = t.blocked + t.connecting + t.tls_handshaking + t.duration;
const duration = Math.max(
0,
Math.round((res.status === 0 ? Date.now() - start : measured) * 100) / 100,
);
LINES[kind].add(1);
console.log(`bg,${kind},${start},${duration},${res.status}`);
}
export function download() {
const n = exec.scenario.iterationInTest;
const id = ids[n % ids.length];
const start = Date.now();
const res = http.get(`${API}/attachments/${id}/content`, {
headers: READER,
responseType: "none",
timeout: TIMEOUT,
responseCallback: http.expectedStatuses(200),
});
report("d", start, res);
}
export function write() {
const n = exec.scenario.iterationInTest;
const sender = fixture.memberIds[n % fixture.memberIds.length];
const start = Date.now();
const res = http.post(
WRITE_URL,
JSON.stringify({ text: syntheticText("bg", n) }),
{
headers: messageHeaders(fixture.tokens[sender]),
responseType: "none",
timeout: TIMEOUT,
responseCallback: http.expectedStatuses(201),
},
);
report("w", start, res);
}
export function read() {
const start = Date.now();
const res = http.get(`${WRITE_URL}?limit=${PAGE_LIMIT}`, {
headers: READER,
responseType: "none",
timeout: TIMEOUT,
responseCallback: http.expectedStatuses(200),
});
report("r", start, res);
}
export function handleSummary(data) {
return summaryFiles(data);
}
+2257
View File
File diff suppressed because it is too large Load Diff
+1023 -12
View File
File diff suppressed because it is too large Load Diff
+4
View File
@@ -117,3 +117,7 @@ page_size = 1000
# предел изменений за проход: больше — ни одного изменения и код 3;
# разовый проход принимает больший аргументом --max-changes
max_changes = 100
# предел скорости прохода: объектов S3 в секунду (ключи страниц списка,
# HEAD, GET, DELETE) в среднем от начала прохода; 0 — без предела;
# разовый проход принимает другой аргументом --max-objects-per-second
max_objects_per_second = 2000
@@ -0,0 +1,40 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 420" width="720" height="420" font-family='system-ui, -apple-system, "Segoe UI", sans-serif'>
<rect x="0" y="0" width="720" height="420" fill="#fcfcfb"/>
<text x="24.0" y="30.0" font-size="16" font-weight="600" fill="#52514e" text-anchor="start">Фоновая нагрузка: r = p95 прохода / p95 тихих</text>
<line x1="80.0" y1="350.0" x2="680.0" y2="350.0" stroke="#e1e0d9" stroke-width="1"/>
<text x="72.0" y="354.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="end">0</text>
<line x1="80.0" y1="280.0" x2="680.0" y2="280.0" stroke="#e1e0d9" stroke-width="1"/>
<text x="72.0" y="284.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="end">0.5</text>
<line x1="80.0" y1="210.0" x2="680.0" y2="210.0" stroke="#e1e0d9" stroke-width="1"/>
<text x="72.0" y="214.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="end">1</text>
<line x1="80.0" y1="140.0" x2="680.0" y2="140.0" stroke="#e1e0d9" stroke-width="1"/>
<text x="72.0" y="144.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="end">1.5</text>
<line x1="80.0" y1="70.0" x2="680.0" y2="70.0" stroke="#e1e0d9" stroke-width="1"/>
<text x="72.0" y="74.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="end">2</text>
<rect x="80" y="140.0" width="600" height="116.7" fill="#e1e0d9" opacity="0.5"/>
<line x1="80.0" y1="140.0" x2="680.0" y2="140.0" stroke="#52514e" stroke-width="1" stroke-dasharray="5 4"/>
<g><title>stand download: r 1.01</title><path d="M98.8,350.0 L98.8,212.6 Q98.8,208.6 102.8,208.6 L128.5,208.6 Q132.5,208.6 132.5,212.6 L132.5,350.0 Z" fill="#2a78d6"/></g>
<g><title>stand write: r 1.02</title><path d="M136.2,350.0 L136.2,210.5 Q136.2,206.5 140.2,206.5 L166.0,206.5 Q170.0,206.5 170.0,210.5 L170.0,350.0 Z" fill="#eb6834"/></g>
<g><title>stand read: r 1.03</title><path d="M173.8,350.0 L173.8,209.8 Q173.8,205.8 177.8,205.8 L203.5,205.8 Q207.5,205.8 207.5,209.8 L207.5,350.0 Z" fill="#1baf7a"/></g>
<text x="155.0" y="368.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="middle">stand</text>
<g><title>stand-unlimited download: r 1.06</title><path d="M248.8,350.0 L248.8,205.7 Q248.8,201.7 252.8,201.7 L278.5,201.7 Q282.5,201.7 282.5,205.7 L282.5,350.0 Z" fill="#2a78d6"/></g>
<g><title>stand-unlimited write: r 1.07</title><path d="M286.2,350.0 L286.2,203.6 Q286.2,199.6 290.2,199.6 L316.0,199.6 Q320.0,199.6 320.0,203.6 L320.0,350.0 Z" fill="#eb6834"/></g>
<g><title>stand-unlimited read: r 1.07</title><path d="M323.8,350.0 L323.8,203.9 Q323.8,199.9 327.8,199.9 L353.5,199.9 Q357.5,199.9 357.5,203.9 L357.5,350.0 Z" fill="#1baf7a"/></g>
<text x="305.0" y="368.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="middle">stand-unlimited</text>
<g><title>fast-unlimited download: r 1.08</title><path d="M398.8,350.0 L398.8,202.4 Q398.8,198.4 402.8,198.4 L428.5,198.4 Q432.5,198.4 432.5,202.4 L432.5,350.0 Z" fill="#2a78d6"/></g>
<g><title>fast-unlimited write: r 1.08</title><path d="M436.2,350.0 L436.2,203.2 Q436.2,199.2 440.2,199.2 L466.0,199.2 Q470.0,199.2 470.0,203.2 L470.0,350.0 Z" fill="#eb6834"/></g>
<g><title>fast-unlimited read: r 1.08</title><path d="M473.8,350.0 L473.8,202.1 Q473.8,198.1 477.8,198.1 L503.5,198.1 Q507.5,198.1 507.5,202.1 L507.5,350.0 Z" fill="#1baf7a"/></g>
<text x="455.0" y="368.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="middle">fast-unlimited</text>
<g><title>fast-limited download: r 1.02</title><path d="M548.8,350.0 L548.8,210.9 Q548.8,206.9 552.8,206.9 L578.5,206.9 Q582.5,206.9 582.5,210.9 L582.5,350.0 Z" fill="#2a78d6"/></g>
<g><title>fast-limited write: r 1.03</title><path d="M586.2,350.0 L586.2,209.7 Q586.2,205.7 590.2,205.7 L616.0,205.7 Q620.0,205.7 620.0,209.7 L620.0,350.0 Z" fill="#eb6834"/></g>
<g><title>fast-limited read: r 1.02</title><path d="M623.8,350.0 L623.8,211.2 Q623.8,207.2 627.8,207.2 L653.5,207.2 Q657.5,207.2 657.5,211.2 L657.5,350.0 Z" fill="#1baf7a"/></g>
<text x="605.0" y="368.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="middle">fast-limited</text>
<rect x="80.0" y="47.0" width="12" height="12" rx="2" fill="#2a78d6"/>
<text x="102.0" y="57.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">download</text>
<rect x="170.0" y="47.0" width="12" height="12" rx="2" fill="#eb6834"/>
<text x="192.0" y="57.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">write</text>
<rect x="239.0" y="47.0" width="12" height="12" rx="2" fill="#1baf7a"/>
<text x="261.0" y="57.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">read</text>
<line x1="301.0" y1="53.0" x2="317.0" y2="53.0" stroke="#52514e" stroke-width="2" stroke-dasharray="5 4"/>
<text x="323.0" y="57.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">порог 1.5</text>
</svg>

After

Width:  |  Height:  |  Size: 4.8 KiB

+35
View File
@@ -0,0 +1,35 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 420" width="720" height="420" font-family='system-ui, -apple-system, "Segoe UI", sans-serif'>
<rect x="0" y="0" width="720" height="420" fill="#fcfcfb"/>
<text x="24.0" y="30.0" font-size="16" font-weight="600" fill="#52514e" text-anchor="start">Время прохода сверки от числа объектов</text>
<line x1="80.0" y1="350.0" x2="680.0" y2="350.0" stroke="#e1e0d9" stroke-width="1"/>
<text x="72.0" y="354.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="end">0</text>
<line x1="80.0" y1="292.0" x2="680.0" y2="292.0" stroke="#e1e0d9" stroke-width="1"/>
<text x="72.0" y="296.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="end">50</text>
<line x1="80.0" y1="234.0" x2="680.0" y2="234.0" stroke="#e1e0d9" stroke-width="1"/>
<text x="72.0" y="238.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="end">100</text>
<line x1="80.0" y1="176.0" x2="680.0" y2="176.0" stroke="#e1e0d9" stroke-width="1"/>
<text x="72.0" y="180.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="end">150</text>
<line x1="80.0" y1="118.0" x2="680.0" y2="118.0" stroke="#e1e0d9" stroke-width="1"/>
<text x="72.0" y="122.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="end">200</text>
<line x1="80.0" y1="60.0" x2="680.0" y2="60.0" stroke="#e1e0d9" stroke-width="1"/>
<text x="72.0" y="64.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="end">250</text>
<text x="137.1" y="368.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="middle">10K</text>
<text x="251.4" y="368.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="middle">30K</text>
<text x="651.4" y="368.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="middle">100K</text>
<text x="380.0" y="390.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="middle">объектов в bucket</text>
<text x="24.0" y="205.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="middle" transform="rotate(-90 24.0 205.0)">проход, с</text>
<polyline points="137.1,346.7 251.4,339.2 651.4,313.0" fill="none" stroke="#2a78d6" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<g><title>batch: N 10000, 2.807</title><circle cx="137.1" cy="346.7" r="7" fill="transparent"/><circle cx="137.1" cy="346.7" r="4.5" fill="#2a78d6" stroke="#fcfcfb" stroke-width="2"/></g>
<g><title>batch: N 30000, 9.295</title><circle cx="251.4" cy="339.2" r="7" fill="transparent"/><circle cx="251.4" cy="339.2" r="4.5" fill="#2a78d6" stroke="#fcfcfb" stroke-width="2"/></g>
<g><title>batch: N 100000, 31.928</title><circle cx="651.4" cy="313.0" r="7" fill="transparent"/><circle cx="651.4" cy="313.0" r="4.5" fill="#2a78d6" stroke="#fcfcfb" stroke-width="2"/></g>
<polyline points="137.1,279.3 251.4,129.8" fill="none" stroke="#eb6834" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<g><title>head: N 10000, 60.982</title><circle cx="137.1" cy="279.3" r="7" fill="transparent"/><circle cx="137.1" cy="279.3" r="4.5" fill="#eb6834" stroke="#fcfcfb" stroke-width="2"/></g>
<g><title>head: N 30000, 189.789</title><circle cx="251.4" cy="129.8" r="7" fill="transparent"/><circle cx="251.4" cy="129.8" r="4.5" fill="#eb6834" stroke="#fcfcfb" stroke-width="2"/></g>
<g><title>deep: N 10000, 31.307</title><circle cx="137.1" cy="313.7" r="7" fill="transparent"/><circle cx="137.1" cy="313.7" r="4.5" fill="#1baf7a" stroke="#fcfcfb" stroke-width="2"/></g>
<line x1="80.0" y1="45.0" x2="96.0" y2="45.0" stroke="#2a78d6" stroke-width="2"/>
<text x="102.0" y="49.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">batch</text>
<line x1="149.0" y1="45.0" x2="165.0" y2="45.0" stroke="#eb6834" stroke-width="2"/>
<text x="171.0" y="49.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">head</text>
<line x1="211.0" y1="45.0" x2="227.0" y2="45.0" stroke="#1baf7a" stroke-width="2"/>
<text x="233.0" y="49.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">deep</text>
</svg>

After

Width:  |  Height:  |  Size: 4.0 KiB

+998
View File
@@ -0,0 +1,998 @@
{
"label": "baseline",
"status": "complete",
"started_at": "2026-10-23T15:06:49+00:00",
"command": "uv run python bench/run.py --profile reconcile --label baseline",
"git": {
"commit": "d8b8ae3",
"dirty": false
},
"overrides": {},
"host_state": {
"start": {
"swap_used_mib": 1267.69,
"swap_total_mib": 2048.0,
"swapouts": 1541596,
"memory_free_percent": 65,
"power": "AC Power",
"battery_percent": 80
},
"end": {
"swap_used_mib": 1251.69,
"swap_total_mib": 2048.0,
"swapouts": 1541596,
"memory_free_percent": 60,
"power": "AC Power",
"battery_percent": 80
},
"swapouts_delta": 0,
"slept_seconds": 0
},
"host_warnings": [],
"other_containers": [],
"app_image": {
"tag": "mtusi-messenger:bench",
"id": "sha256:a23df86b071acb886f5e93bd60c65d41d6e8cb19b257355d6e3e9e15c923c973",
"versions": {
"python": "3.12.14",
"fastapi": "0.141.1",
"starlette": "1.7.0",
"pydantic": "2.13.5",
"uvicorn": "0.54.0",
"sqlalchemy": "2.1.1",
"asyncpg": "0.31.0",
"redis": "8.1.0"
}
},
"generator": {
"image": "grafana/k6:2.3.0@sha256:9c2dee7f8ed74d317e4027c06a10f169b625638189de8d4555d0b3486a5aeb34",
"version": "k6 v2.3.0 (commit/e088784614, go1.27.1, linux/arm64)"
},
"docker": {
"server": "29.9.2",
"vm_os": "Docker Desktop",
"kernel": "7.0.14-linuxkit",
"vm_cpus": 12,
"vm_memory_gib": 7.7,
"cgroup": "2",
"logging_driver": "local"
},
"host": {
"os": "macOS 26.6.2",
"machine": "Apple M3 Pro",
"memory_gib": 18.0,
"performance_cores": 6,
"efficiency_cores": 6
},
"profile": {
"name": "reconcile",
"sizes": [],
"concurrency": [],
"repeats": 3,
"read_warmup_s": 0,
"read_measure_s": 0,
"write_warmup": 0,
"write_measure": 0,
"prefill_chunk": 25000,
"prefill_vus": 32,
"text_length": 64,
"page_limit": 50,
"walk_limit": 100,
"cursor_pool": 1000,
"members": 1,
"seed": 20260930,
"warmup_seed_shift": 1000003,
"generator_cpu_limit": 4.0,
"cpus": "1",
"memory": "512m",
"db_cpus": "2",
"db_memory": "1g",
"cache_cpus": "0.5",
"cache_memory": "128m",
"session_ttl_seconds": 21600,
"background": [],
"index_variants": [
[
"chat_only",
"(chat_id)"
],
[
"covering",
"(chat_id, created_at, id) INCLUDE (sender_id, text)"
]
],
"write_probe_rows": 20000,
"write_probe_repeats": 3,
"restore": false,
"restore_jobs": 4,
"restore_write_load": 5000,
"restore_write_vus": 10,
"replicas": 2,
"lb_cpus": "1",
"lb_memory": "256m",
"failover_modes": [],
"failover_write_rate": 0,
"failover_read_rate": 0,
"failover_before_s": 0,
"failover_down_s": 0,
"failover_after_s": 0,
"failover_success": 0.99,
"failover_pre_vus": 600,
"failover_max_vus": 1500,
"rollout_from": "",
"rollout_before_s": 0,
"rollout_budget_s": 0,
"rollout_after_s": 0,
"sample_resources": false,
"uploads_variants": [],
"uploads_before": "",
"uploads_sizes": [],
"uploads_clients": [],
"uploads_ramp_s": 3,
"uploads_window_s": 20,
"uploads_unlimited_env": [
[
"UPLOADS__MAX_CONCURRENT",
"1000"
],
[
"UPLOADS__MAX_WAITING",
"0"
]
],
"uploads_sample_interval_s": 0.2,
"s3_cpus": "1",
"s3_memory": "512m",
"cleaner_cpus": "0.25",
"cleaner_memory": "256m",
"reconcile_stages": [
[
"A",
true,
1000,
1048576,
[
"batch",
"deep",
"deep-fast"
]
],
[
"B",
true,
10000,
4096,
[
"batch",
"head",
"deep"
]
],
[
"C",
false,
30000,
4096,
[
"batch",
"head"
]
],
[
"D",
false,
100000,
4096,
[
"batch",
"stand",
"stand-unlimited",
"fast-unlimited",
"fast-limited"
]
]
],
"reconcile_before": "7f4e626",
"reconcile_s4_clean": 10000,
"reconcile_s4_candidates": [
1000,
10000
],
"reconcile_s4_max_changes": 100,
"reconcile_grace_s": 30,
"reconcile_fresh_wait_s": 2,
"reconcile_fast_cpus": "1",
"reconcile_default_rate": 2000,
"reconcile_background": [
[
"download",
300
],
[
"write",
50
],
[
"read",
50
]
],
"reconcile_downloads": 5000,
"reconcile_bg_max_vus": 600,
"reconcile_quiet_s": 30,
"reconcile_fill_processes": 3,
"reconcile_fill_threads": 24,
"reconcile_sample_interval_s": 0.5,
"reconcile_metrics_port": 9327,
"reconcile_h1_stages": [
"B",
"C",
"D"
],
"reconcile_h2_stages": [
"B",
"C"
],
"reconcile_h3_stages": [
"B",
"A"
],
"reconcile_s4_base": "B",
"db_max_connections": 100,
"series": "",
"configs": [],
"write_chats": 1,
"mix": [],
"fixed_rps": [],
"ladder_base": 100,
"step_factor": 1.25,
"start_rps_per_replica": 300,
"bisect_steps": 2,
"max_steps": 12,
"first_warmup_s": 15,
"step_warmup_s": 5,
"step_measure_s": 20,
"cooldown_s": 10,
"slo_p95_ms": 200,
"slo_error_ratio": 0.01,
"abort_error_ratio": 0.5,
"abort_p95_ms": 2000,
"request_timeout_s": 15,
"prevus_per_rps": 0.05,
"vus_per_rps": 0.2,
"generator_cpus": "",
"generator_memory": "",
"sampler_cpus": "0.25",
"sampler_memory": "128m",
"sample_interval_s": 1.0,
"order_seed": 20261011
},
"sizes": [],
"reconcile": {
"before_commit": "7f4e626",
"plan": [
{
"pass": "A-deep-fast-r1",
"stage": "A",
"cell": "deep-fast",
"repeat": 1,
"order": 1,
"load": false
},
{
"pass": "A-batch-r1",
"stage": "A",
"cell": "batch",
"repeat": 1,
"order": 2,
"load": false
},
{
"pass": "A-deep-r1",
"stage": "A",
"cell": "deep",
"repeat": 1,
"order": 3,
"load": false
},
{
"pass": "A-batch-r2",
"stage": "A",
"cell": "batch",
"repeat": 2,
"order": 4,
"load": false
},
{
"pass": "A-deep-r2",
"stage": "A",
"cell": "deep",
"repeat": 2,
"order": 5,
"load": false
},
{
"pass": "A-deep-fast-r2",
"stage": "A",
"cell": "deep-fast",
"repeat": 2,
"order": 6,
"load": false
},
{
"pass": "A-deep-r3",
"stage": "A",
"cell": "deep",
"repeat": 3,
"order": 7,
"load": false
},
{
"pass": "A-batch-r3",
"stage": "A",
"cell": "batch",
"repeat": 3,
"order": 8,
"load": false
},
{
"pass": "A-deep-fast-r3",
"stage": "A",
"cell": "deep-fast",
"repeat": 3,
"order": 9,
"load": false
},
{
"pass": "B-head-r1",
"stage": "B",
"cell": "head",
"repeat": 1,
"order": 10,
"load": false
},
{
"pass": "B-deep-r1",
"stage": "B",
"cell": "deep",
"repeat": 1,
"order": 11,
"load": false
},
{
"pass": "B-batch-r1",
"stage": "B",
"cell": "batch",
"repeat": 1,
"order": 12,
"load": false
},
{
"pass": "B-head-r2",
"stage": "B",
"cell": "head",
"repeat": 2,
"order": 13,
"load": false
},
{
"pass": "B-deep-r2",
"stage": "B",
"cell": "deep",
"repeat": 2,
"order": 14,
"load": false
},
{
"pass": "B-batch-r2",
"stage": "B",
"cell": "batch",
"repeat": 2,
"order": 15,
"load": false
},
{
"pass": "B-head-r3",
"stage": "B",
"cell": "head",
"repeat": 3,
"order": 16,
"load": false
},
{
"pass": "B-deep-r3",
"stage": "B",
"cell": "deep",
"repeat": 3,
"order": 17,
"load": false
},
{
"pass": "B-batch-r3",
"stage": "B",
"cell": "batch",
"repeat": 3,
"order": 18,
"load": false
},
{
"pass": "C-batch-r1",
"stage": "C",
"cell": "batch",
"repeat": 1,
"order": 19,
"load": false
},
{
"pass": "C-head-r1",
"stage": "C",
"cell": "head",
"repeat": 1,
"order": 20,
"load": false
},
{
"pass": "C-batch-r2",
"stage": "C",
"cell": "batch",
"repeat": 2,
"order": 21,
"load": false
},
{
"pass": "C-head-r2",
"stage": "C",
"cell": "head",
"repeat": 2,
"order": 22,
"load": false
},
{
"pass": "C-batch-r3",
"stage": "C",
"cell": "batch",
"repeat": 3,
"order": 23,
"load": false
},
{
"pass": "C-head-r3",
"stage": "C",
"cell": "head",
"repeat": 3,
"order": 24,
"load": false
},
{
"pass": "D-batch-r1",
"stage": "D",
"cell": "batch",
"repeat": 1,
"order": 25,
"load": false
},
{
"pass": "D-batch-r2",
"stage": "D",
"cell": "batch",
"repeat": 2,
"order": 26,
"load": false
},
{
"pass": "D-batch-r3",
"stage": "D",
"cell": "batch",
"repeat": 3,
"order": 27,
"load": false
},
{
"pass": "D-fast-limited-r1",
"stage": "D",
"cell": "fast-limited",
"repeat": 1,
"order": 28,
"load": true
},
{
"pass": "D-stand-unlimited-r1",
"stage": "D",
"cell": "stand-unlimited",
"repeat": 1,
"order": 29,
"load": true
},
{
"pass": "D-stand-r1",
"stage": "D",
"cell": "stand",
"repeat": 1,
"order": 30,
"load": true
},
{
"pass": "D-fast-unlimited-r1",
"stage": "D",
"cell": "fast-unlimited",
"repeat": 1,
"order": 31,
"load": true
},
{
"pass": "D-stand-unlimited-r2",
"stage": "D",
"cell": "stand-unlimited",
"repeat": 2,
"order": 32,
"load": true
},
{
"pass": "D-fast-limited-r2",
"stage": "D",
"cell": "fast-limited",
"repeat": 2,
"order": 33,
"load": true
},
{
"pass": "D-stand-r2",
"stage": "D",
"cell": "stand",
"repeat": 2,
"order": 34,
"load": true
},
{
"pass": "D-fast-unlimited-r2",
"stage": "D",
"cell": "fast-unlimited",
"repeat": 2,
"order": 35,
"load": true
},
{
"pass": "D-stand-r3",
"stage": "D",
"cell": "stand",
"repeat": 3,
"order": 36,
"load": true
},
{
"pass": "D-fast-unlimited-r3",
"stage": "D",
"cell": "fast-unlimited",
"repeat": 3,
"order": 37,
"load": true
},
{
"pass": "D-fast-limited-r3",
"stage": "D",
"cell": "fast-limited",
"repeat": 3,
"order": 38,
"load": true
},
{
"pass": "D-stand-unlimited-r3",
"stage": "D",
"cell": "stand-unlimited",
"repeat": 3,
"order": 39,
"load": true
},
{
"pass": "S4-1000-after-r1",
"stage": "S4-1000",
"cell": "after",
"repeat": 1,
"order": 40,
"load": false
},
{
"pass": "S4-1000-before-r1",
"stage": "S4-1000",
"cell": "before",
"repeat": 1,
"order": 41,
"load": false
},
{
"pass": "S4-1000-after-r2",
"stage": "S4-1000",
"cell": "after",
"repeat": 2,
"order": 42,
"load": false
},
{
"pass": "S4-1000-before-r2",
"stage": "S4-1000",
"cell": "before",
"repeat": 2,
"order": 43,
"load": false
},
{
"pass": "S4-1000-after-r3",
"stage": "S4-1000",
"cell": "after",
"repeat": 3,
"order": 44,
"load": false
},
{
"pass": "S4-1000-before-r3",
"stage": "S4-1000",
"cell": "before",
"repeat": 3,
"order": 45,
"load": false
},
{
"pass": "S4-10000-after-r1",
"stage": "S4-10000",
"cell": "after",
"repeat": 1,
"order": 46,
"load": false
},
{
"pass": "S4-10000-before-r1",
"stage": "S4-10000",
"cell": "before",
"repeat": 1,
"order": 47,
"load": false
},
{
"pass": "S4-10000-after-r2",
"stage": "S4-10000",
"cell": "after",
"repeat": 2,
"order": 48,
"load": false
},
{
"pass": "S4-10000-before-r2",
"stage": "S4-10000",
"cell": "before",
"repeat": 2,
"order": 49,
"load": false
},
{
"pass": "S4-10000-after-r3",
"stage": "S4-10000",
"cell": "after",
"repeat": 3,
"order": 50,
"load": false
},
{
"pass": "S4-10000-before-r3",
"stage": "S4-10000",
"cell": "before",
"repeat": 3,
"order": 51,
"load": false
}
],
"seed": 20260930,
"period": 400,
"classes": [
"orphan_object",
"missing_object",
"size_mismatch",
"stale_pending"
],
"stages": [
{
"stage": "A",
"fresh": true,
"objects_total": 1000,
"object_bytes": 1048576,
"cells": [
"batch",
"deep",
"deep-fast"
],
"model": {
"objects": 997,
"ready_rows": 994,
"pending_rows": 3,
"found": {
"orphan_object": 3,
"missing_object": 3,
"size_mismatch": 3,
"stale_pending": 3
}
}
},
{
"stage": "B",
"fresh": true,
"objects_total": 10000,
"object_bytes": 4096,
"cells": [
"batch",
"head",
"deep"
],
"model": {
"objects": 9975,
"ready_rows": 9950,
"pending_rows": 25,
"found": {
"orphan_object": 25,
"missing_object": 25,
"size_mismatch": 25,
"stale_pending": 25
}
}
},
{
"stage": "C",
"fresh": false,
"objects_total": 30000,
"object_bytes": 4096,
"cells": [
"batch",
"head"
],
"model": {
"objects": 29925,
"ready_rows": 29850,
"pending_rows": 75,
"found": {
"orphan_object": 75,
"missing_object": 75,
"size_mismatch": 75,
"stale_pending": 75
}
}
},
{
"stage": "D",
"fresh": false,
"objects_total": 100000,
"object_bytes": 4096,
"cells": [
"batch",
"stand",
"stand-unlimited",
"fast-unlimited",
"fast-limited"
],
"model": {
"objects": 99750,
"ready_rows": 99500,
"pending_rows": 250,
"found": {
"orphan_object": 250,
"missing_object": 250,
"size_mismatch": 250,
"stale_pending": 250
}
}
}
],
"object_bytes": {
"A": 1048576,
"B": 4096,
"C": 4096,
"D": 4096
},
"s4_clean": 10000,
"s4_candidates": [
1000,
10000
],
"s4_max_changes": 100,
"s4_base_stage": "B",
"h1_stages": [
"B",
"C",
"D"
],
"h2_stages": [
"B",
"C"
],
"h3_small_stage": "B",
"h3_large_stage": "A",
"cleaner_cpus": {
"stand": "0.25",
"fast": "1"
},
"grace_seconds": 30,
"default_rate": 2000,
"background": {
"download": 300,
"write": 50,
"read": 50,
"downloads": 5000,
"quiet_s": 30
},
"metrics_port": 9327,
"images": {
"checkout": "sha256:a23df86b071acb886f5e93bd60c65d41d6e8cb19b257355d6e3e9e15c923c973",
"before": "sha256:86aa70b5c4c40c4b2d70ff4cae42c47788978c4992b1d01faac3771f3ca0c052"
},
"s3_command": [
"server",
"-ip=127.0.0.1",
"-ip.bind=127.0.0.1",
"-master.telemetry=false",
"-master.electionTimeout=1s",
"-volume.preStopSeconds=0",
"-filer",
"-s3",
"-s3.ip.bind=0.0.0.0",
"-s3.port=8333",
"-s3.port.iceberg=0",
"-s3.port.lance=0",
"-s3.iam=false",
"-s3.concurrentUploadLimitMB=64",
"-metricsPort=9327"
],
"bg_interrupted": {
"D": {
"download": 0,
"write": 0,
"read": 0
}
}
},
"limits": {
"api": {
"nano_cpus": 1000000000,
"memory": 536870912,
"memory_swap": 536870912,
"published_ports": {},
"healthcheck": [
"NONE"
],
"log_driver": "local"
},
"postgres": {
"nano_cpus": 2000000000,
"memory": 1073741824,
"memory_swap": 1073741824,
"published_ports": {},
"healthcheck": [
"CMD-SHELL",
"pg_isready -h 127.0.0.1 -U \"$POSTGRES_USER\" -d \"$POSTGRES_DB\""
],
"log_driver": "local"
},
"valkey": {
"nano_cpus": 500000000,
"memory": 134217728,
"memory_swap": 134217728,
"published_ports": {},
"healthcheck": [
"CMD-SHELL",
"test \"$(valkey-cli -p \"$VALKEY_PORT\" ping)\" = PONG"
],
"log_driver": "local"
},
"haproxy": {
"nano_cpus": 1000000000,
"memory": 268435456,
"memory_swap": 268435456,
"published_ports": {},
"healthcheck": [
"CMD",
"bash",
"-c",
"exec 3<>/dev/tcp/127.0.0.1/8404 && printf 'GET /lb/ready HTTP/1.0\\r\\n\\r\\n' >&3 && head -n 1 <&3 | grep -q ' 200 '"
],
"log_driver": "local"
},
"k6": {
"nano_cpus": 0,
"memory": 0,
"memory_swap": 0,
"published_ports": {},
"healthcheck": null,
"log_driver": "local"
},
"s3": {
"nano_cpus": 1000000000,
"memory": 536870912,
"memory_swap": 536870912,
"published_ports": {},
"healthcheck": [
"CMD-SHELL",
"wget -q -O /dev/null http://127.0.0.1:9333/cluster/healthz && wget -q -O - http://127.0.0.1:9333/dir/status | grep -qF '\"DataNodes\":[{' && wget -q -O /dev/null http://127.0.0.1:8888/healthz && wget -q -O /dev/null \"http://127.0.0.1:$S3_PORT/healthz\""
],
"log_driver": "local"
},
"api_replicas": 2,
"max_connections": 100,
"cleaner": {
"1": {
"nano_cpus": 1000000000,
"memory": 268435456,
"memory_swap": 268435456,
"published_ports": {},
"healthcheck": [
"NONE"
],
"log_driver": "local"
},
"0.25": {
"nano_cpus": 250000000,
"memory": 268435456,
"memory_swap": 268435456,
"published_ports": {},
"healthcheck": [
"NONE"
],
"log_driver": "local"
}
}
},
"stand": {
"s3": {
"image": "chrislusf/seaweedfs:4.48@sha256:4e61d15fd35994cb1e43e1e553dff106794841fd9a99ade2fc8c8bfce4d7872d",
"id": "sha256:4e61d15fd35994cb1e43e1e553dff106794841fd9a99ade2fc8c8bfce4d7872d"
},
"api_tcp_rmem": "4096 131072 524288",
"postgres": {
"image": "postgres:18.6-trixie@sha256:5a5a84b19854a9ffaa54082c166ff4ec27473a361e496e5ea167f298f2da9722",
"id": "sha256:5a5a84b19854a9ffaa54082c166ff4ec27473a361e496e5ea167f298f2da9722",
"version": "18.6 (Debian 18.6-1.pgdg13+2)",
"settings": {
"autovacuum": "on",
"checkpoint_timeout": "5min",
"effective_cache_size": "4GB",
"fsync": "on",
"jit": "on",
"maintenance_work_mem": "64MB",
"max_connections": "100",
"max_wal_size": "1GB",
"plan_cache_mode": "auto",
"random_page_cost": "4",
"shared_buffers": "128MB",
"shared_preload_libraries": "auto_explain",
"synchronous_commit": "on",
"wal_level": "replica",
"work_mem": "4MB"
}
},
"valkey": {
"image": "valkey/valkey:9.1.2-trixie@sha256:418652cfb58ef879d4978c33553735d7147016032d5aefaa14c828e611eb9dfd",
"id": "sha256:418652cfb58ef879d4978c33553735d7147016032d5aefaa14c828e611eb9dfd",
"version": "9.1.2",
"maxmemory": "67108864",
"maxmemory-clients": "0",
"maxmemory-eviction-tenacity": "10",
"maxmemory-policy": "allkeys-lru",
"maxmemory-samples": "5"
},
"haproxy": {
"image": "haproxy:3.4.6-trixie@sha256:e273915691a8eab3f105bf3e39fd4c29a4ecf334e33421903b5589d25e14db26",
"id": "sha256:e273915691a8eab3f105bf3e39fd4c29a4ecf334e33421903b5589d25e14db26",
"version": "HAProxy version 3.4.6-56332c5 2026/09/28 - https://haproxy.org/"
},
"app_env": {
"APP__PORT": "8080",
"APP__RUN_MODE": "docker",
"AUTH__SESSION_TTL_SECONDS": "21600",
"CACHE__HOST": "valkey",
"CACHE__PORT": "6379",
"DATABASE__HOST": "postgres",
"DATABASE__NAME": "bench",
"DATABASE__PORT": "5432",
"DATABASE__USER": "bench",
"S3__BUCKET": "bench",
"S3__HOST": "s3",
"S3__PORT": "8333"
}
},
"finished_at": "2026-10-23T15:52:03+00:00"
}
+52
View File
@@ -0,0 +1,52 @@
pass,stage,cell,repeat,order,strategy,deep,apply,image,cleaner_cpus,max_objects_per_second,load,objects,object_bytes,ready_rows,candidates,expected_orphan_object,expected_missing_object,expected_size_mismatch,expected_stale_pending,found_orphan_object,found_missing_object,found_size_mismatch,found_stale_pending,found_checksum_mismatch,found_other,listed_objects,checked_rows,exit_code,duration_ms,phase_list_ms,phase_rows_ms,phase_stale_ms,phase_recheck_ms,phase_act_ms,us_per_object,storage_objects,s3_list,s3_head,s3_get,s3_delete,read_bytes,db_sessions,unchecked,refused,limit_changes,gw_list,gw_get,gw_delete,gw_other,pg_xact,pg_tup_returned,pg_tup_fetched,pg_blks_hit,pg_blks_read,pg_sessions,cpu_cleaner,cpu_s3,cpu_postgres,cpu_api,cpu_haproxy,mem_start_mib,mem_peak_mib,mem_growth_bytes_per_object,flags
A-deep-fast-r1,A,deep-fast,1,1,batch,True,False,checkout,1,0.0,False,997,1048576,994,12,3,3,3,3,3,3,3,3,0,0,997,994,3,3212,3187,7,1,17,0,3221.66,1995,2,9,988,0,1035993088,12,0,False,,2,997,0,0,28,4343,1658,2332,32,3,0.6065,0.4179,0.0029,0.0028,0.0034,31.9,95.4,66784.9,
A-batch-r1,A,batch,1,2,batch,False,False,checkout,0.25,0.0,False,997,1048576,994,12,3,3,3,3,3,3,3,3,0,0,997,994,3,400,292,9,2,97,0,401.2,1007,2,9,0,0,0,12,0,False,,2,9,0,0,28,4343,1658,2364,0,3,0.2483,0.1144,0.0437,0.0037,0.0008,77.8,94.5,17563.9,
A-deep-r1,A,deep,1,3,batch,True,False,checkout,0.25,0.0,False,997,1048576,994,12,3,3,3,3,3,3,3,3,0,0,997,994,3,8591,8485,8,2,96,0,8616.85,1995,2,9,988,0,1035993088,12,0,False,,2,997,0,0,30,4375,1688,2426,0,5,0.2487,0.1957,0.0063,0.0034,0.0018,88.7,96.1,7782.8,
A-batch-r2,A,batch,2,4,batch,False,False,checkout,0.25,0.0,False,997,1048576,994,12,3,3,3,3,3,3,3,3,0,0,997,994,3,415,301,10,2,102,0,416.25,1007,2,9,0,0,0,12,0,False,,2,9,0,0,30,5314,1673,2437,0,3,,0.1758,0.0237,0.0014,0.0001,89.8,89.8,0.0,
A-deep-r2,A,deep,2,5,batch,True,False,checkout,0.25,0.0,False,997,1048576,994,12,3,3,3,3,3,3,3,3,0,0,997,994,3,8527,8435,71,2,19,0,8552.66,1995,2,9,988,0,1035993088,12,0,False,,2,997,0,0,30,4471,1784,2644,0,5,0.25,0.203,0.007,0.0033,0.0031,90.3,96.1,6100.0,
A-deep-fast-r2,A,deep-fast,2,6,batch,True,False,checkout,1,0.0,False,997,1048576,994,12,3,3,3,3,3,3,3,3,0,0,997,994,3,3045,3019,7,1,16,0,3054.16,1995,2,9,988,0,1035993088,12,0,False,,2,997,0,0,29,4359,1673,2395,0,4,0.5905,0.4771,0.0035,0.0029,0.0037,19.9,95.3,79300.5,
A-deep-r3,A,deep,3,7,batch,True,False,checkout,0.25,0.0,False,997,1048576,994,12,3,3,3,3,3,3,3,3,0,0,997,994,3,8896,8800,9,1,86,0,8922.77,1995,2,9,988,0,1035993088,12,0,False,,2,997,0,0,30,4375,1688,2426,0,5,0.2494,0.2018,0.0049,0.0034,0.0029,72.9,96.0,24295.0,
A-batch-r3,A,batch,3,8,batch,False,False,checkout,0.25,0.0,False,997,1048576,994,12,3,3,3,3,3,3,3,3,0,0,997,994,3,504,390,10,2,103,0,505.52,1007,2,9,0,0,0,12,0,False,,2,9,0,0,28,4343,1658,2364,0,3,0.2115,0.127,0.0175,0.0026,0.0004,76.4,91.8,16196.7,
A-deep-fast-r3,A,deep-fast,3,9,batch,True,False,checkout,1,0.0,False,997,1048576,994,12,3,3,3,3,3,3,3,3,0,0,997,994,3,3070,3045,7,1,16,0,3079.24,1995,2,9,988,0,1035993088,12,0,False,,2,997,0,0,28,4343,1658,2364,0,3,0.595,0.4775,0.0107,0.003,0.0031,29.8,95.3,68888.4,
B-head-r1,B,head,1,10,head,False,False,checkout,0.25,0.0,False,9975,4096,9950,100,25,25,25,25,25,25,25,25,0,0,9975,9950,3,60982,32101,28381,4,496,0,6113.48,20001,11,10025,0,0,0,10061,0,False,,11,10025,0,0,20140,23601,21942,43081,37,15,0.2498,0.0693,0.0348,0.0037,0.0029,86.2,96.4,1072.2,
B-deep-r1,B,deep,1,11,batch,True,False,checkout,0.25,0.0,False,9975,4096,9950,100,25,25,25,25,25,25,25,25,0,0,9975,9950,3,30525,29608,397,3,516,0,3060.15,19951,11,75,9900,0,40550400,96,0,False,,11,9975,0,0,204,23410,21757,15743,0,9,0.2492,0.1576,0.0068,0.0037,0.003,88.2,98.1,1040.7,
B-batch-r1,B,batch,1,12,batch,False,False,checkout,0.25,0.0,False,9975,4096,9950,100,25,25,25,25,25,25,25,25,0,0,9975,9950,3,2807,1704,589,3,511,0,281.4,10051,11,75,0,0,0,96,0,False,,11,75,0,0,196,22343,21652,15484,0,3,0.2531,0.3265,0.0163,0.0035,0.004,83.4,97.3,1461.2,
B-head-r2,B,head,2,13,head,False,False,checkout,0.25,0.0,False,9975,4096,9950,100,25,25,25,25,25,25,25,25,0,0,9975,9950,3,59807,31318,28070,4,416,0,5995.69,20001,11,10025,0,0,0,10061,0,False,,11,10025,0,0,20141,23521,21861,42931,0,16,0.2494,0.0695,0.0342,0.0036,0.003,76.3,96.4,2112.9,
B-deep-r2,B,deep,2,14,batch,True,False,checkout,0.25,0.0,False,9975,4096,9950,100,25,25,25,25,25,25,25,25,0,0,9975,9950,3,31307,30593,293,2,418,0,3138.55,19951,11,75,9900,0,40550400,96,0,False,,11,9975,0,0,204,23410,21757,15743,0,9,0.2492,0.1589,0.0065,0.0034,0.0031,88.3,98.4,1061.7,
B-batch-r2,B,batch,2,15,batch,False,False,checkout,0.25,0.0,False,9975,4096,9950,100,25,25,25,25,25,25,25,25,0,0,9975,9950,3,2613,1703,415,1,494,0,261.95,10051,11,75,0,0,0,96,0,False,,11,75,0,0,197,22359,21667,15515,0,4,0.245,0.3374,0.0142,0.0031,0.0027,89.9,97.7,819.9,
B-head-r3,B,head,3,16,head,False,False,checkout,0.25,0.0,False,9975,4096,9950,100,25,25,25,25,25,25,25,25,0,0,9975,9950,3,64118,34905,28800,3,411,0,6427.87,20001,11,10025,0,0,0,10061,0,False,,11,10025,0,0,20142,23537,21876,42962,0,17,0.2492,0.0699,0.0369,0.005,0.0039,85.3,96.0,1124.8,
B-deep-r3,B,deep,3,17,batch,True,False,checkout,0.25,0.0,False,9975,4096,9950,100,25,25,25,25,25,25,25,25,0,0,9975,9950,3,32620,31700,394,3,523,0,3270.18,19951,11,75,9900,0,40550400,96,0,False,,11,9975,0,0,204,23410,21757,15743,0,9,0.249,0.1631,0.0073,0.0038,0.0029,84.9,98.3,1408.6,
B-batch-r3,B,batch,3,18,batch,False,False,checkout,0.25,0.0,False,9975,4096,9950,100,25,25,25,25,25,25,25,25,0,0,9975,9950,3,2992,1888,596,3,506,0,299.95,10051,11,75,0,0,0,96,0,False,,11,75,0,0,197,22359,21667,15515,0,4,0.2428,0.2981,0.0283,0.0037,0.0007,90.0,97.4,777.9,
C-batch-r1,C,batch,1,19,batch,False,False,checkout,0.25,0.0,False,29925,4096,29850,300,75,75,75,75,75,75,75,75,0,0,29925,29850,3,9295,6204,1580,4,1506,0,310.61,30151,31,225,0,0,0,286,0,False,,31,225,0,0,583,66643,64984,54040,0,5,0.2362,0.3425,0.0226,0.0048,0.0032,76.6,101.0,855.0,
C-head-r1,C,head,1,20,head,False,False,checkout,0.25,0.0,False,29925,4096,29850,300,75,75,75,75,75,75,75,75,0,0,29925,29850,3,191917,102224,87802,3,1818,0,6413.27,60001,31,30075,0,0,0,30181,0,False,,31,30075,0,0,60411,68589,64991,124006,0,42,0.2488,0.075,0.0359,0.0052,0.0036,88.1,96.7,301.3,
C-batch-r2,C,batch,2,21,batch,False,False,checkout,0.25,0.0,False,29925,4096,29850,300,75,75,75,75,75,75,75,75,0,0,29925,29850,3,9607,6289,1502,2,1814,0,321.04,30151,31,225,0,0,0,286,0,False,,31,225,0,0,578,65085,64392,51131,0,5,0.2393,0.326,0.0252,0.0046,0.0033,77.2,100.8,826.9,
C-head-r2,C,head,2,22,head,False,False,checkout,0.25,0.0,False,29925,4096,29850,300,75,75,75,75,75,75,75,75,0,0,29925,29850,3,189789,102692,85595,5,1498,0,6342.16,60001,31,30075,0,0,0,30181,0,False,,31,30075,0,0,60412,69544,64991,124048,0,41,0.2486,0.0719,0.0361,0.0051,0.0036,85.0,96.6,406.5,
C-batch-r3,C,batch,3,23,batch,False,False,checkout,0.25,0.0,False,29925,4096,29850,300,75,75,75,75,75,75,75,75,0,0,29925,29850,3,9108,5902,1598,4,1604,0,304.36,30151,31,225,0,0,0,286,0,False,,31,225,0,0,579,65101,64407,51162,0,6,0.242,0.3243,0.0217,0.0042,0.0038,88.2,101.3,459.0,
C-head-r3,C,head,3,24,head,False,False,checkout,0.25,0.0,False,29925,4096,29850,300,75,75,75,75,75,75,75,75,0,0,29925,29850,3,189711,101108,87094,4,1506,0,6339.55,60001,31,30075,0,0,0,30181,0,False,,31,30075,0,0,60410,68573,64976,123975,0,41,0.2483,0.0734,0.0358,0.005,0.0036,91.5,96.3,168.2,
D-batch-r1,D,batch,1,25,batch,False,False,checkout,0.25,0.0,False,99750,4096,99500,1000,250,250,250,250,250,250,250,250,0,0,99750,99500,3,32216,20618,6089,10,5499,0,322.97,100501,101,750,0,0,0,953,0,False,,101,750,0,0,1919,203948,202286,192479,1,10,0.239,0.3149,0.024,0.0047,0.0035,91.9,111.2,202.9,
D-batch-r2,D,batch,2,26,batch,False,False,checkout,0.25,0.0,False,99750,4096,99500,1000,250,250,250,250,250,250,250,250,0,0,99750,99500,3,30693,20198,5288,10,5197,0,307.7,100501,101,750,0,0,0,953,0,False,,101,750,0,0,1918,203927,202271,192439,0,9,0.2422,0.3169,0.0244,0.0048,0.0032,90.7,111.4,217.6,
D-batch-r3,D,batch,3,27,batch,False,False,checkout,0.25,0.0,False,99750,4096,99500,1000,250,250,250,250,250,250,250,250,0,0,99750,99500,3,31928,20928,5780,10,5211,0,320.08,100501,101,750,0,0,0,953,0,False,,101,750,0,0,1917,202972,202271,192397,0,10,0.2408,0.306,0.0247,0.0048,0.0031,93.9,111.2,181.9,
D-fast-limited-r1,D,fast-limited,1,28,batch,False,False,checkout,1,2000.0,True,99750,4096,99500,1000,250,250,250,250,250,250,250,250,0,0,99750,99500,3,52316,49885,912,6,1513,0,524.47,100501,101,750,0,0,0,953,0,False,,101,17199,0,0,78720,413747,412086,726697,0,13,0.1317,0.3156,0.1448,1.1362,0.0377,62.9,111.0,505.6,
D-stand-unlimited-r1,D,stand-unlimited,1,29,batch,False,False,checkout,0.25,0.0,True,99750,4096,99500,1000,250,250,250,250,250,250,250,250,0,0,99750,99500,3,27204,18815,3595,7,4787,0,272.72,100501,101,750,0,0,0,953,0,False,,101,10456,0,0,47442,329054,327394,512353,0,8,0.2498,0.4486,0.1578,1.1675,0.0395,74.6,111.1,383.7,
D-stand-r1,D,stand,1,30,batch,False,False,checkout,0.25,2000.0,True,99750,4096,99500,1000,250,250,250,250,250,250,250,250,0,0,99750,99500,3,58299,49884,3412,6,4997,0,584.45,100501,101,750,0,0,0,953,0,False,,101,19752,0,0,91426,448057,446393,821008,0,15,0.1162,0.3042,0.1447,1.1401,0.0382,89.5,111.0,226.0,
D-fast-unlimited-r1,D,fast-unlimited,1,31,batch,False,False,checkout,1,0.0,True,99750,4096,99500,1000,250,250,250,250,250,250,250,250,0,0,99750,99500,3,13811,11352,931,5,1523,0,138.46,100501,101,750,0,0,0,953,0,False,,101,5637,0,0,24748,264836,264140,352072,0,5,0.4979,0.726,0.1813,1.2371,0.0435,70.1,111.1,431.0,
D-stand-unlimited-r2,D,stand-unlimited,2,32,batch,False,False,checkout,0.25,0.0,True,99750,4096,99500,1000,250,250,250,250,250,250,250,250,0,0,99750,99500,3,26699,19176,3324,77,4121,0,267.66,100501,101,750,0,0,0,953,0,False,,101,10265,0,0,46079,322421,321722,500650,0,8,0.2496,0.4326,0.1468,1.0823,0.0352,74.1,110.8,385.8,
D-fast-limited-r2,D,fast-limited,2,33,batch,False,False,checkout,1,2000.0,True,99750,4096,99500,1000,250,250,250,250,250,250,250,250,0,0,99750,99500,3,51983,49884,870,5,1224,0,521.13,100501,101,750,0,0,0,953,0,False,,101,17079,0,0,78628,413645,411983,732327,0,13,0.1226,0.2846,0.1311,1.0014,0.0308,74.4,111.3,387.9,
D-stand-r2,D,stand,2,34,batch,False,False,checkout,0.25,2000.0,True,99750,4096,99500,1000,250,250,250,250,250,250,250,250,0,0,99750,99500,3,57500,49884,3400,6,4210,0,576.44,100501,101,750,0,0,0,953,0,False,,101,19454,0,0,88826,441303,439639,804320,0,15,0.1136,0.2686,0.1294,0.9912,0.0303,80.0,111.8,334.3,
D-fast-unlimited-r2,D,fast-unlimited,2,35,batch,False,False,checkout,1,0.0,True,99750,4096,99500,1000,250,250,250,250,250,250,250,250,0,0,99750,99500,3,12886,10766,879,6,1236,0,129.18,100501,101,750,0,0,0,953,0,False,,101,5349,0,0,23339,260994,260298,342174,0,5,0.497,0.706,0.156,1.0675,0.0334,40.7,111.3,742.2,
D-stand-r3,D,stand,3,36,batch,False,False,checkout,0.25,2000.0,True,99750,4096,99500,1000,250,250,250,250,250,250,250,250,0,0,99750,99500,3,57404,49884,3314,5,4201,0,575.48,100501,101,750,0,0,0,953,0,False,,101,19447,0,0,89919,443867,442204,811403,1,14,0.1127,0.2702,0.1301,0.9919,0.0303,89.8,111.2,225.0,
D-fast-unlimited-r3,D,fast-unlimited,3,37,batch,False,False,checkout,1,0.0,True,99750,4096,99500,1000,250,250,250,250,250,250,250,250,0,0,99750,99500,3,12877,10713,872,7,1285,0,129.09,100501,101,750,0,0,0,953,0,False,,101,5347,0,0,23234,260799,260103,342108,0,5,0.5033,0.7022,0.1574,1.0647,0.0341,54.1,110.9,597.1,
D-fast-limited-r3,D,fast-limited,3,38,batch,False,False,checkout,1,2000.0,True,99750,4096,99500,1000,250,250,250,250,250,250,250,250,0,0,99750,99500,3,52160,49884,888,8,1380,0,522.91,100501,101,750,0,0,0,953,0,False,,101,17130,0,0,78476,410853,409193,727642,0,13,0.1215,0.2834,0.129,0.9921,0.0304,70.4,110.5,421.5,
D-stand-unlimited-r3,D,stand-unlimited,3,39,batch,False,False,checkout,0.25,0.0,True,99750,4096,99500,1000,250,250,250,250,250,250,250,250,0,0,99750,99500,3,26127,18519,3299,6,4303,0,261.92,100501,101,750,0,0,0,953,0,False,,101,10065,0,0,45720,324305,322649,503970,0,8,0.25,0.4209,0.1436,1.0222,0.0318,93.8,110.7,177.7,
S4-1000-after-r1,S4-1000,after,1,40,batch,False,True,checkout,0.25,0.0,False,10000,4096,11000,1000,0,1000,0,0,0,101,0,0,0,0,10000,11000,3,3113,1802,707,3,601,0,311.3,10102,11,101,0,0,0,124,899,True,101,11,101,0,0,262,26496,24765,21044,70,4,0.2516,0.2734,0.0215,0.0042,0.0008,80.7,97.5,1761.6,
S4-1000-before-r1,S4-1000,before,1,41,batch,False,True,before,0.25,,False,10000,4096,11000,1000,0,1000,0,0,0,1000,0,0,0,0,10000,11000,3,7706,,,,,,770.6,,,,,,,,,True,1000,11,1000,0,0,2052,24471,23778,19529,0,5,0.2494,0.1415,0.0336,0.004,0.0025,89.7,98.7,943.7,
S4-1000-after-r2,S4-1000,after,2,42,batch,False,True,checkout,0.25,0.0,False,10000,4096,11000,1000,0,1000,0,0,0,101,0,0,0,0,10000,11000,3,3076,1887,591,3,595,0,307.6,10102,11,101,0,0,0,124,899,True,101,11,101,0,0,253,23460,22768,16583,0,4,0.2393,0.2936,0.0237,0.0039,0.0015,88.0,97.7,1017.1,
S4-1000-before-r2,S4-1000,before,2,43,batch,False,True,before,0.25,,False,10000,4096,11000,1000,0,1000,0,0,0,1000,0,0,0,0,10000,11000,3,7989,,,,,,798.9,,,,,,,,,True,1000,11,1000,0,0,2052,24375,23682,19311,0,5,0.25,0.1438,0.0312,0.0041,0.0035,90.3,98.3,838.9,
S4-1000-after-r3,S4-1000,after,3,44,batch,False,True,checkout,0.25,0.0,False,10000,4096,11000,1000,0,1000,0,0,0,101,0,0,0,0,10000,11000,3,3018,1707,704,2,605,0,301.8,10102,11,101,0,0,0,124,899,True,101,11,101,0,0,255,24431,22783,16656,0,4,0.2486,0.3015,0.0226,0.004,0.0038,84.5,98.0,1415.6,
S4-1000-before-r3,S4-1000,before,3,45,batch,False,True,before,0.25,,False,10000,4096,11000,1000,0,1000,0,0,0,1000,0,0,0,0,10000,11000,3,8013,,,,,,801.3,,,,,,,,,True,1000,11,1000,0,0,2053,24391,23697,19342,0,6,0.2493,0.1383,0.028,0.0041,0.0036,76.4,99.1,2380.3,
S4-10000-after-r1,S4-10000,after,1,46,batch,False,True,checkout,0.25,0.0,False,10000,4096,20000,10000,0,10000,0,0,0,101,0,0,0,0,10000,20000,3,3296,1805,999,1,492,0,329.6,10102,11,101,0,0,0,133,9899,True,101,11,101,0,0,271,32556,31864,25905,0,4,0.2459,0.2851,0.0228,0.0043,0.0009,89.3,100.5,1174.4,
S4-10000-before-r1,S4-10000,before,1,47,batch,False,True,before,0.25,,False,10000,4096,20000,10000,0,10000,0,0,0,10000,0,0,0,0,10000,20000,3,57523,,,,,,5752.3,,,,,,,,,True,10000,11,10000,0,0,20085,44201,42532,57832,0,15,0.25,0.0673,0.0351,0.0043,0.0033,89.8,102.0,1279.3,
S4-10000-after-r2,S4-10000,after,2,48,batch,False,True,checkout,0.25,0.0,False,10000,4096,20000,10000,0,10000,0,0,0,101,0,0,0,0,10000,20000,3,3499,1800,1181,3,515,0,349.9,10102,11,101,0,0,0,133,9899,True,101,11,101,0,0,271,32460,31768,25687,0,4,0.2471,0.2663,0.0264,0.0042,0.004,80.9,100.3,2034.2,
S4-10000-before-r2,S4-10000,before,2,49,batch,False,True,before,0.25,,False,10000,4096,20000,10000,0,10000,0,0,0,10000,0,0,0,0,10000,20000,3,59283,,,,,,5928.3,,,,,,,,,True,10000,11,10000,0,0,20082,43506,41847,55798,0,15,0.2499,0.0675,0.0332,0.0043,0.0032,83.9,102.0,1897.9,
S4-10000-after-r3,S4-10000,after,3,50,batch,False,True,checkout,0.25,0.0,False,10000,4096,20000,10000,0,10000,0,0,0,101,0,0,0,0,10000,20000,3,3410,1796,999,2,612,0,341.0,10102,11,101,0,0,0,133,9899,True,101,11,101,0,0,273,33431,31783,25760,0,4,0.2474,0.2467,0.0235,0.0042,0.0051,78.2,100.8,2369.8,
S4-10000-before-r3,S4-10000,before,3,51,batch,False,True,before,0.25,,False,10000,4096,20000,10000,0,10000,0,0,0,10000,0,0,0,0,10000,20000,3,60496,,,,,,6049.6,,,,,,,,,True,10000,11,10000,0,0,20082,43506,41847,55798,0,15,0.25,0.0679,0.0338,0.0046,0.0034,91.6,102.6,1153.4,
1 pass stage cell repeat order strategy deep apply image cleaner_cpus max_objects_per_second load objects object_bytes ready_rows candidates expected_orphan_object expected_missing_object expected_size_mismatch expected_stale_pending found_orphan_object found_missing_object found_size_mismatch found_stale_pending found_checksum_mismatch found_other listed_objects checked_rows exit_code duration_ms phase_list_ms phase_rows_ms phase_stale_ms phase_recheck_ms phase_act_ms us_per_object storage_objects s3_list s3_head s3_get s3_delete read_bytes db_sessions unchecked refused limit_changes gw_list gw_get gw_delete gw_other pg_xact pg_tup_returned pg_tup_fetched pg_blks_hit pg_blks_read pg_sessions cpu_cleaner cpu_s3 cpu_postgres cpu_api cpu_haproxy mem_start_mib mem_peak_mib mem_growth_bytes_per_object flags
2 A-deep-fast-r1 A deep-fast 1 1 batch True False checkout 1 0.0 False 997 1048576 994 12 3 3 3 3 3 3 3 3 0 0 997 994 3 3212 3187 7 1 17 0 3221.66 1995 2 9 988 0 1035993088 12 0 False 2 997 0 0 28 4343 1658 2332 32 3 0.6065 0.4179 0.0029 0.0028 0.0034 31.9 95.4 66784.9
3 A-batch-r1 A batch 1 2 batch False False checkout 0.25 0.0 False 997 1048576 994 12 3 3 3 3 3 3 3 3 0 0 997 994 3 400 292 9 2 97 0 401.2 1007 2 9 0 0 0 12 0 False 2 9 0 0 28 4343 1658 2364 0 3 0.2483 0.1144 0.0437 0.0037 0.0008 77.8 94.5 17563.9
4 A-deep-r1 A deep 1 3 batch True False checkout 0.25 0.0 False 997 1048576 994 12 3 3 3 3 3 3 3 3 0 0 997 994 3 8591 8485 8 2 96 0 8616.85 1995 2 9 988 0 1035993088 12 0 False 2 997 0 0 30 4375 1688 2426 0 5 0.2487 0.1957 0.0063 0.0034 0.0018 88.7 96.1 7782.8
5 A-batch-r2 A batch 2 4 batch False False checkout 0.25 0.0 False 997 1048576 994 12 3 3 3 3 3 3 3 3 0 0 997 994 3 415 301 10 2 102 0 416.25 1007 2 9 0 0 0 12 0 False 2 9 0 0 30 5314 1673 2437 0 3 0.1758 0.0237 0.0014 0.0001 89.8 89.8 0.0
6 A-deep-r2 A deep 2 5 batch True False checkout 0.25 0.0 False 997 1048576 994 12 3 3 3 3 3 3 3 3 0 0 997 994 3 8527 8435 71 2 19 0 8552.66 1995 2 9 988 0 1035993088 12 0 False 2 997 0 0 30 4471 1784 2644 0 5 0.25 0.203 0.007 0.0033 0.0031 90.3 96.1 6100.0
7 A-deep-fast-r2 A deep-fast 2 6 batch True False checkout 1 0.0 False 997 1048576 994 12 3 3 3 3 3 3 3 3 0 0 997 994 3 3045 3019 7 1 16 0 3054.16 1995 2 9 988 0 1035993088 12 0 False 2 997 0 0 29 4359 1673 2395 0 4 0.5905 0.4771 0.0035 0.0029 0.0037 19.9 95.3 79300.5
8 A-deep-r3 A deep 3 7 batch True False checkout 0.25 0.0 False 997 1048576 994 12 3 3 3 3 3 3 3 3 0 0 997 994 3 8896 8800 9 1 86 0 8922.77 1995 2 9 988 0 1035993088 12 0 False 2 997 0 0 30 4375 1688 2426 0 5 0.2494 0.2018 0.0049 0.0034 0.0029 72.9 96.0 24295.0
9 A-batch-r3 A batch 3 8 batch False False checkout 0.25 0.0 False 997 1048576 994 12 3 3 3 3 3 3 3 3 0 0 997 994 3 504 390 10 2 103 0 505.52 1007 2 9 0 0 0 12 0 False 2 9 0 0 28 4343 1658 2364 0 3 0.2115 0.127 0.0175 0.0026 0.0004 76.4 91.8 16196.7
10 A-deep-fast-r3 A deep-fast 3 9 batch True False checkout 1 0.0 False 997 1048576 994 12 3 3 3 3 3 3 3 3 0 0 997 994 3 3070 3045 7 1 16 0 3079.24 1995 2 9 988 0 1035993088 12 0 False 2 997 0 0 28 4343 1658 2364 0 3 0.595 0.4775 0.0107 0.003 0.0031 29.8 95.3 68888.4
11 B-head-r1 B head 1 10 head False False checkout 0.25 0.0 False 9975 4096 9950 100 25 25 25 25 25 25 25 25 0 0 9975 9950 3 60982 32101 28381 4 496 0 6113.48 20001 11 10025 0 0 0 10061 0 False 11 10025 0 0 20140 23601 21942 43081 37 15 0.2498 0.0693 0.0348 0.0037 0.0029 86.2 96.4 1072.2
12 B-deep-r1 B deep 1 11 batch True False checkout 0.25 0.0 False 9975 4096 9950 100 25 25 25 25 25 25 25 25 0 0 9975 9950 3 30525 29608 397 3 516 0 3060.15 19951 11 75 9900 0 40550400 96 0 False 11 9975 0 0 204 23410 21757 15743 0 9 0.2492 0.1576 0.0068 0.0037 0.003 88.2 98.1 1040.7
13 B-batch-r1 B batch 1 12 batch False False checkout 0.25 0.0 False 9975 4096 9950 100 25 25 25 25 25 25 25 25 0 0 9975 9950 3 2807 1704 589 3 511 0 281.4 10051 11 75 0 0 0 96 0 False 11 75 0 0 196 22343 21652 15484 0 3 0.2531 0.3265 0.0163 0.0035 0.004 83.4 97.3 1461.2
14 B-head-r2 B head 2 13 head False False checkout 0.25 0.0 False 9975 4096 9950 100 25 25 25 25 25 25 25 25 0 0 9975 9950 3 59807 31318 28070 4 416 0 5995.69 20001 11 10025 0 0 0 10061 0 False 11 10025 0 0 20141 23521 21861 42931 0 16 0.2494 0.0695 0.0342 0.0036 0.003 76.3 96.4 2112.9
15 B-deep-r2 B deep 2 14 batch True False checkout 0.25 0.0 False 9975 4096 9950 100 25 25 25 25 25 25 25 25 0 0 9975 9950 3 31307 30593 293 2 418 0 3138.55 19951 11 75 9900 0 40550400 96 0 False 11 9975 0 0 204 23410 21757 15743 0 9 0.2492 0.1589 0.0065 0.0034 0.0031 88.3 98.4 1061.7
16 B-batch-r2 B batch 2 15 batch False False checkout 0.25 0.0 False 9975 4096 9950 100 25 25 25 25 25 25 25 25 0 0 9975 9950 3 2613 1703 415 1 494 0 261.95 10051 11 75 0 0 0 96 0 False 11 75 0 0 197 22359 21667 15515 0 4 0.245 0.3374 0.0142 0.0031 0.0027 89.9 97.7 819.9
17 B-head-r3 B head 3 16 head False False checkout 0.25 0.0 False 9975 4096 9950 100 25 25 25 25 25 25 25 25 0 0 9975 9950 3 64118 34905 28800 3 411 0 6427.87 20001 11 10025 0 0 0 10061 0 False 11 10025 0 0 20142 23537 21876 42962 0 17 0.2492 0.0699 0.0369 0.005 0.0039 85.3 96.0 1124.8
18 B-deep-r3 B deep 3 17 batch True False checkout 0.25 0.0 False 9975 4096 9950 100 25 25 25 25 25 25 25 25 0 0 9975 9950 3 32620 31700 394 3 523 0 3270.18 19951 11 75 9900 0 40550400 96 0 False 11 9975 0 0 204 23410 21757 15743 0 9 0.249 0.1631 0.0073 0.0038 0.0029 84.9 98.3 1408.6
19 B-batch-r3 B batch 3 18 batch False False checkout 0.25 0.0 False 9975 4096 9950 100 25 25 25 25 25 25 25 25 0 0 9975 9950 3 2992 1888 596 3 506 0 299.95 10051 11 75 0 0 0 96 0 False 11 75 0 0 197 22359 21667 15515 0 4 0.2428 0.2981 0.0283 0.0037 0.0007 90.0 97.4 777.9
20 C-batch-r1 C batch 1 19 batch False False checkout 0.25 0.0 False 29925 4096 29850 300 75 75 75 75 75 75 75 75 0 0 29925 29850 3 9295 6204 1580 4 1506 0 310.61 30151 31 225 0 0 0 286 0 False 31 225 0 0 583 66643 64984 54040 0 5 0.2362 0.3425 0.0226 0.0048 0.0032 76.6 101.0 855.0
21 C-head-r1 C head 1 20 head False False checkout 0.25 0.0 False 29925 4096 29850 300 75 75 75 75 75 75 75 75 0 0 29925 29850 3 191917 102224 87802 3 1818 0 6413.27 60001 31 30075 0 0 0 30181 0 False 31 30075 0 0 60411 68589 64991 124006 0 42 0.2488 0.075 0.0359 0.0052 0.0036 88.1 96.7 301.3
22 C-batch-r2 C batch 2 21 batch False False checkout 0.25 0.0 False 29925 4096 29850 300 75 75 75 75 75 75 75 75 0 0 29925 29850 3 9607 6289 1502 2 1814 0 321.04 30151 31 225 0 0 0 286 0 False 31 225 0 0 578 65085 64392 51131 0 5 0.2393 0.326 0.0252 0.0046 0.0033 77.2 100.8 826.9
23 C-head-r2 C head 2 22 head False False checkout 0.25 0.0 False 29925 4096 29850 300 75 75 75 75 75 75 75 75 0 0 29925 29850 3 189789 102692 85595 5 1498 0 6342.16 60001 31 30075 0 0 0 30181 0 False 31 30075 0 0 60412 69544 64991 124048 0 41 0.2486 0.0719 0.0361 0.0051 0.0036 85.0 96.6 406.5
24 C-batch-r3 C batch 3 23 batch False False checkout 0.25 0.0 False 29925 4096 29850 300 75 75 75 75 75 75 75 75 0 0 29925 29850 3 9108 5902 1598 4 1604 0 304.36 30151 31 225 0 0 0 286 0 False 31 225 0 0 579 65101 64407 51162 0 6 0.242 0.3243 0.0217 0.0042 0.0038 88.2 101.3 459.0
25 C-head-r3 C head 3 24 head False False checkout 0.25 0.0 False 29925 4096 29850 300 75 75 75 75 75 75 75 75 0 0 29925 29850 3 189711 101108 87094 4 1506 0 6339.55 60001 31 30075 0 0 0 30181 0 False 31 30075 0 0 60410 68573 64976 123975 0 41 0.2483 0.0734 0.0358 0.005 0.0036 91.5 96.3 168.2
26 D-batch-r1 D batch 1 25 batch False False checkout 0.25 0.0 False 99750 4096 99500 1000 250 250 250 250 250 250 250 250 0 0 99750 99500 3 32216 20618 6089 10 5499 0 322.97 100501 101 750 0 0 0 953 0 False 101 750 0 0 1919 203948 202286 192479 1 10 0.239 0.3149 0.024 0.0047 0.0035 91.9 111.2 202.9
27 D-batch-r2 D batch 2 26 batch False False checkout 0.25 0.0 False 99750 4096 99500 1000 250 250 250 250 250 250 250 250 0 0 99750 99500 3 30693 20198 5288 10 5197 0 307.7 100501 101 750 0 0 0 953 0 False 101 750 0 0 1918 203927 202271 192439 0 9 0.2422 0.3169 0.0244 0.0048 0.0032 90.7 111.4 217.6
28 D-batch-r3 D batch 3 27 batch False False checkout 0.25 0.0 False 99750 4096 99500 1000 250 250 250 250 250 250 250 250 0 0 99750 99500 3 31928 20928 5780 10 5211 0 320.08 100501 101 750 0 0 0 953 0 False 101 750 0 0 1917 202972 202271 192397 0 10 0.2408 0.306 0.0247 0.0048 0.0031 93.9 111.2 181.9
29 D-fast-limited-r1 D fast-limited 1 28 batch False False checkout 1 2000.0 True 99750 4096 99500 1000 250 250 250 250 250 250 250 250 0 0 99750 99500 3 52316 49885 912 6 1513 0 524.47 100501 101 750 0 0 0 953 0 False 101 17199 0 0 78720 413747 412086 726697 0 13 0.1317 0.3156 0.1448 1.1362 0.0377 62.9 111.0 505.6
30 D-stand-unlimited-r1 D stand-unlimited 1 29 batch False False checkout 0.25 0.0 True 99750 4096 99500 1000 250 250 250 250 250 250 250 250 0 0 99750 99500 3 27204 18815 3595 7 4787 0 272.72 100501 101 750 0 0 0 953 0 False 101 10456 0 0 47442 329054 327394 512353 0 8 0.2498 0.4486 0.1578 1.1675 0.0395 74.6 111.1 383.7
31 D-stand-r1 D stand 1 30 batch False False checkout 0.25 2000.0 True 99750 4096 99500 1000 250 250 250 250 250 250 250 250 0 0 99750 99500 3 58299 49884 3412 6 4997 0 584.45 100501 101 750 0 0 0 953 0 False 101 19752 0 0 91426 448057 446393 821008 0 15 0.1162 0.3042 0.1447 1.1401 0.0382 89.5 111.0 226.0
32 D-fast-unlimited-r1 D fast-unlimited 1 31 batch False False checkout 1 0.0 True 99750 4096 99500 1000 250 250 250 250 250 250 250 250 0 0 99750 99500 3 13811 11352 931 5 1523 0 138.46 100501 101 750 0 0 0 953 0 False 101 5637 0 0 24748 264836 264140 352072 0 5 0.4979 0.726 0.1813 1.2371 0.0435 70.1 111.1 431.0
33 D-stand-unlimited-r2 D stand-unlimited 2 32 batch False False checkout 0.25 0.0 True 99750 4096 99500 1000 250 250 250 250 250 250 250 250 0 0 99750 99500 3 26699 19176 3324 77 4121 0 267.66 100501 101 750 0 0 0 953 0 False 101 10265 0 0 46079 322421 321722 500650 0 8 0.2496 0.4326 0.1468 1.0823 0.0352 74.1 110.8 385.8
34 D-fast-limited-r2 D fast-limited 2 33 batch False False checkout 1 2000.0 True 99750 4096 99500 1000 250 250 250 250 250 250 250 250 0 0 99750 99500 3 51983 49884 870 5 1224 0 521.13 100501 101 750 0 0 0 953 0 False 101 17079 0 0 78628 413645 411983 732327 0 13 0.1226 0.2846 0.1311 1.0014 0.0308 74.4 111.3 387.9
35 D-stand-r2 D stand 2 34 batch False False checkout 0.25 2000.0 True 99750 4096 99500 1000 250 250 250 250 250 250 250 250 0 0 99750 99500 3 57500 49884 3400 6 4210 0 576.44 100501 101 750 0 0 0 953 0 False 101 19454 0 0 88826 441303 439639 804320 0 15 0.1136 0.2686 0.1294 0.9912 0.0303 80.0 111.8 334.3
36 D-fast-unlimited-r2 D fast-unlimited 2 35 batch False False checkout 1 0.0 True 99750 4096 99500 1000 250 250 250 250 250 250 250 250 0 0 99750 99500 3 12886 10766 879 6 1236 0 129.18 100501 101 750 0 0 0 953 0 False 101 5349 0 0 23339 260994 260298 342174 0 5 0.497 0.706 0.156 1.0675 0.0334 40.7 111.3 742.2
37 D-stand-r3 D stand 3 36 batch False False checkout 0.25 2000.0 True 99750 4096 99500 1000 250 250 250 250 250 250 250 250 0 0 99750 99500 3 57404 49884 3314 5 4201 0 575.48 100501 101 750 0 0 0 953 0 False 101 19447 0 0 89919 443867 442204 811403 1 14 0.1127 0.2702 0.1301 0.9919 0.0303 89.8 111.2 225.0
38 D-fast-unlimited-r3 D fast-unlimited 3 37 batch False False checkout 1 0.0 True 99750 4096 99500 1000 250 250 250 250 250 250 250 250 0 0 99750 99500 3 12877 10713 872 7 1285 0 129.09 100501 101 750 0 0 0 953 0 False 101 5347 0 0 23234 260799 260103 342108 0 5 0.5033 0.7022 0.1574 1.0647 0.0341 54.1 110.9 597.1
39 D-fast-limited-r3 D fast-limited 3 38 batch False False checkout 1 2000.0 True 99750 4096 99500 1000 250 250 250 250 250 250 250 250 0 0 99750 99500 3 52160 49884 888 8 1380 0 522.91 100501 101 750 0 0 0 953 0 False 101 17130 0 0 78476 410853 409193 727642 0 13 0.1215 0.2834 0.129 0.9921 0.0304 70.4 110.5 421.5
40 D-stand-unlimited-r3 D stand-unlimited 3 39 batch False False checkout 0.25 0.0 True 99750 4096 99500 1000 250 250 250 250 250 250 250 250 0 0 99750 99500 3 26127 18519 3299 6 4303 0 261.92 100501 101 750 0 0 0 953 0 False 101 10065 0 0 45720 324305 322649 503970 0 8 0.25 0.4209 0.1436 1.0222 0.0318 93.8 110.7 177.7
41 S4-1000-after-r1 S4-1000 after 1 40 batch False True checkout 0.25 0.0 False 10000 4096 11000 1000 0 1000 0 0 0 101 0 0 0 0 10000 11000 3 3113 1802 707 3 601 0 311.3 10102 11 101 0 0 0 124 899 True 101 11 101 0 0 262 26496 24765 21044 70 4 0.2516 0.2734 0.0215 0.0042 0.0008 80.7 97.5 1761.6
42 S4-1000-before-r1 S4-1000 before 1 41 batch False True before 0.25 False 10000 4096 11000 1000 0 1000 0 0 0 1000 0 0 0 0 10000 11000 3 7706 770.6 True 1000 11 1000 0 0 2052 24471 23778 19529 0 5 0.2494 0.1415 0.0336 0.004 0.0025 89.7 98.7 943.7
43 S4-1000-after-r2 S4-1000 after 2 42 batch False True checkout 0.25 0.0 False 10000 4096 11000 1000 0 1000 0 0 0 101 0 0 0 0 10000 11000 3 3076 1887 591 3 595 0 307.6 10102 11 101 0 0 0 124 899 True 101 11 101 0 0 253 23460 22768 16583 0 4 0.2393 0.2936 0.0237 0.0039 0.0015 88.0 97.7 1017.1
44 S4-1000-before-r2 S4-1000 before 2 43 batch False True before 0.25 False 10000 4096 11000 1000 0 1000 0 0 0 1000 0 0 0 0 10000 11000 3 7989 798.9 True 1000 11 1000 0 0 2052 24375 23682 19311 0 5 0.25 0.1438 0.0312 0.0041 0.0035 90.3 98.3 838.9
45 S4-1000-after-r3 S4-1000 after 3 44 batch False True checkout 0.25 0.0 False 10000 4096 11000 1000 0 1000 0 0 0 101 0 0 0 0 10000 11000 3 3018 1707 704 2 605 0 301.8 10102 11 101 0 0 0 124 899 True 101 11 101 0 0 255 24431 22783 16656 0 4 0.2486 0.3015 0.0226 0.004 0.0038 84.5 98.0 1415.6
46 S4-1000-before-r3 S4-1000 before 3 45 batch False True before 0.25 False 10000 4096 11000 1000 0 1000 0 0 0 1000 0 0 0 0 10000 11000 3 8013 801.3 True 1000 11 1000 0 0 2053 24391 23697 19342 0 6 0.2493 0.1383 0.028 0.0041 0.0036 76.4 99.1 2380.3
47 S4-10000-after-r1 S4-10000 after 1 46 batch False True checkout 0.25 0.0 False 10000 4096 20000 10000 0 10000 0 0 0 101 0 0 0 0 10000 20000 3 3296 1805 999 1 492 0 329.6 10102 11 101 0 0 0 133 9899 True 101 11 101 0 0 271 32556 31864 25905 0 4 0.2459 0.2851 0.0228 0.0043 0.0009 89.3 100.5 1174.4
48 S4-10000-before-r1 S4-10000 before 1 47 batch False True before 0.25 False 10000 4096 20000 10000 0 10000 0 0 0 10000 0 0 0 0 10000 20000 3 57523 5752.3 True 10000 11 10000 0 0 20085 44201 42532 57832 0 15 0.25 0.0673 0.0351 0.0043 0.0033 89.8 102.0 1279.3
49 S4-10000-after-r2 S4-10000 after 2 48 batch False True checkout 0.25 0.0 False 10000 4096 20000 10000 0 10000 0 0 0 101 0 0 0 0 10000 20000 3 3499 1800 1181 3 515 0 349.9 10102 11 101 0 0 0 133 9899 True 101 11 101 0 0 271 32460 31768 25687 0 4 0.2471 0.2663 0.0264 0.0042 0.004 80.9 100.3 2034.2
50 S4-10000-before-r2 S4-10000 before 2 49 batch False True before 0.25 False 10000 4096 20000 10000 0 10000 0 0 0 10000 0 0 0 0 10000 20000 3 59283 5928.3 True 10000 11 10000 0 0 20082 43506 41847 55798 0 15 0.2499 0.0675 0.0332 0.0043 0.0032 83.9 102.0 1897.9
51 S4-10000-after-r3 S4-10000 after 3 50 batch False True checkout 0.25 0.0 False 10000 4096 20000 10000 0 10000 0 0 0 101 0 0 0 0 10000 20000 3 3410 1796 999 2 612 0 341.0 10102 11 101 0 0 0 133 9899 True 101 11 101 0 0 273 33431 31783 25760 0 4 0.2474 0.2467 0.0235 0.0042 0.0051 78.2 100.8 2369.8
52 S4-10000-before-r3 S4-10000 before 3 51 batch False True before 0.25 False 10000 4096 20000 10000 0 10000 0 0 0 10000 0 0 0 0 10000 20000 3 60496 6049.6 True 10000 11 10000 0 0 20082 43506 41847 55798 0 15 0.25 0.0679 0.0338 0.0046 0.0034 91.6 102.6 1153.4
+12
View File
@@ -0,0 +1,12 @@
{
"label": "baseline",
"profile": "reconcile",
"stage": "done",
"size": null,
"runs_done": 51,
"runs_total": 51,
"elapsed_s": 2714,
"eta_s": 0,
"warnings": [],
"updated_at": "2026-10-23T15:52:03+00:00"
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "18969e86ac02",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:08:02.851226Z",
"func_name": "run",
"filename": "main.py",
"lineno": 229
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "18969e86ac02",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": false,
"listed_objects": 997,
"checked_rows": 994,
"found": {
"size_mismatch": 3,
"orphan_object": 3,
"missing_object": 3,
"stale_pending": 3
},
"fixed": {},
"remaining": 12,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 400,
"max_objects_per_second": 0.0,
"storage_objects": 1007,
"s3_requests": {
"list": 2,
"head": 9,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 12,
"phase_ms": {
"list": 292,
"rows": 9,
"stale": 2,
"recheck": 97,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:08:03.252535Z",
"func_name": "_finish",
"filename": "attachment_reconcile.py",
"lineno": 1114
},
"exceeded": null,
"found_records": 12,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "9f86f6ace733",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:08:25.490470Z",
"lineno": 229,
"filename": "main.py",
"func_name": "run"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "9f86f6ace733",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": false,
"listed_objects": 997,
"checked_rows": 994,
"found": {
"size_mismatch": 3,
"orphan_object": 3,
"missing_object": 3,
"stale_pending": 3
},
"fixed": {},
"remaining": 12,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 415,
"max_objects_per_second": 0.0,
"storage_objects": 1007,
"s3_requests": {
"list": 2,
"head": 9,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 12,
"phase_ms": {
"list": 301,
"rows": 10,
"stale": 2,
"recheck": 102,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:08:25.906467Z",
"lineno": 1114,
"filename": "attachment_reconcile.py",
"func_name": "_finish"
},
"exceeded": null,
"found_records": 12,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "b02c51169d60",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:09:09.367744Z",
"func_name": "run",
"lineno": 229,
"filename": "main.py"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "b02c51169d60",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": false,
"listed_objects": 997,
"checked_rows": 994,
"found": {
"size_mismatch": 3,
"orphan_object": 3,
"missing_object": 3,
"stale_pending": 3
},
"fixed": {},
"remaining": 12,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 504,
"max_objects_per_second": 0.0,
"storage_objects": 1007,
"s3_requests": {
"list": 2,
"head": 9,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 12,
"phase_ms": {
"list": 390,
"rows": 10,
"stale": 2,
"recheck": 103,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:09:09.872648Z",
"func_name": "_finish",
"lineno": 1114,
"filename": "attachment_reconcile.py"
},
"exceeded": null,
"found_records": 12,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "4e3a1879fb1f",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": true,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:07:52.848631Z",
"func_name": "run",
"filename": "main.py",
"lineno": 229
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "4e3a1879fb1f",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": true,
"listed_objects": 997,
"checked_rows": 994,
"found": {
"size_mismatch": 3,
"orphan_object": 3,
"missing_object": 3,
"stale_pending": 3
},
"fixed": {},
"remaining": 12,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 3212,
"max_objects_per_second": 0.0,
"storage_objects": 1995,
"s3_requests": {
"list": 2,
"head": 9,
"get": 988,
"delete": 0
},
"read_bytes": 1035993088,
"db_sessions": 12,
"phase_ms": {
"list": 3187,
"rows": 7,
"stale": 1,
"recheck": 17,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:07:56.061813Z",
"func_name": "_finish",
"filename": "attachment_reconcile.py",
"lineno": 1114
},
"exceeded": null,
"found_records": 12,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "240829154df7",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": true,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:08:43.618764Z",
"filename": "main.py",
"lineno": 229,
"func_name": "run"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "240829154df7",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": true,
"listed_objects": 997,
"checked_rows": 994,
"found": {
"size_mismatch": 3,
"orphan_object": 3,
"missing_object": 3,
"stale_pending": 3
},
"fixed": {},
"remaining": 12,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 3045,
"max_objects_per_second": 0.0,
"storage_objects": 1995,
"s3_requests": {
"list": 2,
"head": 9,
"get": 988,
"delete": 0
},
"read_bytes": 1035993088,
"db_sessions": 12,
"phase_ms": {
"list": 3019,
"rows": 7,
"stale": 1,
"recheck": 16,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:08:46.664290Z",
"filename": "attachment_reconcile.py",
"lineno": 1114,
"func_name": "_finish"
},
"exceeded": null,
"found_records": 12,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "5181a62934e8",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": true,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:09:12.407801Z",
"func_name": "run",
"lineno": 229,
"filename": "main.py"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "5181a62934e8",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": true,
"listed_objects": 997,
"checked_rows": 994,
"found": {
"size_mismatch": 3,
"orphan_object": 3,
"missing_object": 3,
"stale_pending": 3
},
"fixed": {},
"remaining": 12,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 3070,
"max_objects_per_second": 0.0,
"storage_objects": 1995,
"s3_requests": {
"list": 2,
"head": 9,
"get": 988,
"delete": 0
},
"read_bytes": 1035993088,
"db_sessions": 12,
"phase_ms": {
"list": 3045,
"rows": 7,
"stale": 1,
"recheck": 16,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:09:15.478766Z",
"func_name": "_finish",
"lineno": 1114,
"filename": "attachment_reconcile.py"
},
"exceeded": null,
"found_records": 12,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "688bd35d7ab4",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": true,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:08:09.843813Z",
"func_name": "run",
"filename": "main.py",
"lineno": 229
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "688bd35d7ab4",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": true,
"listed_objects": 997,
"checked_rows": 994,
"found": {
"size_mismatch": 3,
"orphan_object": 3,
"missing_object": 3,
"stale_pending": 3
},
"fixed": {},
"remaining": 12,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 8591,
"max_objects_per_second": 0.0,
"storage_objects": 1995,
"s3_requests": {
"list": 2,
"head": 9,
"get": 988,
"delete": 0
},
"read_bytes": 1035993088,
"db_sessions": 12,
"phase_ms": {
"list": 8485,
"rows": 8,
"stale": 2,
"recheck": 96,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:08:18.436690Z",
"func_name": "_finish",
"filename": "attachment_reconcile.py",
"lineno": 1114
},
"exceeded": null,
"found_records": 12,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "f08dd92b56e9",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": true,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:08:32.556134Z",
"lineno": 229,
"filename": "main.py",
"func_name": "run"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "f08dd92b56e9",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": true,
"listed_objects": 997,
"checked_rows": 994,
"found": {
"size_mismatch": 3,
"orphan_object": 3,
"missing_object": 3,
"stale_pending": 3
},
"fixed": {},
"remaining": 12,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 8527,
"max_objects_per_second": 0.0,
"storage_objects": 1995,
"s3_requests": {
"list": 2,
"head": 9,
"get": 988,
"delete": 0
},
"read_bytes": 1035993088,
"db_sessions": 12,
"phase_ms": {
"list": 8435,
"rows": 71,
"stale": 2,
"recheck": 19,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:08:41.084170Z",
"lineno": 1114,
"filename": "attachment_reconcile.py",
"func_name": "_finish"
},
"exceeded": null,
"found_records": 12,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "58aadd77b5fa",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": true,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:08:53.241756Z",
"filename": "main.py",
"lineno": 229,
"func_name": "run"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "58aadd77b5fa",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": true,
"listed_objects": 997,
"checked_rows": 994,
"found": {
"size_mismatch": 3,
"orphan_object": 3,
"missing_object": 3,
"stale_pending": 3
},
"fixed": {},
"remaining": 12,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 8896,
"max_objects_per_second": 0.0,
"storage_objects": 1995,
"s3_requests": {
"list": 2,
"head": 9,
"get": 988,
"delete": 0
},
"read_bytes": 1035993088,
"db_sessions": 12,
"phase_ms": {
"list": 8800,
"rows": 9,
"stale": 1,
"recheck": 86,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:09:02.139105Z",
"filename": "attachment_reconcile.py",
"lineno": 1114,
"func_name": "_finish"
},
"exceeded": null,
"found_records": 12,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "e9c4bf9a1673",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:12:16.027197Z",
"func_name": "run",
"lineno": 229,
"filename": "main.py"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "e9c4bf9a1673",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": false,
"listed_objects": 9975,
"checked_rows": 9950,
"found": {
"size_mismatch": 25,
"orphan_object": 25,
"missing_object": 25,
"stale_pending": 25
},
"fixed": {},
"remaining": 100,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 2807,
"max_objects_per_second": 0.0,
"storage_objects": 10051,
"s3_requests": {
"list": 11,
"head": 75,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 96,
"phase_ms": {
"list": 1704,
"rows": 589,
"stale": 3,
"recheck": 511,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:12:18.839091Z",
"func_name": "_finish",
"lineno": 1114,
"filename": "attachment_reconcile.py"
},
"exceeded": null,
"found_records": 100,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "eef093d60699",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:14:11.580661Z",
"func_name": "run",
"filename": "main.py",
"lineno": 229
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "eef093d60699",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": false,
"listed_objects": 9975,
"checked_rows": 9950,
"found": {
"size_mismatch": 25,
"orphan_object": 25,
"missing_object": 25,
"stale_pending": 25
},
"fixed": {},
"remaining": 100,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 2613,
"max_objects_per_second": 0.0,
"storage_objects": 10051,
"s3_requests": {
"list": 11,
"head": 75,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 96,
"phase_ms": {
"list": 1703,
"rows": 415,
"stale": 1,
"recheck": 494,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:14:14.198097Z",
"func_name": "_finish",
"filename": "attachment_reconcile.py",
"lineno": 1114
},
"exceeded": null,
"found_records": 100,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "6283d0013f46",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:16:12.100829Z",
"filename": "main.py",
"lineno": 229,
"func_name": "run"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "6283d0013f46",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": false,
"listed_objects": 9975,
"checked_rows": 9950,
"found": {
"size_mismatch": 25,
"orphan_object": 25,
"missing_object": 25,
"stale_pending": 25
},
"fixed": {},
"remaining": 100,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 2992,
"max_objects_per_second": 0.0,
"storage_objects": 10051,
"s3_requests": {
"list": 11,
"head": 75,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 96,
"phase_ms": {
"list": 1888,
"rows": 596,
"stale": 3,
"recheck": 506,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:16:15.097477Z",
"filename": "attachment_reconcile.py",
"lineno": 1114,
"func_name": "_finish"
},
"exceeded": null,
"found_records": 100,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "a87c79f34ed9",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": true,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:11:38.418556Z",
"lineno": 229,
"filename": "main.py",
"func_name": "run"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "a87c79f34ed9",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": true,
"listed_objects": 9975,
"checked_rows": 9950,
"found": {
"size_mismatch": 25,
"orphan_object": 25,
"missing_object": 25,
"stale_pending": 25
},
"fixed": {},
"remaining": 100,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 30525,
"max_objects_per_second": 0.0,
"storage_objects": 19951,
"s3_requests": {
"list": 11,
"head": 75,
"get": 9900,
"delete": 0
},
"read_bytes": 40550400,
"db_sessions": 96,
"phase_ms": {
"list": 29608,
"rows": 397,
"stale": 3,
"recheck": 516,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:12:08.947898Z",
"lineno": 1114,
"filename": "attachment_reconcile.py",
"func_name": "_finish"
},
"exceeded": null,
"found_records": 100,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "cf3b12658a57",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": true,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:13:33.011533Z",
"filename": "main.py",
"lineno": 229,
"func_name": "run"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "cf3b12658a57",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": true,
"listed_objects": 9975,
"checked_rows": 9950,
"found": {
"size_mismatch": 25,
"orphan_object": 25,
"missing_object": 25,
"stale_pending": 25
},
"fixed": {},
"remaining": 100,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 31307,
"max_objects_per_second": 0.0,
"storage_objects": 19951,
"s3_requests": {
"list": 11,
"head": 75,
"get": 9900,
"delete": 0
},
"read_bytes": 40550400,
"db_sessions": 96,
"phase_ms": {
"list": 30593,
"rows": 293,
"stale": 2,
"recheck": 418,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:14:04.392845Z",
"filename": "attachment_reconcile.py",
"lineno": 1114,
"func_name": "_finish"
},
"exceeded": null,
"found_records": 100,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "fc538e47d70b",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": true,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:15:32.204057Z",
"lineno": 229,
"func_name": "run",
"filename": "main.py"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "fc538e47d70b",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": true,
"listed_objects": 9975,
"checked_rows": 9950,
"found": {
"size_mismatch": 25,
"orphan_object": 25,
"missing_object": 25,
"stale_pending": 25
},
"fixed": {},
"remaining": 100,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 32620,
"max_objects_per_second": 0.0,
"storage_objects": 19951,
"s3_requests": {
"list": 11,
"head": 75,
"get": 9900,
"delete": 0
},
"read_bytes": 40550400,
"db_sessions": 96,
"phase_ms": {
"list": 31700,
"rows": 394,
"stale": 3,
"recheck": 523,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:16:04.896124Z",
"lineno": 1114,
"func_name": "_finish",
"filename": "attachment_reconcile.py"
},
"exceeded": null,
"found_records": 100,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "a009e411b8a0",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "head",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:10:30.529094Z",
"filename": "main.py",
"func_name": "run",
"lineno": 229
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "a009e411b8a0",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "head",
"deep": false,
"listed_objects": 9975,
"checked_rows": 9950,
"found": {
"orphan_object": 25,
"missing_object": 25,
"size_mismatch": 25,
"stale_pending": 25
},
"fixed": {},
"remaining": 100,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 60982,
"max_objects_per_second": 0.0,
"storage_objects": 20001,
"s3_requests": {
"list": 11,
"head": 10025,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 10061,
"phase_ms": {
"list": 32101,
"rows": 28381,
"stale": 4,
"recheck": 496,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:11:31.517473Z",
"filename": "attachment_reconcile.py",
"func_name": "_finish",
"lineno": 1114
},
"exceeded": null,
"found_records": 100,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "8cac7c98d4d5",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "head",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:12:25.785322Z",
"filename": "main.py",
"lineno": 229,
"func_name": "run"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "8cac7c98d4d5",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "head",
"deep": false,
"listed_objects": 9975,
"checked_rows": 9950,
"found": {
"orphan_object": 25,
"missing_object": 25,
"size_mismatch": 25,
"stale_pending": 25
},
"fixed": {},
"remaining": 100,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 59807,
"max_objects_per_second": 0.0,
"storage_objects": 20001,
"s3_requests": {
"list": 11,
"head": 10025,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 10061,
"phase_ms": {
"list": 31318,
"rows": 28070,
"stale": 4,
"recheck": 416,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:13:25.596762Z",
"filename": "attachment_reconcile.py",
"lineno": 1114,
"func_name": "_finish"
},
"exceeded": null,
"found_records": 100,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "d8f59291c04b",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "head",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:14:21.298120Z",
"func_name": "run",
"filename": "main.py",
"lineno": 229
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "d8f59291c04b",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "head",
"deep": false,
"listed_objects": 9975,
"checked_rows": 9950,
"found": {
"orphan_object": 25,
"missing_object": 25,
"size_mismatch": 25,
"stale_pending": 25
},
"fixed": {},
"remaining": 100,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 64118,
"max_objects_per_second": 0.0,
"storage_objects": 20001,
"s3_requests": {
"list": 11,
"head": 10025,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 10061,
"phase_ms": {
"list": 34905,
"rows": 28800,
"stale": 3,
"recheck": 411,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:15:25.497399Z",
"func_name": "_finish",
"filename": "attachment_reconcile.py",
"lineno": 1114
},
"exceeded": null,
"found_records": 100,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "d325a6c1b357",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:17:05.642815Z",
"filename": "main.py",
"lineno": 229,
"func_name": "run"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "d325a6c1b357",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": false,
"listed_objects": 29925,
"checked_rows": 29850,
"found": {
"size_mismatch": 75,
"orphan_object": 75,
"missing_object": 75,
"stale_pending": 75
},
"fixed": {},
"remaining": 300,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 9295,
"max_objects_per_second": 0.0,
"storage_objects": 30151,
"s3_requests": {
"list": 31,
"head": 225,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 286,
"phase_ms": {
"list": 6204,
"rows": 1580,
"stale": 4,
"recheck": 1506,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:17:14.949837Z",
"filename": "attachment_reconcile.py",
"lineno": 1114,
"func_name": "_finish"
},
"exceeded": null,
"found_records": 300,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "22b93dc6815f",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:20:41.494964Z",
"func_name": "run",
"filename": "main.py",
"lineno": 229
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "22b93dc6815f",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": false,
"listed_objects": 29925,
"checked_rows": 29850,
"found": {
"size_mismatch": 75,
"orphan_object": 75,
"missing_object": 75,
"stale_pending": 75
},
"fixed": {},
"remaining": 300,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 9607,
"max_objects_per_second": 0.0,
"storage_objects": 30151,
"s3_requests": {
"list": 31,
"head": 225,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 286,
"phase_ms": {
"list": 6289,
"rows": 1502,
"stale": 2,
"recheck": 1814,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:20:51.185068Z",
"func_name": "_finish",
"filename": "attachment_reconcile.py",
"lineno": 1114
},
"exceeded": null,
"found_records": 300,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "b1b5eebd7646",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:24:15.421144Z",
"func_name": "run",
"filename": "main.py",
"lineno": 229
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "b1b5eebd7646",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": false,
"listed_objects": 29925,
"checked_rows": 29850,
"found": {
"size_mismatch": 75,
"orphan_object": 75,
"missing_object": 75,
"stale_pending": 75
},
"fixed": {},
"remaining": 300,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 9108,
"max_objects_per_second": 0.0,
"storage_objects": 30151,
"s3_requests": {
"list": 31,
"head": 225,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 286,
"phase_ms": {
"list": 5902,
"rows": 1598,
"stale": 4,
"recheck": 1604,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:24:24.619281Z",
"func_name": "_finish",
"filename": "attachment_reconcile.py",
"lineno": 1114
},
"exceeded": null,
"found_records": 300,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "1bca1e30111b",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "head",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:17:22.560107Z",
"func_name": "run",
"lineno": 229,
"filename": "main.py"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "1bca1e30111b",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "head",
"deep": false,
"listed_objects": 29925,
"checked_rows": 29850,
"found": {
"orphan_object": 75,
"missing_object": 75,
"size_mismatch": 75,
"stale_pending": 75
},
"fixed": {},
"remaining": 300,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 191917,
"max_objects_per_second": 0.0,
"storage_objects": 60001,
"s3_requests": {
"list": 31,
"head": 30075,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 30181,
"phase_ms": {
"list": 102224,
"rows": 87802,
"stale": 3,
"recheck": 1818,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:20:34.488992Z",
"func_name": "_finish",
"lineno": 1114,
"filename": "attachment_reconcile.py"
},
"exceeded": null,
"found_records": 300,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "2823c222cb6d",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "head",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:20:58.069167Z",
"lineno": 229,
"func_name": "run",
"filename": "main.py"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "2823c222cb6d",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "head",
"deep": false,
"listed_objects": 29925,
"checked_rows": 29850,
"found": {
"orphan_object": 75,
"missing_object": 75,
"size_mismatch": 75,
"stale_pending": 75
},
"fixed": {},
"remaining": 300,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 189789,
"max_objects_per_second": 0.0,
"storage_objects": 60001,
"s3_requests": {
"list": 31,
"head": 30075,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 30181,
"phase_ms": {
"list": 102692,
"rows": 85595,
"stale": 5,
"recheck": 1498,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:24:07.873158Z",
"lineno": 1114,
"func_name": "_finish",
"filename": "attachment_reconcile.py"
},
"exceeded": null,
"found_records": 300,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "3d99fb146959",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "head",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:24:32.064934Z",
"lineno": 229,
"filename": "main.py",
"func_name": "run"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "3d99fb146959",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "head",
"deep": false,
"listed_objects": 29925,
"checked_rows": 29850,
"found": {
"orphan_object": 75,
"missing_object": 75,
"size_mismatch": 75,
"stale_pending": 75
},
"fixed": {},
"remaining": 300,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 189711,
"max_objects_per_second": 0.0,
"storage_objects": 60001,
"s3_requests": {
"list": 31,
"head": 30075,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 30181,
"phase_ms": {
"list": 101108,
"rows": 87094,
"stale": 4,
"recheck": 1506,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:27:41.858836Z",
"lineno": 1114,
"filename": "attachment_reconcile.py",
"func_name": "_finish"
},
"exceeded": null,
"found_records": 300,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "b4cde9adcb3a",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:29:00.230079Z",
"lineno": 229,
"func_name": "run",
"filename": "main.py"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "b4cde9adcb3a",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": false,
"listed_objects": 99750,
"checked_rows": 99500,
"found": {
"orphan_object": 250,
"size_mismatch": 250,
"missing_object": 250,
"stale_pending": 250
},
"fixed": {},
"remaining": 1000,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 32216,
"max_objects_per_second": 0.0,
"storage_objects": 100501,
"s3_requests": {
"list": 101,
"head": 750,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 953,
"phase_ms": {
"list": 20618,
"rows": 6089,
"stale": 10,
"recheck": 5499,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:29:32.637023Z",
"lineno": 1114,
"func_name": "_finish",
"filename": "attachment_reconcile.py"
},
"exceeded": null,
"found_records": 1000,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "d5036a534b47",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:29:40.015991Z",
"func_name": "run",
"filename": "main.py",
"lineno": 229
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "d5036a534b47",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": false,
"listed_objects": 99750,
"checked_rows": 99500,
"found": {
"orphan_object": 250,
"size_mismatch": 250,
"missing_object": 250,
"stale_pending": 250
},
"fixed": {},
"remaining": 1000,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 30693,
"max_objects_per_second": 0.0,
"storage_objects": 100501,
"s3_requests": {
"list": 101,
"head": 750,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 953,
"phase_ms": {
"list": 20198,
"rows": 5288,
"stale": 10,
"recheck": 5197,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:30:10.899471Z",
"func_name": "_finish",
"filename": "attachment_reconcile.py",
"lineno": 1114
},
"exceeded": null,
"found_records": 1000,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "9c937f7f6878",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:30:18.516982Z",
"lineno": 229,
"filename": "main.py",
"func_name": "run"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "9c937f7f6878",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": false,
"listed_objects": 99750,
"checked_rows": 99500,
"found": {
"orphan_object": 250,
"size_mismatch": 250,
"missing_object": 250,
"stale_pending": 250
},
"fixed": {},
"remaining": 1000,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 31928,
"max_objects_per_second": 0.0,
"storage_objects": 100501,
"s3_requests": {
"list": 101,
"head": 750,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 953,
"phase_ms": {
"list": 20928,
"rows": 5780,
"stale": 10,
"recheck": 5211,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:30:50.633143Z",
"lineno": 1114,
"filename": "attachment_reconcile.py",
"func_name": "_finish"
},
"exceeded": null,
"found_records": 1000,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "f69e5516b0f7",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 2000.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:31:25.610171Z",
"lineno": 229,
"filename": "main.py",
"func_name": "run"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "f69e5516b0f7",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": false,
"listed_objects": 99750,
"checked_rows": 99500,
"found": {
"orphan_object": 250,
"size_mismatch": 250,
"missing_object": 250,
"stale_pending": 250
},
"fixed": {},
"remaining": 1000,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 52316,
"max_objects_per_second": 2000.0,
"storage_objects": 100501,
"s3_requests": {
"list": 101,
"head": 750,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 953,
"phase_ms": {
"list": 49885,
"rows": 912,
"stale": 6,
"recheck": 1513,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:32:17.957089Z",
"lineno": 1114,
"filename": "attachment_reconcile.py",
"func_name": "_finish"
},
"exceeded": null,
"found_records": 1000,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "d5ade708ecd7",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 2000.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:37:16.013317Z",
"filename": "main.py",
"func_name": "run",
"lineno": 229
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "d5ade708ecd7",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": false,
"listed_objects": 99750,
"checked_rows": 99500,
"found": {
"orphan_object": 250,
"size_mismatch": 250,
"missing_object": 250,
"stale_pending": 250
},
"fixed": {},
"remaining": 1000,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 51983,
"max_objects_per_second": 2000.0,
"storage_objects": 100501,
"s3_requests": {
"list": 101,
"head": 750,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 953,
"phase_ms": {
"list": 49884,
"rows": 870,
"stale": 5,
"recheck": 1224,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:38:08.026112Z",
"filename": "attachment_reconcile.py",
"func_name": "_finish",
"lineno": 1114
},
"exceeded": null,
"found_records": 1000,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "553f5997f9af",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 2000.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:43:17.581364Z",
"func_name": "run",
"lineno": 229,
"filename": "main.py"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "553f5997f9af",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": false,
"listed_objects": 99750,
"checked_rows": 99500,
"found": {
"orphan_object": 250,
"size_mismatch": 250,
"missing_object": 250,
"stale_pending": 250
},
"fixed": {},
"remaining": 1000,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 52160,
"max_objects_per_second": 2000.0,
"storage_objects": 100501,
"s3_requests": {
"list": 101,
"head": 750,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 953,
"phase_ms": {
"list": 49884,
"rows": 888,
"stale": 8,
"recheck": 1380,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:44:09.772405Z",
"func_name": "_finish",
"lineno": 1114,
"filename": "attachment_reconcile.py"
},
"exceeded": null,
"found_records": 1000,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "5175d9ed537c",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:35:27.281953Z",
"func_name": "run",
"lineno": 229,
"filename": "main.py"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "5175d9ed537c",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": false,
"listed_objects": 99750,
"checked_rows": 99500,
"found": {
"orphan_object": 250,
"size_mismatch": 250,
"missing_object": 250,
"stale_pending": 250
},
"fixed": {},
"remaining": 1000,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 13811,
"max_objects_per_second": 0.0,
"storage_objects": 100501,
"s3_requests": {
"list": 101,
"head": 750,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 953,
"phase_ms": {
"list": 11352,
"rows": 931,
"stale": 5,
"recheck": 1523,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:35:41.124550Z",
"func_name": "_finish",
"lineno": 1114,
"filename": "attachment_reconcile.py"
},
"exceeded": null,
"found_records": 1000,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "a17a11df4626",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:40:13.530625Z",
"func_name": "run",
"filename": "main.py",
"lineno": 229
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "a17a11df4626",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": false,
"listed_objects": 99750,
"checked_rows": 99500,
"found": {
"orphan_object": 250,
"size_mismatch": 250,
"missing_object": 250,
"stale_pending": 250
},
"fixed": {},
"remaining": 1000,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 12886,
"max_objects_per_second": 0.0,
"storage_objects": 100501,
"s3_requests": {
"list": 101,
"head": 750,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 953,
"phase_ms": {
"list": 10766,
"rows": 879,
"stale": 6,
"recheck": 1236,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:40:26.445528Z",
"func_name": "_finish",
"filename": "attachment_reconcile.py",
"lineno": 1114
},
"exceeded": null,
"found_records": 1000,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "cde7e971a4e9",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:42:31.928399Z",
"filename": "main.py",
"lineno": 229,
"func_name": "run"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "cde7e971a4e9",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": false,
"listed_objects": 99750,
"checked_rows": 99500,
"found": {
"orphan_object": 250,
"size_mismatch": 250,
"missing_object": 250,
"stale_pending": 250
},
"fixed": {},
"remaining": 1000,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 12877,
"max_objects_per_second": 0.0,
"storage_objects": 100501,
"s3_requests": {
"list": 101,
"head": 750,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 953,
"phase_ms": {
"list": 10713,
"rows": 872,
"stale": 7,
"recheck": 1285,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:42:44.835329Z",
"filename": "attachment_reconcile.py",
"lineno": 1114,
"func_name": "_finish"
},
"exceeded": null,
"found_records": 1000,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "68d5053d29b1",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 2000.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:33:56.020818Z",
"lineno": 229,
"func_name": "run",
"filename": "main.py"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "68d5053d29b1",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": false,
"listed_objects": 99750,
"checked_rows": 99500,
"found": {
"orphan_object": 250,
"size_mismatch": 250,
"missing_object": 250,
"stale_pending": 250
},
"fixed": {},
"remaining": 1000,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 58299,
"max_objects_per_second": 2000.0,
"storage_objects": 100501,
"s3_requests": {
"list": 101,
"head": 750,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 953,
"phase_ms": {
"list": 49884,
"rows": 3412,
"stale": 6,
"recheck": 4997,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:34:54.423408Z",
"lineno": 1114,
"func_name": "_finish",
"filename": "attachment_reconcile.py"
},
"exceeded": null,
"found_records": 1000,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "9d52e0b703b9",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 2000.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:38:43.167753Z",
"lineno": 229,
"func_name": "run",
"filename": "main.py"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "9d52e0b703b9",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": false,
"listed_objects": 99750,
"checked_rows": 99500,
"found": {
"orphan_object": 250,
"size_mismatch": 250,
"missing_object": 250,
"stale_pending": 250
},
"fixed": {},
"remaining": 1000,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 57500,
"max_objects_per_second": 2000.0,
"storage_objects": 100501,
"s3_requests": {
"list": 101,
"head": 750,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 953,
"phase_ms": {
"list": 49884,
"rows": 3400,
"stale": 6,
"recheck": 4210,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:39:40.767984Z",
"lineno": 1114,
"func_name": "_finish",
"filename": "attachment_reconcile.py"
},
"exceeded": null,
"found_records": 1000,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "6d2f7c17a001",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 2000.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:41:01.505560Z",
"func_name": "run",
"filename": "main.py",
"lineno": 229
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "6d2f7c17a001",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": false,
"listed_objects": 99750,
"checked_rows": 99500,
"found": {
"orphan_object": 250,
"size_mismatch": 250,
"missing_object": 250,
"stale_pending": 250
},
"fixed": {},
"remaining": 1000,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 57404,
"max_objects_per_second": 2000.0,
"storage_objects": 100501,
"s3_requests": {
"list": 101,
"head": 750,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 953,
"phase_ms": {
"list": 49884,
"rows": 3314,
"stale": 5,
"recheck": 4201,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:41:59.084880Z",
"func_name": "_finish",
"filename": "attachment_reconcile.py",
"lineno": 1114
},
"exceeded": null,
"found_records": 1000,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "b5adae5b96b7",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:32:53.405894Z",
"lineno": 229,
"filename": "main.py",
"func_name": "run"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "b5adae5b96b7",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": false,
"listed_objects": 99750,
"checked_rows": 99500,
"found": {
"orphan_object": 250,
"size_mismatch": 250,
"missing_object": 250,
"stale_pending": 250
},
"fixed": {},
"remaining": 1000,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 27204,
"max_objects_per_second": 0.0,
"storage_objects": 100501,
"s3_requests": {
"list": 101,
"head": 750,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 953,
"phase_ms": {
"list": 18815,
"rows": 3595,
"stale": 7,
"recheck": 4787,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:33:20.713392Z",
"lineno": 1114,
"filename": "attachment_reconcile.py",
"func_name": "_finish"
},
"exceeded": null,
"found_records": 1000,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "0b5b4f7dff49",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:36:16.410218Z",
"filename": "main.py",
"func_name": "run",
"lineno": 229
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "0b5b4f7dff49",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": false,
"listed_objects": 99750,
"checked_rows": 99500,
"found": {
"orphan_object": 250,
"size_mismatch": 250,
"missing_object": 250,
"stale_pending": 250
},
"fixed": {},
"remaining": 1000,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 26699,
"max_objects_per_second": 0.0,
"storage_objects": 100501,
"s3_requests": {
"list": 101,
"head": 750,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 953,
"phase_ms": {
"list": 19176,
"rows": 3324,
"stale": 77,
"recheck": 4121,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:36:43.208718Z",
"filename": "attachment_reconcile.py",
"func_name": "_finish",
"lineno": 1114
},
"exceeded": null,
"found_records": 1000,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,85 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "b171ffbff10d",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": false,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:44:44.940203Z",
"lineno": 229,
"func_name": "run",
"filename": "main.py"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "b171ffbff10d",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": false,
"strategy": "batch",
"deep": false,
"listed_objects": 99750,
"checked_rows": 99500,
"found": {
"orphan_object": 250,
"size_mismatch": 250,
"missing_object": 250,
"stale_pending": 250
},
"fixed": {},
"remaining": 1000,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": false,
"unlogged": 0,
"unchecked": 0,
"interrupted_by": null,
"duration_ms": 26127,
"max_objects_per_second": 0.0,
"storage_objects": 100501,
"s3_requests": {
"list": 101,
"head": 750,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 953,
"phase_ms": {
"list": 18519,
"rows": 3299,
"stale": 6,
"recheck": 4303,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:45:11.240988Z",
"lineno": 1114,
"func_name": "_finish",
"filename": "attachment_reconcile.py"
},
"exceeded": null,
"found_records": 1000,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,98 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "d1612c53cc3b",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": true,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:46:38.472316Z",
"filename": "main.py",
"func_name": "run",
"lineno": 229
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "d1612c53cc3b",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": true,
"strategy": "batch",
"deep": false,
"listed_objects": 10000,
"checked_rows": 11000,
"found": {
"missing_object": 101
},
"fixed": {},
"remaining": 101,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": true,
"unlogged": 0,
"unchecked": 899,
"interrupted_by": null,
"duration_ms": 3113,
"max_objects_per_second": 0.0,
"storage_objects": 10102,
"s3_requests": {
"list": 11,
"head": 101,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 124,
"phase_ms": {
"list": 1802,
"rows": 707,
"stale": 3,
"recheck": 601,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:46:41.562198Z",
"filename": "attachment_reconcile.py",
"func_name": "_finish",
"lineno": 1114
},
"exceeded": {
"event": "Reconcile changes exceed limit",
"instance_id": "d1612c53cc3b",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": true,
"strategy": "batch",
"deep": false,
"changes": 101,
"max_changes": 100,
"unchecked": 899,
"level": "error",
"timestamp": "2026-10-23T15:46:41.559137Z",
"filename": "attachment_reconcile.py",
"func_name": "_act",
"lineno": 892
},
"found_records": 101,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,98 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "56f1e1939771",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": true,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:47:04.816037Z",
"filename": "main.py",
"lineno": 229,
"func_name": "run"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "56f1e1939771",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": true,
"strategy": "batch",
"deep": false,
"listed_objects": 10000,
"checked_rows": 11000,
"found": {
"missing_object": 101
},
"fixed": {},
"remaining": 101,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": true,
"unlogged": 0,
"unchecked": 899,
"interrupted_by": null,
"duration_ms": 3076,
"max_objects_per_second": 0.0,
"storage_objects": 10102,
"s3_requests": {
"list": 11,
"head": 101,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 124,
"phase_ms": {
"list": 1887,
"rows": 591,
"stale": 3,
"recheck": 595,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:47:07.896130Z",
"filename": "attachment_reconcile.py",
"lineno": 1114,
"func_name": "_finish"
},
"exceeded": {
"event": "Reconcile changes exceed limit",
"instance_id": "56f1e1939771",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": true,
"strategy": "batch",
"deep": false,
"changes": 101,
"max_changes": 100,
"unchecked": 899,
"level": "error",
"timestamp": "2026-10-23T15:47:07.892360Z",
"filename": "attachment_reconcile.py",
"lineno": 892,
"func_name": "_act"
},
"found_records": 101,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,98 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "65e0e4542a75",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": true,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:47:31.942684Z",
"func_name": "run",
"filename": "main.py",
"lineno": 229
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "65e0e4542a75",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": true,
"strategy": "batch",
"deep": false,
"listed_objects": 10000,
"checked_rows": 11000,
"found": {
"missing_object": 101
},
"fixed": {},
"remaining": 101,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": true,
"unlogged": 0,
"unchecked": 899,
"interrupted_by": null,
"duration_ms": 3018,
"max_objects_per_second": 0.0,
"storage_objects": 10102,
"s3_requests": {
"list": 11,
"head": 101,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 124,
"phase_ms": {
"list": 1707,
"rows": 704,
"stale": 2,
"recheck": 605,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:47:34.964270Z",
"func_name": "_finish",
"filename": "attachment_reconcile.py",
"lineno": 1114
},
"exceeded": {
"event": "Reconcile changes exceed limit",
"instance_id": "65e0e4542a75",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": true,
"strategy": "batch",
"deep": false,
"changes": 101,
"max_changes": 100,
"unchecked": 899,
"level": "error",
"timestamp": "2026-10-23T15:47:34.960998Z",
"func_name": "_act",
"filename": "attachment_reconcile.py",
"lineno": 892
},
"found_records": 101,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,72 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "2a7c548eb393",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_apply": true,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:46:48.958770Z",
"func_name": "run",
"lineno": 185,
"filename": "main.py"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "2a7c548eb393",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": true,
"listed_objects": 10000,
"checked_rows": 11000,
"found": {
"missing_object": 1000
},
"fixed": {},
"remaining": 1000,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": true,
"unlogged": 0,
"interrupted_by": null,
"duration_ms": 7706,
"level": "warning",
"timestamp": "2026-10-23T15:46:56.773114Z",
"func_name": "_finish",
"lineno": 743,
"filename": "attachment_reconcile.py"
},
"exceeded": {
"event": "Reconcile changes exceed limit",
"instance_id": "2a7c548eb393",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": true,
"changes": 1000,
"max_changes": 100,
"level": "error",
"timestamp": "2026-10-23T15:46:56.665008Z",
"func_name": "_act",
"lineno": 563,
"filename": "attachment_reconcile.py"
},
"found_records": 1000,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,72 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "0e48cc21f70c",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_apply": true,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:47:15.362279Z",
"filename": "main.py",
"lineno": 185,
"func_name": "run"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "0e48cc21f70c",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": true,
"listed_objects": 10000,
"checked_rows": 11000,
"found": {
"missing_object": 1000
},
"fixed": {},
"remaining": 1000,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": true,
"unlogged": 0,
"interrupted_by": null,
"duration_ms": 7989,
"level": "warning",
"timestamp": "2026-10-23T15:47:23.469518Z",
"filename": "attachment_reconcile.py",
"lineno": 743,
"func_name": "_finish"
},
"exceeded": {
"event": "Reconcile changes exceed limit",
"instance_id": "0e48cc21f70c",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": true,
"changes": 1000,
"max_changes": 100,
"level": "error",
"timestamp": "2026-10-23T15:47:23.350961Z",
"filename": "attachment_reconcile.py",
"lineno": 563,
"func_name": "_act"
},
"found_records": 1000,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,72 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "0e566bef2d2e",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_apply": true,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:47:42.251462Z",
"func_name": "run",
"lineno": 185,
"filename": "main.py"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "0e566bef2d2e",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": true,
"listed_objects": 10000,
"checked_rows": 11000,
"found": {
"missing_object": 1000
},
"fixed": {},
"remaining": 1000,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": true,
"unlogged": 0,
"interrupted_by": null,
"duration_ms": 8013,
"level": "warning",
"timestamp": "2026-10-23T15:47:50.453576Z",
"func_name": "_finish",
"lineno": 743,
"filename": "attachment_reconcile.py"
},
"exceeded": {
"event": "Reconcile changes exceed limit",
"instance_id": "0e566bef2d2e",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": true,
"changes": 1000,
"max_changes": 100,
"level": "error",
"timestamp": "2026-10-23T15:47:50.264792Z",
"func_name": "_act",
"lineno": 563,
"filename": "attachment_reconcile.py"
},
"found_records": 1000,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,98 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "750f5ed8ffa3",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": true,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:47:58.788758Z",
"lineno": 229,
"func_name": "run",
"filename": "main.py"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "750f5ed8ffa3",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": true,
"strategy": "batch",
"deep": false,
"listed_objects": 10000,
"checked_rows": 20000,
"found": {
"missing_object": 101
},
"fixed": {},
"remaining": 101,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": true,
"unlogged": 0,
"unchecked": 9899,
"interrupted_by": null,
"duration_ms": 3296,
"max_objects_per_second": 0.0,
"storage_objects": 10102,
"s3_requests": {
"list": 11,
"head": 101,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 133,
"phase_ms": {
"list": 1805,
"rows": 999,
"stale": 1,
"recheck": 492,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:48:02.088817Z",
"lineno": 1114,
"func_name": "_finish",
"filename": "attachment_reconcile.py"
},
"exceeded": {
"event": "Reconcile changes exceed limit",
"instance_id": "750f5ed8ffa3",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": true,
"strategy": "batch",
"deep": false,
"changes": 101,
"max_changes": 100,
"unchecked": 9899,
"level": "error",
"timestamp": "2026-10-23T15:48:02.085461Z",
"lineno": 892,
"func_name": "_act",
"filename": "attachment_reconcile.py"
},
"found_records": 101,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,98 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "7ce13670e403",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": true,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:49:14.280188Z",
"func_name": "run",
"filename": "main.py",
"lineno": 229
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "7ce13670e403",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": true,
"strategy": "batch",
"deep": false,
"listed_objects": 10000,
"checked_rows": 20000,
"found": {
"missing_object": 101
},
"fixed": {},
"remaining": 101,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": true,
"unlogged": 0,
"unchecked": 9899,
"interrupted_by": null,
"duration_ms": 3499,
"max_objects_per_second": 0.0,
"storage_objects": 10102,
"s3_requests": {
"list": 11,
"head": 101,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 133,
"phase_ms": {
"list": 1800,
"rows": 1181,
"stale": 3,
"recheck": 515,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:49:17.783689Z",
"func_name": "_finish",
"filename": "attachment_reconcile.py",
"lineno": 1114
},
"exceeded": {
"event": "Reconcile changes exceed limit",
"instance_id": "7ce13670e403",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": true,
"strategy": "batch",
"deep": false,
"changes": 101,
"max_changes": 100,
"unchecked": 9899,
"level": "error",
"timestamp": "2026-10-23T15:49:17.779724Z",
"func_name": "_act",
"filename": "attachment_reconcile.py",
"lineno": 892
},
"found_records": 101,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,98 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "4d4f3f96a8c0",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_max_objects_per_second": 0.0,
"reconcile_apply": true,
"reconcile_strategy": "batch",
"reconcile_deep": false,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:50:33.127610Z",
"func_name": "run",
"lineno": 229,
"filename": "main.py"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "4d4f3f96a8c0",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": true,
"strategy": "batch",
"deep": false,
"listed_objects": 10000,
"checked_rows": 20000,
"found": {
"missing_object": 101
},
"fixed": {},
"remaining": 101,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": true,
"unlogged": 0,
"unchecked": 9899,
"interrupted_by": null,
"duration_ms": 3410,
"max_objects_per_second": 0.0,
"storage_objects": 10102,
"s3_requests": {
"list": 11,
"head": 101,
"get": 0,
"delete": 0
},
"read_bytes": 0,
"db_sessions": 133,
"phase_ms": {
"list": 1796,
"rows": 999,
"stale": 2,
"recheck": 612,
"act": 0
},
"level": "warning",
"timestamp": "2026-10-23T15:50:36.609938Z",
"func_name": "_finish",
"lineno": 1114,
"filename": "attachment_reconcile.py"
},
"exceeded": {
"event": "Reconcile changes exceed limit",
"instance_id": "4d4f3f96a8c0",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": true,
"strategy": "batch",
"deep": false,
"changes": 101,
"max_changes": 100,
"unchecked": 9899,
"level": "error",
"timestamp": "2026-10-23T15:50:36.537651Z",
"func_name": "_act",
"lineno": 892,
"filename": "attachment_reconcile.py"
},
"found_records": 101,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,72 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "503dfe3d3bab",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_apply": true,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:48:08.459360Z",
"lineno": 185,
"func_name": "run",
"filename": "main.py"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "503dfe3d3bab",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": true,
"listed_objects": 10000,
"checked_rows": 20000,
"found": {
"missing_object": 10000
},
"fixed": {},
"remaining": 10000,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": true,
"unlogged": 9000,
"interrupted_by": null,
"duration_ms": 57523,
"level": "warning",
"timestamp": "2026-10-23T15:49:06.177803Z",
"lineno": 743,
"func_name": "_finish",
"filename": "attachment_reconcile.py"
},
"exceeded": {
"event": "Reconcile changes exceed limit",
"instance_id": "503dfe3d3bab",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": true,
"changes": 10000,
"max_changes": 100,
"level": "error",
"timestamp": "2026-10-23T15:49:05.981779Z",
"lineno": 563,
"func_name": "_act",
"filename": "attachment_reconcile.py"
},
"found_records": 1000,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,72 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "65f043c18a5b",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_apply": true,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:49:25.432394Z",
"filename": "main.py",
"func_name": "run",
"lineno": 185
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "65f043c18a5b",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": true,
"listed_objects": 10000,
"checked_rows": 20000,
"found": {
"missing_object": 10000
},
"fixed": {},
"remaining": 10000,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": true,
"unlogged": 9000,
"interrupted_by": null,
"duration_ms": 59283,
"level": "warning",
"timestamp": "2026-10-23T15:50:24.837800Z",
"filename": "attachment_reconcile.py",
"func_name": "_finish",
"lineno": 743
},
"exceeded": {
"event": "Reconcile changes exceed limit",
"instance_id": "65f043c18a5b",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": true,
"changes": 10000,
"max_changes": 100,
"level": "error",
"timestamp": "2026-10-23T15:50:24.648298Z",
"filename": "attachment_reconcile.py",
"func_name": "_act",
"lineno": 563
},
"found_records": 1000,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1,72 @@
{
"started": {
"event": "Started cleaner",
"instance_id": "2a0c2fd9a5c0",
"module": "cleaner",
"mode": "reconcile",
"interval_seconds": 60,
"pending_grace_seconds": 30,
"batch_size": 100,
"live_upload_bound_seconds": 17,
"once": false,
"reconcile_interval_seconds": 0.0,
"reconcile_page_size": 1000,
"reconcile_max_changes": 100,
"reconcile_apply": true,
"database_host": "postgres",
"database_port": 5432,
"database_name": "bench",
"database_pool_size": 1,
"s3_host": "s3",
"s3_port": 8333,
"s3_bucket": "bench",
"level": "info",
"timestamp": "2026-10-23T15:50:43.949029Z",
"lineno": 185,
"filename": "main.py",
"func_name": "run"
},
"finished": {
"event": "Finished reconcile pass",
"instance_id": "2a0c2fd9a5c0",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": true,
"listed_objects": 10000,
"checked_rows": 20000,
"found": {
"missing_object": 10000
},
"fixed": {},
"remaining": 10000,
"fresh_objects": 0,
"fresh_rows": 0,
"lost_known": 0,
"refused": true,
"unlogged": 9000,
"interrupted_by": null,
"duration_ms": 60496,
"level": "warning",
"timestamp": "2026-10-23T15:51:44.636227Z",
"lineno": 743,
"filename": "attachment_reconcile.py",
"func_name": "_finish"
},
"exceeded": {
"event": "Reconcile changes exceed limit",
"instance_id": "2a0c2fd9a5c0",
"module": "attachment_reconcile_service",
"method": "reconcile",
"apply": true,
"changes": 10000,
"max_changes": 100,
"level": "error",
"timestamp": "2026-10-23T15:51:44.444568Z",
"lineno": 563,
"filename": "attachment_reconcile.py",
"func_name": "_act"
},
"found_records": 1000,
"fixed_records": 0,
"exit_code": 3
}
@@ -0,0 +1 @@
{"metrics":{"bg_lines_download":{"type":"counter","contains":"default","values":{"count":267126,"rate":299.9555722698351}},"bg_lines_write":{"type":"counter","contains":"default","values":{"count":44522,"rate":49.99371827750799}},"iteration_duration":{"type":"trend","contains":"time","values":{"max":376.77775,"avg":4.399708845174962,"min":1.971708,"med":3.79125,"p(50)":3.79125,"p(95)":6.130939549999999,"p(99)":12.633933979999998}},"http_req_failed":{"type":"rate","contains":"default","values":{"rate":0,"passes":0,"fails":356170}},"http_req_waiting":{"type":"trend","contains":"time","values":{"med":3.5825415,"p(50)":3.5825415,"p(95)":5.874985299999998,"p(99)":12.181987789999994,"max":376.337417,"avg":4.189064891085716,"min":1.756625}},"data_sent":{"values":{"count":88598090,"rate":99486.72457179142},"type":"counter","contains":"data"},"iterations{scenario:read}":{"type":"counter","contains":"default","values":{"count":44522,"rate":49.99371827750799},"thresholds":{"count>=0":{"ok":true}}},"http_req_duration{expected_response:true}":{"type":"trend","contains":"time","values":{"med":3.6152915,"p(50)":3.6152915,"p(95)":5.914503649999999,"p(99)":12.233289769999958,"max":376.393458,"avg":4.22136397250748,"min":1.795958},"thresholds":{"max>=0":{"ok":true}}},"http_req_duration":{"type":"trend","contains":"time","values":{"avg":4.22136397250748,"min":1.795958,"med":3.6152915,"p(50)":3.6152915,"p(95)":5.914503649999999,"p(99)":12.233289769999958,"max":376.393458}},"http_req_sending":{"type":"trend","contains":"time","values":{"p(99)":0.024958,"max":1.171666,"avg":0.008918463500575586,"min":0.002083,"med":0.00825,"p(50)":0.00825,"p(95)":0.015083}},"http_req_connecting":{"type":"trend","contains":"time","values":{"max":8.23175,"avg":0.00019693743437122717,"min":0,"med":0,"p(50)":0,"p(95)":0,"p(99)":0}},"http_req_blocked":{"type":"trend","contains":"time","values":{"p(95)":0.003541,"p(99)":0.006833,"max":8.26225,"avg":0.002557413333520255,"min":0.000708,"med":0.002125,"p(50)":0.002125}},"bg_lines_read":{"type":"counter","contains":"default","values":{"count":44522,"rate":49.99371827750799}},"data_received":{"type":"counter","contains":"data","values":{"count":1825239185,"rate":2049559.6245442317}},"http_req_tls_handshaking":{"type":"trend","contains":"time","values":{"p(50)":0,"p(95)":0,"p(99)":0,"max":0,"avg":0,"min":0,"med":0}},"vus":{"type":"gauge","contains":"default","values":{"value":1,"min":1,"max":11}},"vus_max":{"type":"gauge","contains":"default","values":{"value":300,"min":300,"max":300}},"iterations":{"type":"counter","contains":"default","values":{"count":356170,"rate":399.9430088248511}},"http_req_receiving":{"values":{"max":2.323792,"avg":0.02338061792121737,"min":0.005167,"med":0.020125,"p(50)":0.020125,"p(95)":0.043083,"p(99)":0.071416},"type":"trend","contains":"time"},"iterations{scenario:download}":{"contains":"default","values":{"count":267126,"rate":299.9555722698351},"thresholds":{"count>=0":{"ok":true}},"type":"counter"},"http_reqs":{"type":"counter","contains":"default","values":{"count":356170,"rate":399.9430088248511}},"iterations{scenario:write}":{"type":"counter","contains":"default","values":{"count":44522,"rate":49.99371827750799},"thresholds":{"count>=0":{"ok":true}}}},"root_group":{"path":"","id":"d41d8cd98f00b204e9800998ecf8427e","groups":[],"checks":[],"name":""},"options":{"summaryTrendStats":["avg","min","med","p(50)","p(95)","p(99)","max"],"summaryTimeUnit":"","noColor":true},"state":{"isStdOutTTY":false,"isStdErrTTY":false,"testRunDurationMs":890551.883996}}
@@ -0,0 +1,57 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 420" width="720" height="420" font-family='system-ui, -apple-system, "Segoe UI", sans-serif'>
<rect x="0" y="0" width="720" height="420" fill="#fcfcfb"/>
<text x="24.0" y="30.0" font-size="16" font-weight="600" fill="#52514e" text-anchor="start">Запросы прохода от числа объектов</text>
<line x1="80.0" y1="350.0" x2="680.0" y2="350.0" stroke="#e1e0d9" stroke-width="1"/>
<text x="72.0" y="354.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="end">10</text>
<line x1="80.0" y1="328.2" x2="680.0" y2="328.2" stroke="#e1e0d9" stroke-width="1"/>
<text x="72.0" y="332.2" font-size="12" font-weight="400" fill="#52514e" text-anchor="end">20</text>
<line x1="80.0" y1="299.3" x2="680.0" y2="299.3" stroke="#e1e0d9" stroke-width="1"/>
<text x="72.0" y="303.3" font-size="12" font-weight="400" fill="#52514e" text-anchor="end">50</text>
<line x1="80.0" y1="277.5" x2="680.0" y2="277.5" stroke="#e1e0d9" stroke-width="1"/>
<text x="72.0" y="281.5" font-size="12" font-weight="400" fill="#52514e" text-anchor="end">100</text>
<line x1="80.0" y1="255.7" x2="680.0" y2="255.7" stroke="#e1e0d9" stroke-width="1"/>
<text x="72.0" y="259.7" font-size="12" font-weight="400" fill="#52514e" text-anchor="end">200</text>
<line x1="80.0" y1="226.8" x2="680.0" y2="226.8" stroke="#e1e0d9" stroke-width="1"/>
<text x="72.0" y="230.8" font-size="12" font-weight="400" fill="#52514e" text-anchor="end">500</text>
<line x1="80.0" y1="205.0" x2="680.0" y2="205.0" stroke="#e1e0d9" stroke-width="1"/>
<text x="72.0" y="209.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="end">1K</text>
<line x1="80.0" y1="183.2" x2="680.0" y2="183.2" stroke="#e1e0d9" stroke-width="1"/>
<text x="72.0" y="187.2" font-size="12" font-weight="400" fill="#52514e" text-anchor="end">2K</text>
<line x1="80.0" y1="154.3" x2="680.0" y2="154.3" stroke="#e1e0d9" stroke-width="1"/>
<text x="72.0" y="158.3" font-size="12" font-weight="400" fill="#52514e" text-anchor="end">5K</text>
<line x1="80.0" y1="132.5" x2="680.0" y2="132.5" stroke="#e1e0d9" stroke-width="1"/>
<text x="72.0" y="136.5" font-size="12" font-weight="400" fill="#52514e" text-anchor="end">10K</text>
<line x1="80.0" y1="110.7" x2="680.0" y2="110.7" stroke="#e1e0d9" stroke-width="1"/>
<text x="72.0" y="114.7" font-size="12" font-weight="400" fill="#52514e" text-anchor="end">20K</text>
<line x1="80.0" y1="81.8" x2="680.0" y2="81.8" stroke="#e1e0d9" stroke-width="1"/>
<text x="72.0" y="85.8" font-size="12" font-weight="400" fill="#52514e" text-anchor="end">50K</text>
<line x1="80.0" y1="60.0" x2="680.0" y2="60.0" stroke="#e1e0d9" stroke-width="1"/>
<text x="72.0" y="64.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="end">100K</text>
<text x="137.1" y="368.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="middle">10K</text>
<text x="251.4" y="368.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="middle">30K</text>
<text x="651.4" y="368.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="middle">100K</text>
<text x="380.0" y="390.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="middle">объектов в bucket</text>
<text x="24.0" y="205.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="middle" transform="rotate(-90 24.0 205.0)">запросов (лог. шкала)</text>
<polyline points="137.1,282.2 251.4,247.9 651.4,210.1" fill="none" stroke="#2a78d6" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<g><title>batch: S3: N 10000, 86</title><circle cx="137.1" cy="282.2" r="7" fill="transparent"/><circle cx="137.1" cy="282.2" r="4.5" fill="#2a78d6" stroke="#fcfcfb" stroke-width="2"/></g>
<g><title>batch: S3: N 30000, 256</title><circle cx="251.4" cy="247.9" r="7" fill="transparent"/><circle cx="251.4" cy="247.9" r="4.5" fill="#2a78d6" stroke="#fcfcfb" stroke-width="2"/></g>
<g><title>batch: S3: N 100000, 851</title><circle cx="651.4" cy="210.1" r="7" fill="transparent"/><circle cx="651.4" cy="210.1" r="4.5" fill="#2a78d6" stroke="#fcfcfb" stroke-width="2"/></g>
<polyline points="137.1,278.8 251.4,244.4 651.4,206.5" fill="none" stroke="#eb6834" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<g><title>batch: PostgreSQL: N 10000, 96</title><circle cx="137.1" cy="278.8" r="7" fill="transparent"/><circle cx="137.1" cy="278.8" r="4.5" fill="#eb6834" stroke="#fcfcfb" stroke-width="2"/></g>
<g><title>batch: PostgreSQL: N 30000, 286</title><circle cx="251.4" cy="244.4" r="7" fill="transparent"/><circle cx="251.4" cy="244.4" r="4.5" fill="#eb6834" stroke="#fcfcfb" stroke-width="2"/></g>
<g><title>batch: PostgreSQL: N 100000, 953</title><circle cx="651.4" cy="206.5" r="7" fill="transparent"/><circle cx="651.4" cy="206.5" r="4.5" fill="#eb6834" stroke="#fcfcfb" stroke-width="2"/></g>
<polyline points="137.1,132.4 251.4,97.8" fill="none" stroke="#1baf7a" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<g><title>head: S3: N 10000, 10036</title><circle cx="137.1" cy="132.4" r="7" fill="transparent"/><circle cx="137.1" cy="132.4" r="4.5" fill="#1baf7a" stroke="#fcfcfb" stroke-width="2"/></g>
<g><title>head: S3: N 30000, 30106</title><circle cx="251.4" cy="97.8" r="7" fill="transparent"/><circle cx="251.4" cy="97.8" r="4.5" fill="#1baf7a" stroke="#fcfcfb" stroke-width="2"/></g>
<polyline points="137.1,132.3 251.4,97.7" fill="none" stroke="#eda100" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<g><title>head: PostgreSQL: N 10000, 10061</title><circle cx="137.1" cy="132.3" r="7" fill="transparent"/><circle cx="137.1" cy="132.3" r="4.5" fill="#eda100" stroke="#fcfcfb" stroke-width="2"/></g>
<g><title>head: PostgreSQL: N 30000, 30181</title><circle cx="251.4" cy="97.7" r="7" fill="transparent"/><circle cx="251.4" cy="97.7" r="4.5" fill="#eda100" stroke="#fcfcfb" stroke-width="2"/></g>
<line x1="80.0" y1="45.0" x2="96.0" y2="45.0" stroke="#2a78d6" stroke-width="2"/>
<text x="102.0" y="49.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">batch: S3</text>
<line x1="177.0" y1="45.0" x2="193.0" y2="45.0" stroke="#eb6834" stroke-width="2"/>
<text x="199.0" y="49.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">batch: PostgreSQL</text>
<line x1="330.0" y1="45.0" x2="346.0" y2="45.0" stroke="#1baf7a" stroke-width="2"/>
<text x="352.0" y="49.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">head: S3</text>
<line x1="420.0" y1="45.0" x2="436.0" y2="45.0" stroke="#eda100" stroke-width="2"/>
<text x="442.0" y="49.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">head: PostgreSQL</text>
</svg>

After

Width:  |  Height:  |  Size: 6.6 KiB

+102
View File
@@ -0,0 +1,102 @@
# Профиль сверки: метка `baseline`
- commit `d8b8ae3`, dirty False; статус complete
- профиль `reconcile`, повторов 3, зерно 20260930, grace проходов 30 с, предел скорости по умолчанию 2000/с
- образ «до» — commit `7f4e626`
- CPU уборщика: {'stand': '0.25', 'fast': '1'}
- фоновая нагрузка: {'download': 300, 'write': 50, 'read': 50, 'downloads': 5000, 'quiet_s': 30}
- аргументы S3: `server -ip=127.0.0.1 -ip.bind=127.0.0.1 -master.telemetry=false -master.electionTimeout=1s -volume.preStopSeconds=0 -filer -s3 -s3.ip.bind=0.0.0.0 -s3.port=8333 -s3.port.iceberg=0 -s3.port.lance=0 -s3.iam=false -s3.concurrentUploadLimitMB=64 -metricsPort=9327`
- хост: {'swap_used_mib': 1267.69, 'swap_total_mib': 2048.0, 'swapouts': 1541596, 'memory_free_percent': 65, 'power': 'AC Power', 'battery_percent': 80}; предупреждения []; посторонние контейнеры []
## Проходы без фоновой нагрузки
Медиана и min–max повторов. Цена — микросекунд на объект bucket.
| Этап | N | Ячейка | Проход, с | мкс/объект | LIST | HEAD | GET | DELETE | Сеансов | Прочитано, МиБ | CPU уборщика | CPU S3 | CPU PG | Память, МиБ (старт → пик) | Пометки |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| A | 997 | deep-fast | 3.07 (3.04–3.21) | 3079.2 (3054.2–3221.7) | 2 (2–2) | 9 (9–9) | 988 (988–988) | 0 (0–0) | 12 (12–12) | 988.0 (988.0–988.0) | 0.595 (0.591–0.607) | 0.477 (0.418–0.477) | 0.004 (0.003–0.011) | 29.8 (19.9–31.9) → 95.3 (95.3–95.4) | — |
| A | 997 | batch | 0.41 (0.40–0.50) | 416.2 (401.2–505.5) | 2 (2–2) | 9 (9–9) | 0 (0–0) | 0 (0–0) | 12 (12–12) | 0.0 (0.0–0.0) | 0.230 (0.211–0.248) | 0.127 (0.114–0.176) | 0.024 (0.018–0.044) | 77.8 (76.4–89.8) → 91.8 (89.8–94.5) | — |
| A | 997 | deep | 8.59 (8.53–8.90) | 8616.9 (8552.7–8922.8) | 2 (2–2) | 9 (9–9) | 988 (988–988) | 0 (0–0) | 12 (12–12) | 988.0 (988.0–988.0) | 0.249 (0.249–0.250) | 0.202 (0.196–0.203) | 0.006 (0.005–0.007) | 88.7 (72.9–90.3) → 96.1 (96.0–96.1) | — |
| B | 9975 | head | 60.98 (59.81–64.12) | 6113.5 (5995.7–6427.9) | 11 (11–11) | 10025 (10025–10025) | 0 (0–0) | 0 (0–0) | 10061 (10061–10061) | 0.0 (0.0–0.0) | 0.249 (0.249–0.250) | 0.070 (0.069–0.070) | 0.035 (0.034–0.037) | 85.3 (76.3–86.2) → 96.4 (96.0–96.4) | — |
| B | 9975 | deep | 31.31 (30.52–32.62) | 3138.6 (3060.2–3270.2) | 11 (11–11) | 75 (75–75) | 9900 (9900–9900) | 0 (0–0) | 96 (96–96) | 38.7 (38.7–38.7) | 0.249 (0.249–0.249) | 0.159 (0.158–0.163) | 0.007 (0.006–0.007) | 88.2 (84.9–88.3) → 98.3 (98.1–98.4) | — |
| B | 9975 | batch | 2.81 (2.61–2.99) | 281.4 (261.9–299.9) | 11 (11–11) | 75 (75–75) | 0 (0–0) | 0 (0–0) | 96 (96–96) | 0.0 (0.0–0.0) | 0.245 (0.243–0.253) | 0.327 (0.298–0.337) | 0.016 (0.014–0.028) | 89.9 (83.4–90.0) → 97.4 (97.3–97.7) | — |
| C | 29925 | batch | 9.29 (9.11–9.61) | 310.6 (304.4–321.0) | 31 (31–31) | 225 (225–225) | 0 (0–0) | 0 (0–0) | 286 (286–286) | 0.0 (0.0–0.0) | 0.239 (0.236–0.242) | 0.326 (0.324–0.343) | 0.023 (0.022–0.025) | 77.2 (76.6–88.2) → 101.0 (100.8–101.3) | — |
| C | 29925 | head | 189.79 (189.71–191.92) | 6342.2 (6339.6–6413.3) | 31 (31–31) | 30075 (30075–30075) | 0 (0–0) | 0 (0–0) | 30181 (30181–30181) | 0.0 (0.0–0.0) | 0.249 (0.248–0.249) | 0.073 (0.072–0.075) | 0.036 (0.036–0.036) | 88.1 (85.0–91.5) → 96.6 (96.3–96.7) | — |
| D | 99750 | batch | 31.93 (30.69–32.22) | 320.1 (307.7–323.0) | 101 (101–101) | 750 (750–750) | 0 (0–0) | 0 (0–0) | 953 (953–953) | 0.0 (0.0–0.0) | 0.241 (0.239–0.242) | 0.315 (0.306–0.317) | 0.024 (0.024–0.025) | 91.9 (90.7–93.9) → 111.2 (111.2–111.4) | — |
| S4-1000 | 10000 | after | 3.08 (3.02–3.11) | 307.6 (301.8–311.3) | 11 (11–11) | 101 (101–101) | 0 (0–0) | 0 (0–0) | 124 (124–124) | 0.0 (0.0–0.0) | 0.249 (0.239–0.252) | 0.294 (0.273–0.301) | 0.023 (0.021–0.024) | 84.5 (80.7–88.0) → 97.7 (97.5–98.0) | — |
| S4-1000 | 10000 | before | 7.99 (7.71–8.01) | 798.9 (770.6–801.3) | — | — | — | — | — | — | 0.249 (0.249–0.250) | 0.141 (0.138–0.144) | 0.031 (0.028–0.034) | 89.7 (76.4–90.3) → 98.7 (98.3–99.1) | — |
| S4-10000 | 10000 | after | 3.41 (3.30–3.50) | 341.0 (329.6–349.9) | 11 (11–11) | 101 (101–101) | 0 (0–0) | 0 (0–0) | 133 (133–133) | 0.0 (0.0–0.0) | 0.247 (0.246–0.247) | 0.266 (0.247–0.285) | 0.024 (0.023–0.026) | 80.9 (78.2–89.3) → 100.5 (100.3–100.8) | — |
| S4-10000 | 10000 | before | 59.28 (57.52–60.50) | 5928.3 (5752.3–6049.6) | — | — | — | — | — | — | 0.250 (0.250–0.250) | 0.068 (0.067–0.068) | 0.034 (0.033–0.035) | 89.8 (83.9–91.6) → 102.0 (102.0–102.6) | — |
## Фоновая нагрузка (H4)
r — p95 окна прохода к p95 окон до и после; a — p95 до к p95 после (A/A). Медиана по повторам.
| Ячейка | Проход, с | Сценарий | r | a | 5xx |
|---|---|---|---|---|---|
| stand | 57.5 | download | 1.01 | 0.98 | 0 |
| stand | 57.5 | write | 1.02 | 0.96 | 0 |
| stand | 57.5 | read | 1.03 | 0.96 | 0 |
| stand-unlimited | 26.7 | download | 1.06 | 1.04 | 0 |
| stand-unlimited | 26.7 | write | 1.07 | 1.06 | 0 |
| stand-unlimited | 26.7 | read | 1.07 | 1.04 | 0 |
| fast-unlimited | 12.9 | download | 1.08 | 1.01 | 0 |
| fast-unlimited | 12.9 | write | 1.08 | 1.04 | 0 |
| fast-unlimited | 12.9 | read | 1.08 | 1.01 | 0 |
| fast-limited | 52.2 | download | 1.02 | 1.00 | 0 |
| fast-limited | 52.2 | write | 1.03 | 0.98 | 0 |
| fast-limited | 52.2 | read | 1.02 | 0.99 | 0 |
## Отказ по пределу (S4)
| Кандидатов | Ячейка | Проход, с | HEAD | Не перепроверено | Изменений в ошибке | Код |
|---|---|---|---|---|---|---|
| 1000 | before | 7.99 (7.71–8.01) | — | — | 1000 (1000–1000) | [3] |
| 1000 | after | 3.08 (3.02–3.11) | 101 (101–101) | 899 (899–899) | 101 (101–101) | [3] |
| 10000 | before | 59.28 (57.52–60.50) | — | — | 10000 (10000–10000) | [3] |
| 10000 | after | 3.41 (3.30–3.50) | 101 (101–101) | 9899 (9899–9899) | 101 (101–101) | [3] |
## Гипотезы
### H1: подтверждена
- критерий: цена на объект `batch` различается не больше чем на 20%; LIST = ⌈N/1000⌉ + 1, HEAD — только у кандидатов; прирост пика памяти уборщика от N ≤ 300 Б на ключ
- измерено: разброс цены 13.7 %, наклон пика памяти 161 Б на ключ
- B (N = 10000): 281.40 мкс на объект, LIST 11 (ожидалось 11), HEAD 75 (ожидалось 75), сеансов 96
- C (N = 30000): 310.61 мкс на объект, LIST 31 (ожидалось 31), HEAD 225 (ожидалось 225), сеансов 286
- D (N = 100000): 320.08 мкс на объект, LIST 101 (ожидалось 101), HEAD 750 (ожидалось 750), сеансов 953
### H2: подтверждена
- критерий: HEAD дороже `batch` по времени на объект ≥ 10×, пик памяти HEAD от N растёт не больше чем на 5 МиБ
- измерено: B: HEAD / batch по времени 21.7×; запросов S3 и сеансов на 1000 объектов — batch 18.2, HEAD 2015; пик памяти HEAD 96.4 МиБ; C: HEAD / batch по времени 20.4×; запросов S3 и сеансов на 1000 объектов — batch 18.1, HEAD 2015; пик памяти HEAD 96.6 МиБ; рост пика памяти HEAD от N: 0.2 МиБ
- B: HEAD / batch по времени 21.7×; запросов S3 и сеансов на 1000 объектов — batch 18.2, HEAD 2015; пик памяти HEAD 96.4 МиБ
- C: HEAD / batch по времени 20.4×; запросов S3 и сеансов на 1000 объектов — batch 18.1, HEAD 2015; пик памяти HEAD 96.6 МиБ
- рост пика памяти HEAD от N: 0.2 МиБ
### H3: подтверждена
- критерий: глубокая на 4 KiB дороже `batch` ≥ 5×; ≥ 5 мс на MiB; на лимите стенда — CPU уборщика ≥ 90% лимита, S3 ≤ 0.5 ядра; с 1 CPU быстрее ≥ 1.5×
- измерено: 4 KiB: глубокая / batch по времени 11.2×; цена байтов 5.50 мс на MiB; 1 MiB на лимите стенда: уборщик 0.249 ядра (100 % лимита), S3 0.202 ядра; 1 CPU быстрее в 2.80 раза
- 4 KiB: глубокая / batch по времени 11.2×
- цена байтов 5.50 мс на MiB
- 1 MiB на лимите стенда: уборщик 0.249 ядра (100 % лимита), S3 0.202 ядра
- 1 CPU быстрее в 2.80 раза
### H4: не проверена
- критерий: `stand`, `stand-unlimited`, `fast-limited` — медиана r ≤ 1.5 по трём сценариям; контраст `fast-unlimited` — r скачиваний > 1.5; A/A a в [1/1.5; 1.5]; без 5xx
- измерено: контраст r скачиваний 1.08
- stand: download r 1.01 a 0.98, write r 1.02 a 0.96, read r 1.03 a 0.96
- stand-unlimited: download r 1.06 a 1.04, write r 1.07 a 1.06, read r 1.07 a 1.04
- fast-unlimited: download r 1.08 a 1.01, write r 1.08 a 1.04, read r 1.08 a 1.01
- fast-limited: download r 1.02 a 1.00, write r 1.03 a 0.98, read r 1.02 a 0.99
### S4: подтверждена
- критерий: после — не дольше прохода без кандидатов на 1 с, HEAD ≤ предела + 1, код 3 у обоих
- измерено: 1000 кандидатов: до 8.0 с (+5.2 с, ожидалось ~5 с), после 3.1 с (+0.27 с), HEAD после 101, коды [3]; 10000 кандидатов: до 59.3 с (+56.5 с, ожидалось ~50 с), после 3.4 с (+0.60 с), HEAD после 101, коды [3]
- 1000 кандидатов: до 8.0 с (+5.2 с, ожидалось ~5 с), после 3.1 с (+0.27 с), HEAD после 101, коды [3]
- 10000 кандидатов: до 59.3 с (+56.5 с, ожидалось ~50 с), после 3.4 с (+0.60 с), HEAD после 101, коды [3]
Графики: `cost-by-n.svg`, `requests-by-n.svg`, `background-p95.svg`.
+181
View File
@@ -0,0 +1,181 @@
pass,stage,cell,repeat,window,scenario,start_s,end_s,responses,errors,s5xx,p50_ms,p95_ms,p99_ms
D-fast-limited-r1,D,fast-limited,1,before,download,1792769454.71,1792769484.71,8999,0,0,3.94,6.13,10.86
D-fast-limited-r1,D,fast-limited,1,pass,download,1792769485.641,1792769537.957,15694,0,0,4.02,6.33,16.68
D-fast-limited-r1,D,fast-limited,1,after,download,1792769537.968,1792769567.968,9000,0,0,4.1,6.6,21.58
D-fast-limited-r1,D,fast-limited,1,quiet,download,1792769454.71,1792769567.968,17999,0,0,4.0,6.34,13.93
D-fast-limited-r1,D,fast-limited,1,list,download,1792769485.641,1792769535.526,14965,0,0,4.0,6.29,17.35
D-fast-limited-r1,D,fast-limited,1,before,write,1792769454.71,1792769484.71,1500,0,0,4.19,5.25,15.94
D-fast-limited-r1,D,fast-limited,1,pass,write,1792769485.641,1792769537.957,2616,0,0,4.48,5.61,18.26
D-fast-limited-r1,D,fast-limited,1,after,write,1792769537.968,1792769567.968,1500,0,0,4.53,5.87,17.92
D-fast-limited-r1,D,fast-limited,1,quiet,write,1792769454.71,1792769567.968,3000,0,0,4.31,5.65,17.92
D-fast-limited-r1,D,fast-limited,1,list,write,1792769485.641,1792769535.526,2494,0,0,4.47,5.59,19.2
D-fast-limited-r1,D,fast-limited,1,before,read,1792769454.71,1792769484.71,1500,0,0,3.28,4.43,12.56
D-fast-limited-r1,D,fast-limited,1,pass,read,1792769485.641,1792769537.957,2616,0,0,3.53,4.66,12.75
D-fast-limited-r1,D,fast-limited,1,after,read,1792769537.968,1792769567.968,1500,0,0,3.52,4.73,14.53
D-fast-limited-r1,D,fast-limited,1,quiet,read,1792769454.71,1792769567.968,3000,0,0,3.39,4.6,14.17
D-fast-limited-r1,D,fast-limited,1,list,read,1792769485.641,1792769535.526,2494,0,0,3.51,4.6,14.95
D-stand-unlimited-r1,D,stand-unlimited,1,before,download,1792769539.944,1792769569.944,9000,0,0,4.09,6.45,18.75
D-stand-unlimited-r1,D,stand-unlimited,1,pass,download,1792769573.509,1792769600.713,8161,0,0,4.18,6.51,11.09
D-stand-unlimited-r1,D,stand-unlimited,1,after,download,1792769600.727,1792769630.727,9000,0,0,4.03,6.2,12.25
D-stand-unlimited-r1,D,stand-unlimited,1,quiet,download,1792769539.944,1792769630.727,18000,0,0,4.06,6.29,14.67
D-stand-unlimited-r1,D,stand-unlimited,1,list,download,1792769573.509,1792769592.324,5645,0,0,4.2,6.59,11.85
D-stand-unlimited-r1,D,stand-unlimited,1,before,write,1792769539.944,1792769569.944,1500,0,0,4.53,5.74,17.92
D-stand-unlimited-r1,D,stand-unlimited,1,pass,write,1792769573.509,1792769600.713,1360,0,0,4.59,5.6,11.59
D-stand-unlimited-r1,D,stand-unlimited,1,after,write,1792769600.727,1792769630.727,1500,0,0,4.43,5.42,13.25
D-stand-unlimited-r1,D,stand-unlimited,1,quiet,write,1792769539.944,1792769630.727,3000,0,0,4.5,5.56,17.34
D-stand-unlimited-r1,D,stand-unlimited,1,list,write,1792769573.509,1792769592.324,941,0,0,4.6,5.6,8.01
D-stand-unlimited-r1,D,stand-unlimited,1,before,read,1792769539.944,1792769569.944,1500,0,0,3.52,4.68,13.88
D-stand-unlimited-r1,D,stand-unlimited,1,pass,read,1792769573.509,1792769600.713,1360,0,0,3.59,4.74,12.77
D-stand-unlimited-r1,D,stand-unlimited,1,after,read,1792769600.727,1792769630.727,1500,0,0,3.5,4.48,8.15
D-stand-unlimited-r1,D,stand-unlimited,1,quiet,read,1792769539.944,1792769630.727,3000,0,0,3.51,4.55,11.89
D-stand-unlimited-r1,D,stand-unlimited,1,list,read,1792769573.509,1792769592.324,941,0,0,3.61,4.77,12.77
D-stand-r1,D,stand,1,before,download,1792769602.615,1792769632.615,9000,0,0,4.03,6.16,11.63
D-stand-r1,D,stand,1,pass,download,1792769636.124,1792769694.423,17489,0,0,4.07,6.3,13.27
D-stand-r1,D,stand,1,after,download,1792769694.435,1792769724.435,9000,0,0,4.08,6.32,10.96
D-stand-r1,D,stand,1,quiet,download,1792769602.615,1792769724.435,18000,0,0,4.06,6.24,11.39
D-stand-r1,D,stand,1,list,download,1792769636.124,1792769686.008,14965,0,0,4.08,6.29,12.55
D-stand-r1,D,stand,1,before,write,1792769602.615,1792769632.615,1500,0,0,4.47,5.41,13.25
D-stand-r1,D,stand,1,pass,write,1792769636.124,1792769694.423,2915,0,0,4.54,5.67,18.48
D-stand-r1,D,stand,1,after,write,1792769694.435,1792769724.435,1500,0,0,4.51,5.59,12.32
D-stand-r1,D,stand,1,quiet,write,1792769602.615,1792769724.435,3000,0,0,4.49,5.48,12.56
D-stand-r1,D,stand,1,list,write,1792769636.124,1792769686.008,2494,0,0,4.54,5.66,14.97
D-stand-r1,D,stand,1,before,read,1792769602.615,1792769632.615,1500,0,0,3.51,4.47,8.15
D-stand-r1,D,stand,1,pass,read,1792769636.124,1792769694.423,2915,0,0,3.54,4.68,14.66
D-stand-r1,D,stand,1,after,read,1792769694.435,1792769724.435,1500,0,0,3.52,4.63,12.32
D-stand-r1,D,stand,1,quiet,read,1792769602.615,1792769724.435,3000,0,0,3.52,4.53,11.22
D-stand-r1,D,stand,1,list,read,1792769636.124,1792769686.008,2494,0,0,3.55,4.68,14.35
D-fast-unlimited-r1,D,fast-unlimited,1,before,download,1792769696.382,1792769726.382,9000,0,0,4.07,6.25,11.29
D-fast-unlimited-r1,D,fast-unlimited,1,pass,download,1792769727.314,1792769741.125,4143,0,0,4.43,7.48,17.31
D-fast-unlimited-r1,D,fast-unlimited,1,after,download,1792769741.136,1792769771.136,9000,0,0,4.09,6.25,13.17
D-fast-unlimited-r1,D,fast-unlimited,1,quiet,download,1792769696.382,1792769771.136,18000,0,0,4.08,6.25,12.2
D-fast-unlimited-r1,D,fast-unlimited,1,list,download,1792769727.314,1792769738.666,3406,0,0,4.42,7.73,20.1
D-fast-unlimited-r1,D,fast-unlimited,1,before,write,1792769696.382,1792769726.382,1500,0,0,4.5,5.44,12.56
D-fast-unlimited-r1,D,fast-unlimited,1,pass,write,1792769727.314,1792769741.125,691,0,0,4.9,6.68,17.59
D-fast-unlimited-r1,D,fast-unlimited,1,after,write,1792769741.136,1792769771.136,1500,0,0,4.51,5.45,15.88
D-fast-unlimited-r1,D,fast-unlimited,1,quiet,write,1792769696.382,1792769771.136,3000,0,0,4.51,5.45,15.73
D-fast-unlimited-r1,D,fast-unlimited,1,list,write,1792769727.314,1792769738.666,568,0,0,4.87,6.81,19.56
D-fast-unlimited-r1,D,fast-unlimited,1,before,read,1792769696.382,1792769726.382,1500,0,0,3.52,4.63,14.1
D-fast-unlimited-r1,D,fast-unlimited,1,pass,read,1792769727.314,1792769741.125,691,0,0,3.85,5.14,14.19
D-fast-unlimited-r1,D,fast-unlimited,1,after,read,1792769741.136,1792769771.136,1500,0,0,3.56,4.63,10.05
D-fast-unlimited-r1,D,fast-unlimited,1,quiet,read,1792769696.382,1792769771.136,3000,0,0,3.54,4.63,13.94
D-fast-unlimited-r1,D,fast-unlimited,1,list,read,1792769727.314,1792769738.666,568,0,0,3.85,5.23,15.66
D-stand-unlimited-r2,D,stand-unlimited,2,before,download,1792769743.072,1792769773.072,9000,0,0,4.09,6.22,11.46
D-stand-unlimited-r2,D,stand-unlimited,2,pass,download,1792769776.51,1792769803.209,8009,0,0,3.66,6.51,123.39
D-stand-unlimited-r2,D,stand-unlimited,2,after,download,1792769803.22,1792769833.22,9000,0,0,3.38,5.56,8.46
D-stand-unlimited-r2,D,stand-unlimited,2,quiet,download,1792769743.072,1792769833.22,18000,0,0,3.72,6.05,9.37
D-stand-unlimited-r2,D,stand-unlimited,2,list,download,1792769776.51,1792769795.686,5753,0,0,3.75,7.54,154.66
D-stand-unlimited-r2,D,stand-unlimited,2,before,write,1792769743.072,1792769773.072,1500,0,0,4.51,5.45,18.5
D-stand-unlimited-r2,D,stand-unlimited,2,pass,write,1792769776.51,1792769803.209,1335,0,0,4.14,6.02,78.16
D-stand-unlimited-r2,D,stand-unlimited,2,after,write,1792769803.22,1792769833.22,1500,0,0,3.78,4.97,8.45
D-stand-unlimited-r2,D,stand-unlimited,2,quiet,write,1792769743.072,1792769833.22,3000,0,0,4.17,5.34,13.38
D-stand-unlimited-r2,D,stand-unlimited,2,list,write,1792769776.51,1792769795.686,959,0,0,4.22,6.76,97.24
D-stand-unlimited-r2,D,stand-unlimited,2,before,read,1792769743.072,1792769773.072,1500,0,0,3.56,4.56,10.05
D-stand-unlimited-r2,D,stand-unlimited,2,pass,read,1792769776.51,1792769803.209,1335,0,0,3.3,4.83,60.26
D-stand-unlimited-r2,D,stand-unlimited,2,after,read,1792769803.22,1792769833.22,1500,0,0,3.01,4.07,8.32
D-stand-unlimited-r2,D,stand-unlimited,2,quiet,read,1792769743.072,1792769833.22,3000,0,0,3.28,4.45,10.05
D-stand-unlimited-r2,D,stand-unlimited,2,list,read,1792769776.51,1792769795.686,959,0,0,3.35,5.25,71.36
D-fast-limited-r2,D,fast-limited,2,before,download,1792769805.162,1792769835.162,9000,0,0,3.37,5.52,8.17
D-fast-limited-r2,D,fast-limited,2,pass,download,1792769836.043,1792769888.026,15595,0,0,3.4,5.6,11.04
D-fast-limited-r2,D,fast-limited,2,after,download,1792769888.035,1792769918.035,9001,0,0,3.33,5.45,7.59
D-fast-limited-r2,D,fast-limited,2,quiet,download,1792769805.162,1792769918.035,18001,0,0,3.35,5.48,7.95
D-fast-limited-r2,D,fast-limited,2,list,download,1792769836.043,1792769885.927,14965,0,0,3.39,5.58,11.46
D-fast-limited-r2,D,fast-limited,2,before,write,1792769805.162,1792769835.162,1500,0,0,3.75,4.92,7.55
D-fast-limited-r2,D,fast-limited,2,pass,write,1792769836.043,1792769888.026,2599,0,0,3.85,4.98,11.46
D-fast-limited-r2,D,fast-limited,2,after,write,1792769888.035,1792769918.035,1501,0,0,3.65,4.78,9.92
D-fast-limited-r2,D,fast-limited,2,quiet,write,1792769805.162,1792769918.035,3001,0,0,3.71,4.83,8.11
D-fast-limited-r2,D,fast-limited,2,list,write,1792769836.043,1792769885.927,2494,0,0,3.81,4.97,12.0
D-fast-limited-r2,D,fast-limited,2,before,read,1792769805.162,1792769835.162,1500,0,0,3.0,4.05,6.71
D-fast-limited-r2,D,fast-limited,2,pass,read,1792769836.043,1792769888.026,2599,0,0,3.05,4.08,8.53
D-fast-limited-r2,D,fast-limited,2,after,read,1792769888.035,1792769918.035,1501,0,0,2.95,3.94,6.93
D-fast-limited-r2,D,fast-limited,2,quiet,read,1792769805.162,1792769918.035,3001,0,0,2.97,4.0,6.93
D-fast-limited-r2,D,fast-limited,2,list,read,1792769836.043,1792769885.927,2494,0,0,3.03,4.05,8.63
D-stand-r2,D,stand,2,before,download,1792769889.977,1792769919.977,9000,0,0,3.32,5.43,7.9
D-stand-r2,D,stand,2,pass,download,1792769923.268,1792769980.768,17250,0,0,3.37,5.5,8.04
D-stand-r2,D,stand,2,after,download,1792769980.778,1792770010.778,9000,0,0,3.35,5.54,10.5
D-stand-r2,D,stand,2,quiet,download,1792769889.977,1792770010.778,18000,0,0,3.33,5.49,8.79
D-stand-r2,D,stand,2,list,download,1792769923.268,1792769973.152,14965,0,0,3.37,5.49,8.04
D-stand-r2,D,stand,2,before,write,1792769889.977,1792769919.977,1500,0,0,3.63,4.74,7.66
D-stand-r2,D,stand,2,pass,write,1792769923.268,1792769980.768,2875,0,0,3.79,4.97,11.38
D-stand-r2,D,stand,2,after,write,1792769980.778,1792770010.778,1500,0,0,3.75,4.94,10.41
D-stand-r2,D,stand,2,quiet,write,1792769889.977,1792770010.778,3000,0,0,3.66,4.85,9.17
D-stand-r2,D,stand,2,list,write,1792769923.268,1792769973.152,2494,0,0,3.76,4.91,10.95
D-stand-r2,D,stand,2,before,read,1792769889.977,1792769919.977,1500,0,0,2.92,3.92,6.39
D-stand-r2,D,stand,2,pass,read,1792769923.268,1792769980.768,2875,0,0,3.05,4.04,8.82
D-stand-r2,D,stand,2,after,read,1792769980.778,1792770010.778,1500,0,0,2.94,4.12,9.59
D-stand-r2,D,stand,2,quiet,read,1792769889.977,1792770010.778,3000,0,0,2.93,4.03,8.53
D-stand-r2,D,stand,2,list,read,1792769923.268,1792769973.152,2494,0,0,3.03,4.03,8.8
D-fast-unlimited-r2,D,fast-unlimited,2,before,download,1792769982.683,1792770012.683,8999,0,0,3.33,5.5,10.46
D-fast-unlimited-r2,D,fast-unlimited,2,pass,download,1792770013.56,1792770026.446,3865,0,0,3.64,5.88,8.6
D-fast-unlimited-r2,D,fast-unlimited,2,after,download,1792770026.456,1792770056.456,9000,0,0,3.3,5.42,8.25
D-fast-unlimited-r2,D,fast-unlimited,2,quiet,download,1792769982.683,1792770056.456,17999,0,0,3.32,5.45,9.47
D-fast-unlimited-r2,D,fast-unlimited,2,list,download,1792770013.56,1792770024.326,3229,0,0,3.63,5.9,9.85
D-fast-unlimited-r2,D,fast-unlimited,2,before,write,1792769982.683,1792770012.683,1500,0,0,3.72,4.91,10.41
D-fast-unlimited-r2,D,fast-unlimited,2,pass,write,1792770013.56,1792770026.446,644,0,0,4.15,5.17,7.49
D-fast-unlimited-r2,D,fast-unlimited,2,after,write,1792770026.456,1792770056.456,1500,0,0,3.59,4.7,8.18
D-fast-unlimited-r2,D,fast-unlimited,2,quiet,write,1792769982.683,1792770056.456,3000,0,0,3.64,4.8,9.78
D-fast-unlimited-r2,D,fast-unlimited,2,list,write,1792770013.56,1792770024.326,538,0,0,4.12,5.22,8.1
D-fast-unlimited-r2,D,fast-unlimited,2,before,read,1792769982.683,1792770012.683,1500,0,0,2.94,4.08,12.03
D-fast-unlimited-r2,D,fast-unlimited,2,pass,read,1792770013.56,1792770026.446,644,0,0,3.26,4.34,9.69
D-fast-unlimited-r2,D,fast-unlimited,2,after,read,1792770026.456,1792770056.456,1500,0,0,2.88,3.91,6.03
D-fast-unlimited-r2,D,fast-unlimited,2,quiet,read,1792769982.683,1792770056.456,3000,0,0,2.91,4.0,9.59
D-fast-unlimited-r2,D,fast-unlimited,2,list,read,1792770013.56,1792770024.326,538,0,0,3.24,4.43,12.53
D-stand-r3,D,stand,3,before,download,1792770028.288,1792770058.288,9000,0,0,3.29,5.38,7.81
D-stand-r3,D,stand,3,pass,download,1792770061.681,1792770119.085,17221,0,0,3.36,5.53,7.89
D-stand-r3,D,stand,3,after,download,1792770119.096,1792770149.096,9000,0,0,3.34,5.51,9.71
D-stand-r3,D,stand,3,quiet,download,1792770028.288,1792770149.096,18000,0,0,3.32,5.45,8.84
D-stand-r3,D,stand,3,list,download,1792770061.681,1792770111.565,14965,0,0,3.35,5.52,8.1
D-stand-r3,D,stand,3,before,write,1792770028.288,1792770058.288,1500,0,0,3.59,4.69,10.65
D-stand-r3,D,stand,3,pass,write,1792770061.681,1792770119.085,2870,0,0,3.73,4.91,7.67
D-stand-r3,D,stand,3,after,write,1792770119.096,1792770149.096,1500,0,0,3.63,4.86,8.81
D-stand-r3,D,stand,3,quiet,write,1792770028.288,1792770149.096,3000,0,0,3.62,4.8,9.84
D-stand-r3,D,stand,3,list,write,1792770061.681,1792770111.565,2494,0,0,3.7,4.92,7.67
D-stand-r3,D,stand,3,before,read,1792770028.288,1792770058.288,1500,0,0,2.87,3.9,6.03
D-stand-r3,D,stand,3,pass,read,1792770061.681,1792770119.085,2870,0,0,2.99,4.07,8.8
D-stand-r3,D,stand,3,after,read,1792770119.096,1792770149.096,1500,0,0,2.93,4.02,7.72
D-stand-r3,D,stand,3,quiet,read,1792770028.288,1792770149.096,3000,0,0,2.9,3.95,7.51
D-stand-r3,D,stand,3,list,read,1792770061.681,1792770111.565,2494,0,0,2.98,4.07,8.8
D-fast-unlimited-r3,D,fast-unlimited,3,before,download,1792770121.068,1792770151.068,9001,0,0,3.32,5.46,9.7
D-fast-unlimited-r3,D,fast-unlimited,3,pass,download,1792770151.958,1792770164.835,3863,0,0,3.61,5.9,10.67
D-fast-unlimited-r3,D,fast-unlimited,3,after,download,1792770164.846,1792770194.846,9000,0,0,3.3,5.42,7.81
D-fast-unlimited-r3,D,fast-unlimited,3,quiet,download,1792770121.068,1792770194.846,18001,0,0,3.31,5.45,8.61
D-fast-unlimited-r3,D,fast-unlimited,3,list,download,1792770151.958,1792770162.671,3214,0,0,3.58,5.85,8.03
D-fast-unlimited-r3,D,fast-unlimited,3,before,write,1792770121.068,1792770151.068,1500,0,0,3.62,4.81,9.88
D-fast-unlimited-r3,D,fast-unlimited,3,pass,write,1792770151.958,1792770164.835,643,0,0,4.14,5.07,6.14
D-fast-unlimited-r3,D,fast-unlimited,3,after,write,1792770164.846,1792770194.846,1500,0,0,3.6,4.62,9.58
D-fast-unlimited-r3,D,fast-unlimited,3,quiet,write,1792770121.068,1792770194.846,3000,0,0,3.61,4.74,9.76
D-fast-unlimited-r3,D,fast-unlimited,3,list,write,1792770151.958,1792770162.671,535,0,0,4.11,5.02,5.83
D-fast-unlimited-r3,D,fast-unlimited,3,before,read,1792770121.068,1792770151.068,1500,0,0,2.91,3.9,7.72
D-fast-unlimited-r3,D,fast-unlimited,3,pass,read,1792770151.958,1792770164.835,643,0,0,3.26,4.18,10.74
D-fast-unlimited-r3,D,fast-unlimited,3,after,read,1792770164.846,1792770194.846,1500,0,0,2.86,3.86,4.67
D-fast-unlimited-r3,D,fast-unlimited,3,quiet,read,1792770121.068,1792770194.846,3000,0,0,2.88,3.89,5.35
D-fast-unlimited-r3,D,fast-unlimited,3,list,read,1792770151.958,1792770162.671,535,0,0,3.25,4.16,6.26
D-fast-limited-r3,D,fast-limited,3,before,download,1792770166.739,1792770196.739,9000,0,0,3.29,5.4,7.76
D-fast-limited-r3,D,fast-limited,3,pass,download,1792770197.612,1792770249.772,15648,0,0,3.37,5.53,7.8
D-fast-limited-r3,D,fast-limited,3,after,download,1792770249.783,1792770279.783,9000,0,0,3.3,5.42,8.47
D-fast-limited-r3,D,fast-limited,3,quiet,download,1792770166.739,1792770279.783,18000,0,0,3.29,5.41,8.05
D-fast-limited-r3,D,fast-limited,3,list,download,1792770197.612,1792770247.496,14965,0,0,3.35,5.46,7.5
D-fast-limited-r3,D,fast-limited,3,before,write,1792770166.739,1792770196.739,1500,0,0,3.59,4.62,9.58
D-fast-limited-r3,D,fast-limited,3,pass,write,1792770197.612,1792770249.772,2608,0,0,3.73,4.98,8.52
D-fast-limited-r3,D,fast-limited,3,after,write,1792770249.783,1792770279.783,1500,0,0,3.61,4.71,8.69
D-fast-limited-r3,D,fast-limited,3,quiet,write,1792770166.739,1792770279.783,3000,0,0,3.6,4.68,9.2
D-fast-limited-r3,D,fast-limited,3,list,write,1792770197.612,1792770247.496,2494,0,0,3.69,4.89,7.96
D-fast-limited-r3,D,fast-limited,3,before,read,1792770166.739,1792770196.739,1500,0,0,2.85,3.84,4.82
D-fast-limited-r3,D,fast-limited,3,pass,read,1792770197.612,1792770249.772,2608,0,0,3.04,4.14,8.01
D-fast-limited-r3,D,fast-limited,3,after,read,1792770249.783,1792770279.783,1500,0,0,2.88,3.89,5.44
D-fast-limited-r3,D,fast-limited,3,quiet,read,1792770166.739,1792770279.783,3000,0,0,2.87,3.87,5.24
D-fast-limited-r3,D,fast-limited,3,list,read,1792770197.612,1792770247.496,2494,0,0,3.02,4.07,8.01
D-stand-unlimited-r3,D,stand-unlimited,3,before,download,1792770251.687,1792770281.687,9000,0,0,3.28,5.38,7.8
D-stand-unlimited-r3,D,stand-unlimited,3,pass,download,1792770285.114,1792770311.241,7838,0,0,3.47,5.74,7.57
D-stand-unlimited-r3,D,stand-unlimited,3,after,download,1792770311.251,1792770341.251,8999,0,0,3.32,5.49,11.49
D-stand-unlimited-r3,D,stand-unlimited,3,quiet,download,1792770251.687,1792770341.251,17999,0,0,3.3,5.42,9.75
D-stand-unlimited-r3,D,stand-unlimited,3,list,download,1792770285.114,1792770303.633,5556,0,0,3.5,5.75,7.46
D-stand-unlimited-r3,D,stand-unlimited,3,before,write,1792770251.687,1792770281.687,1500,0,0,3.59,4.66,8.24
D-stand-unlimited-r3,D,stand-unlimited,3,pass,write,1792770285.114,1792770311.241,1307,0,0,4.02,5.05,7.18
D-stand-unlimited-r3,D,stand-unlimited,3,after,write,1792770311.251,1792770341.251,1500,0,0,3.61,4.78,12.14
D-stand-unlimited-r3,D,stand-unlimited,3,quiet,write,1792770251.687,1792770341.251,3000,0,0,3.6,4.7,10.3
D-stand-unlimited-r3,D,stand-unlimited,3,list,write,1792770285.114,1792770303.633,926,0,0,4.06,5.08,7.0
D-stand-unlimited-r3,D,stand-unlimited,3,before,read,1792770251.687,1792770281.687,1500,0,0,2.87,3.82,4.78
D-stand-unlimited-r3,D,stand-unlimited,3,pass,read,1792770285.114,1792770311.241,1307,0,0,3.19,4.18,5.28
D-stand-unlimited-r3,D,stand-unlimited,3,after,read,1792770311.251,1792770341.251,1500,0,0,2.89,3.99,12.93
D-stand-unlimited-r3,D,stand-unlimited,3,quiet,read,1792770251.687,1792770341.251,3000,0,0,2.87,3.9,7.36
D-stand-unlimited-r3,D,stand-unlimited,3,list,read,1792770285.114,1792770303.633,926,0,0,3.24,4.2,5.28
1 pass stage cell repeat window scenario start_s end_s responses errors s5xx p50_ms p95_ms p99_ms
2 D-fast-limited-r1 D fast-limited 1 before download 1792769454.71 1792769484.71 8999 0 0 3.94 6.13 10.86
3 D-fast-limited-r1 D fast-limited 1 pass download 1792769485.641 1792769537.957 15694 0 0 4.02 6.33 16.68
4 D-fast-limited-r1 D fast-limited 1 after download 1792769537.968 1792769567.968 9000 0 0 4.1 6.6 21.58
5 D-fast-limited-r1 D fast-limited 1 quiet download 1792769454.71 1792769567.968 17999 0 0 4.0 6.34 13.93
6 D-fast-limited-r1 D fast-limited 1 list download 1792769485.641 1792769535.526 14965 0 0 4.0 6.29 17.35
7 D-fast-limited-r1 D fast-limited 1 before write 1792769454.71 1792769484.71 1500 0 0 4.19 5.25 15.94
8 D-fast-limited-r1 D fast-limited 1 pass write 1792769485.641 1792769537.957 2616 0 0 4.48 5.61 18.26
9 D-fast-limited-r1 D fast-limited 1 after write 1792769537.968 1792769567.968 1500 0 0 4.53 5.87 17.92
10 D-fast-limited-r1 D fast-limited 1 quiet write 1792769454.71 1792769567.968 3000 0 0 4.31 5.65 17.92
11 D-fast-limited-r1 D fast-limited 1 list write 1792769485.641 1792769535.526 2494 0 0 4.47 5.59 19.2
12 D-fast-limited-r1 D fast-limited 1 before read 1792769454.71 1792769484.71 1500 0 0 3.28 4.43 12.56
13 D-fast-limited-r1 D fast-limited 1 pass read 1792769485.641 1792769537.957 2616 0 0 3.53 4.66 12.75
14 D-fast-limited-r1 D fast-limited 1 after read 1792769537.968 1792769567.968 1500 0 0 3.52 4.73 14.53
15 D-fast-limited-r1 D fast-limited 1 quiet read 1792769454.71 1792769567.968 3000 0 0 3.39 4.6 14.17
16 D-fast-limited-r1 D fast-limited 1 list read 1792769485.641 1792769535.526 2494 0 0 3.51 4.6 14.95
17 D-stand-unlimited-r1 D stand-unlimited 1 before download 1792769539.944 1792769569.944 9000 0 0 4.09 6.45 18.75
18 D-stand-unlimited-r1 D stand-unlimited 1 pass download 1792769573.509 1792769600.713 8161 0 0 4.18 6.51 11.09
19 D-stand-unlimited-r1 D stand-unlimited 1 after download 1792769600.727 1792769630.727 9000 0 0 4.03 6.2 12.25
20 D-stand-unlimited-r1 D stand-unlimited 1 quiet download 1792769539.944 1792769630.727 18000 0 0 4.06 6.29 14.67
21 D-stand-unlimited-r1 D stand-unlimited 1 list download 1792769573.509 1792769592.324 5645 0 0 4.2 6.59 11.85
22 D-stand-unlimited-r1 D stand-unlimited 1 before write 1792769539.944 1792769569.944 1500 0 0 4.53 5.74 17.92
23 D-stand-unlimited-r1 D stand-unlimited 1 pass write 1792769573.509 1792769600.713 1360 0 0 4.59 5.6 11.59
24 D-stand-unlimited-r1 D stand-unlimited 1 after write 1792769600.727 1792769630.727 1500 0 0 4.43 5.42 13.25
25 D-stand-unlimited-r1 D stand-unlimited 1 quiet write 1792769539.944 1792769630.727 3000 0 0 4.5 5.56 17.34
26 D-stand-unlimited-r1 D stand-unlimited 1 list write 1792769573.509 1792769592.324 941 0 0 4.6 5.6 8.01
27 D-stand-unlimited-r1 D stand-unlimited 1 before read 1792769539.944 1792769569.944 1500 0 0 3.52 4.68 13.88
28 D-stand-unlimited-r1 D stand-unlimited 1 pass read 1792769573.509 1792769600.713 1360 0 0 3.59 4.74 12.77
29 D-stand-unlimited-r1 D stand-unlimited 1 after read 1792769600.727 1792769630.727 1500 0 0 3.5 4.48 8.15
30 D-stand-unlimited-r1 D stand-unlimited 1 quiet read 1792769539.944 1792769630.727 3000 0 0 3.51 4.55 11.89
31 D-stand-unlimited-r1 D stand-unlimited 1 list read 1792769573.509 1792769592.324 941 0 0 3.61 4.77 12.77
32 D-stand-r1 D stand 1 before download 1792769602.615 1792769632.615 9000 0 0 4.03 6.16 11.63
33 D-stand-r1 D stand 1 pass download 1792769636.124 1792769694.423 17489 0 0 4.07 6.3 13.27
34 D-stand-r1 D stand 1 after download 1792769694.435 1792769724.435 9000 0 0 4.08 6.32 10.96
35 D-stand-r1 D stand 1 quiet download 1792769602.615 1792769724.435 18000 0 0 4.06 6.24 11.39
36 D-stand-r1 D stand 1 list download 1792769636.124 1792769686.008 14965 0 0 4.08 6.29 12.55
37 D-stand-r1 D stand 1 before write 1792769602.615 1792769632.615 1500 0 0 4.47 5.41 13.25
38 D-stand-r1 D stand 1 pass write 1792769636.124 1792769694.423 2915 0 0 4.54 5.67 18.48
39 D-stand-r1 D stand 1 after write 1792769694.435 1792769724.435 1500 0 0 4.51 5.59 12.32
40 D-stand-r1 D stand 1 quiet write 1792769602.615 1792769724.435 3000 0 0 4.49 5.48 12.56
41 D-stand-r1 D stand 1 list write 1792769636.124 1792769686.008 2494 0 0 4.54 5.66 14.97
42 D-stand-r1 D stand 1 before read 1792769602.615 1792769632.615 1500 0 0 3.51 4.47 8.15
43 D-stand-r1 D stand 1 pass read 1792769636.124 1792769694.423 2915 0 0 3.54 4.68 14.66
44 D-stand-r1 D stand 1 after read 1792769694.435 1792769724.435 1500 0 0 3.52 4.63 12.32
45 D-stand-r1 D stand 1 quiet read 1792769602.615 1792769724.435 3000 0 0 3.52 4.53 11.22
46 D-stand-r1 D stand 1 list read 1792769636.124 1792769686.008 2494 0 0 3.55 4.68 14.35
47 D-fast-unlimited-r1 D fast-unlimited 1 before download 1792769696.382 1792769726.382 9000 0 0 4.07 6.25 11.29
48 D-fast-unlimited-r1 D fast-unlimited 1 pass download 1792769727.314 1792769741.125 4143 0 0 4.43 7.48 17.31
49 D-fast-unlimited-r1 D fast-unlimited 1 after download 1792769741.136 1792769771.136 9000 0 0 4.09 6.25 13.17
50 D-fast-unlimited-r1 D fast-unlimited 1 quiet download 1792769696.382 1792769771.136 18000 0 0 4.08 6.25 12.2
51 D-fast-unlimited-r1 D fast-unlimited 1 list download 1792769727.314 1792769738.666 3406 0 0 4.42 7.73 20.1
52 D-fast-unlimited-r1 D fast-unlimited 1 before write 1792769696.382 1792769726.382 1500 0 0 4.5 5.44 12.56
53 D-fast-unlimited-r1 D fast-unlimited 1 pass write 1792769727.314 1792769741.125 691 0 0 4.9 6.68 17.59
54 D-fast-unlimited-r1 D fast-unlimited 1 after write 1792769741.136 1792769771.136 1500 0 0 4.51 5.45 15.88
55 D-fast-unlimited-r1 D fast-unlimited 1 quiet write 1792769696.382 1792769771.136 3000 0 0 4.51 5.45 15.73
56 D-fast-unlimited-r1 D fast-unlimited 1 list write 1792769727.314 1792769738.666 568 0 0 4.87 6.81 19.56
57 D-fast-unlimited-r1 D fast-unlimited 1 before read 1792769696.382 1792769726.382 1500 0 0 3.52 4.63 14.1
58 D-fast-unlimited-r1 D fast-unlimited 1 pass read 1792769727.314 1792769741.125 691 0 0 3.85 5.14 14.19
59 D-fast-unlimited-r1 D fast-unlimited 1 after read 1792769741.136 1792769771.136 1500 0 0 3.56 4.63 10.05
60 D-fast-unlimited-r1 D fast-unlimited 1 quiet read 1792769696.382 1792769771.136 3000 0 0 3.54 4.63 13.94
61 D-fast-unlimited-r1 D fast-unlimited 1 list read 1792769727.314 1792769738.666 568 0 0 3.85 5.23 15.66
62 D-stand-unlimited-r2 D stand-unlimited 2 before download 1792769743.072 1792769773.072 9000 0 0 4.09 6.22 11.46
63 D-stand-unlimited-r2 D stand-unlimited 2 pass download 1792769776.51 1792769803.209 8009 0 0 3.66 6.51 123.39
64 D-stand-unlimited-r2 D stand-unlimited 2 after download 1792769803.22 1792769833.22 9000 0 0 3.38 5.56 8.46
65 D-stand-unlimited-r2 D stand-unlimited 2 quiet download 1792769743.072 1792769833.22 18000 0 0 3.72 6.05 9.37
66 D-stand-unlimited-r2 D stand-unlimited 2 list download 1792769776.51 1792769795.686 5753 0 0 3.75 7.54 154.66
67 D-stand-unlimited-r2 D stand-unlimited 2 before write 1792769743.072 1792769773.072 1500 0 0 4.51 5.45 18.5
68 D-stand-unlimited-r2 D stand-unlimited 2 pass write 1792769776.51 1792769803.209 1335 0 0 4.14 6.02 78.16
69 D-stand-unlimited-r2 D stand-unlimited 2 after write 1792769803.22 1792769833.22 1500 0 0 3.78 4.97 8.45
70 D-stand-unlimited-r2 D stand-unlimited 2 quiet write 1792769743.072 1792769833.22 3000 0 0 4.17 5.34 13.38
71 D-stand-unlimited-r2 D stand-unlimited 2 list write 1792769776.51 1792769795.686 959 0 0 4.22 6.76 97.24
72 D-stand-unlimited-r2 D stand-unlimited 2 before read 1792769743.072 1792769773.072 1500 0 0 3.56 4.56 10.05
73 D-stand-unlimited-r2 D stand-unlimited 2 pass read 1792769776.51 1792769803.209 1335 0 0 3.3 4.83 60.26
74 D-stand-unlimited-r2 D stand-unlimited 2 after read 1792769803.22 1792769833.22 1500 0 0 3.01 4.07 8.32
75 D-stand-unlimited-r2 D stand-unlimited 2 quiet read 1792769743.072 1792769833.22 3000 0 0 3.28 4.45 10.05
76 D-stand-unlimited-r2 D stand-unlimited 2 list read 1792769776.51 1792769795.686 959 0 0 3.35 5.25 71.36
77 D-fast-limited-r2 D fast-limited 2 before download 1792769805.162 1792769835.162 9000 0 0 3.37 5.52 8.17
78 D-fast-limited-r2 D fast-limited 2 pass download 1792769836.043 1792769888.026 15595 0 0 3.4 5.6 11.04
79 D-fast-limited-r2 D fast-limited 2 after download 1792769888.035 1792769918.035 9001 0 0 3.33 5.45 7.59
80 D-fast-limited-r2 D fast-limited 2 quiet download 1792769805.162 1792769918.035 18001 0 0 3.35 5.48 7.95
81 D-fast-limited-r2 D fast-limited 2 list download 1792769836.043 1792769885.927 14965 0 0 3.39 5.58 11.46
82 D-fast-limited-r2 D fast-limited 2 before write 1792769805.162 1792769835.162 1500 0 0 3.75 4.92 7.55
83 D-fast-limited-r2 D fast-limited 2 pass write 1792769836.043 1792769888.026 2599 0 0 3.85 4.98 11.46
84 D-fast-limited-r2 D fast-limited 2 after write 1792769888.035 1792769918.035 1501 0 0 3.65 4.78 9.92
85 D-fast-limited-r2 D fast-limited 2 quiet write 1792769805.162 1792769918.035 3001 0 0 3.71 4.83 8.11
86 D-fast-limited-r2 D fast-limited 2 list write 1792769836.043 1792769885.927 2494 0 0 3.81 4.97 12.0
87 D-fast-limited-r2 D fast-limited 2 before read 1792769805.162 1792769835.162 1500 0 0 3.0 4.05 6.71
88 D-fast-limited-r2 D fast-limited 2 pass read 1792769836.043 1792769888.026 2599 0 0 3.05 4.08 8.53
89 D-fast-limited-r2 D fast-limited 2 after read 1792769888.035 1792769918.035 1501 0 0 2.95 3.94 6.93
90 D-fast-limited-r2 D fast-limited 2 quiet read 1792769805.162 1792769918.035 3001 0 0 2.97 4.0 6.93
91 D-fast-limited-r2 D fast-limited 2 list read 1792769836.043 1792769885.927 2494 0 0 3.03 4.05 8.63
92 D-stand-r2 D stand 2 before download 1792769889.977 1792769919.977 9000 0 0 3.32 5.43 7.9
93 D-stand-r2 D stand 2 pass download 1792769923.268 1792769980.768 17250 0 0 3.37 5.5 8.04
94 D-stand-r2 D stand 2 after download 1792769980.778 1792770010.778 9000 0 0 3.35 5.54 10.5
95 D-stand-r2 D stand 2 quiet download 1792769889.977 1792770010.778 18000 0 0 3.33 5.49 8.79
96 D-stand-r2 D stand 2 list download 1792769923.268 1792769973.152 14965 0 0 3.37 5.49 8.04
97 D-stand-r2 D stand 2 before write 1792769889.977 1792769919.977 1500 0 0 3.63 4.74 7.66
98 D-stand-r2 D stand 2 pass write 1792769923.268 1792769980.768 2875 0 0 3.79 4.97 11.38
99 D-stand-r2 D stand 2 after write 1792769980.778 1792770010.778 1500 0 0 3.75 4.94 10.41
100 D-stand-r2 D stand 2 quiet write 1792769889.977 1792770010.778 3000 0 0 3.66 4.85 9.17
101 D-stand-r2 D stand 2 list write 1792769923.268 1792769973.152 2494 0 0 3.76 4.91 10.95
102 D-stand-r2 D stand 2 before read 1792769889.977 1792769919.977 1500 0 0 2.92 3.92 6.39
103 D-stand-r2 D stand 2 pass read 1792769923.268 1792769980.768 2875 0 0 3.05 4.04 8.82
104 D-stand-r2 D stand 2 after read 1792769980.778 1792770010.778 1500 0 0 2.94 4.12 9.59
105 D-stand-r2 D stand 2 quiet read 1792769889.977 1792770010.778 3000 0 0 2.93 4.03 8.53
106 D-stand-r2 D stand 2 list read 1792769923.268 1792769973.152 2494 0 0 3.03 4.03 8.8
107 D-fast-unlimited-r2 D fast-unlimited 2 before download 1792769982.683 1792770012.683 8999 0 0 3.33 5.5 10.46
108 D-fast-unlimited-r2 D fast-unlimited 2 pass download 1792770013.56 1792770026.446 3865 0 0 3.64 5.88 8.6
109 D-fast-unlimited-r2 D fast-unlimited 2 after download 1792770026.456 1792770056.456 9000 0 0 3.3 5.42 8.25
110 D-fast-unlimited-r2 D fast-unlimited 2 quiet download 1792769982.683 1792770056.456 17999 0 0 3.32 5.45 9.47
111 D-fast-unlimited-r2 D fast-unlimited 2 list download 1792770013.56 1792770024.326 3229 0 0 3.63 5.9 9.85
112 D-fast-unlimited-r2 D fast-unlimited 2 before write 1792769982.683 1792770012.683 1500 0 0 3.72 4.91 10.41
113 D-fast-unlimited-r2 D fast-unlimited 2 pass write 1792770013.56 1792770026.446 644 0 0 4.15 5.17 7.49
114 D-fast-unlimited-r2 D fast-unlimited 2 after write 1792770026.456 1792770056.456 1500 0 0 3.59 4.7 8.18
115 D-fast-unlimited-r2 D fast-unlimited 2 quiet write 1792769982.683 1792770056.456 3000 0 0 3.64 4.8 9.78
116 D-fast-unlimited-r2 D fast-unlimited 2 list write 1792770013.56 1792770024.326 538 0 0 4.12 5.22 8.1
117 D-fast-unlimited-r2 D fast-unlimited 2 before read 1792769982.683 1792770012.683 1500 0 0 2.94 4.08 12.03
118 D-fast-unlimited-r2 D fast-unlimited 2 pass read 1792770013.56 1792770026.446 644 0 0 3.26 4.34 9.69
119 D-fast-unlimited-r2 D fast-unlimited 2 after read 1792770026.456 1792770056.456 1500 0 0 2.88 3.91 6.03
120 D-fast-unlimited-r2 D fast-unlimited 2 quiet read 1792769982.683 1792770056.456 3000 0 0 2.91 4.0 9.59
121 D-fast-unlimited-r2 D fast-unlimited 2 list read 1792770013.56 1792770024.326 538 0 0 3.24 4.43 12.53
122 D-stand-r3 D stand 3 before download 1792770028.288 1792770058.288 9000 0 0 3.29 5.38 7.81
123 D-stand-r3 D stand 3 pass download 1792770061.681 1792770119.085 17221 0 0 3.36 5.53 7.89
124 D-stand-r3 D stand 3 after download 1792770119.096 1792770149.096 9000 0 0 3.34 5.51 9.71
125 D-stand-r3 D stand 3 quiet download 1792770028.288 1792770149.096 18000 0 0 3.32 5.45 8.84
126 D-stand-r3 D stand 3 list download 1792770061.681 1792770111.565 14965 0 0 3.35 5.52 8.1
127 D-stand-r3 D stand 3 before write 1792770028.288 1792770058.288 1500 0 0 3.59 4.69 10.65
128 D-stand-r3 D stand 3 pass write 1792770061.681 1792770119.085 2870 0 0 3.73 4.91 7.67
129 D-stand-r3 D stand 3 after write 1792770119.096 1792770149.096 1500 0 0 3.63 4.86 8.81
130 D-stand-r3 D stand 3 quiet write 1792770028.288 1792770149.096 3000 0 0 3.62 4.8 9.84
131 D-stand-r3 D stand 3 list write 1792770061.681 1792770111.565 2494 0 0 3.7 4.92 7.67
132 D-stand-r3 D stand 3 before read 1792770028.288 1792770058.288 1500 0 0 2.87 3.9 6.03
133 D-stand-r3 D stand 3 pass read 1792770061.681 1792770119.085 2870 0 0 2.99 4.07 8.8
134 D-stand-r3 D stand 3 after read 1792770119.096 1792770149.096 1500 0 0 2.93 4.02 7.72
135 D-stand-r3 D stand 3 quiet read 1792770028.288 1792770149.096 3000 0 0 2.9 3.95 7.51
136 D-stand-r3 D stand 3 list read 1792770061.681 1792770111.565 2494 0 0 2.98 4.07 8.8
137 D-fast-unlimited-r3 D fast-unlimited 3 before download 1792770121.068 1792770151.068 9001 0 0 3.32 5.46 9.7
138 D-fast-unlimited-r3 D fast-unlimited 3 pass download 1792770151.958 1792770164.835 3863 0 0 3.61 5.9 10.67
139 D-fast-unlimited-r3 D fast-unlimited 3 after download 1792770164.846 1792770194.846 9000 0 0 3.3 5.42 7.81
140 D-fast-unlimited-r3 D fast-unlimited 3 quiet download 1792770121.068 1792770194.846 18001 0 0 3.31 5.45 8.61
141 D-fast-unlimited-r3 D fast-unlimited 3 list download 1792770151.958 1792770162.671 3214 0 0 3.58 5.85 8.03
142 D-fast-unlimited-r3 D fast-unlimited 3 before write 1792770121.068 1792770151.068 1500 0 0 3.62 4.81 9.88
143 D-fast-unlimited-r3 D fast-unlimited 3 pass write 1792770151.958 1792770164.835 643 0 0 4.14 5.07 6.14
144 D-fast-unlimited-r3 D fast-unlimited 3 after write 1792770164.846 1792770194.846 1500 0 0 3.6 4.62 9.58
145 D-fast-unlimited-r3 D fast-unlimited 3 quiet write 1792770121.068 1792770194.846 3000 0 0 3.61 4.74 9.76
146 D-fast-unlimited-r3 D fast-unlimited 3 list write 1792770151.958 1792770162.671 535 0 0 4.11 5.02 5.83
147 D-fast-unlimited-r3 D fast-unlimited 3 before read 1792770121.068 1792770151.068 1500 0 0 2.91 3.9 7.72
148 D-fast-unlimited-r3 D fast-unlimited 3 pass read 1792770151.958 1792770164.835 643 0 0 3.26 4.18 10.74
149 D-fast-unlimited-r3 D fast-unlimited 3 after read 1792770164.846 1792770194.846 1500 0 0 2.86 3.86 4.67
150 D-fast-unlimited-r3 D fast-unlimited 3 quiet read 1792770121.068 1792770194.846 3000 0 0 2.88 3.89 5.35
151 D-fast-unlimited-r3 D fast-unlimited 3 list read 1792770151.958 1792770162.671 535 0 0 3.25 4.16 6.26
152 D-fast-limited-r3 D fast-limited 3 before download 1792770166.739 1792770196.739 9000 0 0 3.29 5.4 7.76
153 D-fast-limited-r3 D fast-limited 3 pass download 1792770197.612 1792770249.772 15648 0 0 3.37 5.53 7.8
154 D-fast-limited-r3 D fast-limited 3 after download 1792770249.783 1792770279.783 9000 0 0 3.3 5.42 8.47
155 D-fast-limited-r3 D fast-limited 3 quiet download 1792770166.739 1792770279.783 18000 0 0 3.29 5.41 8.05
156 D-fast-limited-r3 D fast-limited 3 list download 1792770197.612 1792770247.496 14965 0 0 3.35 5.46 7.5
157 D-fast-limited-r3 D fast-limited 3 before write 1792770166.739 1792770196.739 1500 0 0 3.59 4.62 9.58
158 D-fast-limited-r3 D fast-limited 3 pass write 1792770197.612 1792770249.772 2608 0 0 3.73 4.98 8.52
159 D-fast-limited-r3 D fast-limited 3 after write 1792770249.783 1792770279.783 1500 0 0 3.61 4.71 8.69
160 D-fast-limited-r3 D fast-limited 3 quiet write 1792770166.739 1792770279.783 3000 0 0 3.6 4.68 9.2
161 D-fast-limited-r3 D fast-limited 3 list write 1792770197.612 1792770247.496 2494 0 0 3.69 4.89 7.96
162 D-fast-limited-r3 D fast-limited 3 before read 1792770166.739 1792770196.739 1500 0 0 2.85 3.84 4.82
163 D-fast-limited-r3 D fast-limited 3 pass read 1792770197.612 1792770249.772 2608 0 0 3.04 4.14 8.01
164 D-fast-limited-r3 D fast-limited 3 after read 1792770249.783 1792770279.783 1500 0 0 2.88 3.89 5.44
165 D-fast-limited-r3 D fast-limited 3 quiet read 1792770166.739 1792770279.783 3000 0 0 2.87 3.87 5.24
166 D-fast-limited-r3 D fast-limited 3 list read 1792770197.612 1792770247.496 2494 0 0 3.02 4.07 8.01
167 D-stand-unlimited-r3 D stand-unlimited 3 before download 1792770251.687 1792770281.687 9000 0 0 3.28 5.38 7.8
168 D-stand-unlimited-r3 D stand-unlimited 3 pass download 1792770285.114 1792770311.241 7838 0 0 3.47 5.74 7.57
169 D-stand-unlimited-r3 D stand-unlimited 3 after download 1792770311.251 1792770341.251 8999 0 0 3.32 5.49 11.49
170 D-stand-unlimited-r3 D stand-unlimited 3 quiet download 1792770251.687 1792770341.251 17999 0 0 3.3 5.42 9.75
171 D-stand-unlimited-r3 D stand-unlimited 3 list download 1792770285.114 1792770303.633 5556 0 0 3.5 5.75 7.46
172 D-stand-unlimited-r3 D stand-unlimited 3 before write 1792770251.687 1792770281.687 1500 0 0 3.59 4.66 8.24
173 D-stand-unlimited-r3 D stand-unlimited 3 pass write 1792770285.114 1792770311.241 1307 0 0 4.02 5.05 7.18
174 D-stand-unlimited-r3 D stand-unlimited 3 after write 1792770311.251 1792770341.251 1500 0 0 3.61 4.78 12.14
175 D-stand-unlimited-r3 D stand-unlimited 3 quiet write 1792770251.687 1792770341.251 3000 0 0 3.6 4.7 10.3
176 D-stand-unlimited-r3 D stand-unlimited 3 list write 1792770285.114 1792770303.633 926 0 0 4.06 5.08 7.0
177 D-stand-unlimited-r3 D stand-unlimited 3 before read 1792770251.687 1792770281.687 1500 0 0 2.87 3.82 4.78
178 D-stand-unlimited-r3 D stand-unlimited 3 pass read 1792770285.114 1792770311.241 1307 0 0 3.19 4.18 5.28
179 D-stand-unlimited-r3 D stand-unlimited 3 after read 1792770311.251 1792770341.251 1500 0 0 2.89 3.99 12.93
180 D-stand-unlimited-r3 D stand-unlimited 3 quiet read 1792770251.687 1792770341.251 3000 0 0 2.87 3.9 7.36
181 D-stand-unlimited-r3 D stand-unlimited 3 list read 1792770285.114 1792770303.633 926 0 0 3.24 4.2 5.28
+139 -1
View File
@@ -1,7 +1,10 @@
# Сверка в процессе уборщика: старт, плановая сверка, остановка, отказ конфигурации, коды
Разделы до «Код 1 разового прохода» сняты с `c1648d9` на рабочем стенде;
последний раздел — с `84f8c35` на временном проекте (правки по verify).
«Код 1 разового прохода» — с `84f8c35` на временном проекте (правки по
verify `track2-reconciler`); «Остановка во время паузы предела скорости»
и вариант `inf` — с `ca0c4b2` (правки по verify `track2-reconcile-cost`),
красные прогоны — на `16f2cde`.
Change `track2-reconciler` (design, решения 1, 8–10; спеки
`storage-consistency` «Плановая сверка», `service-configuration`
@@ -92,6 +95,26 @@ exit=2
[reconcile]`: уборщик не стартует, запись называет поле без значения, код
2 (сценарий «Неверный параметр сверки»).
С правки по verify (S2) — ещё `inf` у предела скорости. Временный проект
`rcpace`, 2026-10-23; поле `instance_id` убрано:
```
== commit 16f2cde (до правки): RECONCILER__MAX_OBJECTS_PER_SECOND=inf reconcile
"event": "Started cleaner"
"reconcile_max_objects_per_second": Infinity
"event": "Finished reconcile pass"
"max_objects_per_second": Infinity
"event": "Stopped cleaner"
"exit_code": 0
exit=0
== commit ca0c4b2: RECONCILER__MAX_OBJECTS_PER_SECOND=inf reconcile
{"event": "Invalid cleaner settings", "module": "cleaner", "errors": [{"loc": "reconciler.max_objects_per_second", "msg": "Input should be a finite number"}], "level": "error", "timestamp": "2026-10-23T17:22:57.627795Z"}
exit=2
```
До правки `inf` проходил, и «Started cleaner» с итогом содержали
`Infinity` — не JSON (выше — поля, выбранные `grep -o` из этих записей).
## Коды разового прохода: 3 и 0
Чужой объект под префиксом вложений (ключ `…/attachments/x-service-<uuid>`,
@@ -171,3 +194,118 @@ driver_exit=0
0 (раздел «Остановка во время сверки» выше);
- `docker stop` — 5,0 с, меньше `stop_grace_period` 10 с, без SIGKILL;
записей «Fixed» нет — ничего не изменено. S3 разморожен в `finally`.
## Остановка во время паузы предела скорости
Требование `graceful-shutdown` с change `track2-reconcile-cost`: сигнал
прерывает паузу предела скорости сразу, а не после неё, и разовый проход
выходит с кодом 1 не позже чем через секунду. С правки по verify (W1)
ещё: вызов S3 перед паузой уже выполнен, и его итог учитывается —
ключи страницы в `listed_objects`, удалённый объект — запись «Fixed» и
счёт `fixed` (спек `service-logging`: `info`, если проход исправил).
Снято `driver.py reconcile-signal --pace` и `--pace --apply` с commit
`ca0c4b2` 2026-10-23 17:21:47–17:22:57 UTC. Образ `mtusi-messenger:lab4`
собран из того же дерева (`make failure_checks`, `sha256:82e38446…`).
Проект compose — **временный** `rcpace`, устроенный как `rcsig` выше:
хранилища на tmpfs, порты не публикуются, синтетические секреты, без
плановой сверки (`RECONCILER__INTERVAL_SECONDS: "0"`), сервисы
`postgres`, `s3`, `migrate`, `s3-bootstrap`, `cleaner` (`docker compose
up -d --no-build --wait cleaner`). После — `docker compose down -v`:
контейнеров и сети `rcpace` нет, volumes — 157, как до.
```
$ COMPOSE_PROJECT_NAME=rcpace COMPOSE_FILE=… COMPOSE_ENV_FILES=… python3 .claude/skills/run-mtusi-messenger/driver.py reconcile-signal --pace
rcpace: 8 probe objects put
docker stop while reconcile waits for the rate limit pause
rcpace: probe objects deleted
== records of the one-off reconcile
{"event": "Started cleaner", "level": "info", "mode": "reconcile", "reconcile_max_objects_per_second": 1.0, "reconcile_apply": false, "timestamp": "2026-10-23T17:21:54.438005Z"}
{"event": "Finished reconcile pass", "level": "warning", "listed_objects": 8, "found": {}, "fixed": {}, "storage_objects": 8, "s3_requests": {"list": 1, "head": 0, "get": 0, "delete": 0}, "max_objects_per_second": 1.0, "duration_ms": 2536, "interrupted_by": "stop", "timestamp": "2026-10-23T17:21:56.975051Z"}
{"event": "Stopped cleaner", "level": "info", "exit_code": 1, "timestamp": "2026-10-23T17:21:56.976682Z"}
docker stop took 0.2 s, container exited 0.06 s after the kill event, exit code 1
Started cleaner (mode reconcile) expected yes got yes
Started cleaner reconcile_max_objects_per_second expected 1 got 1
exit code expected 1 got 1
Finished reconcile pass interrupted_by expected stop got stop
Stopped cleaner exit_code expected 1 got 1
Fixed storage discrepancy records expected 0 got 0
exited within 1 s after the signal expected yes got yes
Finished reconcile pass listed_objects expected 8 got 8
PASS: one-off reconcile stopped by SIGTERM during the rate limit pause: exit 1 within a second
driver_exit=0
$ COMPOSE_PROJECT_NAME=rcpace COMPOSE_FILE=… COMPOSE_ENV_FILES=… python3 .claude/skills/run-mtusi-messenger/driver.py reconcile-signal --pace --apply
rcpace: 8 probe objects put
waiting 19 s: probe objects older than grace
docker stop while reconcile waits for the rate limit pause after a DELETE
rcpace: probe objects left after the pass: 4
rcpace: probe objects deleted
== records of the one-off reconcile
{"event": "Started cleaner", "level": "info", "mode": "reconcile", "reconcile_max_objects_per_second": 1.0, "reconcile_apply": true, "timestamp": "2026-10-23T17:22:25.141347Z"}
{"event": "Fixed storage discrepancy", "level": "info", "kind": "orphan_object", "action": "deleted_object", "object_key": "rcpace/attachments/3bbc29cf-6bb5-4026-b8b3-b6ed4105adf7/original", "timestamp": "2026-10-23T17:22:42.147695Z"}
{"event": "Fixed storage discrepancy", "level": "info", "kind": "orphan_object", "action": "deleted_object", "object_key": "rcpace/attachments/6965ede4-8b70-4e51-ba56-5a23fd8e5291/original", "timestamp": "2026-10-23T17:22:43.131113Z"}
{"event": "Fixed storage discrepancy", "level": "info", "kind": "orphan_object", "action": "deleted_object", "object_key": "rcpace/attachments/6be1f057-2d80-41bf-a63a-482761dad8fe/original", "timestamp": "2026-10-23T17:22:44.135408Z"}
{"event": "Fixed storage discrepancy", "level": "info", "kind": "orphan_object", "action": "deleted_object", "object_key": "rcpace/attachments/b13ae849-fb7d-4c1d-8c1c-5d2add1d688b/original", "timestamp": "2026-10-23T17:22:45.131653Z"}
{"event": "Found storage discrepancy", "level": "warning", "kind": "orphan_object", "object_key": "rcpace/attachments/bd29861d-cf58-4596-93b0-b81d0f43c2ef/original", "timestamp": "2026-10-23T17:22:45.132311Z"}
{"event": "Found storage discrepancy", "level": "warning", "kind": "orphan_object", "object_key": "rcpace/attachments/bf525794-17fc-4c93-9e3c-ec683810af9f/original", "timestamp": "2026-10-23T17:22:45.132469Z"}
{"event": "Found storage discrepancy", "level": "warning", "kind": "orphan_object", "object_key": "rcpace/attachments/d673f5ac-bd35-4699-9fca-bc2b3484189f/original", "timestamp": "2026-10-23T17:22:45.132551Z"}
{"event": "Found storage discrepancy", "level": "warning", "kind": "orphan_object", "object_key": "rcpace/attachments/fc698da5-bb92-484c-a80f-21832993545e/original", "timestamp": "2026-10-23T17:22:45.132655Z"}
{"event": "Finished reconcile pass", "level": "warning", "listed_objects": 8, "found": {"orphan_object": 8}, "fixed": {"orphan_object": 4}, "storage_objects": 20, "s3_requests": {"list": 1, "head": 8, "get": 0, "delete": 4}, "max_objects_per_second": 1.0, "duration_ms": 20002, "interrupted_by": "stop", "timestamp": "2026-10-23T17:22:45.133437Z"}
{"event": "Stopped cleaner", "level": "info", "exit_code": 1, "timestamp": "2026-10-23T17:22:45.143699Z"}
docker stop took 0.2 s, container exited 0.04 s after the kill event, exit code 1
Started cleaner (mode reconcile) expected yes got yes
Started cleaner reconcile_max_objects_per_second expected 1 got 1
exit code expected 1 got 1
Finished reconcile pass interrupted_by expected stop got stop
Stopped cleaner exit_code expected 1 got 1
Fixed storage discrepancy records expected 4 got 4
exited within 1 s after the signal expected yes got yes
Finished reconcile pass listed_objects expected 8 got 8
probe objects deleted before the signal expected >0 got >0
Finished reconcile pass fixed orphan_object expected 4 got 4
PASS: one-off reconcile --apply stopped by SIGTERM during the rate limit pause: exit 1 within a second, every deleted object fixed
driver_exit=0
```
- `--pace`: восемь объектов пробы мимо API под `<база>/attachments/` с
ключом, которого API не пишет. Dry-run `reconcile
--max-objects-per-second 1` после первой страницы списка затронул 8
объектов S3 и ушёл в паузу (~8 с). Через 2 с после «Started cleaner» —
`docker stop`. Итог — `interrupted_by: "stop"`, код 1, выход через 0,06 с
после сигнала, и ключи страницы — в `listed_objects` (8).
- `--pace --apply`: восемь объектов `<id>/original` без строки, через
19 с — `reconcile --apply --max-objects-per-second 1` с grace 18 с.
Список (8 с) и перепроверка (8 HEAD) — до ~16 с, затем DELETE раз в
секунду с паузой после каждого; `docker stop` через 19,5 с после
«Started cleaner» пришёл в паузу после четвёртого DELETE. Удалено 4
объекта, и у каждого — запись «Fixed» (`info`, `deleted_object`), в
итоге `fixed.orphan_object` 4; оставшиеся 4 — «Found». Выход через
0,04 с после сигнала.
- Тот же сигнал во время ожидания вызова S3 (раздел выше) — 5,0 с:
текущий вызов доводится до срока, а паузу предела ждать не нужно.
### Красный прогон до правки W1 (`16f2cde`)
Тот же драйвер (из рабочего дерева с правкой) на образе `src` `16f2cde`
(собран `make failure_checks` до правки `src`), временный `rcpace`,
2026-10-23 16:39 UTC. Сигнал в паузе бросал остановку сразу после
удачного вызова, и его итог терялся:
```
$ … driver.py reconcile-signal --pace
{"event": "Finished reconcile pass", "level": "warning", "listed_objects": 0, "found": {}, "fixed": {}, "storage_objects": 8, "s3_requests": {"list": 1, "head": 0, "get": 0, "delete": 0}, "max_objects_per_second": 1.0, "duration_ms": 2539, "interrupted_by": "stop", "timestamp": "2026-10-23T16:39:08.994956Z"}
Finished reconcile pass listed_objects expected 8 got 0 FAIL
FAIL: 1 check(s) failed
driver_exit=1
$ … driver.py reconcile-signal --pace --apply
rcpace: probe objects left after the pass: 4
{"event": "Finished reconcile pass", "level": "warning", "listed_objects": 8, "found": {"orphan_object": 8}, "fixed": {"orphan_object": 3}, "storage_objects": 20, "s3_requests": {"list": 1, "head": 8, "get": 0, "delete": 4}, "max_objects_per_second": 1.0, "duration_ms": 20004, "interrupted_by": "stop", "timestamp": "2026-10-23T16:39:55.486135Z"}
Fixed storage discrepancy records expected 4 got 3 FAIL
Finished reconcile pass fixed orphan_object expected 4 got 3 FAIL
FAIL: 2 check(s) failed
driver_exit=1
```
Остальные строки таблицы — как в зелёном прогоне. На `16f2cde` четвёртый
удалённый объект (`33a4afe1-…`) попал в журнал `warning` «Found storage
discrepancy», хотя его уже не было: `delete` 4, «Fixed» 3.
+178
View File
@@ -0,0 +1,178 @@
# CI job `application`: сборка, стенд и проверки в раннере Gitea
Свой job по `CONTRIBUTING.md`, «CI»: `.github/workflows/application.yml`
(workflow skeleton `contracts.yml` не менялся), override стенда
`.github/ci/compose.yml` и окружение шагов `.github/ci/stand-env.sh`.
Устройство — `REPORT.md`, раздел «CI» в «Запуск из чистого clone».
## Раннер
Раннеры Gitea fork — `runner-1` и `runner-2`, `act_runner` v0.2.13,
метки `ubuntu-latest`, `ubuntu-22.04`, `ubuntu-24.04` (настройки fork →
Actions → Раннеры, 2026-10-29). По журналу публичного прогона на этом же
Gitea: job — контейнер образа `gitea/runner-images:ubuntu-latest`
(linux/amd64) в своей сети, сокет Docker хоста раннера ему доступен,
стенд compose поднимается соседними контейнерами. Отсюда два ограничения,
которые снимает override:
- bind mount файла рабочего каталога (`./config.toml`,
`./infra/haproxy/haproxy.cfg` и др.) Docker ищет на хосте раннера, а
файлы есть только в контейнере job: `bind source path does not exist`;
- порт стенда на `127.0.0.1` хоста раннера из контейнера job не виден и
на общем хосте может быть занят.
Инструменты образа раннера (`docker run --rm
gitea/runner-images:ubuntu-latest …`, index
`sha256:2992a8a0448aba1c093255787390b2a090fefbfd76cc25db107f527e9bd65d3a`):
```text
PRETTY_NAME="Ubuntu 24.04.5 LTS"
Docker version 29.9.2, build a82e528
Docker Compose version v5.6.1
Python 3.12.3
GNU Make 4.3
curl 8.5.0
OpenSSL 3.0.13 30 Jan 2024
git version 2.56.0
```
## Почему конфиги копируются с переводом строки в конце
`$(cat файл)` срезает последний перевод строки; `stand-env.sh` его
возвращает. Без него HAProxy закреплённого образа конфиг не принимает:
```text
$ haproxy -c -f /c.cfg # infra/haproxy/haproxy.cfg без последнего \n
[ALERT] (1) : config : parsing [/c.cfg:163]: Missing LF on last line, file might have been truncated at position 23.
[ALERT] (1) : config : Error(s) found in configuration file : /c.cfg
[ALERT] (1) : config : Fatal errors found in configuration.
```
С исходным файлом та же команда проходит без вывода.
## Локальный прогон шагов workflow в схеме раннера
2026-10-29, 18:06–18:09 MSK. Хост: Docker Desktop 29.9.2 (ВМ
linux/arm64, 12 CPU, 7,7 GiB), macOS, Apple M3 Pro. Код — рабочее
дерево поверх `de98d77`: файлы будущего commit с job (`git ls-files -co
--exclude-standard`; `.env` и `config.toml` в них не входят).
Схема та же, что у раннера: контейнер `gitea/runner-images:ubuntu-latest`
в своей сети, сокет Docker хоста смонтирован, файлы репозитория
скопированы внутрь архивом (не смонтированы). Шаги — блоки `run`
`application.yml` как есть, `bash --noprofile --norc -e -o pipefail`, в
порядке файла, с `if: failure()` и `if: always()`. `${{ github.run_id
}}` — `sim1`. Шаг Checkout пропущен: файлы уже скопированы, а commit на
Gitea ещё не опубликован. Сам checkout проверен отдельно в том же образе
на `main` fork: `git fetch --depth=1 origin
ec540a1a725862a8619fcb758daec4ad197f0dd5` по https без токена, `git
checkout --detach FETCH_HEAD`, исполняемые биты `scripts/*.sh`
сохранились.
| Шаг | Код | с | Итог |
|---|---|---|---|
| Runner | 0 | 0 | `docker 29.9.2, linux/aarch64, 12 CPU`, Compose v5.6.1, Python 3.12.3 |
| Remove stands of interrupted runs | 0 | 0 | хвостов нет |
| Build and start the stand | 0 | 14 | `new .env with random …` (только имена); образ `mtusi-messenger:safronov-ci-sim1`; проект `mtusi-lab4-safronov-ci-sim1`; `LB ready: 0d9ec34300c1 dd41a7e8f7f9` |
| make check and make test | 0 | 1 | оба `PASS` |
| Bucket is closed to anonymous requests | 0 | 0 | три анонимных GET — 403 |
| Install uv | 0 | 6 | uv 0.12.17 в venv `$RUNNER_TEMP/uv` |
| make student_test | 0 | 62 | `198 passed, 56 deselected in 52.62s` |
| make test-persistence | 0 | 32 | `PASS`, затем обе реплики в LB |
| make test-failover, stop and kill | 0 | 39 | 2 × `PASS`, `failed_attempts` 0 |
| Stand logs | — | — | пропущен (`failure()`) |
| Remove the stand | 0 | 16 | контейнеры, сеть, volumes `…_postgres_data` и `…_s3_data` удалены |
Сборка шла из кэша BuildKit хоста; на раннере первая сборка дольше
(зависимости по `uv.lock` скачиваются заново).
Стенд после старта (`docker compose ps -a`): сервисы рабочего стенда,
конфиги HAProxy, Valkey, bootstrap S3 и `config.toml` — из `configs`, не
из bind mount.
```text
SERVICE STATUS
api Up 3 seconds (healthy)
api Up 3 seconds (healthy)
cleaner Up 3 seconds
haproxy Up 3 seconds (healthy)
migrate Exited (0) 6 seconds ago
postgres Up 11 seconds (healthy)
s3 Up 11 seconds (healthy)
s3-bootstrap Exited (0) 3 seconds ago
valkey Up 11 seconds (healthy)
```
`make check`, `make test` (через `http://haproxy:8080` в сети стенда):
```text
python3 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
python3 tests/smoke.py --base-url "http://haproxy:8080"
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
```
Аноним без подписи:
```text
anonymous GET http://s3:8333/ -> 403
anonymous GET http://s3:8333/messenger -> 403
anonymous GET http://s3:8333/messenger?list-type=2 -> 403
```
`make student_test` (`BASE_URL=http://haproxy:8080 EXPECT_REPLICAS=2 uv
run pytest`, CPython 3.12.3 образа, 102 пакета по `uv.lock`): тесты реплик
выполнены, а не пропущены — `test_download_through_other_replica`,
`test_replay_on_other_replica`, `test_one_session_on_several_replicas`,
`test_write_visible_through_other_replica`,
`test_same_key_through_replicas` — `PASSED`.
```text
coverage: 252 scenarios in 13 specs, 235 tested (70 by make failure_checks), 17 excluded
===================== 198 passed, 56 deselected in 52.62s ======================
```
`make test-persistence ACTION_SCRIPT=scripts/restart.sh` — hook
перезапускает LB, реплики, PostgreSQL, Valkey и S3 этого проекта
(`COMPOSE_PROJECT_NAME`, `COMPOSE_FILE` из окружения job):
```text
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
LB ready: 0d9ec34300c1 dd41a7e8f7f9
```
`make test-failover ACTION_SCRIPT=scripts/stop-one.sh`, затем `make
replicas`, затем то же со `STOP_MODE=kill`:
```text
{"observed_instances_before": 2, "successful_writes": 121, "failed_attempts": 0, "first_recovery_seconds": 1.804}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
{"observed_instances_before": 2, "successful_writes": 125, "failed_attempts": 0, "first_recovery_seconds": 0.858}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
2026-10-29T15:08:18Z TARGET_INSTANCE_ID=dd41a7e8f7f9 container=dd41a7e8f7f9957ba930c4a5d5d1a28eef38f90cdc63e1ff682443d4633c95d7 mode=stop
2026-10-29T15:08:37Z TARGET_INSTANCE_ID=dd41a7e8f7f9 container=dd41a7e8f7f9957ba930c4a5d5d1a28eef38f90cdc63e1ff682443d4633c95d7 mode=kill
```
Тест останавливает реплику, ответившую на его первую отправку: оба раза
это `dd41a7e8f7f9`, в режимах `stop` и `kill`. Отказ каждой реплики по
очереди — `evidence/failover/test-failover.md` и
`evidence/tests/clean-clone-final.md`.
После прогона на хосте нет ни контейнеров, ни volumes, ни сетей, ни
образа прогона (`docker ps -a`, `docker volume ls`, `docker network ls`,
`docker image ls` по `safronov-ci` — пусто).
## Шаг уборки хвостов трогает только свои проекты
Контейнер, volume и сеть с меткой проекта
`mtusi-lab4-safronov-ci-zz9` и контейнер проекта `mtusi-lab4-other`;
блок `run` шага «Remove stands of interrupted runs» в контейнере образа
раннера с сокетом Docker:
```text
remove leftover stand mtusi-lab4-safronov-ci-zz9
step exit=0
```
После него остался только контейнер `mtusi-lab4-other`; контейнер,
volume и сеть проекта `…-ci-zz9` удалены.
+336
View File
@@ -0,0 +1,336 @@
# Итоговая проверка из чистого clone: стенд с LB, S3 и уборщиком
| | |
|---|---|
| Что проверялось | раздел `REPORT.md` «Запуск из чистого clone»: шаг за шагом, как у проверяющего |
| Дата | 2026-10-29 12:46–13:04 UTC |
| Commit | `de98d77` — `git clone --branch solution/bvt2301-safronov` локального репозитория во временный каталог. Рабочее дерево клона чистое, `.env`, `config.toml` и `.venv` нет. Это итоговый код всех changes лабы 4: последний commit кода — `ca0c4b2` (правки по verify `track2-reconcile-cost`), после него — только документы |
| Стенд | временный проект compose `mtusi-lab4-cleancheck`, LB на `127.0.0.1:8090`, остальные порты по умолчанию: PostgreSQL 5433, Valkey 6380, S3 8334, `make test_isolated` 18088. Клон стартовал на пустых volumes PostgreSQL и S3 со своими секретами, как у проверяющего. Рабочий стенд `mtusi-lab4` остановлен и не тронут. После проверки стенд клона удалён (`docker compose down -v`), volumes `mtusi-lab4_postgres_data` и `mtusi-lab4_s3_data` на месте |
| Хост | Docker Desktop 29.9.2, Compose 5.6.1, macOS 26.7.1, Apple M3 Pro, 18 ГиБ; ВМ Docker — 12 CPU, 7,7 GiB, ядро 7.0.14-linuxkit, aarch64; `python3` на `PATH` — 3.11.9, uv 0.12.17 (виртуальное окружение — CPython 3.12.12). Порт 8080 хоста занят посторонним контейнером. Это проверка, а не замер |
**Отличие от последовательности проверяющего — две строки `.env`.**
Порт 8080 на хосте занят посторонним контейнером, а рабочий стенд с
тем же именем проекта трогать нельзя. Поэтому до `make env_setup` в клон
записан `.env` из двух строк: `COMPOSE_PROJECT_NAME=mtusi-lab4-cleancheck`
и `APP_OUT_PORT=8090`. Это штатный способ из раздела «Нужно на машине».
Остальные переменные, в том числе все секреты, дописал `make env_setup`
из `.env.example`: этот путь проходит проверяющий со старым `.env`.
Цели `Makefile`, `scripts/restart.sh`, `scripts/stop-one.sh`,
`run_failures.py`, `run_isolated.py` и драйвер берут проект и порт у
`docker compose` и из `.env`, поэтому шаги те же. Отличие одно:
`BASE_URL=http://localhost:8090` у `make test`, `make test-persistence`,
`make test-failover` и `make student_test`, а у драйвера — `--port
8090`.
Значения секретов не выводились. Поиск всех десяти значений из `.env`
клона по полному журналу проверки — 0 совпадений.
Все шаги ниже завершились с кодом 0. Длительности — из журнала, `exit` —
код команды.
## Подготовка и запуск
```text
$ git clone --branch solution/bvt2301-safronov <репозиторий> clean-clone && cd clean-clone
$ git log --oneline -1; git status --short | wc -l; ls .env config.toml .venv
de98d77 docs: archive track2-reconcile-cost and sync its specs
0
ls: .env: No such file or directory
ls: .venv: No such file or directory
ls: config.toml: No such file or directory
$ grep -v '^#' .env # записан до env_setup: комментарий и две строки, см. выше
COMPOSE_PROJECT_NAME=mtusi-lab4-cleancheck
APP_OUT_PORT=8090
$ make env_setup
added to existing .env: APP__PORT API_REPLICAS POSTGRES_USER POSTGRES_PASSWORD POSTGRES_DB POSTGRES_HOST POSTGRES_PORT POSTGRES_OUT_PORT DATABASE__HOST DATABASE__PORT DATABASE__USER DATABASE__PASSWORD DATABASE__NAME VALKEY_PASSWORD VALKEY_HOST VALKEY_PORT VALKEY_OUT_PORT CACHE__HOST CACHE__PORT CACHE__PASSWORD S3__BUCKET S3_ROOT_ACCESS_KEY S3_ROOT_SECRET_KEY S3_JWT_SIGNING_KEY S3_API_ACCESS_KEY S3_API_SECRET_KEY S3_CLEANER_ACCESS_KEY S3_CLEANER_SECRET_KEY S3_HOST S3_PORT S3_OUT_PORT S3__HOST S3__PORT S3__ACCESS_KEY_ID S3__SECRET_ACCESS_KEY TEST_APP_PORT
env ready: .env, config.toml
$ grep -c -E '^(POSTGRES|VALKEY)_PASSWORD=.{32}$' .env # случайные пароли
2
$ docker compose config | sed -n 's/^name: //p'
mtusi-lab4-cleancheck
$ make run_docker # exit 0, 11 с (слои — из кэша BuildKit)
Image mtusi-messenger:lab4 Built
Volume mtusi-lab4-cleancheck_postgres_data Created
Volume mtusi-lab4-cleancheck_s3_data Created
Container mtusi-lab4-cleancheck-migrate-1 Exited
Container mtusi-lab4-cleancheck-s3-bootstrap-1 Exited
$ make replicas # exit 0, 3 с: ожидание healthy
$ docker compose ps -a --format 'table {{.Name}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}'
NAME IMAGE STATUS PORTS
mtusi-lab4-cleancheck-api-1 mtusi-messenger:lab4 Up 2 seconds (healthy) 8080/tcp
mtusi-lab4-cleancheck-api-2 mtusi-messenger:lab4 Up 3 seconds (healthy) 8080/tcp
mtusi-lab4-cleancheck-cleaner-1 mtusi-messenger:lab4 Up 2 seconds 8080/tcp
mtusi-lab4-cleancheck-haproxy-1 haproxy:3.4.6-trixie@sha256:e273… Up 2 seconds (health: starting) 127.0.0.1:8090->8080/tcp
mtusi-lab4-cleancheck-migrate-1 mtusi-messenger:lab4 Exited (0) 7 seconds ago
mtusi-lab4-cleancheck-postgres-1 postgres:18.6-trixie@sha256:5a5a… Up 10 seconds (healthy) 127.0.0.1:5433->5432/tcp
mtusi-lab4-cleancheck-s3-1 chrislusf/seaweedfs:4.48@sha256:4e61… Up 11 seconds (healthy) 127.0.0.1:8334->8333/tcp
mtusi-lab4-cleancheck-s3-bootstrap-1 chrislusf/seaweedfs:4.48@sha256:4e61… Exited (0) 3 seconds ago
mtusi-lab4-cleancheck-valkey-1 valkey/valkey:9.1.2-trixie@sha256:4186… Up 10 seconds (healthy) 127.0.0.1:6380->6379/tcp
```
Digest в выводе сокращён, полностью он в `docker-compose.yml`. `8080/tcp`
у реплик и уборщика — `EXPOSE` образа: опубликованного порта у них нет,
API на хосте — только через HAProxy. Уборщик HTTP не слушает.
```text
$ docker compose logs migrate --no-log-prefix | <поле event>
Running upgrade -> 16c279725564, added messenger tables
Running upgrade 16c279725564 -> 42bc3b9be38f, added sessions and password hashes
Running upgrade 42bc3b9be38f -> 7652184b7016, added idempotency keys
Running upgrade 7652184b7016 -> e656d6bbe1a4, added message instance id
Running upgrade e656d6bbe1a4 -> ef25d50b01a8, added attachments tables
Running upgrade ef25d50b01a8 -> 739b8f04d5fb, added pending attachments index
Running upgrade 739b8f04d5fb -> 5c3e1f0a9b7d, added attachments lost_at
Finished alembic
$ docker compose logs s3-bootstrap --no-log-prefix
s3-bootstrap: bucket messenger created
s3-bootstrap: user api created
s3-bootstrap: user cleaner created
s3-bootstrap: checks passed (api key put/get; cleaner key get/delete and list messenger/attachments/; api key list and bucket create, cleaner key put and list of the bucket, anonymous get and list denied)
$ curl -s -o /dev/null -w '%{http_code}\n' http://localhost:8090/health/ready
200
```
## Публичные проверки skeleton
```text
$ make check
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
$ uv sync && make validate PYTHON=.venv/bin/python # exit 0
Installed 102 packages in 169ms
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
$ make test BASE_URL=http://localhost:8090
python3 tests/smoke.py --base-url "http://localhost:8090"
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
$ make instances
user lb_cdce70f9: one login, 12 requests with one token
91fbe934191d: 6
94a968393dd6: 6
instances: 2
$ make test-persistence ACTION_SCRIPT=scripts/restart.sh BASE_URL=http://localhost:8090 # 29 с
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
$ docker compose ps -a --format '{{.Name}} {{.Status}}' # сразу после hook
mtusi-lab4-cleancheck-api-1 Up 1 second (healthy)
mtusi-lab4-cleancheck-api-2 Up 1 second (healthy)
mtusi-lab4-cleancheck-cleaner-1 Up 38 seconds
mtusi-lab4-cleancheck-haproxy-1 Up 1 second (healthy)
mtusi-lab4-cleancheck-migrate-1 Exited (0) 2 seconds ago
mtusi-lab4-cleancheck-postgres-1 Up 27 seconds (healthy)
mtusi-lab4-cleancheck-s3-1 Up 12 seconds (healthy)
mtusi-lab4-cleancheck-s3-bootstrap-1 Exited (0) 1 second ago
mtusi-lab4-cleancheck-valkey-1 Up 27 seconds (healthy)
```
Hook перезапустил LB, обе реплики, PostgreSQL, Valkey и S3: у них время
работы меньше длительности hook. Уборщик hook не трогает (он переживает
рестарт хранилищ сам) — `Up 38 seconds` со старта стенда. `migrate` и
`s3-bootstrap` прошли повторно при старте реплик (no-op).
```text
$ STOP_ONE_LOG=<файл> make test-failover ACTION_SCRIPT=scripts/stop-one.sh BASE_URL=http://localhost:8090 # 16 с
{"observed_instances_before": 2, "successful_writes": 121, "failed_attempts": 0, "first_recovery_seconds": 1.08}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
$ cat <файл>; docker compose ps -a --format '{{.Name}} {{.Status}}' | grep api
2026-10-29T12:46:50Z TARGET_INSTANCE_ID=91fbe934191d container=91fbe934191d1d08cd0b04dc85f5e0fbe67da16bdbcfd9e96321e021e217c08b mode=stop
mtusi-lab4-cleancheck-api-1 Up 17 seconds (healthy)
mtusi-lab4-cleancheck-api-2 Exited (0) 14 seconds ago
$ make replicas; curl -s -o /dev/null -w '%{http_code}\n' http://localhost:8090/health/live
200
$ STOP_ONE_LOG=<файл> make test-failover ACTION_SCRIPT=scripts/stop-one.sh BASE_URL=http://localhost:8090 # 16 с
{"observed_instances_before": 2, "successful_writes": 116, "failed_attempts": 0, "first_recovery_seconds": 1.201}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
$ cat <файл>; docker compose ps -a --format '{{.Name}} {{.Status}}' | grep api
2026-10-29T12:46:50Z TARGET_INSTANCE_ID=91fbe934191d container=91fbe934191d1d08cd0b04dc85f5e0fbe67da16bdbcfd9e96321e021e217c08b mode=stop
2026-10-29T12:47:08Z TARGET_INSTANCE_ID=94a968393dd6 container=94a968393dd656fe53a6700f0d43221ac8d8ea8c3252fd0a377dc2a81d111417 mode=stop
mtusi-lab4-cleancheck-api-1 Exited (0) 14 seconds ago
mtusi-lab4-cleancheck-api-2 Up 17 seconds (healthy)
$ make replicas
```
Остановлены обе реплики по очереди: ID контейнера в строке
`STOP_ONE_LOG` равен `TARGET_INSTANCE_ID`, выбранному тестом, и
остановлен именно он (`Exited (0)`).
## Приватность bucket и вложения
```text
$ make s3_check # 3 с
S3 s3:8333 (host 127.0.0.1:8334), bucket messenger, image chrislusf/seaweedfs:4.48
where check expected got verdict
server anonymous access setting none none ok
server api key put object 200 200 ok
server api key get object 200 200 ok
server api key head object 200 200 ok
server api key get missing object 404 404 ok
server api key list objects 403 403 ok
server api key create bucket 403 403 ok
server api key delete bucket 403 403 ok
server api key get bucket policy 403 403 ok
server api key put bucket policy 403 403 ok
server api key get bucket acl 403 403 ok
server api key put bucket acl public-read 403 403 ok
server api key put object acl public-read 403 403 ok
server api key put cleaner probe object 200 200 ok
server cleaner key get object 200 200 ok
server cleaner key head object 200 200 ok
server cleaner key delete object 204 204 ok
server cleaner key delete object again 204 204 ok
server api key get deleted object 404 404 ok
server cleaner key delete missing object 204 204 ok
server cleaner key put object 403 403 ok
server cleaner key list objects 403 403 ok
server cleaner key list attachments prefix 200 200 ok
server cleaner key list other prefix 403 403 ok
server cleaner key create bucket 403 403 ok
server cleaner key delete bucket 403 403 ok
server cleaner key get bucket policy 403 403 ok
server cleaner key put bucket policy 403 403 ok
server cleaner key get bucket acl 403 403 ok
server cleaner key put bucket acl public-read 403 403 ok
server cleaner key put object acl public-read 403 403 ok
server api key put object to other bucket 403 403 ok
server api key get object from other bucket 403 403 ok
server api key list other bucket 403 403 ok
server api key delete other bucket 403 403 ok
server cleaner key get object from other bucket 403 403 ok
server cleaner key delete object in other bucket 403 403 ok
server cleaner key list other bucket 403 403 ok
server cleaner key delete other bucket 403 403 ok
server anonymous get object 403 403 ok
server anonymous head object 403 403 ok
server anonymous get missing object 403 403 ok
server anonymous list objects 403 403 ok
server anonymous list buckets 403 403 ok
server anonymous put object 403 403 ok
server anonymous create bucket 403 403 ok
host anonymous get object 403 403 ok
host anonymous head object 403 403 ok
host anonymous get missing object 403 403 ok
host anonymous list objects 403 403 ok
host anonymous list buckets 403 403 ok
host anonymous put object 403 403 ok
server listening outside loopback 8333 18333 8333 18333 ok
network anonymous get object 403 403 ok
network anonymous head object 403 403 ok
network anonymous get missing object 403 403 ok
network anonymous list objects 403 403 ok
network anonymous list buckets 403 403 ok
network anonymous put object 403 403 ok
network port 8333 (S3 API / gRPC of gateway) open open ok
network port 18333 (S3 API / gRPC of gateway) open open ok
network port 8080 (loopback only) closed closed ok
network port 8888 (loopback only) closed closed ok
network port 9333 (loopback only) closed closed ok
network port 18080 (loopback only) closed closed ok
network port 18888 (loopback only) closed closed ok
network port 19333 (loopback only) closed closed ok
network port 39821 (loopback only) closed closed ok
server temporary buckets left 0 0 ok
server probe objects left 0 0 ok
PASS: 70 checks, bucket messenger is private
$ python3 .claude/skills/run-mtusi-messenger/driver.py --port 8090 attachment-failover --mode stop # 4 с
mode: stop; fixture sample.png: 111817 bytes
sha256 uploaded: 99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75
sha256 downloaded: 99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75
step expected got x-instance-id
alice uploads 201 201 94a968393dd6
alice sends message 201 201 91fbe934191d
stop-one.sh stop 0 0 94a968393dd6
bob downloads 200 200 91fbe934191d
bob reads metadata 200 200 91fbe934191d
eve reads metadata 404 404 91fbe934191d
eve downloads 404 404 91fbe934191d
make replicas 0 0
LB slots UP 2 2
PASS: accepted by 94a968393dd6, served by 91fbe934191d after stop, sha256 matches, outsider gets 404
$ python3 .claude/skills/run-mtusi-messenger/driver.py --port 8090 attachment-storage # 2 с
upload via 94a968393dd6: object_key messenger/attachments/bf97f566-2bc7-4fbd-bb65-9eee25af4404/original
upload via 91fbe934191d: object_key messenger/attachments/3b703856-69cc-40c1-9249-f4033820e321/original
docker diff 94a968393dd6: 2 changes
C /app
A /app/config.toml
docker diff 91fbe934191d: 2 changes
C /app
A /app/config.toml
bytea columns expected sha256 got sha256
octet_length(sha256) expected 32 got 32
filename not in key expected no got no
object in bucket, bytes expected 111817 got 111817
anonymous GET of the key expected 403 got 403
downloaded sha256 = uploaded expected yes got yes
original files in 94a968393dd6 expected 0 got 0
original files in 91fbe934191d expected 0 got 0
PASS: metadata in PostgreSQL, bytes only in the private bucket messenger, none in the API containers
```
У `attachment-storage` строки второй загрузки повторяют первую и здесь
опущены; полный вывод того же вида — `evidence/attachments/storage.md`.
## Свои тесты, сверка, отказы
```text
$ make student_test BASE_URL=http://localhost:8090 # 42 с
BASE_URL=http://localhost:8090 EXPECT_REPLICAS=2 uv run pytest
collecting ... collected 254 items / 56 deselected / 198 selected
coverage: 252 scenarios in 13 specs, 235 tested (70 by make failure_checks), 17 excluded
key race through replicas: {'94a968393dd6': 5, '91fbe934191d': 5}
===================== 198 passed, 56 deselected in 41.24s ======================
$ make reconcile # 5 с, dry-run, exit 0
{"event": "Finished reconcile pass", "module": "attachment_reconcile_service", "method": "reconcile", "apply": false, "strategy": "batch", "deep": false, "listed_objects": 74, "checked_rows": 74, "found": {}, "fixed": {}, "remaining": 0, "fresh_objects": 0, "fresh_rows": 0, "lost_known": 0, "refused": false, "unlogged": 0, "unchecked": 0, "interrupted_by": null, "duration_ms": 197, "max_objects_per_second": 2000.0, "storage_objects": 74, "s3_requests": {"list": 1, "head": 0, "get": 0, "delete": 0}, "read_bytes": 0, "db_sessions": 3, "phase_ms": {"list": 131, "rows": 64, "stale": 2, "recheck": 0, "act": 0}, "level": "info"}
$ make test_isolated # 88 с
[test_isolated] database=test_messenger objects=/buckets/messenger/test_messenger/ container=mtusi-lab4-cleancheck-test-api base_url=http://127.0.0.1:18088
[test_isolated] make test
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
[test_isolated] make student_test
=========== 193 passed, 5 skipped, 56 deselected in 75.43s (0:01:15) ===========
[test_isolated] cleanup
[test_isolated] remove objects /buckets/messenger/test_messenger/
[test_isolated] results: {'test': 0, 'student_test': 0}
$ make failure_checks # 857 с
[failure_checks] project=mtusi-lab4-cleancheck-failures (working stand: mtusi-lab4-cleancheck)
[failure_checks] start cleaner: grace 20 s, interval 1 s, reconcile interval 0 s (0 — off)
[failure_checks] pytest -m fault
collecting ... collected 254 items / 198 deselected / 56 selected
================ 56 passed, 198 deselected in 834.00s (0:13:54) ================
[failure_checks] postgres log: 467 lines, crash markers 0; "too many clients" 30, "administrator command" 148
[failure_checks] cleanup
[failure_checks] results: {'fault': 0, 'postgres': 0}
```
Сверка нашла 74 объекта и 74 строки — вложения, загруженные шагами
выше, — и ни одного расхождения. Пять пропусков `make test_isolated` —
тесты реплик против одного процесса, с причиной «one API process
(EXPECT_REPLICAS=1): replica checks need the stand with the load
balancer». «too many clients» и «administrator command» в журнале
PostgreSQL стенда отказов — внесённые тестами отказы (заполнение
`max_connections`, остановка PostgreSQL), признаков аварийного
перезапуска нет. После `make failure_checks` контейнеров и volumes
проекта `mtusi-lab4-cleancheck-failures` не осталось, стенд клона
работал все 17 минут.
## Уборка
```text
$ docker compose down -v --remove-orphans # проект mtusi-lab4-cleancheck
Volume mtusi-lab4-cleancheck_postgres_data Removed
Volume mtusi-lab4-cleancheck_s3_data Removed
Network mtusi-lab4-cleancheck_default Removed
$ docker volume ls --format '{{.Name}}' | grep mtusi-lab4
mtusi-lab4_postgres_data
mtusi-lab4_s3_data
```
+251 -5
View File
@@ -1,5 +1,131 @@
# `make failure_checks`: проверки отказов с уборщиком, согласованностью БД и S3, местами загрузки, сверкой и простоем S3
- Дата: 2026-10-23, 17:06:13–17:21:11 UTC.
- Commit: `ca0c4b2` (правки по verify change `track2-reconcile-cost`).
Рабочее дерево чистое, образ `mtusi-messenger:lab4` собран из него.
- Стенд отказов — как в снимке `723b6c3` ниже: проект
`mtusi-lab4-failures`, свои PostgreSQL, Valkey и S3 с bootstrap,
уборщик с grace 20 с, интервалом 1 с и без плановой сверки, четыре
API. Рабочий стенд `mtusi-lab4` в это время запущен на том же коде
(`make rolling_update APP_OUT_PORT=8090`: реплики `api-29`, `api-30`,
уборщик пересоздан, LB на `127.0.0.1:8090`), до и после прогона — те же
контейнеры.
- Проверки change `track2-reconcile-cost` — 5 исходных
(`test_reconcile_head_strategy_same_findings`,
`test_reconcile_deep_checksum`,
`test_reconcile_restore_needs_same_bytes`, `test_reconcile_rate_limit`,
`test_reconcile_limit_stops_rechecks`) и 2 по замечаниям verify
(`test_reconcile_row_with_other_id_key`,
`test_reconcile_fresh_overwrite_untouched`). Красные прогоны — разделы
«Красный прогон до кода `track2-reconcile-cost`» и «Красный прогон
тестов verify» в конце файла.
- Прежний снимок с `0072dbe` (до правок по verify): 54 из 54, pytest
712 с.
## Итог: код 0, 56 из 56
Код команды — 0, pytest — 877 с, вся команда — 898 с (54 из 54 за 712 с
на `0072dbe`: +2 проверки verify, ~1,5 мин, остальное — разброс шумного
хоста; 49 из 49 за 552 с в снимке `723b6c3`). Ниже
— вывод от запуска pytest до конца. Опущены сборка образа (из кэша),
старт хранилищ, миграции, bootstrap S3 и уборщик: они те же, что в
полном выводе снимка `723b6c3`. Путь к рабочему каталогу в строках
`platform` и `rootdir` заменён на `…`. В PostgreSQL стенда признаков
аварийного перезапуска нет. «too many clients» и «administrator command»
— следы проверок предела соединений и остановок PostgreSQL. Контейнеров,
volumes и сети проекта `mtusi-lab4-failures` после прогона нет.
```
$ make failure_checks
env ready: .env, config.toml
python3 student-tests/run_failures.py
[failure_checks] project=mtusi-lab4-failures (working stand: mtusi-lab4)
[failure_checks] build image
…
[failure_checks] start cleaner: grace 20 s, interval 1 s, reconcile interval 0 s (0 — off)
…
[failure_checks] start api containers
[failure_checks] ready: api=http://127.0.0.1:60328 tight=http://127.0.0.1:60332 uploads=http://127.0.0.1:60336 s3=http://127.0.0.1:60340
[failure_checks] pytest -m fault
============================= test session starts ==============================
platform darwin -- Python 3.12.12, pytest-9.1.1, pluggy-1.6.0 -- …/.venv/bin/python
cachedir: .pytest_cache
rootdir: …
configfile: pyproject.toml
testpaths: student-tests
plugins: anyio-4.15.1
collecting ... collected 254 items / 198 deselected / 56 selected
student-tests/test_failures.py::test_expired_token PASSED [ 1%]
student-tests/test_failures.py::test_use_does_not_extend_session PASSED [ 3%]
student-tests/test_failures.py::test_token_while_database_stopped PASSED [ 5%]
student-tests/test_failures.py::test_members_failure_rolls_back_chat PASSED [ 7%]
student-tests/test_failures.py::test_database_stopped_and_back PASSED [ 8%]
student-tests/test_failures.py::test_pool_exhausted PASSED [ 10%]
student-tests/test_failures.py::test_connection_limit_reached PASSED [ 12%]
student-tests/test_failures.py::test_pool_keeps_connections PASSED [ 14%]
student-tests/test_failures.py::test_readiness_without_database PASSED [ 16%]
student-tests/test_failures.py::test_readiness_without_cache PASSED [ 17%]
student-tests/test_failures.py::test_readiness_without_object_storage[stop] PASSED [ 19%]
student-tests/test_failures.py::test_readiness_without_object_storage[pause] PASSED [ 21%]
student-tests/test_failures.py::test_flush_cache PASSED [ 23%]
student-tests/test_failures.py::test_valkey_stopped PASSED [ 25%]
student-tests/test_failures.py::test_valkey_paused PASSED [ 26%]
student-tests/test_failures.py::test_valkey_back PASSED [ 28%]
student-tests/test_failures.py::test_message_failure_keeps_key_free PASSED [ 30%]
student-tests/test_failures.py::test_database_outage_keeps_key_free PASSED [ 32%]
student-tests/test_failures.py::test_key_free_after_ttl PASSED [ 33%]
student-tests/test_failures.py::test_upload_with_object_storage_stopped PASSED [ 35%]
student-tests/test_failures.py::test_rejected_uploads_leave_nothing PASSED [ 37%]
student-tests/test_failures.py::test_metadata_insert_failure PASSED [ 39%]
student-tests/test_failures.py::test_interrupted_body PASSED [ 41%]
student-tests/test_failures.py::test_ready_failure_compensated PASSED [ 42%]
student-tests/test_failures.py::test_killed_between_put_and_ready PASSED [ 44%]
student-tests/test_failures.py::test_ready_commit_outcome_unknown PASSED [ 46%]
student-tests/test_failures.py::test_upload_outlives_grace PASSED [ 48%]
student-tests/test_failures.py::test_cleaner_failure_after_object_delete PASSED [ 50%]
student-tests/test_failures.py::test_cleaner_survives_outages PASSED [ 51%]
student-tests/test_failures.py::test_object_storage_stopped PASSED [ 53%]
student-tests/test_failures.py::test_environment_does_not_change_limits PASSED [ 55%]
student-tests/test_failures.py::test_object_storage_paused PASSED [ 57%]
student-tests/test_failures.py::test_upload_slots_busy PASSED [ 58%]
student-tests/test_failures.py::test_rejections_before_queue PASSED [ 60%]
student-tests/test_failures.py::test_upload_waits_for_slot PASSED [ 62%]
student-tests/test_failures.py::test_slot_released_after_failures PASSED [ 64%]
student-tests/test_failures.py::test_slow_body PASSED [ 66%]
student-tests/test_failures.py::test_upload_after_idle_s3 PASSED [ 67%]
student-tests/test_failures.py::test_reconcile_finds_and_fixes PASSED [ 69%]
student-tests/test_failures.py::test_reconcile_keeps_fresh_used_and_unknown PASSED [ 71%]
student-tests/test_failures.py::test_reconcile_restored_original PASSED [ 73%]
student-tests/test_failures.py::test_reconcile_change_limit PASSED [ 75%]
student-tests/test_failures.py::test_reconcile_keeps_referenced_objects PASSED [ 76%]
student-tests/test_failures.py::test_reconcile_limit_keeps_cleanup PASSED [ 78%]
student-tests/test_failures.py::test_reconcile_foreign_key_untouched PASSED [ 80%]
student-tests/test_failures.py::test_reconcile_object_storage_stopped PASSED [ 82%]
student-tests/test_failures.py::test_reconcile_interrupted_by_database PASSED [ 83%]
student-tests/test_failures.py::test_reconcile_under_load PASSED [ 85%]
student-tests/test_failures.py::test_scheduled_reconcile PASSED [ 87%]
student-tests/test_failures.py::test_reconcile_head_strategy_same_findings PASSED [ 89%]
student-tests/test_failures.py::test_reconcile_deep_checksum PASSED [ 91%]
student-tests/test_failures.py::test_reconcile_restore_needs_same_bytes PASSED [ 92%]
student-tests/test_failures.py::test_reconcile_rate_limit PASSED [ 94%]
student-tests/test_failures.py::test_reconcile_limit_stops_rechecks PASSED [ 96%]
student-tests/test_failures.py::test_reconcile_row_with_other_id_key PASSED [ 98%]
student-tests/test_failures.py::test_reconcile_fresh_overwrite_untouched PASSED [100%]
==================================== PASSES ====================================
================ 56 passed, 198 deselected in 877.24s (0:14:37) ================
[failure_checks] postgres log: 466 lines, crash markers 0; "too many clients" 32, "administrator command" 148
[failure_checks] cleanup
…
Volume mtusi-lab4-failures_s3_data Removed
Volume mtusi-lab4-failures_postgres_data Removed
Network mtusi-lab4-failures_default Removed
[failure_checks] results: {'fault': 0, 'postgres': 0}
```
## Прежний снимок: `723b6c3`, 49 из 49 (вывод полный)
- Дата: 2026-10-22, 23:17:58–23:27:37 UTC.
- Commit: `723b6c3` (change `fix-upload-put-flake`: у клиента S3 нет срока
чтения aiohttp — с `b5983f0`, четвёртый API стенда отказов и
@@ -33,8 +159,6 @@
(раздел «Простой S3 после скачиваний») к `84f8c35`, ~17 с, остальное —
разброс хоста.
## Итог: код 0, 49 из 49
Вывод полный, без фильтра. Обезличено только одно: путь к рабочему
каталогу в строках `platform` и `rootdir` pytest заменён на `…`. Ещё
убран управляющий символ терминала перед `s3-bootstrap-1 exited`.
@@ -891,6 +1015,128 @@ RUN 3: {"request_id": "8a379890584b408391cb6b5951062ee5", "event": "Object stora
```
8 раундов × (скачивания + 1,5 с простоя + 12 загрузок) ≈ 17 с, все 96
загрузок — 201. Полный прогон того же commit — 49 из 49 (раздел «Итог»).
После каждого прогона контейнеров и volumes проекта `mtusi-lab4-failures`
нет, docker volumes — 155.
загрузок — 201. Полный прогон того же commit — 49 из 49 (раздел «Прежний
снимок: `723b6c3`»). После каждого прогона контейнеров и volumes проекта
`mtusi-lab4-failures` нет, docker volumes — 155.
## Красный прогон до кода `track2-reconcile-cost` (apply, 2026-10-23)
Задача 1.3 change: тесты групп 2–4 уже в дереве, а код —
`7f4e626`, последний commit до change. Прогон начался 2026-10-23 в
00:52 UTC. Ожидание — падают все пять новых проверок, каждая по своей
причине. Ниже — строки pytest и строки `E` каждой проверки (traceback,
журналы API и уборщика опущены), путь к рабочему каталогу заменён на
`…`.
```
$ make failure_checks FAULT_ARGS='-k "head_strategy or deep_checksum or restore_needs or rate_limit or limit_stops"'
python3 student-tests/run_failures.py -k "head_strategy or deep_checksum or restore_needs or rate_limit or limit_stops"
[failure_checks] project=mtusi-lab4-failures (working stand: mtusi-lab4)
…
[failure_checks] pytest -m fault
collecting ... collected 252 items / 247 deselected / 5 selected
student-tests/test_failures.py::test_reconcile_head_strategy_same_findings FAILED [ 20%]
student-tests/test_failures.py::test_reconcile_deep_checksum FAILED [ 40%]
student-tests/test_failures.py::test_reconcile_restore_needs_same_bytes FAILED [ 60%]
student-tests/test_failures.py::test_reconcile_rate_limit FAILED [ 80%]
student-tests/test_failures.py::test_reconcile_limit_stops_rechecks FAILED [100%]
__________________ test_reconcile_head_strategy_same_findings __________________
> assert head.kinds(FOUND, ids=ids, keys=keys.values()) == expected
E AssertionError: assert {} == {'messenger/a...ismatch', ...}
E Right contains 5 more items:
E {'0234ecaa-6e55-4776-8659-d3af27a60292': 'stale_pending',
E '1180cb24-5584-4bd0-a931-5f11067a858e': 'missing_object',
E '7bf4df74-37c8-436a-8a90-f7c1a0356082': 'size_mismatch',
E 'messenger/attachments/5a41bab0-6f81-4777-9dea-8a662b6811a6/original': 'orphan_object',
E 'messenger/attachments/7164a0e0-747b-4f5f-919e-6ba7213edb8d/original': 'orphan_object'}...
_________________________ test_reconcile_deep_checksum _________________________
> assert shallow.finished["deep"] is False
E KeyError: 'deep'
___________________ test_reconcile_restore_needs_same_bytes ____________________
wrong = run_reconcile(stand, "apply")
> assert not wrong.about(FIXED, ids=ids)
E AssertionError: assert not [{'event': 'Fixed storage discrepancy', 'instance_id': 'b19a29def666', 'module': 'attachment_reconcile_service', 'method': 'reconcile', ...}]
__________________________ test_reconcile_rate_limit ___________________________
> (record,) = self.events(FINISHED)
E ValueError: not enough values to unpack (expected 1, got 0)
_____________________ test_reconcile_limit_stops_rechecks ______________________
> assert error["changes"] == limit + 1, error
E AssertionError: {'event': 'Reconcile changes exceed limit', 'instance_id': 'f2ffbe88ca96', 'module': 'attachment_reconcile_service', 'method': 'reconcile', ...}
E assert 7 == (2 + 1)
================ 5 failed, 247 deselected in 117.17s (0:01:57) =================
[failure_checks] postgres log: 59 lines, crash markers 0; "too many clients" 0, "administrator command" 0
…
[failure_checks] results: {'fault': 1, 'postgres': 0}
make: *** [failure_checks] Error 1
```
Причины — те, что ожидались:
- `head` и предел скорости: прежний уборщик не знает `--strategy` и
`--max-objects-per-second`. Ошибка argparse (код 2), прохода и его
итога нет: пустой набор находок и нет «Finished reconcile pass»;
- глубокая: в итоге прохода нет поля `deep`;
- возврат оригинала: пометку снял объект того же размера с другими
байтами (прежний код сравнивал только размер);
- предел: прежний код перепроверил всех кандидатов, и в ошибке
`changes` 7, а не `max_changes + 1` = 3.
Стенд отказов после прогона убран. Зелёный прогон всех пяти на коде
change — раздел «Итог» в начале файла (вместе с остальными 49).
## Красный прогон тестов verify `track2-reconcile-cost` (2026-10-23)
Тесты по замечаниям verify W2 и S1 — в их окончательном виде (commit
`ca0c4b2`) — против `src` на `16f2cde`, коде до правки: дерево `git
archive 16f2cde` во временном каталоге, поверх — `student-tests/` из
`ca0c4b2`; образ `mtusi-messenger:lab4` собран `make failure_checks` из
этого дерева. 2026-10-23 ~17:00 UTC, стенд отказов — тот же проект
`mtusi-lab4-failures`. После — образ пересобран из `ca0c4b2` до замены
реплик и полного прогона выше. `.env` временного дерева — свои случайные
секреты, каталог удалён.
```
$ make failure_checks FAULT_ARGS='-k "row_with_other_id_key or fresh_overwrite_untouched"'
…
collecting ... collected 254 items / 252 deselected / 2 selected
student-tests/test_failures.py::test_reconcile_row_with_other_id_key FAILED [ 50%]
student-tests/test_failures.py::test_reconcile_fresh_overwrite_untouched FAILED [100%]
…
> assert own_findings(batch, FOUND, keys.values()) == expected
E AssertionError: assert {('unknown_ob...20e65b34a17')} == {('checksum_m...20e65b34a17')}
E Extra items in the right set:
E ('checksum_mismatch', 'messenger/attachments/a0ccf942-ff0b-4556-84bd-2d7488cd883c/original', 'b279c2a6-a273-42d7-8cf1-d2e8c81d9010')
E ('size_mismatch', 'messenger/attachments/c0a74af8-d37a-42dc-b03a-a20e65b34a17/original', '640601f0-ad14-4436-9af1-94f57dd06609')
…
> assert not run.about(FIXED, ids=ids), run.finished
E AssertionError: {'event': 'Finished reconcile pass', …}
E assert not [{'event': 'Fixed storage discrepancy', …}]
====================== 2 failed, 252 deselected in 44.01s ======================
…
[failure_checks] results: {'fault': 1, 'postgres': 0}
```
Причины — те, что ожидались:
- `…_row_with_other_id_key` (W2): `batch` не сравнил Y1 и Y2 с объектами
`<Z1>/original` и `<Z2>/original`, на которые они ссылаются: в его
отчёте только четыре чужих объекта, `size_mismatch` Y1 и
`checksum_mismatch` Y2 нет (стратегия `head` их находила);
- `…_fresh_overwrite_untouched` (S1): первый проход `--deep --apply`
пометил потерянным вложение, объект которого только что перезаписан
байтами другого размера: запись «Fixed storage discrepancy» —
`size_mismatch`, `marked_lost`, `size_bytes` 9332, `stored_size` 9333.
Первый красный прогон (16:30 UTC, дерево с `src` `16f2cde` до правки)
был с прежним видом `…_fresh_overwrite_untouched`: оба прохода в одном
окне grace. Падения те же. Тест поменян после него не из-за красного:
на коде с правкой два глубоких прохода подряд заняли 23,4 с, больше
grace стенда 20 с (глубокий проход читает весь bucket), и проверка
времени срабатывала раньше проверок сверки. Теперь объекты
перезаписываются перед каждым проходом. Поэтому этот красный прогон
снят заново с окончательной версией.
W1 (сигнал в паузе предела) тестом отказов не проверяется — hook не
шлёт сигнал посреди прохода. Красный и зелёный прогоны — `driver.py
reconcile-signal --pace [--apply]`, `evidence/reconcile/service.md`.
+55 -3
View File
@@ -3,7 +3,7 @@
- Спек `student-tests`: «Прогон на временной базе» (уборка префикса
`test_<db>/`, «Хвост прошлого прогона», «Сохранить базу для разбора»).
Design change `s3-storage`, решение 9 и «Уточнения apply», п. 11.
- Раздел 0 — пересъёмка после change `fix-upload-put-flake` (зелёная).
- Раздел 0 — пересъёмка после change `track2-reconcile-cost` (зелёная).
Разделы 1–3 сняты на `f57635a` (change `s3-storage`): механизм уборки с
тех пор не менялся (`student-tests/run_isolated.py`), а красное в них —
ожидаемое до `attachments`, как сказано ниже. Прежние снимки раздела
@@ -13,9 +13,61 @@
/ 36; `ce1ae2c` (change `upload-memory`) — 193 passed, 5 skipped, 37
deselected, сверка 227 / 210 / 45 / 17; `c1648d9` (change
`track2-reconciler`) — 193 passed, 5 skipped, 45 deselected, сверка
240 / 223 / 58 / 17.
240 / 223 / 58 / 17; `723b6c3` (change `fix-upload-put-flake`) — 193
passed, 5 skipped, 49 deselected, сверка 244 / 227 / 62 / 17.
## 0. Пересъёмка: код 0 (change `fix-upload-put-flake`)
## 0. Пересъёмка: код 0 (change `track2-reconcile-cost`)
- Дата: 2026-10-23, 16:10:04–16:11:55 UTC.
- Commit: `0072dbe`, рабочее дерево — только evidence и документы этой
задачи, вне кода (`src`, `student-tests`, `Dockerfile` не менялись).
Код приложения — `8d4cf7e`.
- Что изменилось с `723b6c3`:
- пять новых проверок отказов сверки и 6 сценариев спеков, покрытых
проверками отказов (`deselected` 54 вместо 49, сверка 250 / 233 /
68 / 17);
- тестов вне `fault` столько же — 193 и 5 пропусков,
`test_exclusion_evidence_exists` зелёный.
- Стенд: рабочий `mtusi-lab4` на образе этого кода (сборка из кэша; `make run_docker
APP_OUT_PORT=8090`: реплики `api-27`, `api-28`, уборщик), в остальном
— как в снимке ниже.
```
$ make test_isolated
[test_isolated] database=test_messenger objects=/buckets/messenger/test_messenger/ container=mtusi-lab4-test-api base_url=http://127.0.0.1:18088
[test_isolated] remove objects /buckets/messenger/test_messenger/
[test_isolated] build image
[test_isolated] create database test_messenger
[test_isolated] migrations
[test_isolated] start api container
[test_isolated] ready
[test_isolated] make test
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
[test_isolated] make student_test
coverage: 250 scenarios in 13 specs, 233 tested (68 by make failure_checks), 17 excluded
SKIPPED [1] student-tests/test_attachments.py:701: one API process (EXPECT_REPLICAS=1): replica checks need the stand with the load balancer
SKIPPED [1] student-tests/test_idempotency.py:372: one API process (EXPECT_REPLICAS=1): replica checks need the stand with the load balancer
SKIPPED [1] student-tests/test_load_balancing.py:18: one API process (EXPECT_REPLICAS=1): replica checks need the stand with the load balancer
SKIPPED [1] student-tests/test_load_balancing.py:34: one API process (EXPECT_REPLICAS=1): replica checks need the stand with the load balancer
SKIPPED [1] student-tests/test_race.py:169: one API process (EXPECT_REPLICAS=1): replica checks need the stand with the load balancer
=========== 193 passed, 5 skipped, 54 deselected in 98.15s (0:01:38) ===========
[test_isolated] cleanup
[test_isolated] remove objects /buckets/messenger/test_messenger/
[test_isolated] results: {'test': 0, 'student_test': 0}
exit=0
$ printf 'fs.ls /buckets/messenger/test_messenger\n' | docker compose exec -T s3 sh -c "exec weed shell -master=127.0.0.1:9333 2>&1" | wc -l
0
$ psql … -d postgres -tAc "SELECT count(*) FROM pg_database WHERE datname = 'test_messenger'"
0
$ docker ps -a --filter name=mtusi-lab4-test-api -q | wc -l
0
```
Вывод отфильтрован: строки `Container …` compose, сборка образа и
построчный список pytest опущены. Префикс `test_messenger/` пуст,
временной базы и контейнера нет.
## Прежний снимок: `723b6c3`, код 0 (change `fix-upload-put-flake`)
- Дата: 2026-10-22, 23:15:18–23:17:11 UTC.
- Commit: `723b6c3`, рабочее дерево чистое (до записи этого файла). Код
@@ -646,8 +646,10 @@ fluentd, а это ещё один сервис. *Альтернатива:* п
10: `stand`, `stand-unlimited` и `fast-limited` — медиана `r` ≤ 1,5 по
всем трём сценариям; `fast-unlimited` — `r` скачиваний > 1,5 (проба:
2,2–2,75).
- **S4 — цена отказа по пределу (ожидание, не гипотеза трека).** Проход
без кандидатов — ячейка `batch` этапа B, тот же N = 10k:
- **S4 — цена отказа по пределу (ожидание, не гипотеза трека).** База —
ячейка `batch` этапа B, тот же N = 10k: поверхностный dry-run с 75
перепроверками и 25 зависшими, без отказа по пределу (прежде здесь —
«проход без кандидатов», что неверно; verify S5):
- `before` длиннее него примерно на D × 5 мс: +5 с при 1 000 и +50 с
при 10 000;
- `after` — не больше чем на 1 с, запросов HEAD — не больше
@@ -785,6 +787,197 @@ change» → описано в нём.
доказательств;
- `PLAN.md`.
### Уточнения apply
Решения, принятые в `/opsx:apply` без пользователя (он недоступен), — то
же в `PLAN.md`, `### track2-reconcile-cost`, «Решения apply».
1. **Пауза предела — после вызова S3, а не перед следующим** (решение 6).
Перед вызовом остаётся проверка сигнала. Пауза «до следующего» не
ограничивала бы последний вызов прохода: проход из одной страницы
списка не ждал бы вовсе, и сценарий «Скорость прохода ограничена»
(длительность ≥ объектов / предел) не выполнялся бы. Средняя скорость
от начала прохода та же; DELETE шага уборки — `_pace` после
`remove_stale_pending`.
2. **`StoredObjectInfo.last_modified` и у `open` (GET)** (решения 4–5):
глубокая сверка `head` читает объект сразу, без HEAD, и свежесть
объекта проверяет по `LastModified` ответа GET. Поведение вызова не
меняется — в метаданных одно поле больше.
3. **`ReconcileFindingDTO.sha256`** — SHA-256 строки в находке: по нему
действие (`_fix`) сверяет заново прочитанный объект без лишней выборки
строки. В журнал не попадает (`_record` перечисляет поля сам).
4. **Глубокая сверка и свежесть** (решение 5): строка моложе grace —
`fresh_rows`, объект моложе grace — `fresh_objects`, ни тот, ни другой
не читается; объект исчез или изменил размер после списка — без
находки (следующий проход). Обе стратегии считают одинаково.
5. **Вернувшийся объект с другим SHA-256** — `lost_known` (пометка на
месте), а не находка: отчёт его вернувшимся не называет.
6. **Hook** (решение 14): предел изменений — первым позиционным
аргументом, флаги — по одному разу; иначе код 2.
7. **Тест предела скорости**: восемь загрузок (объектов хватает и на
свежем стенде, `-k rate_limit`), своя потеря оригинала — сравнение
своих находок; уборщик стенда стоит на время двух проходов, иначе
зависшая загрузка соседнего теста могла бы стать «старше grace» между
ними.
8. **Быстрый профиль — два свежих стенда**, а не один (решение 1): S4 на
стенде с внесёнными классами убрал бы зависшие загрузки первым же
`--apply`, и найденное у «до» и «после» разошлось бы с моделью.
Цена — ~40 с.
9. **Остановка k6 блока H4** — `docker exec mtusi-bench-k6 pkill -INT -f
background.js`: по SIGINT k6 завершает сценарии и пишет итог; полнота
строк `bg,…` — п. 15. Длительность —
с точностью 0,01 мс: p95 чтения истории — единицы миллисекунд, и целые
мс огрубляли `r` (быстрый профиль: `r` чтения 3,0 из 1 и 3 мс).
10. **Память в H1 и H2** (решение 12): выборка «в начале прохода» по
отсчётам 0,5 с ловит процесс до прогрева клиентов (быстрый профиль:
44–89 МиБ, рост ~14 МиБ на 2 000 объектов — постоянная часть, не
множество). Поэтому H1 — наклон пика памяти `batch` между наименьшим и
наибольшим N (Б на ключ), H2 — рост пика `head` между N; прирост
прохода на объект остаётся столбцом `passes.csv`. Гипотезы в
`REPORT.md` записаны в этой форме до метки.
11. **Каждый проход сверяет с моделью** ещё `listed_objects` и
`checked_rows`, не только первый проход этапа; S4 — без ожидания grace:
у его объектов есть строки, свежесть на находки не влияет.
12. **Окно шага списка** (решение 10, справочно) — строка `list` в
`windows.csv`, в вердикт не входит.
13. **`driver.py reconcile-signal --pace`** кладёт 8 объектов пробы под
`<база>/attachments/pace-signal-*` (botocore в одноразовом контейнере
`api` его ключами): на пустом bucket временного стенда проход не
затронул бы ни одного объекта и не ждал бы. Объекты удаляются в
`finally`. Остановка меряется от события `kill` Docker до
`State.FinishedAt` (оба — часы ВМ); время `docker stop` (CLI и разбор
контейнера демоном) печатается рядом.
14. **Выход уборщика без финализации интерпретатора** (спек
`graceful-shutdown`, «docker stop во время паузы предела скорости»).
Проба на временном стенде: пауза прерывается за ~0,2 с после сигнала
(«Stopped cleaner» через 0,18 с), но процесс выходил ещё через
0,8–1,5 с — финализация модулей botocore и SQLAlchemy при 0,25 CPU (у
обычного прохода без сигнала — те же ~0,8 с). Итог — 1,16–1,5 с, больше
секунды спека. `src/cleaner/__main__.py` после `main()` сбрасывает
stdout и stderr и выходит `os._exit(code)`: engine и клиент S3 к этому
моменту закрыты, записи уже в stdout. После правки — 0,22 с от сигнала
до выхода. Ошибки argparse и непредвиденные исключения выходят как
раньше (до `os._exit` не доходят).
15. **Полнота строк фоновой нагрузки при остановке SIGINT** (решение 10).
Первая метка `baseline` на `aaf3fa3` упала на проходе 39/51: «D:
264071 k6 lines of download, 264070 iterations». Причина: строку
пишет конец итерации (`report` после ответа), а итерацию, которую
SIGINT прервал уже после строки, k6 в `iterations` не считает (в итоге
k6 нет ни `interrupted`, ни другого счёта прерванных — только
`iterations{scenario:…}`). Строгое «строк = итераций» поэтому
случайно ломалось на гонке остановки, хотя ни одна строка не
пропала. Отвергнуто: ослабить до «± немного» — пропавшая строка
могла бы спрятаться за прерванной. Выбрано: `background.js` считает
строки сам — счётчик `bg_lines_<сценарий>`, `add(1)` прямо перед
`console.log` в том же коде (`a42dd27`), и сначала требовалось
строк ровно столько, сколько насчитал счётчик.
Вторая метка на `a42dd27` упала там же: «D: write: 43997 k6 lines,
43996 counted by bg_lines (lines lost)», итераций write — тоже
43 996. У прерванной итерации k6 теряет и отсчёт счётчика:
`add(1)` после отмены контекста итерации k6 в метрики не принимает,
а `console.log` строку пишет. Точное равенство со счётчиком поэтому
так же случайно, а текст «lines lost» называл обратное направление
(строка лишняя, а не пропавшая). Выбрано: `reconcile.line_problems`
проверяет строки сценария против итераций и против счётчика:
- снизу — строк не меньше каждого (у завершённой итерации есть и
отсчёт, и строка; меньше — «lines lost: N», отказ);
- сверху — лишних строк против каждого не больше VU сценария
(`Profile.reconcile_bg_max_vus` 600 — тот же `MAX_VUS` у k6:
столько итераций может быть в полёте; больше — «not
interruptions», отказ).
Пропажа строки, совпавшая с таким же числом прерванных итераций того
же сценария, этим счётом не видна. Прерванные бывают только в
последние миллисекунды перед SIGINT, пропажа — в любой момент блока,
поэтому совпадение принято как риск. Число прерванных (строк сверх
итераций) по сценариям — в `meta.reconcile.bg_interrupted`. Офлайн
на итогах k6 обеих упавших меток (`raw/h4-k6.json`; файлы строк
удалила уборка стенда, их число восстановлено из текста отказа и
`bg_interrupted`) новая проверка проходит: `aaf3fa3` — download 1
прерванная (счётчика в том скрипте нет, проверено с отсчётом и без),
`a42dd27` — write 1; на минус одной строке write — «lines lost: 1».
Сырьё упавших меток — вне репозитория (scratchpad
`baseline-failed-aaf3fa3/`, `baseline-failed-a42dd27/`), метка
переснимается целиком.
16. **H4 «не проверена» и предел 2000** (решения 6, 10, 12). В метке
`baseline` (`d8b8ae3`) контраст `fast-unlimited` дал r скачиваний
1,08, а не > 1,5. Проход шёл со скоростью пробы (100k за 12,9 с,
уборщик 0,50 ядра), но S3 за проход вместе с фоном занят на
0,70–0,73 ядра из 1: шлюз не насыщен. Проба ×2,2 была одной, на
шумном хосте. Дефекта стенда нет, поэтому гипотеза не правилась и
метка не переснималась. Предел 2000 остаётся по ветке «Risks»:
страховка доли S3 для быстрого уборщика. Метка измерила, что с
пределом CPU S3 за проход — 0,27–0,32 ядра и при 0,25, и при 1 CPU
уборщика. Защита задержек фона на этих лимитах не показана. Проверка
H4 — новая метка с контрастом, который насыщает S3; в change она не
входит.
### Правки по verify
Verify на `16f2cde`: CRITICAL нет, W1–W3 и S1–S10 (`tasks.md`, группа
12). Решения приняты без пользователя, то же — `PLAN.md`,
`### track2-reconcile-cost`, «Правки по verify».
1. **W1 — сигнал в паузе предела.** `_pace` по сигналу перестаёт ждать и
возвращается, а не бросает `_Stopped`: вызов перед паузой уже
выполнен, и его итог должен дойти до учёта. Иначе удачный DELETE
(или уборка зависшей) перед паузой терял «Fixed» и счёт `fixed` и
оставался в журнале `warning` «Found», а ключи страницы — в
`listed_objects` (0 при `storage_objects` 8 в прежнем
`evidence/reconcile/service.md`). Остановку делает `check_stop()`
перед следующим вызовом — он стоит перед каждым вызовом хранилища,
поэтому остановка не медленнее. Проверка — `driver.py
reconcile-signal --pace` (строка `listed_objects`) и новый режим
`--pace --apply`: объекты пробы без строки, grace 18 с, `docker stop`
посреди удалений; на `16f2cde` — удалено 4, «Fixed» и `fixed` — 3.
Тест отказов не выбран: hook запускает сверку синхронно, сигнал
посреди прохода он не шлёт.
2. **W2 — строка с ключом `<Z>/original` другого `id`.** Правильно
поведение `head`: строка `ready` сравнивается с объектом по ключу из
её метаданных. Объект по ключу и есть её оригинал — его отдаёт API, и
другой размер даёт 500 на скачивании, пока сверка не пометит строку
(спек `attachments`, «Скачивание оригинала»). Требование «Объект, на
который ссылается строка, не удаляется» это не задевает: пометка не
удаляет объект, а `<Z>/original` остаётся чужим. `batch` выровнен:
шаг строк делает HEAD строки, ключ которой — `<id>/original` другого
вложения (`_key_of_other_id`: сравнение со своим ключом на каждую
строку, разбор — только у несовпавших), а шаг списка у нестандартного
ключа сравнивает каждую строку этого ключа, а не одну. *Альтернатива:*
выборка страницы по всем ключам (`object_key = ANY`) — строки чужих
ключей пришли бы в шаге списка без HEAD. Отвергнута: выражение страницы
тяжелее на каждой странице ради редкого случая, а цену `batch` уже
измерила метка. *Альтернатива:* `head` выровнять под `batch` (не
сравнивать). Отвергнута: строка осталась бы `ready` с объектом не того
размера и 500 на скачивании. Метка `baseline` действительна: в её
наборе у каждой строки свой ключ (`reconcile.rows_csv`), ветка не
срабатывает и запросов не добавляет.
3. **S1 — свежесть в перепроверке.** Объект другого размера моложе grace
— свежий в классификации (`fresh_objects`), перепроверке и перед
пометкой; «другой SHA-256» перечитывается с `fresh_before`. Вернувшийся
оригинал читается без порога: снять пометку может только тот же
SHA-256, а те же байты свежестью не опасны (`test_reconcile_restored_
original` кладёт их и сразу запускает `--apply`). Сценарий «Недавно
перезаписанный объект не тронут».
4. **S2.** `allow_inf_nan=False` только у `max_objects_per_second`. Тот же
дефект у прочих полей `float` настроек (сроки, интервалы) — вне change,
`KNOWN_ISSUES.md`.
5. **S4.** Верхний допуск строк фона — меньшее из VU сценария и
`vus_max` итога k6 (на все сценарии).
6. **S6.** Вердикты проверяют LIST и сеансы H1 точно (набор неизменен),
«~18 / ~2000» H2 с допуском ±25 %, GET H3 — по строкам `ready` с
объектом того же размера, S4 — новые столбцы `passes.csv`
`fixed_total` и `fixed_records` в конце. Пересборки `summary.md`
офлайн нет и не заводится; на данных метки новые критерии пересчитаны
скриптом вне репозитория — выполняются (`REPORT.md`).
7. **S8.** У группы из одной ячейки (D без нагрузки) повторы подряд —
уточнён спек, а не план: перемешать их можно только с проходами под
нагрузкой, а это другой блок k6 и другая методика H4.
8. **S9.** `http_req_failed` и `dropped_iterations` итога k6 — пометки
`bg_failed` и `bg_dropped` всех проходов блока (по окнам ошибки не
разложить); `meta.reconcile.bg_errors`; с любой из пометок H4 не
подтверждается.
## Risks / Trade-offs
- **[Предел 2000/с удлиняет плановый проход вдвое]** → на 100k с ~30 до
@@ -174,6 +174,11 @@ bench_reconcile_quick` — то же на малом наборе и одним
checkout.
Каждый проход повторяется три раза, повторы одной ячейки не идут подряд.
Исключение — группа проходов из одной ячейки (этап 100k без нагрузки —
только стратегия по умолчанию): её повторы идут подряд, потому что
остальные проходы того же набора идут под фоновой нагрузкой отдельным
блоком, и вставить их между повторами значило бы смешать проходы без
нагрузки с проходами под ней.
Варианты сравниваются внутри одной метки, на одних данных и в одной
сессии хоста. Шум — разброс повторов ячейки, а у проходов с фоновой
нагрузкой ещё отношение p95 окон до и после прохода (A/A).
@@ -195,7 +200,9 @@ bench_reconcile_quick` — то же на малом наборе и одним
не результат;
- в проходах без фоновой нагрузки запросы к S3 по счётчикам сверки SHALL
совпадать с метриками шлюза, иначе проход помечается;
- ответ 5xx фоновой нагрузки — пометка прохода.
- ответ 5xx фоновой нагрузки в окнах прохода — пометка прохода; любой
неуспешный запрос фона или недосланная итерация по всему итогу
генератора — пометка всех проходов блока.
В паспорте метки SHALL быть:
- лимиты и образы, в том числе commit варианта «до»;
@@ -15,8 +15,9 @@
«Скорость сверки»), по умолчанию 2000; 0 — без ограничения.
`interval_seconds` и `max_objects_per_second` SHALL быть
неотрицательными числами, `page_size` и `max_changes` — целыми не меньше
1. Иначе уборщик MUST NOT стартовать (требование «Некорректное значение
неотрицательными числами, `max_objects_per_second` — ещё и конечным (не
`inf` и не `nan`), `page_size` и `max_changes` — целыми не меньше 1.
Иначе уборщик MUST NOT стартовать (требование «Некорректное значение
останавливает запуск»).
Отдельного grace у сверки нет: она берёт `[cleaner]
@@ -38,7 +39,8 @@ pending_grace_seconds` и его проверку границы живой за
#### Scenario: Неверный параметр сверки
- **WHEN** уборщик запускается с `RECONCILER__PAGE_SIZE=5000`,
`RECONCILER__MAX_CHANGES=0`, `RECONCILER__INTERVAL_SECONDS=-1` или
`RECONCILER__MAX_OBJECTS_PER_SECOND=-1`
`RECONCILER__MAX_CHANGES=0`, `RECONCILER__INTERVAL_SECONDS=-1`,
`RECONCILER__MAX_OBJECTS_PER_SECOND=-1` или
`RECONCILER__MAX_OBJECTS_PER_SECOND=inf`
- **THEN** уборщик не стартует, в журнале — ошибка проверки настроек с
именем поля
@@ -52,7 +52,10 @@ SHALL ничего не менять (dry-run). С `--apply` он SHALL испр
Обе стратегии SHALL находить на одних данных одни и те же расхождения
тех же классов и подчиняться одним правилам безопасности (требование
«Безопасность сверки»).
«Безопасность сверки»). Каждое вложение `ready` сверка SHALL сравнивать
с объектом по ключу из его метаданных, чей бы `id` ни стоял в этом
ключе: строку, которая ссылается на `<Z>/original` другого вложения,
сверка проверяет так же, как строку со своим ключом.
По умолчанию сверка поверхностная: наличие и размер объекта, байты она
не читает. С `--deep` разовый проход SHALL ещё читать каждый объект
@@ -135,6 +138,20 @@ SHA-256 его содержимого с метаданными. Планова
- **AND** сверка с `--deep --apply` помечает оригинал потерянным:
скачивание — 404, метаданные — 200
#### Scenario: Строка ссылается на объект другого id
- **WHEN** всё это старше grace, и выполняются сверки без `--apply` с
`--deep` — стратегией по умолчанию и `--strategy head`:
- готовое вложение Y1 ссылается на ключ `<Z1>/original`, строки Z1 нет,
а объект по этому ключу другого размера, чем у Y1;
- готовое вложение Y2 ссылается на ключ `<Z2>/original`, строки Z2 нет,
а объект по этому ключу того же размера с другими байтами
- **THEN** оба отчёта называют Y1 классом «другой размер», Y2 — «другой
SHA-256», а объекты `<Z1>/original`, `<Z2>/original`, `<Y1>/original` и
`<Y2>/original` — чужими; код выхода 3
- **AND** сверка с `--deep --apply` помечает Y1 и Y2 потерянными, а все
четыре объекта на месте
### Requirement: Безопасность сверки
Сверка MUST NOT удалять:
@@ -165,6 +182,9 @@ Grace — тот же, что у уборщика (capability `service-configura
- вернувшийся оригинал — пометка на месте, объект того же размера и
того же SHA-256 заново прочитанного содержимого.
Объект другого размера или другого SHA-256, изменённый меньше grace
назад, — свежий и при перепроверке: расхождение не подтверждено.
Не подтвердилось — действие не выполняется. Отсутствие объекта MUST NOT
считаться подтверждённым, пока не проверено, что bucket на месте. Иначе
удалённый bucket выглядел бы как потеря всех оригиналов.
@@ -200,6 +220,17 @@ NOT читать и менять. Вложение, в метаданных ко
- **THEN** объект на месте, вложение не помечено, а отчёт считает их
свежими, а не расхождениями
#### Scenario: Недавно перезаписанный объект не тронут
- **WHEN** у двух готовых вложений старше grace объекты меньше grace
назад перезаписаны мимо API — у одного байтами другого размера, у
другого другими байтами того же размера, — и выполняются сверка с
`--deep --apply` и сверка с `--deep --strategy head` без `--apply`
- **THEN** ни одно вложение не помечено и не названо расхождением, а
итоги считают оба объекта свежими
- **AND** когда объектам больше grace, сверка с `--deep` называет первое
классом «другой размер», второе — «другой SHA-256»
#### Scenario: Используемое вложение не удаляется
- **WHEN** у вложения, на которое ссылается сообщение, удалён объект,

Some files were not shown because too many files have changed in this diff Show More