forked from mtusi2026/mtusi2026lab4
Retake the lab 4 evidence on the final code and finish the report
The level 3 and 4 evidence was taken on24f9d61anda774a2f, before the lab 3 fixes were carried over and before the reconciler. Take all of it again in one series on81dd816, whose application and stand code is the final one: a fresh clone runs the launch block of the report from secrets to reset-data, then one stand from clean volumes gives the smoke, stack, limits, lb-check, failover of each replica and of the upload replica, persistence, S3 outage, S3 privacy, lost-answer retry, upload faults, all stack checks, storage layout and three runs of the upload memory matrix. The three memory runs keep the peak with three slots at 297-345 MiB against 512 MiB at the limit without them, but at 40 uploads of 10 MiB the wait for a slot nears the 8 s request timeout and one run of three gave 7 of 80 a 503. Those timeouts left 67 invisible intents; the record shows the reconciler seeing them as fresh and the sweep removing all of them after the grace period. Message write load is taken with tests/load.py from a container on the edge network: 2 106 RPS, no errors, replicas and PostgreSQL at their CPU limits. The first try from the macOS host is kept as a discarded attempt, it ran out of ephemeral ports while the replicas answered every request. The report gets the defense answers, the load section, the evidence commits, the upload limit order as the pipeline applies it, medians in the track 2 cost table and the proposals over the word limit; the evidence index lists every file with its command and commit. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V1d3RLHNBBMA6UqBLLJv27
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
81dd816df2
commit
c8cb263c77
+58
-2
@@ -1,5 +1,61 @@
|
||||
# Доказательства
|
||||
|
||||
Храните небольшие обезличенные результаты: команды и stdout проверок, JSON/CSV агрегатов нагрузки, EXPLAIN, dashboard JSON, текст разбора отказа. Укажите дату, commit, аппаратные лимиты и профиль нагрузки.
|
||||
Обезличенные результаты прогонов лабы 4. Пользователи, чаты, тексты и изображения синтетические; паролей, токенов,
|
||||
ключей S3, `.env`, содержимого `secrets/`, ключей объектов в журналах и дампов здесь нет. В первой строке каждого
|
||||
отчёта `*.txt` — дата (UTC) и коммит прогона; у JSON даты и коммита внутри может не быть — коммит указан в таблицах
|
||||
ниже. Проверки через балансировщик шли на порт 18084 (`LB_HTTP_PORT`; 8080 на машине был занят стендами других лаб):
|
||||
цели `make` берут `BASE_URL` из `docker compose port lb 8080`. Hostname реплики = `X-Instance-Id`; ID контейнеров
|
||||
меняются между прогонами. Коммит `81dd816` по коду приложения и стенда равен итоговому: после него менялись только
|
||||
отчёт, `AGENTS.md`, openspec и `evidence/`.
|
||||
|
||||
Не добавляйте .env, session tokens, cookies, приватные ключи, credentials, реальные сообщения, raw dumps и signed URLs. Для скриншотов скрывайте секреты. Большие логи/бинарные traces сохраняйте отдельно по правилам преподавателя; одного скриншота без методики недостаточно.
|
||||
Уровни «3» и «4» сняты 30.10 одной серией на одном стенде: `make reset-data`, `make up`, затем `make test`,
|
||||
`stack-evidence`, `limits`, `lb-check`, `scenario SCENARIO=failover-upload`, `failover-evidence`, `failover-evidence
|
||||
SHIFT=1`, `persistence-evidence`, `scenario SCENARIO=s3-outage`, `s3-check`, `retry-check`, `upload-faults`,
|
||||
`faults-evidence`, `attachments-evidence`, `storage-evidence`, отброшенная попытка нагрузки с хоста, три прогона
|
||||
`upload-memory` и `mmap-32m`, `make reconcile` и `overload-leftovers.txt`, нагрузка `load.txt` клиентом в контейнере.
|
||||
Без стенда — `contract-checks.txt` и `student-tests.txt`; `clean-clone.txt` — в отдельном клоне со своим
|
||||
compose-проектом, до серии.
|
||||
|
||||
## Уровень «3» и перенос лабы 3
|
||||
|
||||
| Файл | Что доказывает | Команда | Коммит |
|
||||
| --- | --- | --- | --- |
|
||||
| `clean-clone.txt` | запуск из свежего clone на пустых volumes: секреты, `config`, `make up` с миграциями `0001`–`0004` и `s3-init`, smoke, persistence, failover, `restore`, `failover-upload`, `s3-outage`, `s3-check`, `reconcile`, повтор миграций, `make down` (volumes остаются), `make reset-data` (volumes удалены) | команды блока «Запуск из чистого clone» `REPORT.md` дословно, между ними — наблюдения | `81dd816` |
|
||||
| `contract-checks.txt` | `make check`, `make validate` (`openapi-spec-validator` 0.7.2 из `.venv`); `git diff --stat upstream/main` контракта, публичных тестов и задания (пусто) и `.github` (только свой CI job) | команды внутри файла | `81dd816` |
|
||||
| `student-tests.txt` | `make lint` и все собственные тесты по именам (342), включая адаптер S3 против RustFS | `make student-test PYTEST_ARGS='-v --no-header'` | `81dd816` |
|
||||
| `smoke.txt` | публичный smoke через LB, ветка `LAB ≥ 4` | `make test` | `81dd816` |
|
||||
| `stack.txt` | сервисы, порты только у `lb`, `container_name` 0, `docker port` реплик пуст, hostname ↔ `X-Instance-Id`, лимиты, сети, uid, взгляд LB | `make stack-evidence` | `81dd816` |
|
||||
| `environment.txt` | host, Docker, образы по digest, версии Python, HAProxy, RustFS и пакетов, uid процессов | `make stack-evidence` | `81dd816` |
|
||||
| `limits.txt` | лимиты CPU/RAM всех сервисов (объявлены и применены), порты только у LB на `127.0.0.1`, секреты (root-ключи S3 только у `s3`, `s3-init`, `s3-cli`), volumes и сети по политике | `make limits` | `81dd816` |
|
||||
| `lb-check.json` | 40 `GET /users/me` одним токеном — 20 + 20 по репликам; 20 раундов × 8 параллельных POST с одним ключом — 160 × `201`, одна копия, `409` на другое тело | `make lb-check` | `81dd816` |
|
||||
| `failover-upload.json` | upload → остановка принявшей реплики → скачивание через другую, SHA-256, возврат реплики | `make scenario SCENARIO=failover-upload` | `81dd816` |
|
||||
| `failover-899a952a5a21.txt`, `failover-0cc3ee358e59.txt` | `make test-failover ACTION_SCRIPT=scripts/stop-one.sh` для каждой реплики: `docker inspect` до/после, остановлен именно target, его журнал остановки, `restore` | `make failover-evidence`, затем `make failover-evidence SHIFT=1` | `81dd816` |
|
||||
| `persistence.txt` | `make test-persistence ACTION_SCRIPT=scripts/restart.sh` и `StartedAt` всех контейнеров до и после | `make persistence-evidence` | `81dd816` |
|
||||
| `s3-outage.json` | S3 остановлен: upload и `/content` `503` с временем ответа, метаданные, текст и readiness, возврат S3 и скачивание с тем же SHA-256 | `make scenario SCENARIO=s3-outage` | `81dd816` |
|
||||
| `storage-layout.txt` | `\d attachments` и `\d message_attachments`, `bytea` всей схемы, строки по статусам и объекты bucket, сверка SHA-256 вне API, `ro` и mounts реплик, volume `s3`, секреты сервисов | `make attachments-evidence` | `81dd816` |
|
||||
| `schema.txt`, `migrations.txt`, `kdf.txt`, `secrets.txt` | `\d+` всех таблиц и применённые миграции; повтор `migrate` → `up to date` при тех же счётчиках; Argon2id и 32-байтовые хеши токенов; секреты, `.env` и volumes не в Git | `make storage-evidence` | `81dd816` |
|
||||
| `retry.json` | потерянный ответ: запись ждёт блокировку строки чата дольше таймаута клиента, повтор тем же ключом через LB — на живой и на убитой реплике; `201`, одна копия | `make retry-check` | `81dd816` |
|
||||
|
||||
## Уровень «4»
|
||||
|
||||
| Файл | Что доказывает | Команда | Коммит |
|
||||
| --- | --- | --- | --- |
|
||||
| `upload-faults.txt` | 36 ошибочных запросов через LB без `5xx`; отказ `COMMIT` после `PUT` → немедленная компенсация; реплика убита между `PUT` и `COMMIT` → уборка после grace; обрыв и зависание тела | `make upload-faults` | `81dd816` |
|
||||
| `faults.txt` | все проверки стенда под маркером `stack`: тесты лаб 2–3 (гонка регистрации, остановка Valkey и PostgreSQL, рестарты, срок сессии) и `test_attachment_faults.py` | `make faults-evidence` | `81dd816` |
|
||||
| `s3-security.txt` | 23 проверки: нет host-портов у `s3`, консоль закрыта изнутри и из сети стенда, `s3-init` повторно дважды без изменений, права ключа API (разрешено и `AccessDenied`), анонимный доступ, снимок политики без секретов | `make s3-check` | `81dd816` |
|
||||
| `upload-memory/run{1,2,3}/` | три прогона матрицы: 64 и 3 слота × 1 и 10 MiB × 10/20/40 одновременных загрузок; `summary.txt` и JSON на точку (ответы, задержки, пик `memory.peak` реплик и LB, `oom_kill`) | `python3 scripts/upload_memory.py --out evidence/upload-memory/runN` (то же, что `make upload-memory`, в свой каталог) | `81dd816` |
|
||||
| `upload-memory/mmap-32m/` | 3 слота, 10 MiB, порог `mmap` glibc 32 MiB вместо 128 KiB | `MALLOC_MMAP_THRESHOLD_=33554432 python3 scripts/upload_memory.py --slots 3 --sizes 10485760 --out evidence/upload-memory/mmap-32m` | `81dd816` |
|
||||
| `load.txt`, `load/run{1,2,3}.json` | нагрузка записи сообщений `tests/load.py` (64 потока, 8 с, 3 повтора) клиентом-контейнером в сети `edge`: RPS, ошибки, p50/p95/p99, `docker stats` стенда и клиента, статусы `request.handled` реплик | команды внутри `load.txt` | `81dd816` |
|
||||
| `load/host-attempt.txt` | отброшенная попытка той же нагрузки с хоста macOS: клиентские ошибки соединения при исчерпании эфемерных портов, ни одного `5xx` на репликах; строки перенесены из вывода консоли | команды внутри файла | `81dd816` |
|
||||
| `overload-leftovers.txt` | после серии памяти: 67 невидимых намерений от `503` по таймауту посреди `PutObject` (и одно от `s3-outage`), их вид в `make reconcile` и удаление фоновой уборкой после grace 900 с | команды внутри файла | `81dd816` |
|
||||
|
||||
## Трек 2 «Согласованность двух хранилищ»
|
||||
|
||||
`reconcile/` — сценарий трека, матрица стоимости и проверки после трека; состав и поля — `reconcile/README.md`.
|
||||
|
||||
| Файл | Что доказывает | Команда | Коммит |
|
||||
| --- | --- | --- | --- |
|
||||
| `reconcile/demo.json` и файлы сценария | внедрение ошибок на обеих сторонах, dry-run, `apply` дважды, независимая проверка, карантин, `healed`, занятая блокировка, остановленный S3, 75 проходов под загрузками | `make reconcile-demo` | `5c3c238` |
|
||||
| `reconcile/cost/` | стоимость обхода 1k/10k/30k × 3 прогона, закреплённые CPU, отбраковка чужой нагрузки | `make reconcile-cost` | `b191623` |
|
||||
| `reconcile/cost-2026-10-29/`, `reconcile/cost-aborted/` | первая серия матрицы без отбраковки; прерванные попытки наполнить RustFS до 100k | `make reconcile-cost` | `5ca2cdc`, до `5ca2cdc` |
|
||||
| `reconcile/after-checks.txt` | уровни «3» и «4» после трека на стенде из чистого состояния | команды внутри файла | `8cb5a66` |
|
||||
|
||||
+116
-27
@@ -1,6 +1,9 @@
|
||||
date: 2026-10-28T17:50:32Z commit: 24f9d61
|
||||
$ git clone … && git checkout solution/bpi2303-kostylev
|
||||
24f9d61 Add the attachment failure scenarios and S3 checks
|
||||
date: 2026-10-30T04:27:15Z commit: 81dd816 dir: mtusi2026lab4-clean (свой compose-проект и volumes)
|
||||
# шаги — команды блока «Запуск из чистого clone» REPORT.md; строки с пометкой «наблюдение» — проверки между шагами
|
||||
$ git clone <repo> mtusi2026lab4-clean && cd mtusi2026lab4-clean && git checkout solution/bpi2303-kostylev
|
||||
HEAD 81dd816 Archive the storage reconciler change
|
||||
$ docker volume ls -q --filter label=com.docker.compose.project=mtusi2026lab4-clean | wc -l | tr -d ' ' # наблюдение, не шаг инструкции
|
||||
0
|
||||
$ make secrets
|
||||
sh scripts/secrets.sh
|
||||
создан secrets/postgres_password
|
||||
@@ -14,30 +17,116 @@ sh scripts/secrets.sh
|
||||
создан secrets/s3_access_key_id
|
||||
создан secrets/s3_secret_access_key
|
||||
создан .env из .env.example
|
||||
$ sed LB_HTTP_PORT=18084 LB_STATS_PORT=24084 .env # 8080 на этой машине занят стендами других лаб
|
||||
$ sed LB_HTTP_PORT=18084 LB_STATS_PORT=24084 .env # отступление: 8080 на этой машине занят стендами других лаб
|
||||
$ git status --short --ignored secrets .env # наблюдение, не шаг инструкции
|
||||
!! .env
|
||||
!! secrets/
|
||||
$ docker compose --env-file .env config --quiet && echo valid
|
||||
valid
|
||||
$ make up # docker compose up -d --build --wait
|
||||
Container mtusi2026lab4-api-1 Healthy
|
||||
Container mtusi2026lab4-api-2 Healthy
|
||||
Container mtusi2026lab4-lb-1 Healthy
|
||||
Container mtusi2026lab4-migrate-1 Exited
|
||||
Container mtusi2026lab4-postgres-1 Healthy
|
||||
Container mtusi2026lab4-s3-1 Healthy
|
||||
Container mtusi2026lab4-s3-init-1 Exited
|
||||
Container mtusi2026lab4-valkey-1 Healthy
|
||||
up --wait: 18 s
|
||||
$ docker compose ps -a --format '{{.Service}} {{.Status}}'
|
||||
api Up 3 seconds (healthy)
|
||||
api Up 3 seconds (healthy)
|
||||
lb Up 10 seconds (healthy)
|
||||
migrate Exited (0) 4 seconds ago
|
||||
postgres Up 10 seconds (healthy)
|
||||
s3 Up 10 seconds (healthy)
|
||||
s3-init Exited (0) 4 seconds ago
|
||||
valkey Up 10 seconds (healthy)
|
||||
$ make test BASE_URL=http://localhost:18084
|
||||
python3 tests/smoke.py --base-url "http://localhost:18084"
|
||||
$ make up
|
||||
Container mtusi2026lab4-clean-postgres-1 Healthy
|
||||
Container mtusi2026lab4-clean-s3-1 Healthy
|
||||
Container mtusi2026lab4-clean-s3-init-1 Exited
|
||||
Container mtusi2026lab4-clean-migrate-1 Exited
|
||||
Container mtusi2026lab4-clean-postgres-1 Healthy
|
||||
Container mtusi2026lab4-clean-migrate-1 Exited
|
||||
Container mtusi2026lab4-clean-valkey-1 Healthy
|
||||
Container mtusi2026lab4-clean-s3-1 Healthy
|
||||
Container mtusi2026lab4-clean-s3-init-1 Exited
|
||||
Container mtusi2026lab4-clean-api-1 Healthy
|
||||
Container mtusi2026lab4-clean-api-2 Healthy
|
||||
Container mtusi2026lab4-clean-lb-1 Healthy
|
||||
make up: 11 s (сборка образа из кэша слоёв)
|
||||
$ docker compose ps -a --format '{{.Service}} {{.State}} {{.Status}} {{.Ports}}' # наблюдение, не шаг инструкции
|
||||
api running Up 4 seconds (healthy)
|
||||
api running Up 4 seconds (healthy)
|
||||
lb running Up 10 seconds (healthy) 127.0.0.1:18084->8080/tcp, 127.0.0.1:24084->8404/tcp
|
||||
migrate exited Exited (0) 8 seconds ago
|
||||
postgres running Up 10 seconds (healthy)
|
||||
s3 running Up 10 seconds (healthy)
|
||||
s3-init exited Exited (0) 4 seconds ago
|
||||
valkey running Up 10 seconds (healthy)
|
||||
$ docker compose logs --no-log-prefix migrate s3-init | grep -v '^$' | tail -8 # наблюдение, не шаг инструкции
|
||||
{"version":"0001_init","event":"migration.applied","level":"info","ts":"2026-10-30T04:27:18.183850Z"}
|
||||
{"version":"0002_idempotency_keys","event":"migration.applied","level":"info","ts":"2026-10-30T04:27:18.183962Z"}
|
||||
{"version":"0003_attachments","event":"migration.applied","level":"info","ts":"2026-10-30T04:27:18.184008Z"}
|
||||
{"version":"0004_attachment_quarantine","event":"migration.applied","level":"info","ts":"2026-10-30T04:27:18.184039Z"}
|
||||
{"reason":"applied","event":"migration.completed","level":"info","ts":"2026-10-30T04:27:18.184066Z"}
|
||||
s3-init: bucket=messenger-attachments anonymous=private policy=messenger-api lifecycle=abort-incomplete-uploads
|
||||
$ curl -s "http://$(docker compose port lb 8404)/stats;csv" | awk -F, '$1 == "api" && $2 != "BACKEND" {print $2, $18}' | grep -v MAINT # наблюдение, не шаг инструкции
|
||||
api1 UP
|
||||
api2 UP
|
||||
$ make test
|
||||
python3 tests/smoke.py --base-url "http://127.0.0.1:18084"
|
||||
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
|
||||
$ docker compose down -v # стенд из clone удалён вместе с учебными данными
|
||||
Network mtusi2026lab4_backend Removed
|
||||
$ make test-persistence ACTION_SCRIPT=scripts/restart.sh
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:18084"
|
||||
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 '{{.Service}} {{.State}} {{.RunningFor}} {{.Status}}' # наблюдение, не шаг инструкции
|
||||
api running 24 seconds ago Up 3 seconds (healthy)
|
||||
api running 24 seconds ago Up 3 seconds (healthy)
|
||||
lb running 24 seconds ago Up 8 seconds (healthy)
|
||||
migrate exited 24 seconds ago Exited (0) 7 seconds ago
|
||||
postgres running 24 seconds ago Up 9 seconds (healthy)
|
||||
s3 running 24 seconds ago Up 9 seconds (healthy)
|
||||
s3-init exited 24 seconds ago Exited (0) 3 seconds ago
|
||||
valkey running 24 seconds ago Up 9 seconds (healthy)
|
||||
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:18084"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 128, "failed_attempts": 0, "first_recovery_seconds": 2.948}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
$ docker compose ps -a --format '{{.Service}} {{.Name}} {{.State}} {{.Status}}' api # наблюдение, не шаг инструкции
|
||||
api mtusi2026lab4-clean-api-1 running Up 19 seconds (healthy)
|
||||
api mtusi2026lab4-clean-api-2 exited Exited (0) 12 seconds ago
|
||||
$ make restore
|
||||
scripts/restore.sh
|
||||
Container mtusi2026lab4-clean-api-1 Running
|
||||
Container mtusi2026lab4-clean-api-2 Starting
|
||||
Container mtusi2026lab4-clean-api-2 Started
|
||||
Container mtusi2026lab4-clean-api-1 Waiting
|
||||
Container mtusi2026lab4-clean-api-2 Waiting
|
||||
Container mtusi2026lab4-clean-api-1 Healthy
|
||||
Container mtusi2026lab4-clean-api-2 Healthy
|
||||
$ make scenario SCENARIO=failover-upload
|
||||
{'ok': True, 'upload_instance': 'b21945b926b7', 'download_instance': '6c9bf1e3b1a6', 'sha256_equal': True, 'hook_seconds': 2.713}
|
||||
$ make scenario SCENARIO=s3-outage
|
||||
{'ok': True, 'upload': 503, 'metadata': 200, 'download': 503, 'text_message': 201, 'health_ready': 200}
|
||||
$ make s3-check
|
||||
23
|
||||
== 2026-10-30T04:28:17Z S3 privacy and bootstrap checks
|
||||
== IAM/bucket snapshot (без секретов)
|
||||
$ make reconcile
|
||||
dry-run {'objects': 5, 'rows': 6} {'pending_fresh': 1} errors 0
|
||||
$ make migrate
|
||||
docker compose run --rm migrate
|
||||
{"reason":"up to date","event":"migration.completed","level":"info","ts":"2026-10-30T04:28:21.735485Z"}
|
||||
$ docker volume ls --format '{{.Name}}' --filter label=com.docker.compose.project=mtusi2026lab4-clean # наблюдение, не шаг инструкции
|
||||
mtusi2026lab4-clean_pgdata
|
||||
mtusi2026lab4-clean_s3data
|
||||
mtusi2026lab4-clean_valkeydata
|
||||
$ make down
|
||||
1 Container mtusi2026lab4-clean-api-1 Removed
|
||||
1 Container mtusi2026lab4-clean-api-2 Removed
|
||||
1 Container mtusi2026lab4-clean-lb-1 Removed
|
||||
1 Container mtusi2026lab4-clean-migrate-1 Removed
|
||||
1 Container mtusi2026lab4-clean-postgres-1 Removed
|
||||
1 Container mtusi2026lab4-clean-s3-1 Removed
|
||||
1 Container mtusi2026lab4-clean-s3-init-1 Removed
|
||||
1 Container mtusi2026lab4-clean-valkey-1 Removed
|
||||
1 Network mtusi2026lab4-clean_backend Removed
|
||||
1 Network mtusi2026lab4-clean_edge Removed
|
||||
$ docker volume ls --format '{{.Name}}' --filter label=com.docker.compose.project=mtusi2026lab4-clean # наблюдение, не шаг инструкции
|
||||
mtusi2026lab4-clean_pgdata
|
||||
mtusi2026lab4-clean_s3data
|
||||
mtusi2026lab4-clean_valkeydata
|
||||
$ make reset-data
|
||||
Volume mtusi2026lab4-clean_pgdata Removing
|
||||
Volume mtusi2026lab4-clean_s3data Removing
|
||||
Volume mtusi2026lab4-clean_valkeydata Removing
|
||||
Volume mtusi2026lab4-clean_pgdata Removed
|
||||
Volume mtusi2026lab4-clean_s3data Removed
|
||||
Volume mtusi2026lab4-clean_valkeydata Removed
|
||||
$ docker volume ls -q --filter label=com.docker.compose.project=mtusi2026lab4-clean | wc -l | tr -d ' ' # наблюдение, не шаг инструкции
|
||||
0
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
date: 2026-10-28T21:18:13Z commit: a774a2f
|
||||
date: 2026-10-30T04:24:13Z commit: 81dd816
|
||||
$ make check
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
$ make validate PYTHON="uv run --no-project --with-requirements requirements-dev.txt python" # venv с requirements-dev.txt
|
||||
uv run -q --no-project --with-requirements requirements-dev.txt python scripts/validate_openapi.py
|
||||
$ make validate # openapi-spec-validator 0.7.2 из .venv (make install)
|
||||
.venv/bin/python scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
$ git diff --stat upstream/main -- contracts tests README.md COURSE.md CONTRIBUTING.md MAINTAINERS.md lab.json compose.example.yaml Dockerfile.example # контракт, публичные тесты и задание не менялись
|
||||
(пусто)
|
||||
$ git diff --stat upstream/main -- .github # только свой CI job
|
||||
.github/workflows/application.yml | 93 +++++++++++++++++++++++++++++++++++++++
|
||||
1 file changed, 93 insertions(+)
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
date: 2026-10-28T18:08:00Z commit: 24f9d61
|
||||
date: 2026-10-30T04:29:05Z commit: 81dd816
|
||||
host: Apple M4 Max, 16 CPU, 48 GiB RAM, macOS 15.1
|
||||
docker: 28.3.2, VM: 16 CPU, 8217190400 bytes
|
||||
compose: 2.38.2-desktop.1
|
||||
images:
|
||||
image: ${API_IMAGE:-mtusi-messenger:lab4}
|
||||
image: ${API_IMAGE:-mtusi-messenger:${COMPOSE_PROJECT_NAME}}
|
||||
image: rustfs/rc:v0.1.36@sha256:ab024bfebee49a750ce886b4c70963ccd9ddaa03f491704a90710641d7a26699
|
||||
image: haproxy:3.2.26-alpine@sha256:5893840576071e6217cd52ebdcc14f454c6f7a631056fa6f4e0f40d3cac4215b
|
||||
image: postgres:17.11-alpine@sha256:266d3c257594e195b309ae9d1805e54c788f1d7b375f56bf6c367aac6c917e7b
|
||||
@@ -35,7 +35,6 @@ packages (uv.lock):
|
||||
process users (service uid command):
|
||||
api 10001 python
|
||||
lb 99 haproxy
|
||||
postgres 70 pg_isready
|
||||
postgres 70 postgres
|
||||
s3 10001 rustfs
|
||||
valkey 999 tini
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
date: 2026-10-30T04:29:33Z commit: 81dd816
|
||||
== before: api replicas (hostname = X-Instance-Id), state, StartedAt, FinishedAt
|
||||
0cc3ee358e59 running started=2026-10-30T04:28:59.851144131Z finished=0001-01-01T00:00:00Z
|
||||
899a952a5a21 running started=2026-10-30T04:29:31.104320507Z finished=2026-10-30T04:29:18.153900709Z
|
||||
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:18084"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 128, "failed_attempts": 0, "first_recovery_seconds": 2.883}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
== after: api replicas
|
||||
0cc3ee358e59 exited started=2026-10-30T04:28:59.851144131Z finished=2026-10-30T04:29:36.57527926Z
|
||||
899a952a5a21 running started=2026-10-30T04:29:31.104320507Z finished=2026-10-30T04:29:18.153900709Z
|
||||
== stopped replica: 0cc3ee358e59; shutdown: signal, drain window with readiness 503, close, exit
|
||||
{"event":"Handling signal: term","level":"info","ts":"2026-10-30T04:29:34.045936Z"}
|
||||
{"limit":2.0,"event":"service.draining","level":"info","ts":"2026-10-30T04:29:34.072243Z"}
|
||||
{"limit":2.0,"event":"service.draining","level":"info","ts":"2026-10-30T04:29:34.126665Z"}
|
||||
{"method":"GET","route":"/health/ready","status":503,"request_id":"6362781446fb427cbee670871ce5ef51","duration_ms":1.463,"event":"request.handled","level":"info","ts":"2026-10-30T04:29:34.446815Z"}
|
||||
{"method":"GET","route":"/health/ready","status":503,"request_id":"0d9cf1c47fca4ec98ed599b113cd93db","duration_ms":0.79,"event":"request.handled","level":"info","ts":"2026-10-30T04:29:34.950067Z"}
|
||||
{"event":"Shutting down","level":"info","ts":"2026-10-30T04:29:36.079497Z"}
|
||||
{"event":"Shutting down","level":"info","ts":"2026-10-30T04:29:36.138465Z"}
|
||||
{"event":"service.stopped","level":"info","ts":"2026-10-30T04:29:36.188615Z"}
|
||||
{"event":"Finished server process [20]","level":"info","ts":"2026-10-30T04:29:36.188874Z"}
|
||||
{"event":"service.stopped","level":"info","ts":"2026-10-30T04:29:36.247500Z"}
|
||||
{"event":"Finished server process [19]","level":"info","ts":"2026-10-30T04:29:36.247910Z"}
|
||||
{"event":"Worker (pid:20) was sent SIGTERM!","level":"info","ts":"2026-10-30T04:29:36.250957Z"}
|
||||
{"event":"Worker (pid:19) was sent SIGTERM!","level":"info","ts":"2026-10-30T04:29:36.357386Z"}
|
||||
{"event":"Shutting down: Master","level":"info","ts":"2026-10-30T04:29:36.468491Z"}
|
||||
$ scripts/restore.sh
|
||||
Container mtusi2026lab4-api-2 Running
|
||||
Container mtusi2026lab4-api-1 Starting
|
||||
Container mtusi2026lab4-api-1 Started
|
||||
Container mtusi2026lab4-api-2 Waiting
|
||||
Container mtusi2026lab4-api-1 Waiting
|
||||
Container mtusi2026lab4-api-2 Healthy
|
||||
Container mtusi2026lab4-api-1 Healthy
|
||||
== after restore
|
||||
0cc3ee358e59 running started=2026-10-30T04:29:49.45750296Z finished=2026-10-30T04:29:36.57527926Z
|
||||
899a952a5a21 running started=2026-10-30T04:29:31.104320507Z finished=2026-10-30T04:29:18.153900709Z
|
||||
@@ -1,39 +0,0 @@
|
||||
date: 2026-10-28T18:29:25Z commit: 24f9d61
|
||||
== before: api replicas (hostname = X-Instance-Id), state, StartedAt, FinishedAt
|
||||
196b3a876d81 running started=2026-10-28T18:28:29.324800505Z finished=2026-10-28T18:26:09.117691179Z
|
||||
8bd1d38428d0 running started=2026-10-28T18:25:38.512082013Z finished=2026-10-28T18:25:25.52109609Z
|
||||
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://localhost:18084"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 129, "failed_attempts": 0, "first_recovery_seconds": 2.737}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
== after: api replicas
|
||||
196b3a876d81 exited started=2026-10-28T18:28:29.324800505Z finished=2026-10-28T18:29:28.219275009Z
|
||||
8bd1d38428d0 running started=2026-10-28T18:25:38.512082013Z finished=2026-10-28T18:25:25.52109609Z
|
||||
== stopped replica: 196b3a876d81; shutdown: signal, drain window with readiness 503, close, exit
|
||||
{"event":"Handling signal: term","level":"info","ts":"2026-10-28T18:29:25.807319Z"}
|
||||
{"event":"Draining for 2.0 s","level":"info","ts":"2026-10-28T18:29:25.850076Z"}
|
||||
{"event":"Draining for 2.0 s","level":"info","ts":"2026-10-28T18:29:25.854947Z"}
|
||||
{"method":"GET","route":"/health/ready","status":503,"request_id":"3ee651bebf50472d9f12e5496f2500d7","duration_ms":0.64,"event":"request.handled","level":"info","ts":"2026-10-28T18:29:25.990552Z"}
|
||||
{"method":"GET","route":"/health/ready","status":503,"request_id":"5f3ad3b3bc0449869616a50c4c0f1960","duration_ms":1.764,"event":"request.handled","level":"info","ts":"2026-10-28T18:29:26.504373Z"}
|
||||
{"method":"GET","route":"/health/ready","status":503,"request_id":"1466f11698c14a9892a8e9a5bd446597","duration_ms":0.3,"event":"request.handled","level":"info","ts":"2026-10-28T18:29:27.081651Z"}
|
||||
{"event":"Shutting down","level":"info","ts":"2026-10-28T18:29:27.852426Z"}
|
||||
{"event":"Shutting down","level":"info","ts":"2026-10-28T18:29:27.856950Z"}
|
||||
{"event":"service.stopped","level":"info","ts":"2026-10-28T18:29:27.963846Z"}
|
||||
{"event":"Finished server process [8]","level":"info","ts":"2026-10-28T18:29:27.964073Z"}
|
||||
{"event":"service.stopped","level":"info","ts":"2026-10-28T18:29:27.964840Z"}
|
||||
{"event":"Finished server process [7]","level":"info","ts":"2026-10-28T18:29:27.965086Z"}
|
||||
{"event":"Worker (pid:7) was sent SIGTERM!","level":"info","ts":"2026-10-28T18:29:28.007750Z"}
|
||||
{"event":"Worker (pid:8) was sent SIGTERM!","level":"info","ts":"2026-10-28T18:29:28.007877Z"}
|
||||
{"event":"Shutting down: Master","level":"info","ts":"2026-10-28T18:29:28.116313Z"}
|
||||
$ scripts/restore.sh
|
||||
Container mtusi2026lab4-api-2 Running
|
||||
Container mtusi2026lab4-api-1 Starting
|
||||
Container mtusi2026lab4-api-1 Started
|
||||
Container mtusi2026lab4-api-1 Waiting
|
||||
Container mtusi2026lab4-api-2 Waiting
|
||||
Container mtusi2026lab4-api-1 Healthy
|
||||
Container mtusi2026lab4-api-2 Healthy
|
||||
== after restore
|
||||
196b3a876d81 running started=2026-10-28T18:29:41.187041709Z finished=2026-10-28T18:29:28.219275009Z
|
||||
8bd1d38428d0 running started=2026-10-28T18:25:38.512082013Z finished=2026-10-28T18:25:25.52109609Z
|
||||
@@ -0,0 +1,39 @@
|
||||
date: 2026-10-30T04:29:14Z commit: 81dd816
|
||||
== before: api replicas (hostname = X-Instance-Id), state, StartedAt, FinishedAt
|
||||
0cc3ee358e59 running started=2026-10-30T04:28:59.851144131Z finished=0001-01-01T00:00:00Z
|
||||
899a952a5a21 running started=2026-10-30T04:29:11.286693179Z finished=2026-10-30T04:29:11.040183429Z
|
||||
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:18084"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 129, "failed_attempts": 0, "first_recovery_seconds": 2.885}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
== after: api replicas
|
||||
0cc3ee358e59 running started=2026-10-30T04:28:59.851144131Z finished=0001-01-01T00:00:00Z
|
||||
899a952a5a21 exited started=2026-10-30T04:29:11.286693179Z finished=2026-10-30T04:29:18.153900709Z
|
||||
== stopped replica: 899a952a5a21; shutdown: signal, drain window with readiness 503, close, exit
|
||||
{"event":"Handling signal: term","level":"info","ts":"2026-10-30T04:29:15.605798Z"}
|
||||
{"limit":2.0,"event":"service.draining","level":"info","ts":"2026-10-30T04:29:15.638898Z"}
|
||||
{"limit":2.0,"event":"service.draining","level":"info","ts":"2026-10-30T04:29:15.701830Z"}
|
||||
{"method":"GET","route":"/health/ready","status":503,"request_id":"b416afb071ad426a9dde141e952d697f","duration_ms":0.823,"event":"request.handled","level":"info","ts":"2026-10-30T04:29:16.528606Z"}
|
||||
{"method":"GET","route":"/health/ready","status":503,"request_id":"3fe4a4c39cb24a219d3a393a1c0332f0","duration_ms":1.591,"event":"request.handled","level":"info","ts":"2026-10-30T04:29:17.038813Z"}
|
||||
{"method":"GET","route":"/health/ready","status":503,"request_id":"152273913ad34012bf5eaf31432490ae","duration_ms":0.263,"event":"request.handled","level":"info","ts":"2026-10-30T04:29:17.388797Z"}
|
||||
{"event":"Shutting down","level":"info","ts":"2026-10-30T04:29:17.642635Z"}
|
||||
{"event":"Shutting down","level":"info","ts":"2026-10-30T04:29:17.714902Z"}
|
||||
{"event":"service.stopped","level":"info","ts":"2026-10-30T04:29:17.757838Z"}
|
||||
{"event":"Finished server process [20]","level":"info","ts":"2026-10-30T04:29:17.758374Z"}
|
||||
{"event":"Worker (pid:20) was sent SIGTERM!","level":"info","ts":"2026-10-30T04:29:17.826021Z"}
|
||||
{"event":"service.stopped","level":"info","ts":"2026-10-30T04:29:17.832655Z"}
|
||||
{"event":"Finished server process [13]","level":"info","ts":"2026-10-30T04:29:17.833005Z"}
|
||||
{"event":"Worker (pid:13) was sent SIGTERM!","level":"info","ts":"2026-10-30T04:29:17.927620Z"}
|
||||
{"event":"Shutting down: Master","level":"info","ts":"2026-10-30T04:29:18.029723Z"}
|
||||
$ scripts/restore.sh
|
||||
Container mtusi2026lab4-api-1 Running
|
||||
Container mtusi2026lab4-api-2 Starting
|
||||
Container mtusi2026lab4-api-2 Started
|
||||
Container mtusi2026lab4-api-2 Waiting
|
||||
Container mtusi2026lab4-api-1 Waiting
|
||||
Container mtusi2026lab4-api-2 Healthy
|
||||
Container mtusi2026lab4-api-1 Healthy
|
||||
== after restore
|
||||
0cc3ee358e59 running started=2026-10-30T04:28:59.851144131Z finished=0001-01-01T00:00:00Z
|
||||
899a952a5a21 running started=2026-10-30T04:29:31.104320507Z finished=2026-10-30T04:29:18.153900709Z
|
||||
@@ -1,39 +0,0 @@
|
||||
date: 2026-10-28T18:29:44Z commit: 24f9d61
|
||||
== before: api replicas (hostname = X-Instance-Id), state, StartedAt, FinishedAt
|
||||
196b3a876d81 running started=2026-10-28T18:29:41.187041709Z finished=2026-10-28T18:29:28.219275009Z
|
||||
8bd1d38428d0 running started=2026-10-28T18:25:38.512082013Z finished=2026-10-28T18:25:25.52109609Z
|
||||
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://localhost:18084"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 127, "failed_attempts": 0, "first_recovery_seconds": 3.076}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
== after: api replicas
|
||||
196b3a876d81 running started=2026-10-28T18:29:41.187041709Z finished=2026-10-28T18:29:28.219275009Z
|
||||
8bd1d38428d0 exited started=2026-10-28T18:25:38.512082013Z finished=2026-10-28T18:29:47.669441462Z
|
||||
== stopped replica: 8bd1d38428d0; shutdown: signal, drain window with readiness 503, close, exit
|
||||
{"event":"Handling signal: term","level":"info","ts":"2026-10-28T18:29:44.898894Z"}
|
||||
{"event":"Draining for 2.0 s","level":"info","ts":"2026-10-28T18:29:44.961814Z"}
|
||||
{"event":"Draining for 2.0 s","level":"info","ts":"2026-10-28T18:29:44.977718Z"}
|
||||
{"method":"GET","route":"/health/ready","status":503,"request_id":"ec593d2f46144036b1dd668ecd5f92ec","duration_ms":0.286,"event":"request.handled","level":"info","ts":"2026-10-28T18:29:45.347641Z"}
|
||||
{"method":"GET","route":"/health/ready","status":503,"request_id":"c31a3838896d4bf5b00be6a5d1e13aa8","duration_ms":1.492,"event":"request.handled","level":"info","ts":"2026-10-28T18:29:45.711924Z"}
|
||||
{"method":"GET","route":"/health/ready","status":503,"request_id":"2be83d842d0e4f9bbf38240a90eaffb0","duration_ms":0.413,"event":"request.handled","level":"info","ts":"2026-10-28T18:29:46.217772Z"}
|
||||
{"event":"Shutting down","level":"info","ts":"2026-10-28T18:29:46.963596Z"}
|
||||
{"event":"Shutting down","level":"info","ts":"2026-10-28T18:29:46.979906Z"}
|
||||
{"event":"service.stopped","level":"info","ts":"2026-10-28T18:29:47.071763Z"}
|
||||
{"event":"Finished server process [8]","level":"info","ts":"2026-10-28T18:29:47.072039Z"}
|
||||
{"event":"service.stopped","level":"info","ts":"2026-10-28T18:29:47.084542Z"}
|
||||
{"event":"Finished server process [7]","level":"info","ts":"2026-10-28T18:29:47.084788Z"}
|
||||
{"event":"Worker (pid:8) was sent SIGTERM!","level":"info","ts":"2026-10-28T18:29:47.087800Z"}
|
||||
{"event":"Worker (pid:7) was sent SIGTERM!","level":"info","ts":"2026-10-28T18:29:47.199665Z"}
|
||||
{"event":"Shutting down: Master","level":"info","ts":"2026-10-28T18:29:47.308734Z"}
|
||||
$ scripts/restore.sh
|
||||
Container mtusi2026lab4-api-1 Running
|
||||
Container mtusi2026lab4-api-2 Starting
|
||||
Container mtusi2026lab4-api-2 Started
|
||||
Container mtusi2026lab4-api-1 Waiting
|
||||
Container mtusi2026lab4-api-2 Waiting
|
||||
Container mtusi2026lab4-api-1 Healthy
|
||||
Container mtusi2026lab4-api-2 Healthy
|
||||
== after restore
|
||||
196b3a876d81 running started=2026-10-28T18:29:41.187041709Z finished=2026-10-28T18:29:28.219275009Z
|
||||
8bd1d38428d0 running started=2026-10-28T18:30:00.267276635Z finished=2026-10-28T18:29:47.669441462Z
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"ok": true,
|
||||
"scenario": "failover-upload",
|
||||
"upload_instance": "196b3a876d81",
|
||||
"download_instance": "8bd1d38428d0",
|
||||
"upload_instance": "899a952a5a21",
|
||||
"download_instance": "0cc3ee358e59",
|
||||
"sha256_equal": true,
|
||||
"hook_seconds": 2.69,
|
||||
"download_ok_after_seconds": 2.704,
|
||||
"hook_seconds": 2.72,
|
||||
"download_ok_after_seconds": 2.73,
|
||||
"restored": true
|
||||
}
|
||||
|
||||
@@ -0,0 +1,106 @@
|
||||
date: 2026-10-30T04:31:11Z commit: 81dd816
|
||||
$ make test-faults
|
||||
BASE_URL="http://127.0.0.1:18084" .venv/bin/pytest -m stack -v -s student-tests/stack
|
||||
============================= test session starts ==============================
|
||||
platform darwin -- Python 3.14.5, pytest-9.1.1, pluggy-1.6.0 -- <repo>/.venv/bin/python
|
||||
cachedir: .pytest_cache
|
||||
rootdir: <repo>
|
||||
configfile: pyproject.toml
|
||||
plugins: asyncio-1.4.0, anyio-4.15.1
|
||||
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function
|
||||
collecting ... collected 17 items
|
||||
|
||||
student-tests/stack/test_attachment_faults.py::test_user_errors_never_become_500 10 MiB + 1 с Content-Length, тело не отправлено: 413
|
||||
10 MiB + 1 chunked: 413
|
||||
PNG 100000×100000 (бомба): 413
|
||||
PNG 8001×5000: 413
|
||||
обрезанный PNG: 415
|
||||
обрезанный JPEG: 415
|
||||
JPEG как image/png: 415
|
||||
GIF как image/png: 415
|
||||
WebP как image/png: 415
|
||||
текст как image/png: 415
|
||||
PNG как image/jpeg: 415
|
||||
пустое тело: 415
|
||||
application/octet-stream: 415
|
||||
без Content-Type: 415
|
||||
filename='../a.png': 400
|
||||
filename='a/b.png': 400
|
||||
filename='a\\b.png': 400
|
||||
filename='a\x00.png': 400
|
||||
filename='a\x01.png': 400
|
||||
filename='a\x7f.png': 400
|
||||
filename='': 400
|
||||
filename=' ': 400
|
||||
filename='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx: 400
|
||||
filename=None: 400
|
||||
посторонний: upload в чужой чат: 404
|
||||
посторонний: метаданные: 404
|
||||
посторонний: /content: 404
|
||||
посторонний: ссылка на чужое вложение: 404
|
||||
вложение другого чата: 404
|
||||
неизвестное вложение: 404
|
||||
11 вложений: 400
|
||||
повтор вложения: 400
|
||||
невалидный UUID: 400
|
||||
пустой текст без вложений: 400
|
||||
невалидный id вложения: 400
|
||||
variant=thumbnail: 400
|
||||
строк вложений в чате: 2 (= ответов 201); ответов в журнале реплик: 54, из них 5xx: 0
|
||||
PASSED
|
||||
student-tests/stack/test_attachment_faults.py::test_commit_failure_is_compensated_at_once отказ COMMIT после записи объекта: 503 unavailable
|
||||
сразу после ответа: строка нет, объект HEAD 404
|
||||
журнал: audit.attachment_discarded reason=compensation
|
||||
PASSED
|
||||
student-tests/stack/test_attachment_faults.py::test_crash_between_put_and_commit_is_swept_after_grace реплика 899a952a5a21 убита между PUT и COMMIT, клиент получил 502
|
||||
реплика 0cc3ee358e59 убита между PUT и COMMIT, клиент получил 502
|
||||
остаток после падения: строка pending, объект HEAD 200
|
||||
остаток после падения: строка pending, объект HEAD 200
|
||||
старше grace: строка убрана через 26.2 с, объект HEAD 404
|
||||
моложе grace: строка pending, объект HEAD 200
|
||||
тот же после сдвига: убран через 1.0 с, объект HEAD 404
|
||||
готовое вложение в сообщении со сдвинутым created_at скачивается, SHA-256 совпадает
|
||||
PASSED
|
||||
student-tests/stack/test_attachment_faults.py::test_aborted_upload_leaves_nothing обрыв после 256 KiB из 5 MiB: статус в журнале реплики [400], намерение None
|
||||
PASSED
|
||||
student-tests/stack/test_attachment_faults.py::test_stalled_upload_is_cut_and_leaves_nothing тело зависло после 1 KiB: 503 unavailable за 8.01 с
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_registration_race_yields_exactly_one_user гонка 50 регистраций: 201×1, 409×49
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_chat_creation_rolls_back_on_unknown_member чат с несуществующим участником: 400 invalid_request
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_wrong_password_and_unknown_user_get_same_basic_challenge неверный пароль: 401 за 0.011 с
|
||||
неизвестный пользователь: 401 за 0.011 с
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_logout_then_token_is_dead logout: 204, затем 401, повтор 401
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_valkey_serves_repeated_checks 5 проверок токена: keyspace_hits 119 → 124
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_valkey_stopped_is_bypassed_but_logout_waits valkey остановлен, действующий токен: 200 за 0.004 с
|
||||
valkey остановлен, неизвестный токен: 401 за 0.003 с
|
||||
valkey остановлен: ready 200, вход 201, выход 503
|
||||
valkey снова запущен: повторный выход 204
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_valkey_restart_keeps_cache_and_revocations рестарт valkey: ключей 45 → 45
|
||||
рестарт valkey: живой 200, отозванный 401
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_valkey_flushall_loses_nothing FLUSHALL: живой 200, отозванный 401
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_postgres_stopped_gives_bounded_503_and_recovers postgres остановлен, ready: 503 за 0.004 с
|
||||
postgres остановлен, me: 503 за 0.003 с
|
||||
postgres остановлен, stranger: 503 за 0.002 с
|
||||
postgres остановлен, login: 503 за 0.002 с
|
||||
postgres остановлен, register: 503 за 0.015 с
|
||||
live внутри реплики 200; LB исключил все реплики ещё через 1.16 с
|
||||
live через LB без реплик: 503 за 0.000 с
|
||||
postgres запущен: готовность через 1.6 с, прежний токен 200
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_api_restart_keeps_session_without_extending_it рестарт api: готовность через 2.3 с, токен 200
|
||||
expires_at при входе 2026-10-30T05:32:12.249834Z, в БД после рестарта 2026-10-30T05:32:12.249834Z
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_full_restart_keeps_session_until_logout restart.sh: готовность через 0.0 с, прежний токен 200, выход 204, затем 401
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_session_expires_after_restart_at_original_time срок сессии сокращён до 20 с, рестарт api: готовность через 3.1 с, до срока 200, после срока 401
|
||||
PASSED
|
||||
|
||||
======================== 17 passed in 98.43s (0:01:38) =========================
|
||||
+6
-6
@@ -1,13 +1,13 @@
|
||||
date: 2026-10-28T18:07:56Z commit: 24f9d61
|
||||
$ psql -c "SELECT substring(password_hash from '^[$]argon2id[$]v=[0-9]+[$]m=[0-9]+,t=[0-9]+,p=[0-9]+[$]') AS kdf_prefix, count(*) AS users, min(length(password_hash)) AS hash_length FROM users GROUP BY 1"
|
||||
kdf_prefix | users | hash_length
|
||||
---------------------------------+-------+-------------
|
||||
$argon2id$v=19$m=19456,t=2,p=1$ | 3 | 97
|
||||
date: 2026-10-30T04:32:56Z commit: 81dd816
|
||||
$ psql -c "SELECT substring(password_hash from '^[$]argon2id[$]v=[0-9]+[$]m=[0-9]+,t=[0-9]+,p=[0-9]+[$]') AS kdf_prefix, username = 'seed_author' AS seed_stub, count(*) AS users, min(length(password_hash)) AS min_length, max(length(password_hash)) AS max_length FROM users GROUP BY 1, 2 ORDER BY 2"
|
||||
kdf_prefix | seed_stub | users | min_length | max_length
|
||||
---------------------------------+-----------+-------+------------+------------
|
||||
$argon2id$v=19$m=19456,t=2,p=1$ | f | 66 | 97 | 97
|
||||
(1 row)
|
||||
|
||||
$ psql -c "SELECT octet_length(token_hash) AS stored_bytes, count(*) AS sessions FROM sessions GROUP BY 1"
|
||||
stored_bytes | sessions
|
||||
--------------+----------
|
||||
32 | 2
|
||||
32 | 60
|
||||
(1 row)
|
||||
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"instances_one_token": {
|
||||
"899a952a5a21": 20,
|
||||
"0cc3ee358e59": 20
|
||||
},
|
||||
"same_key": {
|
||||
"rounds": 20,
|
||||
"parallel": 8,
|
||||
"statuses": {
|
||||
"201": 160
|
||||
},
|
||||
"instances": {
|
||||
"899a952a5a21": 80,
|
||||
"0cc3ee358e59": 80
|
||||
},
|
||||
"identical_bodies_rounds": 20,
|
||||
"single_copy_rounds": 20,
|
||||
"conflict_rounds": 20
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
date: 2026-10-30T04:29:07Z commit: 81dd816
|
||||
$ docker compose --profile bench --profile tools --profile reconcile config --format json (declared)
|
||||
service cpus/mem ports secrets volumes networks ro
|
||||
---------- ---------- ------------------------------- -------------------------------------------------------------------------- ---------- ---------------------- -----
|
||||
api 1/512MiB - cache_url,cursor_secret,database_url,s3_access_key_id,s3_secret_access_key - backend(internal) true
|
||||
k6 2/512MiB - - - edge false
|
||||
lb 1/128MiB 127.0.0.1:18084,127.0.0.1:24084 - - backend(internal),edge true
|
||||
migrate 0.5/256MiB - database_url - backend(internal) false
|
||||
postgres 2/1024MiB - postgres_password pgdata backend(internal) false
|
||||
reconciler 1/256MiB - database_url,s3_access_key_id,s3_secret_access_key - backend(internal) true
|
||||
s3 1/512MiB - s3_root_password,s3_root_user s3data backend(internal) true
|
||||
s3-cli 0.5/64MiB - s3_access_key_id,s3_root_password,s3_root_user,s3_secret_access_key - backend(internal) true
|
||||
s3-init 0.5/64MiB - s3_access_key_id,s3_root_password,s3_root_user,s3_secret_access_key - backend(internal) true
|
||||
valkey 0.5/128MiB - valkey.conf valkeydata backend(internal) false
|
||||
|
||||
$ docker inspect (running containers: hostname = X-Instance-Id, applied limits)
|
||||
service hostname cpus memory published
|
||||
-------- ------------ ---- ------- ---------------------------------------------------
|
||||
api 0cc3ee358e59 1 512MiB
|
||||
api 899a952a5a21 1 512MiB
|
||||
lb a51c65de79e9 1 128MiB 127.0.0.1:18084->8080/tcp,127.0.0.1:24084->8404/tcp
|
||||
postgres 54d604398b41 2 1024MiB
|
||||
s3 89f363c93892 1 512MiB
|
||||
valkey 99365a2af315 0.5 128MiB
|
||||
|
||||
PASS: limits, ports, secrets, volumes and networks match the policy
|
||||
@@ -0,0 +1,66 @@
|
||||
date: 2026-10-30T04:43:19Z commit: 81dd816
|
||||
# закрытый контур tests/load.py: 64 потока, 8 с, все записи прогона в один чат, 3 повтора с паузой 15 с.
|
||||
# Клиент — одноразовый контейнер в сети edge стенда (как k6 в лабе 3): 2 CPU, 512 MiB, образ python API по digest,
|
||||
# tests/, contracts/ и lab.json только для чтения, tcp_tw_reuse=1; адрес — http://lb:8080. С хоста macOS тот же
|
||||
# прогон упирается в эфемерные порты прокси Docker Desktop (новое соединение на запрос): ~16 000 сокетов TIME_WAIT,
|
||||
# клиентские ошибки соединения без единого запроса к LB, поэтому замер с хоста не годится.
|
||||
# На 4-й секунде — docker stats; после прогона — статусы request.handled реплик за окно прогона.
|
||||
$ docker ps --format '{{.Names}}' | grep -v mtusi2026lab4 # чужие контейнеры на VM во время серии
|
||||
mtusi-lab6-test-rabbitmq-44e4f19b
|
||||
$ client() { docker run --rm --network mtusi2026lab4_edge --cpus 2 --memory 512m --sysctl net.ipv4.tcp_tw_reuse=1 -v tests,contracts,lab.json:ro -v evidence/load:/out python:3.14-slim-trixie@sha256:51dafde8… python /w/tests/load.py "$@"; }
|
||||
$ client --base-url http://lb:8080 --duration 8 --concurrency 64 --output /out/run1.json
|
||||
exit 0
|
||||
{'elapsed_seconds': 8.191, 'successful_requests': 17199, 'failed_requests': 0, 'successful_rps': 2099.764, 'successful_latency_ms': {'p50': 25.927, 'p95': 68.522, 'p99': 96.55}}
|
||||
$ docker stats --no-stream (середина прогона): контейнер CPU% память
|
||||
api-1 89.46% 215MiB / 512MiB
|
||||
api-2 91.69% 214.8MiB / 512MiB
|
||||
lab4-load-client 106.19% 83.36MiB / 512MiB
|
||||
lb-1 80.99% 25.83MiB / 128MiB
|
||||
postgres-1 215.44% 164.6MiB / 1GiB
|
||||
s3-1 0.81% 327.6MiB / 512MiB
|
||||
valkey-1 6.12% 14.06MiB / 128MiB
|
||||
$ docker compose logs --since 2026-10-30T04:43:19Z api | request.handled: статус метод маршрут число
|
||||
200 GET /health/live 1
|
||||
200 GET /health/ready 23
|
||||
201 POST /api/v1/auth/sessions 3
|
||||
201 POST /api/v1/chats 1
|
||||
201 POST /api/v1/chats/{chat_id}/messages 17199
|
||||
201 POST /api/v1/users 3
|
||||
$ client --base-url http://lb:8080 --duration 8 --concurrency 64 --output /out/run2.json
|
||||
exit 0
|
||||
{'elapsed_seconds': 8.207, 'successful_requests': 17386, 'failed_requests': 0, 'successful_rps': 2118.439, 'successful_latency_ms': {'p50': 26.371, 'p95': 66.641, 'p99': 86.248}}
|
||||
$ docker stats --no-stream (середина прогона): контейнер CPU% память
|
||||
api-1 92.83% 216.9MiB / 512MiB
|
||||
api-2 93.26% 216.8MiB / 512MiB
|
||||
lab4-load-client 106.22% 82.68MiB / 512MiB
|
||||
lb-1 79.14% 26.29MiB / 128MiB
|
||||
postgres-1 213.30% 174.1MiB / 1GiB
|
||||
s3-1 0.01% 337.3MiB / 512MiB
|
||||
valkey-1 6.36% 13.95MiB / 128MiB
|
||||
$ docker compose logs --since 2026-10-30T04:43:43Z api | request.handled: статус метод маршрут число
|
||||
200 GET /health/live 1
|
||||
200 GET /health/ready 23
|
||||
201 POST /api/v1/auth/sessions 3
|
||||
201 POST /api/v1/chats 1
|
||||
201 POST /api/v1/chats/{chat_id}/messages 17386
|
||||
201 POST /api/v1/users 3
|
||||
$ client --base-url http://lb:8080 --duration 8 --concurrency 64 --output /out/run3.json
|
||||
exit 0
|
||||
{'elapsed_seconds': 8.229, 'successful_requests': 17332, 'failed_requests': 0, 'successful_rps': 2106.215, 'successful_latency_ms': {'p50': 26.607, 'p95': 67.007, 'p99': 88.37}}
|
||||
$ docker stats --no-stream (середина прогона): контейнер CPU% память
|
||||
api-1 96.95% 217.1MiB / 512MiB
|
||||
api-2 97.50% 218.4MiB / 512MiB
|
||||
lab4-load-client 101.96% 82.94MiB / 512MiB
|
||||
lb-1 79.73% 26.28MiB / 128MiB
|
||||
postgres-1 212.83% 186.4MiB / 1GiB
|
||||
s3-1 3.74% 343MiB / 512MiB
|
||||
valkey-1 6.35% 13.94MiB / 128MiB
|
||||
$ docker compose logs --since 2026-10-30T04:44:07Z api | request.handled: статус метод маршрут число
|
||||
200 GET /health/live 1
|
||||
200 GET /health/ready 23
|
||||
201 POST /api/v1/auth/sessions 3
|
||||
201 POST /api/v1/chats 1
|
||||
201 POST /api/v1/chats/{chat_id}/messages 17332
|
||||
201 POST /api/v1/users 3
|
||||
$ docker compose exec -T postgres psql: сообщений в базе после серии
|
||||
70839
|
||||
@@ -0,0 +1,24 @@
|
||||
date: 2026-10-30T04:32:57Z commit: 81dd816 BASE_URL=http://127.0.0.1:18084
|
||||
# Отброшенная первая попытка: тот же tests/load.py (64 потока, 8 с, пауза 40 с), но клиент на хосте macOS.
|
||||
# Исходный load.txt этой попытки перезаписан итоговой серией; строки ниже перенесены дословно из вывода консоли
|
||||
# сессии. Третий повтор и его вывод не сохранились.
|
||||
$ python3 tests/load.py --base-url http://127.0.0.1:18084 --duration 8 --concurrency 64 --output evidence/load/run1.json
|
||||
{'elapsed_seconds': 8.117, 'successful_requests': 8119, 'failed_requests': 10045, 'successful_rps': 1000.281, 'successful_latency_ms': {'p50': 47.448, 'p95': 58.768, 'p99': 91.04}}
|
||||
$ docker compose logs --since 2026-10-30T04:32:57Z api | request.handled: статус × маршрут
|
||||
201 POST /api/v1/chats/{chat_id}/messages 8119
|
||||
$ netstat -an -p tcp | grep -c TIME_WAIT # через несколько секунд после повтора 1
|
||||
16350
|
||||
$ sysctl net.inet.ip.portrange.first net.inet.ip.portrange.last net.inet.tcp.msl
|
||||
net.inet.ip.portrange.first: 49152
|
||||
net.inet.ip.portrange.last: 65535
|
||||
net.inet.tcp.msl: 15000
|
||||
$ python3 tests/load.py --base-url http://127.0.0.1:18084 --duration 8 --concurrency 64 --output evidence/load/run2.json # после паузы 40 с
|
||||
{'elapsed_seconds': 8.144, 'successful_requests': 2396, 'failed_requests': 6398, 'successful_rps': 294.186, 'successful_latency_ms': {'p50': 46.791, 'p95': 53.737, 'p99': 58.858}}
|
||||
$ docker compose logs --since 2026-10-30T04:33:45Z api | request.handled: статус × маршрут
|
||||
201 POST /api/v1/chats/{chat_id}/messages 2396
|
||||
$ netstat -an -p tcp | grep -c TIME_WAIT
|
||||
16959
|
||||
# Вывод: реплики ответили 201 на каждый дошедший запрос и ни одного 5xx; все неудачи — клиентские ошибки соединения
|
||||
# при ~16 000 сокетов TIME_WAIT на хосте (диапазон эфемерных портов — 16 384, TIME_WAIT 2 × MSL = 30 с, прокси
|
||||
# Docker Desktop держит свои сокеты на каждое соединение). tests/load.py открывает соединение на каждый запрос,
|
||||
# поэтому замер с хоста ограничен портами хоста, а не стендом; итоговая серия — клиентом в сети edge (load.txt).
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"lab": 4,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 8.0,
|
||||
"elapsed_seconds": 8.191,
|
||||
"concurrency": 64,
|
||||
"successful_requests": 17199,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 2099.764,
|
||||
"successful_latency_ms": {
|
||||
"p50": 25.927,
|
||||
"p95": 68.522,
|
||||
"p99": 96.55
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"lab": 4,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 8.0,
|
||||
"elapsed_seconds": 8.207,
|
||||
"concurrency": 64,
|
||||
"successful_requests": 17386,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 2118.439,
|
||||
"successful_latency_ms": {
|
||||
"p50": 26.371,
|
||||
"p95": 66.641,
|
||||
"p99": 86.248
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"lab": 4,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 8.0,
|
||||
"elapsed_seconds": 8.229,
|
||||
"concurrency": 64,
|
||||
"successful_requests": 17332,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 2106.215,
|
||||
"successful_latency_ms": {
|
||||
"p50": 26.607,
|
||||
"p95": 67.007,
|
||||
"p99": 88.37
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
@@ -1,15 +1,15 @@
|
||||
date: 2026-10-28T18:07:54Z commit: 24f9d61
|
||||
date: 2026-10-30T04:32:54Z commit: 81dd816
|
||||
$ psql -c "SELECT (SELECT count(*) FROM users) users, (SELECT count(*) FROM sessions) sessions, (SELECT count(*) FROM chats) chats, (SELECT count(*) FROM chat_members) members, (SELECT count(*) FROM messages) messages, (SELECT count(*) FROM idempotency_keys) keys, (SELECT count(*) FROM attachments) attachments, (SELECT count(*) FROM message_attachments) links, (SELECT count(*) FROM schema_migrations) versions"
|
||||
users | sessions | chats | members | messages | keys | attachments | links | versions
|
||||
-------+----------+-------+---------+----------+------+-------------+-------+----------
|
||||
3 | 2 | 1 | 2 | 3 | 3 | 1 | 1 | 3
|
||||
66 | 60 | 38 | 56 | 288 | 288 | 17 | 3 | 4
|
||||
(1 row)
|
||||
|
||||
$ make migrate
|
||||
{"reason":"up to date","event":"migration.completed","level":"info","ts":"2026-10-28T18:07:56.099296Z"}
|
||||
{"reason":"up to date","event":"migration.completed","level":"info","ts":"2026-10-30T04:32:56.159252Z"}
|
||||
$ psql -c "SELECT (SELECT count(*) FROM users) users, (SELECT count(*) FROM sessions) sessions, (SELECT count(*) FROM chats) chats, (SELECT count(*) FROM chat_members) members, (SELECT count(*) FROM messages) messages, (SELECT count(*) FROM idempotency_keys) keys, (SELECT count(*) FROM attachments) attachments, (SELECT count(*) FROM message_attachments) links, (SELECT count(*) FROM schema_migrations) versions"
|
||||
users | sessions | chats | members | messages | keys | attachments | links | versions
|
||||
-------+----------+-------+---------+----------+------+-------------+-------+----------
|
||||
3 | 2 | 1 | 2 | 3 | 3 | 1 | 1 | 3
|
||||
66 | 60 | 38 | 56 | 288 | 288 | 17 | 3 | 4
|
||||
(1 row)
|
||||
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
date: 2026-10-30T04:43:02Z commit: 81dd816
|
||||
# после трёх прогонов upload-memory и mmap-32m на том же стенде: 68 загрузок получили 503 (7 + 27 + 34, все при 40 одновременных по 10 MiB)
|
||||
$ make reconcile # dry-run, 04:42:40Z, сразу после серии
|
||||
{"mode": "dry-run", "grace_seconds": 3600, "scanned": {"objects": 1794, "rows": 1837}, "found": {"orphan_stale": 0, "orphan_fresh": 0, "missing": 0, "size_mismatch": 0, "sha_mismatch": 0, "pending_stale": 0, "pending_fresh": 68, "quarantined": 0, "healed": 0}, "fixed": {"orphan_stale": 0, "missing": 0, "size_mismatch": 0, "sha_mismatch": 0, "pending_stale": 0, "healed": 0}, "errors": 0}
|
||||
$ psql -c "SELECT status, count(*), min(created_at), max(created_at) FROM attachments GROUP BY status"
|
||||
status | count | min | max
|
||||
---------+-------+-------------------------------+-------------------------------
|
||||
pending | 68 | 2026-10-30 04:30:05.876922+00 | 2026-10-30 04:38:09.467838+00
|
||||
ready | 1769 | 2026-10-30 02:30:27.495355+00 | 2026-10-30 04:42:33.025293+00
|
||||
(2 rows)
|
||||
|
||||
$ psql -c "SELECT created_at < '2026-10-30 04:34:42+00' AS before_upload_memory, count(*), sum(size_bytes) FILTER (WHERE size_bytes > 10000000) / 1048576 AS mib_10m FROM attachments WHERE status = 'pending' GROUP BY 1 ORDER BY 1"
|
||||
before_upload_memory | count | mib_10m
|
||||
----------------------+-------+----------------------
|
||||
f | 67 | 669.9677963256835938
|
||||
t | 1 |
|
||||
(2 rows)
|
||||
|
||||
# ожидание: until [ $(psql -tA -c "SELECT count(*) FROM attachments WHERE status='pending'") = 0 ]; do sleep 10; done
|
||||
pending = 0 в 2026-10-30T04:53:47Z (последнее намерение создано в 04:38:09, grace 900 с, уборка раз в 30 с)
|
||||
$ docker compose logs api | audit.attachment_discarded по причине и времени (сортировка по ts); сумма attachments.swept
|
||||
{'abandoned': 68} swept 68; по времени: первое 2026-10-30T04:45:08Z (намерение от s3-outage), затем 67 с 04:51:08Z по 04:53:38Z
|
||||
$ psql -c "SELECT status, count(*) FROM attachments GROUP BY status"
|
||||
status | count
|
||||
--------+-------
|
||||
ready | 1769
|
||||
(1 row)
|
||||
|
||||
$ make reconcile # dry-run после уборки
|
||||
{"mode": "dry-run", "grace_seconds": 3600, "scanned": {"objects": 1769, "rows": 1769}, "found": {"orphan_stale": 0, "orphan_fresh": 0, "missing": 0, "size_mismatch": 0, "sha_mismatch": 0, "pending_stale": 0, "pending_fresh": 0, "quarantined": 0, "healed": 0}, "fixed": {"orphan_stale": 0, "missing": 0, "size_mismatch": 0, "sha_mismatch": 0, "pending_stale": 0, "healed": 0}, "errors": 0}
|
||||
+18
-18
@@ -1,22 +1,22 @@
|
||||
date: 2026-10-28T18:45:50Z commit: 24f9d61
|
||||
date: 2026-10-30T04:29:52Z commit: 81dd816
|
||||
== before: service hostname StartedAt status
|
||||
api 196b3a876d81 2026-10-28T18:29:41.187041709Z running
|
||||
api 8bd1d38428d0 2026-10-28T18:30:00.267276635Z running
|
||||
lb 5ee5dad8003c 2026-10-28T17:51:03.006429091Z running
|
||||
migrate 953e57e47bd0 2026-10-28T17:51:08.581653636Z exited
|
||||
postgres b6579b111fba 2026-10-28T17:51:03.015556258Z running
|
||||
s3 b6098ae6a07c 2026-10-28T17:51:03.018554716Z running
|
||||
s3-init a815e0190d6e 2026-10-28T17:51:08.598551386Z exited
|
||||
valkey fb5b482d1d20 2026-10-28T17:51:03.019280466Z running
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost:18084"
|
||||
api 0cc3ee358e59 2026-10-30T04:29:49.45750296Z running
|
||||
api 899a952a5a21 2026-10-30T04:29:31.104320507Z running
|
||||
lb a51c65de79e9 2026-10-30T04:28:53.588116504Z running
|
||||
migrate 9181dd1eb5a8 2026-10-30T04:28:54.673721004Z exited
|
||||
postgres 54d604398b41 2026-10-30T04:28:53.58363217Z running
|
||||
s3 89f363c93892 2026-10-30T04:28:53.59152942Z running
|
||||
s3-init a8f9ad1766ab 2026-10-30T04:28:59.185601048Z exited
|
||||
valkey 99365a2af315 2026-10-30T04:28:53.590483087Z running
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:18084"
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
== after: service hostname StartedAt status
|
||||
api 196b3a876d81 2026-10-28T18:46:00.241797636Z running
|
||||
api 8bd1d38428d0 2026-10-28T18:46:00.316077636Z running
|
||||
lb 5ee5dad8003c 2026-10-28T18:45:54.117490049Z running
|
||||
migrate 953e57e47bd0 2026-10-28T18:45:59.135693677Z exited
|
||||
postgres b6579b111fba 2026-10-28T18:45:53.821784591Z running
|
||||
s3 b6098ae6a07c 2026-10-28T18:45:53.797547883Z running
|
||||
s3-init a815e0190d6e 2026-10-28T18:45:59.140801177Z exited
|
||||
valkey fb5b482d1d20 2026-10-28T18:45:53.875502383Z running
|
||||
api 0cc3ee358e59 2026-10-30T04:30:01.738275341Z running
|
||||
api 899a952a5a21 2026-10-30T04:30:01.662962216Z running
|
||||
lb a51c65de79e9 2026-10-30T04:29:56.045382713Z running
|
||||
migrate 9181dd1eb5a8 2026-10-30T04:29:56.567340338Z exited
|
||||
postgres 54d604398b41 2026-10-30T04:29:55.776017088Z running
|
||||
s3 89f363c93892 2026-10-30T04:29:55.723034421Z running
|
||||
s3-init a8f9ad1766ab 2026-10-30T04:30:01.069323507Z exited
|
||||
valkey 99365a2af315 2026-10-30T04:29:55.801923296Z running
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
date: 2026-10-28T21:19:01Z commit: a774a2f BASE_URL=http://localhost:18084
|
||||
# Регрессия уровня «3» и лабы 3 после изменений уровня «4» (буферы сокетов LB и API, порог mmap, слоты, уборка)
|
||||
$ make test
|
||||
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
|
||||
$ make test-persistence ACTION_SCRIPT=scripts/restart.sh
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh # прогон 1
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
mtusi2026lab4-api-1 Up 25 seconds (healthy)
|
||||
mtusi2026lab4-api-2 Exited (0) 12 seconds ago
|
||||
$ make restore
|
||||
restored: 2 healthy
|
||||
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh # прогон 2
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
mtusi2026lab4-api-1 Exited (0) 12 seconds ago
|
||||
mtusi2026lab4-api-2 Up 17 seconds (healthy)
|
||||
$ make restore
|
||||
restored: 2 healthy
|
||||
$ python3 scripts/lab4_scenarios.py failover-upload --restore
|
||||
exit 0: {'ok': True, 'upload_instance': '0b2544e9c8de', 'download_instance': 'cf30d7db141f', 'sha256_equal': True, 'download_ok_after_seconds': 2.709}
|
||||
$ python3 scripts/lab4_scenarios.py s3-outage --restore
|
||||
exit 0: {'ok': True, 'as_expected': True, 's3_back_healthy_seconds': 5.697}
|
||||
$ python3 scripts/lab4_scenarios.py abort-upload --restore
|
||||
exit 0: {'ok': True, 'rows_by_status': {}, 'ready_rows': 0, 'api_still_serves': True}
|
||||
s3-outage: upload 503 за 1.696 с, metadata 200 за 0.018 с, download 503 за 1.631 с, text_message 201 за 0.007 с, health_ready 200 за 0.002 с
|
||||
$ make limits
|
||||
PASS: limits, ports, secrets, volumes and networks match the policy
|
||||
$ make test-faults # все проверки стенда student-tests/stack: лабы 2–3 и уровень «4» лабы 4
|
||||
======================== 15 passed in 64.77s (0:01:04) =========================
|
||||
student-tests/stack/test_attachment_faults.py: 5
|
||||
student-tests/stack/test_faults.py: 10
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"variants": [
|
||||
{
|
||||
"variant": "timeout",
|
||||
"lost_attempt": {
|
||||
"status": 0,
|
||||
"client_timeout_s": 0.5,
|
||||
"chat_lock_held_s": 1.5,
|
||||
"replica": "899a952a5a21",
|
||||
"replica_killed": false,
|
||||
"replica_answered": 201
|
||||
},
|
||||
"retry": {
|
||||
"after_s": 1.53,
|
||||
"status": 201,
|
||||
"attempts": 1,
|
||||
"replica": "0cc3ee358e59"
|
||||
},
|
||||
"copies_in_history": 1,
|
||||
"same_message": true,
|
||||
"written_by": "lost attempt",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"variant": "kill",
|
||||
"lost_attempt": {
|
||||
"status": 0,
|
||||
"client_timeout_s": 0.5,
|
||||
"chat_lock_held_s": 1.5,
|
||||
"replica": "0cc3ee358e59",
|
||||
"replica_killed": true,
|
||||
"replica_answered": null
|
||||
},
|
||||
"retry": {
|
||||
"after_s": 1.536,
|
||||
"status": 201,
|
||||
"attempts": 1,
|
||||
"replica": "899a952a5a21"
|
||||
},
|
||||
"copies_in_history": 1,
|
||||
"same_message": true,
|
||||
"written_by": "lost attempt",
|
||||
"pass": true
|
||||
}
|
||||
],
|
||||
"pass": true
|
||||
}
|
||||
+11
-11
@@ -4,28 +4,28 @@
|
||||
"during_outage": {
|
||||
"upload": {
|
||||
"status": 503,
|
||||
"seconds": 0.975,
|
||||
"instance": "8bd1d38428d0"
|
||||
"seconds": 2.234,
|
||||
"instance": "0cc3ee358e59"
|
||||
},
|
||||
"metadata": {
|
||||
"status": 200,
|
||||
"seconds": 0.01,
|
||||
"instance": "196b3a876d81"
|
||||
"seconds": 0.032,
|
||||
"instance": "899a952a5a21"
|
||||
},
|
||||
"download": {
|
||||
"status": 503,
|
||||
"seconds": 2.533,
|
||||
"instance": "8bd1d38428d0"
|
||||
"seconds": 1.992,
|
||||
"instance": "0cc3ee358e59"
|
||||
},
|
||||
"text_message": {
|
||||
"status": 201,
|
||||
"seconds": 0.014,
|
||||
"instance": "196b3a876d81"
|
||||
"seconds": 0.015,
|
||||
"instance": "899a952a5a21"
|
||||
},
|
||||
"health_ready": {
|
||||
"status": 200,
|
||||
"seconds": 0.004,
|
||||
"instance": "8bd1d38428d0"
|
||||
"seconds": 0.005,
|
||||
"instance": "0cc3ee358e59"
|
||||
}
|
||||
},
|
||||
"expected": {
|
||||
@@ -34,6 +34,6 @@
|
||||
"text_message": 201
|
||||
},
|
||||
"as_expected": true,
|
||||
"s3_back_healthy_seconds": 5.773,
|
||||
"s3_back_healthy_seconds": 5.758,
|
||||
"download_after_recovery": "sha256 equal"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
== 2026-10-28T21:18:05Z S3 privacy and bootstrap checks
|
||||
== 2026-10-30T04:30:16Z S3 privacy and bootstrap checks
|
||||
PASS s3: опубликованные host-порты: нет
|
||||
PASS s3: консоль :9001 внутри контейнера: 000
|
||||
PASS s3-init: повторный запуск 1: 0
|
||||
@@ -27,7 +27,7 @@ PASS s3: консоль :9001 из отдельного контейнера с
|
||||
"items": [
|
||||
{
|
||||
"key": "messenger-attachments",
|
||||
"last_modified": "2026-10-28T17:51:08Z",
|
||||
"last_modified": "2026-10-30T04:28:59Z",
|
||||
"is_dir": true
|
||||
}
|
||||
],
|
||||
|
||||
+28
-23
@@ -1,4 +1,4 @@
|
||||
date: 2026-10-28T18:07:53Z commit: 24f9d61
|
||||
date: 2026-10-30T04:32:53Z commit: 81dd816
|
||||
$ psql -c '\d+ users'
|
||||
Table "public.users"
|
||||
Column | Type | Collation | Nullable | Default | Storage | Compression | Stats target | Description
|
||||
@@ -118,22 +118,24 @@ Foreign-key constraints:
|
||||
Access method: heap
|
||||
|
||||
$ psql -c '\d+ attachments'
|
||||
Table "public.attachments"
|
||||
Column | Type | Collation | Nullable | Default | Storage | Compression | Stats target | Description
|
||||
--------------+--------------------------+-----------+----------+---------+----------+-------------+--------------+-------------
|
||||
id | uuid | | not null | | plain | | |
|
||||
chat_id | uuid | | not null | | plain | | |
|
||||
owner_id | uuid | | not null | | plain | | |
|
||||
filename | text | | not null | | extended | | |
|
||||
content_type | text | | not null | | extended | | |
|
||||
size_bytes | bigint | | not null | | plain | | |
|
||||
sha256 | text | | not null | | extended | | |
|
||||
width | integer | | not null | | plain | | |
|
||||
height | integer | | not null | | plain | | |
|
||||
object_key | text | C | not null | | extended | | |
|
||||
status | text | | not null | | extended | | |
|
||||
created_at | timestamp with time zone | | not null | | plain | | |
|
||||
updated_at | timestamp with time zone | | not null | | plain | | |
|
||||
Table "public.attachments"
|
||||
Column | Type | Collation | Nullable | Default | Storage | Compression | Stats target | Description
|
||||
-------------------+--------------------------+-----------+----------+---------+----------+-------------+--------------+-------------
|
||||
id | uuid | | not null | | plain | | |
|
||||
chat_id | uuid | | not null | | plain | | |
|
||||
owner_id | uuid | | not null | | plain | | |
|
||||
filename | text | | not null | | extended | | |
|
||||
content_type | text | | not null | | extended | | |
|
||||
size_bytes | bigint | | not null | | plain | | |
|
||||
sha256 | text | | not null | | extended | | |
|
||||
width | integer | | not null | | plain | | |
|
||||
height | integer | | not null | | plain | | |
|
||||
object_key | text | C | not null | | extended | | |
|
||||
status | text | | not null | | extended | | |
|
||||
created_at | timestamp with time zone | | not null | | plain | | |
|
||||
updated_at | timestamp with time zone | | not null | | plain | | |
|
||||
quarantine_reason | text | | | | extended | | |
|
||||
quarantined_at | timestamp with time zone | | | | plain | | |
|
||||
Indexes:
|
||||
"attachments_pkey" PRIMARY KEY, btree (id)
|
||||
"attachments_chat_key" UNIQUE CONSTRAINT, btree (id, chat_id)
|
||||
@@ -143,6 +145,8 @@ Check constraints:
|
||||
"attachments_content_type_check" CHECK (content_type = ANY (ARRAY['image/png'::text, 'image/jpeg'::text]))
|
||||
"attachments_filename_check" CHECK (char_length(filename) >= 1 AND char_length(filename) <= 255)
|
||||
"attachments_height_check" CHECK (height > 0)
|
||||
"attachments_quarantine_check" CHECK ((quarantine_reason IS NULL) = (quarantined_at IS NULL))
|
||||
"attachments_quarantine_reason_check" CHECK (quarantine_reason = ANY (ARRAY['missing'::text, 'size_mismatch'::text, 'sha_mismatch'::text]))
|
||||
"attachments_sha256_check" CHECK (sha256 ~ '^[0-9a-f]{64}$'::text)
|
||||
"attachments_size_bytes_check" CHECK (size_bytes >= 1 AND size_bytes <= 10485760)
|
||||
"attachments_status_check" CHECK (status = ANY (ARRAY['pending'::text, 'ready'::text]))
|
||||
@@ -184,10 +188,11 @@ Indexes:
|
||||
Access method: heap
|
||||
|
||||
$ psql -c 'SELECT version, left(checksum, 12), applied_at FROM schema_migrations'
|
||||
version | checksum | applied_at
|
||||
-----------------------+--------------+-------------------------------
|
||||
0001_init | 9a13618f078a | 2026-10-28 17:51:09.25584+00
|
||||
0002_idempotency_keys | d9159a355532 | 2026-10-28 17:51:09.261879+00
|
||||
0003_attachments | c4417f560538 | 2026-10-28 17:51:09.263628+00
|
||||
(3 rows)
|
||||
version | checksum | applied_at
|
||||
----------------------------+--------------+-------------------------------
|
||||
0001_init | 9a13618f078a | 2026-10-30 04:28:55.31488+00
|
||||
0002_idempotency_keys | d9159a355532 | 2026-10-30 04:28:55.320364+00
|
||||
0003_attachments | c4417f560538 | 2026-10-30 04:28:55.321667+00
|
||||
0004_attachment_quarantine | 541f5399d87f | 2026-10-30 04:28:55.3249+00
|
||||
(4 rows)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
date: 2026-10-28T18:07:56Z commit: 24f9d61
|
||||
date: 2026-10-30T04:32:56Z commit: 81dd816
|
||||
$ git ls-files secrets .env backups volumes
|
||||
(пусто: секретов, .env, дампов и volumes в Git нет)
|
||||
$ git check-ignore -v secrets/database_url secrets/postgres_password secrets/s3_root_password secrets/s3_secret_access_key .env backups/
|
||||
@@ -8,7 +8,7 @@ $ git check-ignore -v secrets/database_url secrets/postgres_password secrets/s3_
|
||||
.gitignore:5:secrets/ secrets/s3_secret_access_key
|
||||
.gitignore:2:.env .env
|
||||
.gitignore:15:backups/ backups/
|
||||
$ docker volume ls --filter name=mtusi2026lab4
|
||||
$ docker volume ls --filter label=com.docker.compose.project=mtusi2026lab4
|
||||
DRIVER VOLUME NAME
|
||||
local mtusi2026lab4_pgdata
|
||||
local mtusi2026lab4_s3data
|
||||
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
date: 2026-10-28T17:51:13Z commit: 24f9d61
|
||||
$ make test BASE_URL=http://localhost:18084
|
||||
python3 tests/smoke.py --base-url "http://localhost:18084"
|
||||
date: 2026-10-30T04:29:03Z commit: 81dd816
|
||||
$ make test
|
||||
python3 tests/smoke.py --base-url "http://127.0.0.1:18084"
|
||||
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
|
||||
|
||||
+21
-21
@@ -1,33 +1,33 @@
|
||||
date: 2026-10-28T18:08:00Z commit: 24f9d61
|
||||
date: 2026-10-30T04:29:04Z commit: 81dd816
|
||||
$ docker compose --env-file .env config --quiet && echo valid
|
||||
valid
|
||||
$ docker compose ps --format '{{.Service}} {{.Name}} {{.Status}} {{.Ports}}'
|
||||
api mtusi2026lab4-api-1 Up 16 minutes (healthy)
|
||||
api mtusi2026lab4-api-2 Up 16 minutes (healthy)
|
||||
lb mtusi2026lab4-lb-1 Up 16 minutes (healthy) 127.0.0.1:18084->8080/tcp, 127.0.0.1:24084->8404/tcp
|
||||
postgres mtusi2026lab4-postgres-1 Up 16 minutes (healthy)
|
||||
s3 mtusi2026lab4-s3-1 Up 16 minutes (healthy)
|
||||
valkey mtusi2026lab4-valkey-1 Up 16 minutes (healthy)
|
||||
api mtusi2026lab4-api-1 Up 5 seconds (healthy)
|
||||
api mtusi2026lab4-api-2 Up 5 seconds (healthy)
|
||||
lb mtusi2026lab4-lb-1 Up 11 seconds (healthy) 127.0.0.1:18084->8080/tcp, 127.0.0.1:24084->8404/tcp
|
||||
postgres mtusi2026lab4-postgres-1 Up 11 seconds (healthy)
|
||||
s3 mtusi2026lab4-s3-1 Up 11 seconds (healthy)
|
||||
valkey mtusi2026lab4-valkey-1 Up 11 seconds (healthy)
|
||||
$ docker compose config | grep -c container_name
|
||||
0
|
||||
$ docker port <каждая реплика api> # реплики не публикуют порт
|
||||
196b3a876d81: []
|
||||
8bd1d38428d0: []
|
||||
0cc3ee358e59: []
|
||||
899a952a5a21: []
|
||||
$ docker inspect: hostname = X-Instance-Id, сети, лимиты CPU (nano) и памяти
|
||||
api 196b3a876d81 /mtusi2026lab4-api-1 nets=mtusi2026lab4_backend, cpus=1000000000 mem=536870912 user=10001:10001 ro=true
|
||||
api 8bd1d38428d0 /mtusi2026lab4-api-2 nets=mtusi2026lab4_backend, cpus=1000000000 mem=536870912 user=10001:10001 ro=true
|
||||
lb 5ee5dad8003c /mtusi2026lab4-lb-1 nets=mtusi2026lab4_backend,mtusi2026lab4_edge, cpus=1000000000 mem=134217728 user=haproxy ro=true
|
||||
postgres b6579b111fba /mtusi2026lab4-postgres-1 nets=mtusi2026lab4_backend, cpus=2000000000 mem=1073741824 user=70:70 ro=false
|
||||
s3 b6098ae6a07c /mtusi2026lab4-s3-1 nets=mtusi2026lab4_backend, cpus=1000000000 mem=536870912 user=rustfs ro=true
|
||||
valkey fb5b482d1d20 /mtusi2026lab4-valkey-1 nets=mtusi2026lab4_backend, cpus=500000000 mem=134217728 user=999:1000 ro=false
|
||||
api 0cc3ee358e59 /mtusi2026lab4-api-1 nets=mtusi2026lab4_backend, cpus=1000000000 mem=536870912 user=10001:10001 ro=true
|
||||
api 899a952a5a21 /mtusi2026lab4-api-2 nets=mtusi2026lab4_backend, cpus=1000000000 mem=536870912 user=10001:10001 ro=true
|
||||
lb a51c65de79e9 /mtusi2026lab4-lb-1 nets=mtusi2026lab4_backend,mtusi2026lab4_edge, cpus=1000000000 mem=134217728 user=haproxy ro=true
|
||||
postgres 54d604398b41 /mtusi2026lab4-postgres-1 nets=mtusi2026lab4_backend, cpus=2000000000 mem=1073741824 user=70:70 ro=false
|
||||
s3 89f363c93892 /mtusi2026lab4-s3-1 nets=mtusi2026lab4_backend, cpus=1000000000 mem=536870912 user=rustfs ro=true
|
||||
valkey 99365a2af315 /mtusi2026lab4-valkey-1 nets=mtusi2026lab4_backend, cpus=500000000 mem=134217728 user=999:1000 ro=false
|
||||
$ curl LB stats: backend api, server status check
|
||||
api1 UP L7OK 200
|
||||
api2 UP L7OK 200
|
||||
BACKEND UP
|
||||
$ for i in 1..6: curl -D - http://127.0.0.1:18084/health/live | X-Instance-Id
|
||||
x-instance-id: 8bd1d38428d0
|
||||
x-instance-id: 196b3a876d81
|
||||
x-instance-id: 8bd1d38428d0
|
||||
x-instance-id: 196b3a876d81
|
||||
x-instance-id: 8bd1d38428d0
|
||||
x-instance-id: 196b3a876d81
|
||||
x-instance-id: 0cc3ee358e59
|
||||
x-instance-id: 899a952a5a21
|
||||
x-instance-id: 0cc3ee358e59
|
||||
x-instance-id: 899a952a5a21
|
||||
x-instance-id: 0cc3ee358e59
|
||||
x-instance-id: 899a952a5a21
|
||||
|
||||
+37
-33
@@ -1,30 +1,32 @@
|
||||
date: 2026-10-28T19:01:15Z commit: 24f9d61
|
||||
date: 2026-10-30T04:32:50Z commit: 81dd816
|
||||
$ docker compose ps --format '{{.Service}} {{.Status}} {{.Ports}}'
|
||||
api Up 17 seconds (healthy)
|
||||
api Up 17 seconds (healthy)
|
||||
lb Up 23 seconds (healthy) 127.0.0.1:18084->8080/tcp, 127.0.0.1:24084->8404/tcp
|
||||
migrate Exited (0) 17 seconds ago
|
||||
postgres Up 23 seconds (healthy)
|
||||
s3 Up 8 seconds (healthy)
|
||||
s3-init Exited (0) 18 seconds ago
|
||||
valkey Up 23 seconds (healthy)
|
||||
api Up 18 seconds (healthy)
|
||||
api Up 18 seconds (healthy)
|
||||
lb Up 29 seconds (healthy) 127.0.0.1:18084->8080/tcp, 127.0.0.1:24084->8404/tcp
|
||||
migrate Exited (0) 28 seconds ago
|
||||
postgres Up 30 seconds (healthy)
|
||||
s3 Up 30 seconds (healthy)
|
||||
s3-init Exited (0) 24 seconds ago
|
||||
valkey Up 30 seconds (healthy)
|
||||
$ psql -c '\d attachments'
|
||||
Table "public.attachments"
|
||||
Column | Type | Collation | Nullable | Default
|
||||
--------------+--------------------------+-----------+----------+---------
|
||||
id | uuid | | not null |
|
||||
chat_id | uuid | | not null |
|
||||
owner_id | uuid | | not null |
|
||||
filename | text | | not null |
|
||||
content_type | text | | not null |
|
||||
size_bytes | bigint | | not null |
|
||||
sha256 | text | | not null |
|
||||
width | integer | | not null |
|
||||
height | integer | | not null |
|
||||
object_key | text | C | not null |
|
||||
status | text | | not null |
|
||||
created_at | timestamp with time zone | | not null |
|
||||
updated_at | timestamp with time zone | | not null |
|
||||
Table "public.attachments"
|
||||
Column | Type | Collation | Nullable | Default
|
||||
-------------------+--------------------------+-----------+----------+---------
|
||||
id | uuid | | not null |
|
||||
chat_id | uuid | | not null |
|
||||
owner_id | uuid | | not null |
|
||||
filename | text | | not null |
|
||||
content_type | text | | not null |
|
||||
size_bytes | bigint | | not null |
|
||||
sha256 | text | | not null |
|
||||
width | integer | | not null |
|
||||
height | integer | | not null |
|
||||
object_key | text | C | not null |
|
||||
status | text | | not null |
|
||||
created_at | timestamp with time zone | | not null |
|
||||
updated_at | timestamp with time zone | | not null |
|
||||
quarantine_reason | text | | |
|
||||
quarantined_at | timestamp with time zone | | |
|
||||
Indexes:
|
||||
"attachments_pkey" PRIMARY KEY, btree (id)
|
||||
"attachments_chat_key" UNIQUE CONSTRAINT, btree (id, chat_id)
|
||||
@@ -34,6 +36,8 @@ Check constraints:
|
||||
"attachments_content_type_check" CHECK (content_type = ANY (ARRAY['image/png'::text, 'image/jpeg'::text]))
|
||||
"attachments_filename_check" CHECK (char_length(filename) >= 1 AND char_length(filename) <= 255)
|
||||
"attachments_height_check" CHECK (height > 0)
|
||||
"attachments_quarantine_check" CHECK ((quarantine_reason IS NULL) = (quarantined_at IS NULL))
|
||||
"attachments_quarantine_reason_check" CHECK (quarantine_reason = ANY (ARRAY['missing'::text, 'size_mismatch'::text, 'sha_mismatch'::text]))
|
||||
"attachments_sha256_check" CHECK (sha256 ~ '^[0-9a-f]{64}$'::text)
|
||||
"attachments_size_bytes_check" CHECK (size_bytes >= 1 AND size_bytes <= 10485760)
|
||||
"attachments_status_check" CHECK (status = ANY (ARRAY['pending'::text, 'ready'::text]))
|
||||
@@ -71,22 +75,22 @@ $ psql: столбцы bytea во всей схеме (хеши токенов
|
||||
$ psql: вложения по статусу и максимальный размер строки attachments
|
||||
status | count | max_row_bytes
|
||||
---------+-------+---------------
|
||||
ready | 14 | 256
|
||||
pending | 1 | 256
|
||||
ready | 16 | 264
|
||||
pending | 1 | 264
|
||||
(2 rows)
|
||||
|
||||
$ rc object list --recursive root/messenger-attachments/attachments/ | count
|
||||
14
|
||||
16
|
||||
$ rc object list root/messenger-attachments/ (первые 3 объекта, ключи назначены сервером)
|
||||
[2026-10-28 17:51:13] 109.20 KiB attachments/01a183a3-351f-76fa-aeea-a062669b6d93
|
||||
[2026-10-28 18:08:05] 109.20 KiB attachments/01a183b2-a436-72cf-be25-cebcbb7b5753
|
||||
[2026-10-28 18:08:15] 109.20 KiB attachments/01a183b2-cbcf-721b-afae-a1b01f9fdbbd
|
||||
[2026-10-30 04:29:04] 109.20 KiB attachments/01a18b11-8813-7355-a90c-65a4532e2480
|
||||
[2026-10-30 04:29:08] 109.20 KiB attachments/01a18b11-97b6-7641-a82b-06b56dc04f0c
|
||||
[2026-10-30 04:29:15] 109.20 KiB attachments/01a18b11-b2c9-7385-a99d-aa018f1053cb
|
||||
$ сверка вне API: sha256 и размер последнего ready-вложения в PostgreSQL против байтов объекта в bucket
|
||||
postgres: 99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75 111817
|
||||
s3: 99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75 111817
|
||||
$ docker inspect api: ReadonlyRootfs, tmpfs, volumes/bind mounts
|
||||
196b3a876d81 ro=true tmpfs={"/tmp":""} mounts=bind:/run/secrets/database_url bind:/run/secrets/cache_url bind:/run/secrets/cursor_secret bind:/run/secrets/s3_access_key_id bind:/run/secrets/s3_secret_access_key
|
||||
8bd1d38428d0 ro=true tmpfs={"/tmp":""} mounts=bind:/run/secrets/s3_access_key_id bind:/run/secrets/s3_secret_access_key bind:/run/secrets/database_url bind:/run/secrets/cache_url bind:/run/secrets/cursor_secret
|
||||
0cc3ee358e59 ro=true tmpfs={"/tmp":""} mounts=bind:/run/secrets/s3_secret_access_key bind:/run/secrets/database_url bind:/run/secrets/cache_url bind:/run/secrets/cursor_secret bind:/run/secrets/s3_access_key_id
|
||||
899a952a5a21 ro=true tmpfs={"/tmp":""} mounts=bind:/run/secrets/cursor_secret bind:/run/secrets/s3_access_key_id bind:/run/secrets/s3_secret_access_key bind:/run/secrets/database_url bind:/run/secrets/cache_url
|
||||
$ docker inspect s3: volume данных
|
||||
volume:mtusi2026lab4_s3data:/data bind::/run/secrets/s3_root_user bind::/run/secrets/s3_root_password
|
||||
$ секреты сервисов: root-ключи S3 только у s3/s3-init/s3-cli
|
||||
|
||||
+350
-43
@@ -1,50 +1,357 @@
|
||||
date: 2026-10-28T21:18:14Z commit: a774a2f
|
||||
date: 2026-10-30T04:24:19Z commit: 81dd816
|
||||
$ make lint
|
||||
.venv/bin/ruff check src student-tests scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py
|
||||
.venv/bin/ruff check src student-tests scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py
|
||||
All checks passed!
|
||||
.venv/bin/ruff format --check src student-tests scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py
|
||||
136 files already formatted
|
||||
.venv/bin/ruff format --check src student-tests scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py
|
||||
143 files already formatted
|
||||
.venv/bin/ty check src student-tests
|
||||
All checks passed!
|
||||
$ make student-test # pytest без маркера stack, по файлам
|
||||
$ make student-test PYTEST_ARGS='-v --no-header' # без маркера stack; одноразовые PostgreSQL, Valkey и RustFS в Docker
|
||||
.venv/bin/pytest -v --no-header -p no:cacheprovider
|
||||
============================= test session starts ==============================
|
||||
platform darwin -- Python 3.14.5, pytest-9.1.1, pluggy-1.6.0
|
||||
rootdir: <repo>
|
||||
configfile: pyproject.toml
|
||||
testpaths: student-tests
|
||||
plugins: asyncio-1.4.0, anyio-4.15.1
|
||||
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function
|
||||
collected 350 items / 15 deselected / 335 selected
|
||||
collecting ... collected 359 items / 17 deselected / 342 selected
|
||||
|
||||
student-tests/adapters/test_s3_storage.py .. [ 0%]
|
||||
student-tests/api/test_access.py ....... [ 2%]
|
||||
student-tests/api/test_attachments.py .................................. [ 12%]
|
||||
... [ 13%]
|
||||
student-tests/api/test_bounded_contexts.py ................... [ 19%]
|
||||
student-tests/api/test_cache.py ..... [ 20%]
|
||||
student-tests/api/test_concurrency.py ... [ 21%]
|
||||
student-tests/api/test_consistency.py ........ [ 24%]
|
||||
student-tests/api/test_drain.py .. [ 24%]
|
||||
student-tests/api/test_events.py ....... [ 26%]
|
||||
student-tests/api/test_idempotency.py ............... [ 31%]
|
||||
student-tests/api/test_instance.py .... [ 32%]
|
||||
student-tests/api/test_message_attachments.py ........... [ 35%]
|
||||
student-tests/api/test_migrations.py ....... [ 37%]
|
||||
student-tests/api/test_negative.py ..................................... [ 48%]
|
||||
[ 48%]
|
||||
student-tests/api/test_operability.py ............. [ 52%]
|
||||
student-tests/api/test_pagination.py ................. [ 57%]
|
||||
student-tests/api/test_pool.py .. [ 58%]
|
||||
student-tests/api/test_sessions.py .................. [ 63%]
|
||||
student-tests/api/test_timeout.py ...... [ 65%]
|
||||
student-tests/api/test_upload_consistency.py ......... [ 68%]
|
||||
student-tests/api/test_wire_format.py .. [ 68%]
|
||||
student-tests/unit/test_attachments_domain.py .......................... [ 76%]
|
||||
. [ 77%]
|
||||
student-tests/unit/test_authentication.py ..................... [ 83%]
|
||||
student-tests/unit/test_cursor.py ........... [ 86%]
|
||||
student-tests/unit/test_domain.py ...................................... [ 97%]
|
||||
...... [ 99%]
|
||||
student-tests/unit/test_timeouts.py . [100%]
|
||||
student-tests/adapters/test_s3_storage.py::test_round_trip_of_the_largest_object PASSED [ 0%]
|
||||
student-tests/adapters/test_s3_storage.py::test_listing_is_paged_in_byte_order_and_stat_reads_size PASSED [ 0%]
|
||||
student-tests/adapters/test_s3_storage.py::test_unreachable_endpoint_is_unavailable_in_bounded_time PASSED [ 0%]
|
||||
student-tests/api/test_access.py::test_outsider_gets_404_on_chat PASSED [ 1%]
|
||||
student-tests/api/test_access.py::test_unknown_chat_is_indistinguishable_from_foreign PASSED [ 1%]
|
||||
student-tests/api/test_access.py::test_outsider_cannot_write PASSED [ 1%]
|
||||
student-tests/api/test_access.py::test_outsider_cannot_read_history PASSED [ 2%]
|
||||
student-tests/api/test_access.py::test_access_checked_before_body PASSED [ 2%]
|
||||
student-tests/api/test_access.py::test_chat_list_hides_foreign_chats PASSED [ 2%]
|
||||
student-tests/api/test_access.py::test_403_is_never_used PASSED [ 2%]
|
||||
student-tests/api/test_access.py::test_request_shape_is_checked_before_access PASSED [ 3%]
|
||||
student-tests/api/test_access.py::test_outsider_does_not_wait_for_members_lock PASSED [ 3%]
|
||||
student-tests/api/test_attachments.py::test_member_uploads_and_another_member_downloads PASSED [ 3%]
|
||||
student-tests/api/test_attachments.py::test_object_key_is_assigned_by_server PASSED [ 4%]
|
||||
student-tests/api/test_attachments.py::test_jpeg_is_accepted_by_content PASSED [ 4%]
|
||||
student-tests/api/test_attachments.py::test_access_is_checked_before_content PASSED [ 4%]
|
||||
student-tests/api/test_attachments.py::test_exact_limit_is_accepted PASSED [ 4%]
|
||||
student-tests/api/test_attachments.py::test_one_byte_over_with_content_length PASSED [ 5%]
|
||||
student-tests/api/test_attachments.py::test_one_byte_over_chunked PASSED [ 5%]
|
||||
student-tests/api/test_attachments.py::test_pixel_limit_is_read_from_header[8000-5000-201] PASSED [ 5%]
|
||||
student-tests/api/test_attachments.py::test_pixel_limit_is_read_from_header[8001-5000-413] PASSED [ 6%]
|
||||
student-tests/api/test_attachments.py::test_pixel_limit_is_read_from_header[100000-100000-413] PASSED [ 6%]
|
||||
student-tests/api/test_attachments.py::test_type_is_checked_by_content[jpeg-as-png] PASSED [ 6%]
|
||||
student-tests/api/test_attachments.py::test_type_is_checked_by_content[gif-as-png] PASSED [ 7%]
|
||||
student-tests/api/test_attachments.py::test_type_is_checked_by_content[webp-as-png] PASSED [ 7%]
|
||||
student-tests/api/test_attachments.py::test_type_is_checked_by_content[text-as-png] PASSED [ 7%]
|
||||
student-tests/api/test_attachments.py::test_type_is_checked_by_content[png-as-jpeg] PASSED [ 7%]
|
||||
student-tests/api/test_attachments.py::test_type_is_checked_by_content[truncated-png] PASSED [ 8%]
|
||||
student-tests/api/test_attachments.py::test_type_is_checked_by_content[truncated-jpeg] PASSED [ 8%]
|
||||
student-tests/api/test_attachments.py::test_type_is_checked_by_content[empty] PASSED [ 8%]
|
||||
student-tests/api/test_attachments.py::test_type_is_checked_by_content[octet-stream] PASSED [ 9%]
|
||||
student-tests/api/test_attachments.py::test_type_is_checked_by_content[gif-type] PASSED [ 9%]
|
||||
student-tests/api/test_attachments.py::test_missing_content_type_is_unsupported PASSED [ 9%]
|
||||
student-tests/api/test_attachments.py::test_dangerous_filename_is_rejected[../a.png] PASSED [ 9%]
|
||||
student-tests/api/test_attachments.py::test_dangerous_filename_is_rejected[a/b.png] PASSED [ 10%]
|
||||
student-tests/api/test_attachments.py::test_dangerous_filename_is_rejected[a\\b.png] PASSED [ 10%]
|
||||
student-tests/api/test_attachments.py::test_dangerous_filename_is_rejected[a\x00.png] PASSED [ 10%]
|
||||
student-tests/api/test_attachments.py::test_dangerous_filename_is_rejected[a\x01.png] PASSED [ 11%]
|
||||
student-tests/api/test_attachments.py::test_dangerous_filename_is_rejected[a\x7f.png] PASSED [ 11%]
|
||||
student-tests/api/test_attachments.py::test_dangerous_filename_is_rejected[] PASSED [ 11%]
|
||||
student-tests/api/test_attachments.py::test_dangerous_filename_is_rejected[ ] PASSED [ 11%]
|
||||
student-tests/api/test_attachments.py::test_dangerous_filename_is_rejected[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED [ 12%]
|
||||
student-tests/api/test_attachments.py::test_dangerous_filename_is_rejected[None] PASSED [ 12%]
|
||||
student-tests/api/test_attachments.py::test_display_name_is_kept[\u0444\u043e\u0442\u043e 1.png] PASSED [ 12%]
|
||||
student-tests/api/test_attachments.py::test_display_name_is_kept[\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f] PASSED [ 13%]
|
||||
student-tests/api/test_attachments.py::test_display_name_is_kept[%41.png] PASSED [ 13%]
|
||||
student-tests/api/test_attachments.py::test_only_original_variant_exists PASSED [ 13%]
|
||||
student-tests/api/test_attachments.py::test_storage_failure_leaves_nothing_visible PASSED [ 14%]
|
||||
student-tests/api/test_attachments.py::test_lost_object_is_not_found PASSED [ 14%]
|
||||
student-tests/api/test_bounded_contexts.py::test_identity_does_not_know_about_messaging PASSED [ 14%]
|
||||
student-tests/api/test_bounded_contexts.py::test_attachments_and_other_zones_do_not_import_each_other PASSED [ 14%]
|
||||
student-tests/api/test_bounded_contexts.py::test_domains_do_not_import_infrastructure PASSED [ 15%]
|
||||
student-tests/api/test_bounded_contexts.py::test_core_layers_do_not_import_pydantic PASSED [ 15%]
|
||||
student-tests/api/test_bounded_contexts.py::test_shared_knows_nothing_about_zones PASSED [ 15%]
|
||||
student-tests/api/test_bounded_contexts.py::test_shared_core_is_free_of_transport PASSED [ 16%]
|
||||
student-tests/api/test_bounded_contexts.py::test_shared_core_holds_only_platform PASSED [ 16%]
|
||||
student-tests/api/test_bounded_contexts.py::test_shared_entrypoints_hold_only_transport PASSED [ 16%]
|
||||
student-tests/api/test_bounded_contexts.py::test_every_zone_owns_its_errors_events_and_commands PASSED [ 16%]
|
||||
student-tests/api/test_bounded_contexts.py::test_every_zone_owns_its_http_layer PASSED [ 17%]
|
||||
student-tests/api/test_bounded_contexts.py::test_only_main_knows_several_zones PASSED [ 17%]
|
||||
student-tests/api/test_bounded_contexts.py::test_application_has_no_separate_entrypoints_root PASSED [ 17%]
|
||||
student-tests/api/test_bounded_contexts.py::test_shared_source_mentions_no_domain_vocabulary PASSED [ 18%]
|
||||
student-tests/api/test_bounded_contexts.py::test_shared_declares_no_concrete_commands_or_events PASSED [ 18%]
|
||||
student-tests/api/test_bounded_contexts.py::test_shared_has_no_test_doubles PASSED [ 18%]
|
||||
student-tests/api/test_bounded_contexts.py::test_zone_errors_do_not_leak_transport_codes PASSED [ 19%]
|
||||
student-tests/api/test_bounded_contexts.py::test_sql_of_each_zone_reads_only_its_tables PASSED [ 19%]
|
||||
student-tests/api/test_bounded_contexts.py::test_messaging_does_not_import_identity_at_all PASSED [ 19%]
|
||||
student-tests/api/test_cache.py::test_second_check_is_served_from_cache PASSED [ 19%]
|
||||
student-tests/api/test_cache.py::test_logout_writes_tombstone_before_database PASSED [ 20%]
|
||||
student-tests/api/test_cache.py::test_logout_rejected_by_database_changes_nothing PASSED [ 20%]
|
||||
student-tests/api/test_cache.py::test_fill_racing_with_logout_does_not_revive_token PASSED [ 20%]
|
||||
student-tests/api/test_cache.py::test_flushall_loses_nothing PASSED [ 21%]
|
||||
student-tests/api/test_cache.py::test_unreachable_cache_is_bypassed_without_anonymous_access PASSED [ 21%]
|
||||
student-tests/api/test_concurrency.py::test_hundred_messages_from_ten_clients PASSED [ 21%]
|
||||
student-tests/api/test_concurrency.py::test_history_follows_the_clock_but_never_moves_back PASSED [ 21%]
|
||||
student-tests/api/test_concurrency.py::test_parallel_registration_keeps_username_unique PASSED [ 22%]
|
||||
student-tests/api/test_concurrency.py::test_parallel_chat_creation_is_atomic PASSED [ 22%]
|
||||
student-tests/api/test_consistency.py::test_registration_is_visible_to_chats_immediately PASSED [ 22%]
|
||||
student-tests/api/test_consistency.py::test_parallel_registrations_are_all_usable_as_members PASSED [ 23%]
|
||||
student-tests/api/test_consistency.py::test_rejected_registration_leaves_no_trace PASSED [ 23%]
|
||||
student-tests/api/test_consistency.py::test_failed_chat_creation_rolls_back_both_tables PASSED [ 23%]
|
||||
student-tests/api/test_consistency.py::test_rejected_message_does_not_enter_history PASSED [ 23%]
|
||||
student-tests/api/test_consistency.py::test_confirmed_write_is_visible_to_next_read PASSED [ 24%]
|
||||
student-tests/api/test_consistency.py::test_parallel_writes_across_zones_keep_counts_consistent PASSED [ 24%]
|
||||
student-tests/api/test_consistency.py::test_chat_membership_survives_parallel_reads_and_writes PASSED [ 24%]
|
||||
student-tests/api/test_drain.py::test_draining_replica_is_not_ready_but_alive PASSED [ 25%]
|
||||
student-tests/api/test_drain.py::test_sigterm_leaves_rotation_then_closes_and_cancels_stuck_requests PASSED [ 25%]
|
||||
student-tests/api/test_events.py::test_event_has_no_message_text PASSED [ 25%]
|
||||
student-tests/api/test_events.py::test_every_subscriber_receives_event PASSED [ 26%]
|
||||
student-tests/api/test_events.py::test_failing_subscriber_does_not_block_others PASSED [ 26%]
|
||||
student-tests/api/test_events.py::test_queue_overflow_drops_events_without_raising PASSED [ 26%]
|
||||
student-tests/api/test_events.py::test_publication_does_not_delay_response PASSED [ 26%]
|
||||
student-tests/api/test_events.py::test_null_logger_hides_everything PASSED [ 27%]
|
||||
student-tests/api/test_idempotency.py::test_replay_returns_the_same_message PASSED [ 27%]
|
||||
student-tests/api/test_idempotency.py::test_same_json_in_other_layout_is_a_replay PASSED [ 27%]
|
||||
student-tests/api/test_idempotency.py::test_other_body_with_same_key_conflicts PASSED [ 28%]
|
||||
student-tests/api/test_idempotency.py::test_missing_key_is_rejected PASSED [ 28%]
|
||||
student-tests/api/test_idempotency.py::test_malformed_key_is_rejected[0] PASSED [ 28%]
|
||||
student-tests/api/test_idempotency.py::test_malformed_key_is_rejected[1] PASSED [ 28%]
|
||||
student-tests/api/test_idempotency.py::test_malformed_key_is_rejected[2] PASSED [ 29%]
|
||||
student-tests/api/test_idempotency.py::test_malformed_key_is_rejected[3] PASSED [ 29%]
|
||||
student-tests/api/test_idempotency.py::test_malformed_key_is_rejected[4] PASSED [ 29%]
|
||||
student-tests/api/test_idempotency.py::test_malformed_key_is_rejected[5] PASSED [ 30%]
|
||||
student-tests/api/test_idempotency.py::test_rejected_attempt_does_not_take_the_key PASSED [ 30%]
|
||||
student-tests/api/test_idempotency.py::test_key_is_scoped_by_user_and_chat PASSED [ 30%]
|
||||
student-tests/api/test_idempotency.py::test_replay_checks_session_and_access_again PASSED [ 30%]
|
||||
student-tests/api/test_idempotency.py::test_expired_key_starts_over PASSED [ 31%]
|
||||
student-tests/api/test_idempotency.py::test_concurrent_retries_through_two_replicas_store_one_message PASSED [ 31%]
|
||||
student-tests/api/test_instance.py::test_every_response_names_the_replica PASSED [ 31%]
|
||||
student-tests/api/test_instance.py::test_rejected_body_names_the_replica PASSED [ 32%]
|
||||
student-tests/api/test_instance.py::test_unhandled_error_names_the_replica PASSED [ 32%]
|
||||
student-tests/api/test_instance.py::test_replica_defaults_to_container_hostname PASSED [ 32%]
|
||||
student-tests/api/test_message_attachments.py::test_text_message_carries_empty_list PASSED [ 33%]
|
||||
student-tests/api/test_message_attachments.py::test_empty_text_with_attachment_keeps_order PASSED [ 33%]
|
||||
student-tests/api/test_message_attachments.py::test_replay_with_attachments_and_default_list PASSED [ 33%]
|
||||
student-tests/api/test_message_attachments.py::test_attachment_of_another_chat_or_unknown PASSED [ 33%]
|
||||
student-tests/api/test_message_attachments.py::test_invalid_attachment_lists[eleven] PASSED [ 34%]
|
||||
student-tests/api/test_message_attachments.py::test_invalid_attachment_lists[duplicate] PASSED [ 34%]
|
||||
student-tests/api/test_message_attachments.py::test_invalid_attachment_lists[not-uuid] PASSED [ 34%]
|
||||
student-tests/api/test_message_attachments.py::test_invalid_attachment_lists[empty] PASSED [ 35%]
|
||||
student-tests/api/test_message_attachments.py::test_invalid_attachment_lists[blank] PASSED [ 35%]
|
||||
student-tests/api/test_message_attachments.py::test_outsider_gets_not_found_before_validation PASSED [ 35%]
|
||||
student-tests/api/test_message_attachments.py::test_one_attachment_in_several_messages PASSED [ 35%]
|
||||
student-tests/api/test_migrations.py::test_migrations_are_ordered_and_versioned PASSED [ 36%]
|
||||
student-tests/api/test_migrations.py::test_rerun_changes_nothing PASSED [ 36%]
|
||||
student-tests/api/test_migrations.py::test_changed_migration_is_refused PASSED [ 36%]
|
||||
student-tests/api/test_migrations.py::test_sender_must_be_member_even_bypassing_api PASSED [ 37%]
|
||||
student-tests/api/test_migrations.py::test_key_needs_a_member_and_a_message PASSED [ 37%]
|
||||
student-tests/api/test_migrations.py::test_attachment_owner_must_be_member PASSED [ 37%]
|
||||
student-tests/api/test_migrations.py::test_message_links_only_attachments_of_its_chat PASSED [ 38%]
|
||||
student-tests/api/test_negative.py::test_malformed_json PASSED [ 38%]
|
||||
student-tests/api/test_negative.py::test_unexpected_field PASSED [ 38%]
|
||||
student-tests/api/test_negative.py::test_wrong_types PASSED [ 38%]
|
||||
student-tests/api/test_negative.py::test_invalid_registration[body0] PASSED [ 39%]
|
||||
student-tests/api/test_negative.py::test_invalid_registration[body1] PASSED [ 39%]
|
||||
student-tests/api/test_negative.py::test_invalid_registration[body2] PASSED [ 39%]
|
||||
student-tests/api/test_negative.py::test_invalid_registration[body3] PASSED [ 40%]
|
||||
student-tests/api/test_negative.py::test_invalid_registration[body4] PASSED [ 40%]
|
||||
student-tests/api/test_negative.py::test_invalid_registration[body5] PASSED [ 40%]
|
||||
student-tests/api/test_negative.py::test_invalid_registration[body6] PASSED [ 40%]
|
||||
student-tests/api/test_negative.py::test_invalid_registration[body7] PASSED [ 41%]
|
||||
student-tests/api/test_negative.py::test_invalid_registration[body8] PASSED [ 41%]
|
||||
student-tests/api/test_negative.py::test_invalid_registration[body9] PASSED [ 41%]
|
||||
student-tests/api/test_negative.py::test_invalid_registration[body10] PASSED [ 42%]
|
||||
student-tests/api/test_negative.py::test_duplicate_username PASSED [ 42%]
|
||||
student-tests/api/test_negative.py::test_missing_identity PASSED [ 42%]
|
||||
student-tests/api/test_negative.py::test_invalid_bearer[] PASSED [ 42%]
|
||||
student-tests/api/test_negative.py::test_invalid_bearer[Bearer] PASSED [ 43%]
|
||||
student-tests/api/test_negative.py::test_invalid_bearer[Bearer ] PASSED [ 43%]
|
||||
student-tests/api/test_negative.py::test_invalid_bearer[Bearer not a token] PASSED [ 43%]
|
||||
student-tests/api/test_negative.py::test_invalid_bearer[Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED [ 44%]
|
||||
student-tests/api/test_negative.py::test_invalid_bearer[Token abcdef] PASSED [ 44%]
|
||||
student-tests/api/test_negative.py::test_invalid_bearer[11111111-1111-4111-8111-111111111111] PASSED [ 44%]
|
||||
student-tests/api/test_negative.py::test_user_id_header_alone_is_ignored PASSED [ 45%]
|
||||
student-tests/api/test_negative.py::test_identity_checked_before_body PASSED [ 45%]
|
||||
student-tests/api/test_negative.py::test_empty_message_rejected PASSED [ 45%]
|
||||
student-tests/api/test_negative.py::test_long_message_rejected PASSED [ 45%]
|
||||
student-tests/api/test_negative.py::test_sender_id_not_accepted PASSED [ 46%]
|
||||
student-tests/api/test_negative.py::test_invalid_chat_creation[body0] PASSED [ 46%]
|
||||
student-tests/api/test_negative.py::test_invalid_chat_creation[body1] PASSED [ 46%]
|
||||
student-tests/api/test_negative.py::test_invalid_chat_creation[body2] PASSED [ 47%]
|
||||
student-tests/api/test_negative.py::test_invalid_chat_creation[body3] PASSED [ 47%]
|
||||
student-tests/api/test_negative.py::test_invalid_chat_creation[body4] PASSED [ 47%]
|
||||
student-tests/api/test_negative.py::test_invalid_chat_creation[body5] PASSED [ 47%]
|
||||
student-tests/api/test_negative.py::test_creator_must_be_member PASSED [ 48%]
|
||||
student-tests/api/test_negative.py::test_unknown_member_rejected PASSED [ 48%]
|
||||
student-tests/api/test_negative.py::test_bad_chat_id_in_path PASSED [ 48%]
|
||||
student-tests/api/test_operability.py::test_health_needs_no_identity PASSED [ 49%]
|
||||
student-tests/api/test_operability.py::test_every_response_carries_request_id PASSED [ 49%]
|
||||
student-tests/api/test_operability.py::test_client_request_id_is_preserved PASSED [ 49%]
|
||||
student-tests/api/test_operability.py::test_unknown_public_route_is_404 PASSED [ 50%]
|
||||
student-tests/api/test_operability.py::test_unknown_protected_route_needs_identity PASSED [ 50%]
|
||||
student-tests/api/test_operability.py::test_method_not_allowed_is_hidden PASSED [ 50%]
|
||||
student-tests/api/test_operability.py::test_logs_do_not_contain_message_text PASSED [ 50%]
|
||||
student-tests/api/test_operability.py::test_log_lines_are_json PASSED [ 51%]
|
||||
student-tests/api/test_operability.py::test_body_limit_returns_413 PASSED [ 51%]
|
||||
student-tests/api/test_operability.py::test_chunked_body_is_limited_too PASSED [ 51%]
|
||||
student-tests/api/test_operability.py::test_ready_turns_unavailable_without_database PASSED [ 52%]
|
||||
student-tests/api/test_operability.py::test_protected_request_is_503_not_401_without_database PASSED [ 52%]
|
||||
student-tests/api/test_operability.py::test_state_survives_new_process PASSED [ 52%]
|
||||
student-tests/api/test_operability.py::test_logs_do_not_contain_credentials PASSED [ 52%]
|
||||
student-tests/api/test_pagination.py::test_full_walk_has_no_gaps_or_repeats PASSED [ 53%]
|
||||
student-tests/api/test_pagination.py::test_limit_may_change_between_pages PASSED [ 53%]
|
||||
student-tests/api/test_pagination.py::test_last_page_closes_history PASSED [ 53%]
|
||||
student-tests/api/test_pagination.py::test_cursor_is_shared_between_members PASSED [ 54%]
|
||||
student-tests/api/test_pagination.py::test_cursor_from_another_chat_is_rejected PASSED [ 54%]
|
||||
student-tests/api/test_pagination.py::test_broken_cursor_is_rejected[garbage] PASSED [ 54%]
|
||||
student-tests/api/test_pagination.py::test_broken_cursor_is_rejected[1.2.3.4] PASSED [ 54%]
|
||||
student-tests/api/test_pagination.py::test_broken_cursor_is_rejected[%20] PASSED [ 55%]
|
||||
student-tests/api/test_pagination.py::test_broken_cursor_is_rejected[] PASSED [ 55%]
|
||||
student-tests/api/test_pagination.py::test_limit_out_of_range[0] PASSED [ 55%]
|
||||
student-tests/api/test_pagination.py::test_limit_out_of_range[-1] PASSED [ 56%]
|
||||
student-tests/api/test_pagination.py::test_limit_out_of_range[101] PASSED [ 56%]
|
||||
student-tests/api/test_pagination.py::test_limit_out_of_range[abc] PASSED [ 56%]
|
||||
student-tests/api/test_pagination.py::test_limit_out_of_range[1.5] PASSED [ 57%]
|
||||
student-tests/api/test_pagination.py::test_limit_out_of_range[] PASSED [ 57%]
|
||||
student-tests/api/test_pagination.py::test_default_limit_is_50 PASSED [ 57%]
|
||||
student-tests/api/test_pagination.py::test_unknown_query_parameter_is_ignored PASSED [ 57%]
|
||||
student-tests/api/test_pagination.py::test_chat_list_pagination PASSED [ 58%]
|
||||
student-tests/api/test_pool.py::test_exhausted_pool_answers_503_in_bounded_time PASSED [ 58%]
|
||||
student-tests/api/test_pool.py::test_statement_timeout_is_set_on_connections PASSED [ 58%]
|
||||
student-tests/api/test_reconciler.py::test_dry_run_reports_every_class_and_changes_nothing PASSED [ 59%]
|
||||
student-tests/api/test_reconciler.py::test_apply_fixes_what_it_found_and_repeats_as_noop PASSED [ 59%]
|
||||
student-tests/api/test_reconciler.py::test_restored_object_leaves_quarantine PASSED [ 59%]
|
||||
student-tests/api/test_reconciler.py::test_row_written_after_listing_keeps_the_object PASSED [ 59%]
|
||||
student-tests/api/test_reconciler.py::test_second_pass_is_skipped_while_one_runs PASSED [ 60%]
|
||||
student-tests/api/test_reconciler.py::test_storage_failure_mid_pass_ends_it_as_unavailable PASSED [ 60%]
|
||||
student-tests/api/test_sessions.py::test_login_returns_session_for_registered_user PASSED [ 60%]
|
||||
student-tests/api/test_sessions.py::test_registration_response_hides_password PASSED [ 61%]
|
||||
student-tests/api/test_sessions.py::test_password_is_stored_as_argon2id PASSED [ 61%]
|
||||
student-tests/api/test_sessions.py::test_session_stores_only_token_digest PASSED [ 61%]
|
||||
student-tests/api/test_sessions.py::test_wrong_password_and_unknown_user_look_the_same PASSED [ 61%]
|
||||
student-tests/api/test_sessions.py::test_login_without_valid_basic[headers0] PASSED [ 62%]
|
||||
student-tests/api/test_sessions.py::test_login_without_valid_basic[headers1] PASSED [ 62%]
|
||||
student-tests/api/test_sessions.py::test_login_without_valid_basic[headers2] PASSED [ 62%]
|
||||
student-tests/api/test_sessions.py::test_login_without_valid_basic[headers3] PASSED [ 63%]
|
||||
student-tests/api/test_sessions.py::test_password_with_colon_logs_in PASSED [ 63%]
|
||||
student-tests/api/test_sessions.py::test_login_with_body_is_rejected PASSED [ 63%]
|
||||
student-tests/api/test_sessions.py::test_basic_on_business_endpoint_gets_bearer_challenge PASSED [ 64%]
|
||||
student-tests/api/test_sessions.py::test_user_id_header_does_not_override_owner PASSED [ 64%]
|
||||
student-tests/api/test_sessions.py::test_authentication_precedes_validation PASSED [ 64%]
|
||||
student-tests/api/test_sessions.py::test_logout_revokes_only_current_session PASSED [ 64%]
|
||||
student-tests/api/test_sessions.py::test_short_ttl_session_expires PASSED [ 65%]
|
||||
student-tests/api/test_sessions.py::test_expired_sessions_are_purged_on_next_login PASSED [ 65%]
|
||||
student-tests/api/test_sessions.py::test_chat_routes_require_bearer PASSED [ 65%]
|
||||
student-tests/api/test_timeout.py::test_timeout_returns_unavailable_error_body PASSED [ 66%]
|
||||
student-tests/api/test_timeout.py::test_timeout_does_not_break_following_requests PASSED [ 66%]
|
||||
student-tests/api/test_timeout.py::test_timeout_is_logged_without_message_text PASSED [ 66%]
|
||||
student-tests/api/test_timeout.py::test_normal_request_is_not_affected_by_timeout PASSED [ 66%]
|
||||
student-tests/api/test_timeout.py::test_slow_event_handler_does_not_trigger_timeout PASSED [ 67%]
|
||||
student-tests/api/test_timeout.py::test_healthcheck_stays_fast PASSED [ 67%]
|
||||
student-tests/api/test_upload_consistency.py::test_commit_failure_after_put_is_compensated PASSED [ 67%]
|
||||
student-tests/api/test_upload_consistency.py::test_lost_intent_gives_503_and_no_object PASSED [ 68%]
|
||||
student-tests/api/test_upload_consistency.py::test_failed_put_leaves_an_intent_until_grace_ends PASSED [ 68%]
|
||||
student-tests/api/test_upload_consistency.py::test_sweep_keeps_fresh_intents_and_ready_attachments PASSED [ 68%]
|
||||
student-tests/api/test_upload_consistency.py::test_parallel_sweeps_share_the_work PASSED [ 69%]
|
||||
student-tests/api/test_upload_consistency.py::test_background_sweeper_removes_abandoned_intents PASSED [ 69%]
|
||||
student-tests/api/test_upload_consistency.py::test_upload_waits_for_a_free_slot PASSED [ 69%]
|
||||
student-tests/api/test_upload_consistency.py::test_aborted_upload_is_a_client_error PASSED [ 69%]
|
||||
student-tests/api/test_upload_consistency.py::test_stalled_upload_times_out_and_frees_the_slot PASSED [ 70%]
|
||||
student-tests/api/test_wire_format.py::test_created_at_is_rfc3339_utc[whole-second] PASSED [ 70%]
|
||||
student-tests/api/test_wire_format.py::test_created_at_is_rfc3339_utc[microseconds] PASSED [ 70%]
|
||||
student-tests/unit/test_attachments_domain.py::test_filename_rejects_dangerous_and_empty[] PASSED [ 71%]
|
||||
student-tests/unit/test_attachments_domain.py::test_filename_rejects_dangerous_and_empty[ ] PASSED [ 71%]
|
||||
student-tests/unit/test_attachments_domain.py::test_filename_rejects_dangerous_and_empty[\t\n] PASSED [ 71%]
|
||||
student-tests/unit/test_attachments_domain.py::test_filename_rejects_dangerous_and_empty[../a.png] PASSED [ 71%]
|
||||
student-tests/unit/test_attachments_domain.py::test_filename_rejects_dangerous_and_empty[a/b.png] PASSED [ 72%]
|
||||
student-tests/unit/test_attachments_domain.py::test_filename_rejects_dangerous_and_empty[a\\b.png] PASSED [ 72%]
|
||||
student-tests/unit/test_attachments_domain.py::test_filename_rejects_dangerous_and_empty[a\x00.png] PASSED [ 72%]
|
||||
student-tests/unit/test_attachments_domain.py::test_filename_rejects_dangerous_and_empty[a\x01.png] PASSED [ 73%]
|
||||
student-tests/unit/test_attachments_domain.py::test_filename_rejects_dangerous_and_empty[a\x7f.png] PASSED [ 73%]
|
||||
student-tests/unit/test_attachments_domain.py::test_filename_rejects_dangerous_and_empty[a\n.png] PASSED [ 73%]
|
||||
student-tests/unit/test_attachments_domain.py::test_filename_rejects_dangerous_and_empty[\x9f.png] PASSED [ 73%]
|
||||
student-tests/unit/test_attachments_domain.py::test_filename_rejects_dangerous_and_empty[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED [ 74%]
|
||||
student-tests/unit/test_attachments_domain.py::test_filename_keeps_display_names[sample.png] PASSED [ 74%]
|
||||
student-tests/unit/test_attachments_domain.py::test_filename_keeps_display_names[\u0444\u043e\u0442\u043e 1.png] PASSED [ 74%]
|
||||
student-tests/unit/test_attachments_domain.py::test_filename_keeps_display_names[\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f] PASSED [ 75%]
|
||||
student-tests/unit/test_attachments_domain.py::test_filename_keeps_display_names[\U0001f44b.jpg] PASSED [ 75%]
|
||||
student-tests/unit/test_attachments_domain.py::test_filename_keeps_display_names[a..b.png] PASSED [ 75%]
|
||||
student-tests/unit/test_attachments_domain.py::test_declared_type_ignores_case_and_parameters[image/png-image/png] PASSED [ 76%]
|
||||
student-tests/unit/test_attachments_domain.py::test_declared_type_ignores_case_and_parameters[IMAGE/JPEG-image/jpeg] PASSED [ 76%]
|
||||
student-tests/unit/test_attachments_domain.py::test_declared_type_ignores_case_and_parameters[image/png; charset=binary-image/png] PASSED [ 76%]
|
||||
student-tests/unit/test_attachments_domain.py::test_declared_type_accepts_only_png_and_jpeg[None] PASSED [ 76%]
|
||||
student-tests/unit/test_attachments_domain.py::test_declared_type_accepts_only_png_and_jpeg[] PASSED [ 77%]
|
||||
student-tests/unit/test_attachments_domain.py::test_declared_type_accepts_only_png_and_jpeg[image/gif] PASSED [ 77%]
|
||||
student-tests/unit/test_attachments_domain.py::test_declared_type_accepts_only_png_and_jpeg[application/octet-stream] PASSED [ 77%]
|
||||
student-tests/unit/test_attachments_domain.py::test_declared_type_accepts_only_png_and_jpeg[image/*] PASSED [ 78%]
|
||||
student-tests/unit/test_attachments_domain.py::test_attachment_is_pending_until_stored PASSED [ 78%]
|
||||
student-tests/unit/test_attachments_domain.py::test_discarded_intent_records_its_reason PASSED [ 78%]
|
||||
student-tests/unit/test_authentication.py::test_basic_splits_on_first_colon PASSED [ 78%]
|
||||
student-tests/unit/test_authentication.py::test_basic_decodes_utf8_password PASSED [ 79%]
|
||||
student-tests/unit/test_authentication.py::test_basic_scheme_is_case_insensitive PASSED [ 79%]
|
||||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[] PASSED [ 79%]
|
||||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic] PASSED [ 80%]
|
||||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic ] PASSED [ 80%]
|
||||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic !!!not-base64!!!] PASSED [ 80%]
|
||||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic YWxpY2U] PASSED [ 80%]
|
||||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic bm8tY29sb24taGVyZQ==] PASSED [ 81%]
|
||||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic 0LDQu9C40YHQsDrQv9Cw0YDQvtC70Yw=] PASSED [ 81%]
|
||||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic YWxpY2U6//4=] PASSED [ 81%]
|
||||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Bearer YWxpY2U6c2VjcmV0] PASSED [ 82%]
|
||||
student-tests/unit/test_authentication.py::test_bearer_accepts_token68 PASSED [ 82%]
|
||||
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[] PASSED [ 82%]
|
||||
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[Bearer] PASSED [ 83%]
|
||||
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[Bearer ] PASSED [ 83%]
|
||||
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[Bearer a b] PASSED [ 83%]
|
||||
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[Basic abc] PASSED [ 83%]
|
||||
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED [ 84%]
|
||||
student-tests/unit/test_authentication.py::test_bearer_rejects_oversized_token PASSED [ 84%]
|
||||
student-tests/unit/test_authentication.py::test_challenge_depends_only_on_path PASSED [ 84%]
|
||||
student-tests/unit/test_cursor.py::test_roundtrip_preserves_key PASSED [ 85%]
|
||||
student-tests/unit/test_cursor.py::test_cursor_is_opaque PASSED [ 85%]
|
||||
student-tests/unit/test_cursor.py::test_cursor_from_another_scope_is_rejected PASSED [ 85%]
|
||||
student-tests/unit/test_cursor.py::test_forged_cursor_is_rejected PASSED [ 85%]
|
||||
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[] PASSED [ 86%]
|
||||
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[garbage] PASSED [ 86%]
|
||||
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[1.2.3] PASSED [ 86%]
|
||||
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[2.1.2.3] PASSED [ 87%]
|
||||
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[1.notanumber.ff.AAAA] PASSED [ 87%]
|
||||
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[1.1.zz.AAAA] PASSED [ 87%]
|
||||
student-tests/unit/test_cursor.py::test_tampered_payload_is_rejected PASSED [ 88%]
|
||||
student-tests/unit/test_domain.py::test_username_rejects_invalid[ab] PASSED [ 88%]
|
||||
student-tests/unit/test_domain.py::test_username_rejects_invalid[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] PASSED [ 88%]
|
||||
student-tests/unit/test_domain.py::test_username_rejects_invalid[Alice] PASSED [ 88%]
|
||||
student-tests/unit/test_domain.py::test_username_rejects_invalid[alice-01] PASSED [ 89%]
|
||||
student-tests/unit/test_domain.py::test_username_rejects_invalid[\u0430\u043b\u0438\u0441\u0430] PASSED [ 89%]
|
||||
student-tests/unit/test_domain.py::test_username_rejects_invalid[] PASSED [ 89%]
|
||||
student-tests/unit/test_domain.py::test_username_rejects_invalid[a b] PASSED [ 90%]
|
||||
student-tests/unit/test_domain.py::test_username_rejects_invalid[alice\n] PASSED [ 90%]
|
||||
student-tests/unit/test_domain.py::test_username_rejects_invalid[alice\r\n] PASSED [ 90%]
|
||||
student-tests/unit/test_domain.py::test_username_accepts_valid[abc] PASSED [ 90%]
|
||||
student-tests/unit/test_domain.py::test_username_accepts_valid[a_b_9] PASSED [ 91%]
|
||||
student-tests/unit/test_domain.py::test_username_accepts_valid[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] PASSED [ 91%]
|
||||
student-tests/unit/test_domain.py::test_display_name_rejects_invalid[] PASSED [ 91%]
|
||||
student-tests/unit/test_domain.py::test_display_name_rejects_invalid[ ] PASSED [ 92%]
|
||||
student-tests/unit/test_domain.py::test_display_name_rejects_invalid[\t\n] PASSED [ 92%]
|
||||
student-tests/unit/test_domain.py::test_display_name_rejects_invalid[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED [ 92%]
|
||||
student-tests/unit/test_domain.py::test_password_rejects_invalid[] PASSED [ 92%]
|
||||
student-tests/unit/test_domain.py::test_password_rejects_invalid[ ] PASSED [ 93%]
|
||||
student-tests/unit/test_domain.py::test_password_rejects_invalid[xxxxxxxxxxx] PASSED [ 93%]
|
||||
student-tests/unit/test_domain.py::test_password_rejects_invalid[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED [ 93%]
|
||||
student-tests/unit/test_domain.py::test_password_rejects_invalid[\t\t\t\t\t\t\t\t\t\t\t\t] PASSED [ 94%]
|
||||
student-tests/unit/test_domain.py::test_password_counts_code_points[xxxxxxxxxxxx] PASSED [ 94%]
|
||||
student-tests/unit/test_domain.py::test_password_counts_code_points[\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f] PASSED [ 94%]
|
||||
student-tests/unit/test_domain.py::test_password_counts_code_points[\u043f\u0430\u0440\u043e\u043b\u044c:\u0441:\u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u0435\u043c] PASSED [ 95%]
|
||||
student-tests/unit/test_domain.py::test_password_counts_code_points[\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b] PASSED [ 95%]
|
||||
student-tests/unit/test_domain.py::test_password_is_not_printed PASSED [ 95%]
|
||||
student-tests/unit/test_domain.py::test_session_token_is_opaque_and_stored_as_digest PASSED [ 95%]
|
||||
student-tests/unit/test_domain.py::test_session_tokens_are_unique PASSED [ 96%]
|
||||
student-tests/unit/test_domain.py::test_message_text_counts_code_points_not_bytes PASSED [ 96%]
|
||||
student-tests/unit/test_domain.py::test_message_text_rejects_whitespace PASSED [ 96%]
|
||||
student-tests/unit/test_domain.py::test_chat_requires_creator_in_members PASSED [ 97%]
|
||||
student-tests/unit/test_domain.py::test_chat_rejects_duplicate_members PASSED [ 97%]
|
||||
student-tests/unit/test_domain.py::test_chat_rejects_more_than_hundred_members PASSED [ 97%]
|
||||
student-tests/unit/test_domain.py::test_empty_text_needs_an_attachment PASSED [ 97%]
|
||||
student-tests/unit/test_domain.py::test_attachment_list_is_bounded_and_unique[ids0] PASSED [ 98%]
|
||||
student-tests/unit/test_domain.py::test_attachment_list_is_bounded_and_unique[ids1] PASSED [ 98%]
|
||||
student-tests/unit/test_domain.py::test_receipt_replays_only_the_same_request PASSED [ 98%]
|
||||
student-tests/unit/test_domain.py::test_posted_message_describes_itself PASSED [ 99%]
|
||||
student-tests/unit/test_domain.py::test_user_registration_emits_event PASSED [ 99%]
|
||||
student-tests/unit/test_domain.py::test_clock_is_strictly_increasing PASSED [ 99%]
|
||||
student-tests/unit/test_timeouts.py::test_timeouts_shrink_inwards_and_shutdown_fits_the_stop_budget PASSED [100%]
|
||||
|
||||
===================== 335 passed, 15 deselected in 38.39s ======================
|
||||
===================== 342 passed, 17 deselected in 41.47s ======================
|
||||
|
||||
+17
-13
@@ -1,8 +1,8 @@
|
||||
date: 2026-10-28T21:17:12Z commit: a774a2f BASE_URL=http://localhost:18084
|
||||
date: 2026-10-30T04:30:24Z commit: 81dd816 BASE_URL=http://127.0.0.1:18084
|
||||
============================= test session starts ==============================
|
||||
collected 5 items
|
||||
collecting ... collected 5 items
|
||||
|
||||
student-tests/stack/test_attachment_faults.py 10 MiB + 1 с Content-Length, тело не отправлено: 413
|
||||
student-tests/stack/test_attachment_faults.py::test_user_errors_never_become_500 10 MiB + 1 с Content-Length, тело не отправлено: 413
|
||||
10 MiB + 1 chunked: 413
|
||||
PNG 100000×100000 (бомба): 413
|
||||
PNG 8001×5000: 413
|
||||
@@ -38,20 +38,24 @@ filename=None: 400
|
||||
пустой текст без вложений: 400
|
||||
невалидный id вложения: 400
|
||||
variant=thumbnail: 400
|
||||
строк вложений в чате: 2 (= ответов 201); ответов в журнале реплик: 53, из них 5xx: 0
|
||||
.отказ COMMIT после записи объекта: 503 unavailable
|
||||
строк вложений в чате: 2 (= ответов 201); ответов в журнале реплик: 54, из них 5xx: 0
|
||||
PASSED
|
||||
student-tests/stack/test_attachment_faults.py::test_commit_failure_is_compensated_at_once отказ COMMIT после записи объекта: 503 unavailable
|
||||
сразу после ответа: строка нет, объект HEAD 404
|
||||
журнал: audit.attachment_discarded reason=compensation
|
||||
.реплика 0b2544e9c8de убита между PUT и COMMIT, клиент получил 502
|
||||
реплика cf30d7db141f убита между PUT и COMMIT, клиент получил 502
|
||||
PASSED
|
||||
student-tests/stack/test_attachment_faults.py::test_crash_between_put_and_commit_is_swept_after_grace реплика 0cc3ee358e59 убита между PUT и COMMIT, клиент получил 502
|
||||
реплика 899a952a5a21 убита между PUT и COMMIT, клиент получил 502
|
||||
остаток после падения: строка pending, объект HEAD 200
|
||||
остаток после падения: строка pending, объект HEAD 200
|
||||
старше grace: строка убрана через 23.2 с, объект HEAD 404
|
||||
старше grace: строка убрана через 24.7 с, объект HEAD 404
|
||||
моложе grace: строка pending, объект HEAD 200
|
||||
тот же после сдвига: убран через 2.9 с, объект HEAD 404
|
||||
тот же после сдвига: убран через 1.0 с, объект HEAD 404
|
||||
готовое вложение в сообщении со сдвинутым created_at скачивается, SHA-256 совпадает
|
||||
.обрыв после 256 KiB из 5 MiB: статус в журнале реплики [400], намерение None
|
||||
.тело зависло после 1 KiB: 503 unavailable за 8.00 с
|
||||
.
|
||||
PASSED
|
||||
student-tests/stack/test_attachment_faults.py::test_aborted_upload_leaves_nothing обрыв после 256 KiB из 5 MiB: статус в журнале реплики [400], намерение None
|
||||
PASSED
|
||||
student-tests/stack/test_attachment_faults.py::test_stalled_upload_is_cut_and_leaves_nothing тело зависло после 1 KiB: 503 unavailable за 8.01 с
|
||||
PASSED
|
||||
|
||||
============================== 5 passed in 47.68s ==============================
|
||||
============================== 5 passed in 45.92s ==============================
|
||||
|
||||
@@ -9,30 +9,30 @@
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 2.049,
|
||||
"successful_rps": 9.76,
|
||||
"elapsed_seconds": 1.623,
|
||||
"successful_rps": 12.32,
|
||||
"latency_ms": {
|
||||
"p50": 1044.5,
|
||||
"p95": 1054.0,
|
||||
"p99": 1054.0,
|
||||
"max": 1054.0
|
||||
"p50": 802.4,
|
||||
"p95": 1290.2,
|
||||
"p99": 1290.2,
|
||||
"max": 1290.2
|
||||
},
|
||||
"memory": {
|
||||
"373f923996f5": {
|
||||
"idle_mib": 118.0,
|
||||
"docker_stats_peak_mib": 284.1,
|
||||
"cgroup_memory_peak_mib": 317.0,
|
||||
"4bb468637322": {
|
||||
"idle_mib": 118.2,
|
||||
"docker_stats_peak_mib": 186.0,
|
||||
"cgroup_memory_peak_mib": 320.5,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"716a8bd3dadc": {
|
||||
"idle_mib": 120.1,
|
||||
"docker_stats_peak_mib": 284.8,
|
||||
"cgroup_memory_peak_mib": 303.5,
|
||||
"a5c13856cf55": {
|
||||
"idle_mib": 114.4,
|
||||
"docker_stats_peak_mib": 188.0,
|
||||
"cgroup_memory_peak_mib": 294.3,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 21.5,
|
||||
"cgroup_memory_peak_mib": 21.8,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,30 +9,30 @@
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 4.07,
|
||||
"successful_rps": 9.83,
|
||||
"elapsed_seconds": 4.961,
|
||||
"successful_rps": 8.06,
|
||||
"latency_ms": {
|
||||
"p50": 1371.3,
|
||||
"p95": 2703.0,
|
||||
"p99": 3511.2,
|
||||
"max": 3511.2
|
||||
"p50": 2324.1,
|
||||
"p95": 3612.7,
|
||||
"p99": 4393.7,
|
||||
"max": 4393.7
|
||||
},
|
||||
"memory": {
|
||||
"9f0550e32c1f": {
|
||||
"idle_mib": 121.0,
|
||||
"docker_stats_peak_mib": 283.9,
|
||||
"cgroup_memory_peak_mib": 333.8,
|
||||
"de3348e3da1c": {
|
||||
"idle_mib": 120.5,
|
||||
"docker_stats_peak_mib": 314.6,
|
||||
"cgroup_memory_peak_mib": 347.4,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"d67cf5f9a4cd": {
|
||||
"idle_mib": 114.6,
|
||||
"docker_stats_peak_mib": 274.2,
|
||||
"cgroup_memory_peak_mib": 326.7,
|
||||
"40930e451237": {
|
||||
"idle_mib": 112.3,
|
||||
"docker_stats_peak_mib": 302.7,
|
||||
"cgroup_memory_peak_mib": 355.9,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 25.5,
|
||||
"cgroup_memory_peak_mib": 23.8,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,30 +9,30 @@
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 9.697,
|
||||
"successful_rps": 8.25,
|
||||
"elapsed_seconds": 7.732,
|
||||
"successful_rps": 10.35,
|
||||
"latency_ms": {
|
||||
"p50": 3994.1,
|
||||
"p95": 7734.9,
|
||||
"p99": 8083.8,
|
||||
"max": 8083.8
|
||||
"p50": 3139.1,
|
||||
"p95": 5372.8,
|
||||
"p99": 6092.0,
|
||||
"max": 6092.0
|
||||
},
|
||||
"memory": {
|
||||
"2c476e16638d": {
|
||||
"idle_mib": 117.4,
|
||||
"docker_stats_peak_mib": 308.2,
|
||||
"cgroup_memory_peak_mib": 344.4,
|
||||
"5a087b8aae17": {
|
||||
"idle_mib": 118.1,
|
||||
"docker_stats_peak_mib": 326.2,
|
||||
"cgroup_memory_peak_mib": 346.1,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"06b193e00555": {
|
||||
"idle_mib": 120.6,
|
||||
"docker_stats_peak_mib": 327.0,
|
||||
"cgroup_memory_peak_mib": 368.2,
|
||||
"0d61fe5088f3": {
|
||||
"idle_mib": 114.4,
|
||||
"docker_stats_peak_mib": 315.7,
|
||||
"cgroup_memory_peak_mib": 338.3,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 29.2,
|
||||
"cgroup_memory_peak_mib": 31.1,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# 2026-10-28T21:22:34Z commit a774a2f; api x2: 1 CPU, 512 MiB, 2 workers; MALLOC_MMAP_THRESHOLD_=33554432; 2 uploads per client; peaks from cgroup memory.peak, MiB
|
||||
# 2026-10-30T04:41:55Z commit 81dd816; api x2: 1 CPU, 512 MiB, 2 workers; MALLOC_MMAP_THRESHOLD_=33554432; 2 uploads per client; peaks from cgroup memory.peak, MiB
|
||||
slots size conc codes p50_ms p95_ms api_idle api_peak api_oom lb_peak lb_oom
|
||||
3 10.0M 10 201x20 1044.5 1054.0 120.1 317.0 0 21.5 0
|
||||
3 10.0M 20 201x40 1371.3 2703.0 121.0 333.8 0 25.5 0
|
||||
3 10.0M 40 201x80 3994.1 7734.9 120.6 368.2 0 29.2 0
|
||||
3 10.0M 10 201x20 802.4 1290.2 118.2 320.5 0 21.8 0
|
||||
3 10.0M 20 201x40 2324.1 3612.7 120.5 355.9 0 23.8 0
|
||||
3 10.0M 40 201x80 3139.1 5372.8 118.1 346.1 0 31.1 0
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 3,
|
||||
"mode": "http",
|
||||
"count": 20,
|
||||
"concurrency": 10,
|
||||
"body_bytes": 10485256,
|
||||
"status_codes": {
|
||||
"201": 20
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 1.528,
|
||||
"successful_rps": 13.08,
|
||||
"latency_ms": {
|
||||
"p50": 822.0,
|
||||
"p95": 1220.3,
|
||||
"p99": 1220.3,
|
||||
"max": 1220.3
|
||||
},
|
||||
"memory": {
|
||||
"a3b34aa0d124": {
|
||||
"idle_mib": 117.4,
|
||||
"docker_stats_peak_mib": 187.4,
|
||||
"cgroup_memory_peak_mib": 278.1,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"552748ef9915": {
|
||||
"idle_mib": 121.5,
|
||||
"docker_stats_peak_mib": 194.1,
|
||||
"cgroup_memory_peak_mib": 296.5,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 23.8,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 3,
|
||||
"mode": "http",
|
||||
"count": 40,
|
||||
"concurrency": 20,
|
||||
"body_bytes": 10485256,
|
||||
"status_codes": {
|
||||
"201": 40
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 3.048,
|
||||
"successful_rps": 13.12,
|
||||
"latency_ms": {
|
||||
"p50": 1020.5,
|
||||
"p95": 2037.5,
|
||||
"p99": 2594.3,
|
||||
"max": 2594.3
|
||||
},
|
||||
"memory": {
|
||||
"743d2e8be9ac": {
|
||||
"idle_mib": 119.5,
|
||||
"docker_stats_peak_mib": 289.1,
|
||||
"cgroup_memory_peak_mib": 306.5,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"2d4b4584e6af": {
|
||||
"idle_mib": 118.6,
|
||||
"docker_stats_peak_mib": 201.0,
|
||||
"cgroup_memory_peak_mib": 313.5,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 25.2,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"upload_concurrency": 3,
|
||||
"mode": "http",
|
||||
"count": 80,
|
||||
"concurrency": 40,
|
||||
"body_bytes": 10485256,
|
||||
"status_codes": {
|
||||
"201": 73,
|
||||
"503": 7
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 10.545,
|
||||
"successful_rps": 6.92,
|
||||
"latency_ms": {
|
||||
"p50": 3644.3,
|
||||
"p95": 7597.9,
|
||||
"p99": 7615.3,
|
||||
"max": 7615.3
|
||||
},
|
||||
"memory": {
|
||||
"6e3af7a992bb": {
|
||||
"idle_mib": 118.1,
|
||||
"docker_stats_peak_mib": 316.0,
|
||||
"cgroup_memory_peak_mib": 333.7,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"6be16fbddbcc": {
|
||||
"idle_mib": 113.7,
|
||||
"docker_stats_peak_mib": 311.6,
|
||||
"cgroup_memory_peak_mib": 333.3,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 30.9,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 3,
|
||||
"mode": "http",
|
||||
"count": 20,
|
||||
"concurrency": 10,
|
||||
"body_bytes": 1048276,
|
||||
"status_codes": {
|
||||
"201": 20
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 0.186,
|
||||
"successful_rps": 107.54,
|
||||
"latency_ms": {
|
||||
"p50": 106.5,
|
||||
"p95": 141.4,
|
||||
"p99": 141.4,
|
||||
"max": 141.4
|
||||
},
|
||||
"memory": {
|
||||
"4920ab7d66e4": {
|
||||
"idle_mib": 112.6,
|
||||
"docker_stats_peak_mib": 163.1,
|
||||
"cgroup_memory_peak_mib": 172.7,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"18ab7f0573d7": {
|
||||
"idle_mib": 114.3,
|
||||
"docker_stats_peak_mib": 164.2,
|
||||
"cgroup_memory_peak_mib": 173.6,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 21.3,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 3,
|
||||
"mode": "http",
|
||||
"count": 40,
|
||||
"concurrency": 20,
|
||||
"body_bytes": 1048276,
|
||||
"status_codes": {
|
||||
"201": 40
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 0.311,
|
||||
"successful_rps": 128.43,
|
||||
"latency_ms": {
|
||||
"p50": 134.0,
|
||||
"p95": 219.8,
|
||||
"p99": 220.3,
|
||||
"max": 220.3
|
||||
},
|
||||
"memory": {
|
||||
"88f619930527": {
|
||||
"idle_mib": 114.5,
|
||||
"docker_stats_peak_mib": 164.3,
|
||||
"cgroup_memory_peak_mib": 178.6,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"efee16ca0b47": {
|
||||
"idle_mib": 119.8,
|
||||
"docker_stats_peak_mib": 164.4,
|
||||
"cgroup_memory_peak_mib": 178.5,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 24.2,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 3,
|
||||
"mode": "http",
|
||||
"count": 80,
|
||||
"concurrency": 40,
|
||||
"body_bytes": 1048276,
|
||||
"status_codes": {
|
||||
"201": 80
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 0.547,
|
||||
"successful_rps": 146.22,
|
||||
"latency_ms": {
|
||||
"p50": 215.8,
|
||||
"p95": 390.2,
|
||||
"p99": 463.2,
|
||||
"max": 463.2
|
||||
},
|
||||
"memory": {
|
||||
"13e532688939": {
|
||||
"idle_mib": 118.1,
|
||||
"docker_stats_peak_mib": 169.2,
|
||||
"cgroup_memory_peak_mib": 185.0,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"579b994e4726": {
|
||||
"idle_mib": 120.4,
|
||||
"docker_stats_peak_mib": 168.5,
|
||||
"cgroup_memory_peak_mib": 184.5,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 27.0,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 64,
|
||||
"mode": "http",
|
||||
"count": 20,
|
||||
"concurrency": 10,
|
||||
"body_bytes": 10485256,
|
||||
"status_codes": {
|
||||
"201": 20
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 1.588,
|
||||
"successful_rps": 12.59,
|
||||
"latency_ms": {
|
||||
"p50": 841.6,
|
||||
"p95": 930.3,
|
||||
"p99": 930.3,
|
||||
"max": 930.3
|
||||
},
|
||||
"memory": {
|
||||
"c47c05a7eb37": {
|
||||
"idle_mib": 113.9,
|
||||
"docker_stats_peak_mib": 180.5,
|
||||
"cgroup_memory_peak_mib": 274.3,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"1fd30902b6d9": {
|
||||
"idle_mib": 117.5,
|
||||
"docker_stats_peak_mib": 162.9,
|
||||
"cgroup_memory_peak_mib": 278.3,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 23.4,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 64,
|
||||
"mode": "http",
|
||||
"count": 40,
|
||||
"concurrency": 20,
|
||||
"body_bytes": 10485256,
|
||||
"status_codes": {
|
||||
"201": 40
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 4.792,
|
||||
"successful_rps": 8.35,
|
||||
"latency_ms": {
|
||||
"p50": 2662.6,
|
||||
"p95": 2906.4,
|
||||
"p99": 2938.8,
|
||||
"max": 2938.8
|
||||
},
|
||||
"memory": {
|
||||
"fe09cf1e6d7b": {
|
||||
"idle_mib": 118.1,
|
||||
"docker_stats_peak_mib": 398.2,
|
||||
"cgroup_memory_peak_mib": 417.6,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"149f49b87569": {
|
||||
"idle_mib": 119.5,
|
||||
"docker_stats_peak_mib": 373.8,
|
||||
"cgroup_memory_peak_mib": 427.6,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 22.9,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"upload_concurrency": 64,
|
||||
"mode": "http",
|
||||
"count": 80,
|
||||
"concurrency": 40,
|
||||
"body_bytes": 10485256,
|
||||
"status_codes": {
|
||||
"201": 53,
|
||||
"503": 27
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 11.018,
|
||||
"successful_rps": 4.81,
|
||||
"latency_ms": {
|
||||
"p50": 2617.7,
|
||||
"p95": 6274.8,
|
||||
"p99": 7307.6,
|
||||
"max": 7307.6
|
||||
},
|
||||
"memory": {
|
||||
"42d13cb26da9": {
|
||||
"idle_mib": 118.1,
|
||||
"docker_stats_peak_mib": 507.7,
|
||||
"cgroup_memory_peak_mib": 512.3,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"4e1c550551fa": {
|
||||
"idle_mib": 114.3,
|
||||
"docker_stats_peak_mib": 491.4,
|
||||
"cgroup_memory_peak_mib": 512.1,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 24.5,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 64,
|
||||
"mode": "http",
|
||||
"count": 20,
|
||||
"concurrency": 10,
|
||||
"body_bytes": 1048276,
|
||||
"status_codes": {
|
||||
"201": 20
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 0.247,
|
||||
"successful_rps": 80.89,
|
||||
"latency_ms": {
|
||||
"p50": 116.3,
|
||||
"p95": 191.5,
|
||||
"p99": 191.5,
|
||||
"max": 191.5
|
||||
},
|
||||
"memory": {
|
||||
"1901f0bcbcfe": {
|
||||
"idle_mib": 115.1,
|
||||
"docker_stats_peak_mib": 163.4,
|
||||
"cgroup_memory_peak_mib": 176.7,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"420b70b41900": {
|
||||
"idle_mib": 112.4,
|
||||
"docker_stats_peak_mib": 162.9,
|
||||
"cgroup_memory_peak_mib": 173.9,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 22.1,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 64,
|
||||
"mode": "http",
|
||||
"count": 40,
|
||||
"concurrency": 20,
|
||||
"body_bytes": 1048276,
|
||||
"status_codes": {
|
||||
"201": 40
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 0.317,
|
||||
"successful_rps": 126.33,
|
||||
"latency_ms": {
|
||||
"p50": 161.4,
|
||||
"p95": 214.3,
|
||||
"p99": 216.5,
|
||||
"max": 216.5
|
||||
},
|
||||
"memory": {
|
||||
"ea1fc935e663": {
|
||||
"idle_mib": 119.7,
|
||||
"docker_stats_peak_mib": 165.2,
|
||||
"cgroup_memory_peak_mib": 188.1,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"c74ad9e7448c": {
|
||||
"idle_mib": 117.7,
|
||||
"docker_stats_peak_mib": 165.2,
|
||||
"cgroup_memory_peak_mib": 189.5,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 25.4,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 64,
|
||||
"mode": "http",
|
||||
"count": 80,
|
||||
"concurrency": 40,
|
||||
"body_bytes": 1048276,
|
||||
"status_codes": {
|
||||
"201": 80
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 0.571,
|
||||
"successful_rps": 140.18,
|
||||
"latency_ms": {
|
||||
"p50": 263.3,
|
||||
"p95": 309.9,
|
||||
"p99": 340.2,
|
||||
"max": 340.2
|
||||
},
|
||||
"memory": {
|
||||
"fb07d9039b6e": {
|
||||
"idle_mib": 117.6,
|
||||
"docker_stats_peak_mib": 171.5,
|
||||
"cgroup_memory_peak_mib": 205.0,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"8bd5c78b7394": {
|
||||
"idle_mib": 120.0,
|
||||
"docker_stats_peak_mib": 168.4,
|
||||
"cgroup_memory_peak_mib": 209.1,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 26.0,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
# 2026-10-30T04:34:42Z commit 81dd816; api x2: 1 CPU, 512 MiB, 2 workers; MALLOC_MMAP_THRESHOLD_=131072; 2 uploads per client; peaks from cgroup memory.peak, MiB
|
||||
slots size conc codes p50_ms p95_ms api_idle api_peak api_oom lb_peak lb_oom
|
||||
64 1.0M 10 201x20 116.3 191.5 115.1 176.7 0 22.1 0
|
||||
64 1.0M 20 201x40 161.4 214.3 119.7 189.5 0 25.4 0
|
||||
64 1.0M 40 201x80 263.3 309.9 120.0 209.1 0 26.0 0
|
||||
64 10.0M 10 201x20 841.6 930.3 117.5 278.3 0 23.4 0
|
||||
64 10.0M 20 201x40 2662.6 2906.4 119.5 427.6 0 22.9 0
|
||||
64 10.0M 40 201x53,503x27 2617.7 6274.8 118.1 512.3 0 24.5 0
|
||||
3 1.0M 10 201x20 106.5 141.4 114.3 173.6 0 21.3 0
|
||||
3 1.0M 20 201x40 134.0 219.8 119.8 178.6 0 24.2 0
|
||||
3 1.0M 40 201x80 215.8 390.2 120.4 185.0 0 27.0 0
|
||||
3 10.0M 10 201x20 822.0 1220.3 121.5 296.5 0 23.8 0
|
||||
3 10.0M 20 201x40 1020.5 2037.5 119.5 313.5 0 25.2 0
|
||||
3 10.0M 40 201x73,503x7 3644.3 7597.9 118.1 333.7 0 30.9 0
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 3,
|
||||
"mode": "http",
|
||||
"count": 20,
|
||||
"concurrency": 10,
|
||||
"body_bytes": 10485256,
|
||||
"status_codes": {
|
||||
"201": 20
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 1.534,
|
||||
"successful_rps": 13.04,
|
||||
"latency_ms": {
|
||||
"p50": 768.6,
|
||||
"p95": 1402.3,
|
||||
"p99": 1402.3,
|
||||
"max": 1402.3
|
||||
},
|
||||
"memory": {
|
||||
"2315d07f9462": {
|
||||
"idle_mib": 119.4,
|
||||
"docker_stats_peak_mib": 163.4,
|
||||
"cgroup_memory_peak_mib": 280.9,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"865c1d6f106c": {
|
||||
"idle_mib": 118.0,
|
||||
"docker_stats_peak_mib": 201.5,
|
||||
"cgroup_memory_peak_mib": 277.5,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 23.0,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 3,
|
||||
"mode": "http",
|
||||
"count": 40,
|
||||
"concurrency": 20,
|
||||
"body_bytes": 10485256,
|
||||
"status_codes": {
|
||||
"201": 40
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 3.092,
|
||||
"successful_rps": 12.94,
|
||||
"latency_ms": {
|
||||
"p50": 1199.2,
|
||||
"p95": 2163.5,
|
||||
"p99": 2166.2,
|
||||
"max": 2166.2
|
||||
},
|
||||
"memory": {
|
||||
"f3b58944641e": {
|
||||
"idle_mib": 112.5,
|
||||
"docker_stats_peak_mib": 285.2,
|
||||
"cgroup_memory_peak_mib": 321.2,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"691bf13c2d32": {
|
||||
"idle_mib": 121.7,
|
||||
"docker_stats_peak_mib": 292.9,
|
||||
"cgroup_memory_peak_mib": 316.3,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 25.6,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 3,
|
||||
"mode": "http",
|
||||
"count": 80,
|
||||
"concurrency": 40,
|
||||
"body_bytes": 10485256,
|
||||
"status_codes": {
|
||||
"201": 80
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 9.171,
|
||||
"successful_rps": 8.72,
|
||||
"latency_ms": {
|
||||
"p50": 3942.7,
|
||||
"p95": 7309.7,
|
||||
"p99": 7954.2,
|
||||
"max": 7954.2
|
||||
},
|
||||
"memory": {
|
||||
"c337cae26572": {
|
||||
"idle_mib": 121.2,
|
||||
"docker_stats_peak_mib": 322.8,
|
||||
"cgroup_memory_peak_mib": 344.6,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"055b35041ad3": {
|
||||
"idle_mib": 117.8,
|
||||
"docker_stats_peak_mib": 305.6,
|
||||
"cgroup_memory_peak_mib": 327.5,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 28.8,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 3,
|
||||
"mode": "http",
|
||||
"count": 20,
|
||||
"concurrency": 10,
|
||||
"body_bytes": 1048276,
|
||||
"status_codes": {
|
||||
"201": 20
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 0.216,
|
||||
"successful_rps": 92.79,
|
||||
"latency_ms": {
|
||||
"p50": 105.4,
|
||||
"p95": 157.4,
|
||||
"p99": 157.4,
|
||||
"max": 157.4
|
||||
},
|
||||
"memory": {
|
||||
"bf697c008ead": {
|
||||
"idle_mib": 118.1,
|
||||
"docker_stats_peak_mib": 163.1,
|
||||
"cgroup_memory_peak_mib": 171.9,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"15bd06df47aa": {
|
||||
"idle_mib": 113.9,
|
||||
"docker_stats_peak_mib": 162.9,
|
||||
"cgroup_memory_peak_mib": 172.9,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 21.9,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 3,
|
||||
"mode": "http",
|
||||
"count": 40,
|
||||
"concurrency": 20,
|
||||
"body_bytes": 1048276,
|
||||
"status_codes": {
|
||||
"201": 40
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 0.343,
|
||||
"successful_rps": 116.59,
|
||||
"latency_ms": {
|
||||
"p50": 154.5,
|
||||
"p95": 249.8,
|
||||
"p99": 250.0,
|
||||
"max": 250.0
|
||||
},
|
||||
"memory": {
|
||||
"837a76aaf28d": {
|
||||
"idle_mib": 119.0,
|
||||
"docker_stats_peak_mib": 165.7,
|
||||
"cgroup_memory_peak_mib": 180.3,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"943a6f2f4a6b": {
|
||||
"idle_mib": 120.0,
|
||||
"docker_stats_peak_mib": 164.2,
|
||||
"cgroup_memory_peak_mib": 179.4,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 24.0,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 3,
|
||||
"mode": "http",
|
||||
"count": 80,
|
||||
"concurrency": 40,
|
||||
"body_bytes": 1048276,
|
||||
"status_codes": {
|
||||
"201": 80
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 0.573,
|
||||
"successful_rps": 139.53,
|
||||
"latency_ms": {
|
||||
"p50": 229.7,
|
||||
"p95": 384.8,
|
||||
"p99": 519.6,
|
||||
"max": 519.6
|
||||
},
|
||||
"memory": {
|
||||
"2102cf64398e": {
|
||||
"idle_mib": 117.9,
|
||||
"docker_stats_peak_mib": 167.7,
|
||||
"cgroup_memory_peak_mib": 183.6,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"5ed3a1598802": {
|
||||
"idle_mib": 119.7,
|
||||
"docker_stats_peak_mib": 169.1,
|
||||
"cgroup_memory_peak_mib": 184.5,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 25.0,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 64,
|
||||
"mode": "http",
|
||||
"count": 20,
|
||||
"concurrency": 10,
|
||||
"body_bytes": 10485256,
|
||||
"status_codes": {
|
||||
"201": 20
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 1.67,
|
||||
"successful_rps": 11.98,
|
||||
"latency_ms": {
|
||||
"p50": 855.6,
|
||||
"p95": 869.6,
|
||||
"p99": 869.6,
|
||||
"max": 869.6
|
||||
},
|
||||
"memory": {
|
||||
"ab1022ae14a7": {
|
||||
"idle_mib": 119.6,
|
||||
"docker_stats_peak_mib": 163.7,
|
||||
"cgroup_memory_peak_mib": 280.6,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"75d660febc07": {
|
||||
"idle_mib": 119.0,
|
||||
"docker_stats_peak_mib": 178.9,
|
||||
"cgroup_memory_peak_mib": 291.0,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 23.9,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 64,
|
||||
"mode": "http",
|
||||
"count": 40,
|
||||
"concurrency": 20,
|
||||
"body_bytes": 10485256,
|
||||
"status_codes": {
|
||||
"201": 40
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 3.529,
|
||||
"successful_rps": 11.33,
|
||||
"latency_ms": {
|
||||
"p50": 1479.8,
|
||||
"p95": 2084.6,
|
||||
"p99": 2086.0,
|
||||
"max": 2086.0
|
||||
},
|
||||
"memory": {
|
||||
"b6e9d7c84ec8": {
|
||||
"idle_mib": 120.6,
|
||||
"docker_stats_peak_mib": 329.4,
|
||||
"cgroup_memory_peak_mib": 394.3,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"beadf7f7b4b3": {
|
||||
"idle_mib": 119.0,
|
||||
"docker_stats_peak_mib": 312.3,
|
||||
"cgroup_memory_peak_mib": 421.8,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 22.5,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"upload_concurrency": 64,
|
||||
"mode": "http",
|
||||
"count": 80,
|
||||
"concurrency": 40,
|
||||
"body_bytes": 10485256,
|
||||
"status_codes": {
|
||||
"201": 46,
|
||||
"503": 34
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 15.479,
|
||||
"successful_rps": 2.97,
|
||||
"latency_ms": {
|
||||
"p50": 6380.9,
|
||||
"p95": 7658.0,
|
||||
"p99": 7738.7,
|
||||
"max": 7738.7
|
||||
},
|
||||
"memory": {
|
||||
"ce9a677e888f": {
|
||||
"idle_mib": 119.8,
|
||||
"docker_stats_peak_mib": 511.7,
|
||||
"cgroup_memory_peak_mib": 512.4,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"b90227bc8a7d": {
|
||||
"idle_mib": 117.9,
|
||||
"docker_stats_peak_mib": 501.9,
|
||||
"cgroup_memory_peak_mib": 512.1,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 24.9,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 64,
|
||||
"mode": "http",
|
||||
"count": 20,
|
||||
"concurrency": 10,
|
||||
"body_bytes": 1048276,
|
||||
"status_codes": {
|
||||
"201": 20
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 0.193,
|
||||
"successful_rps": 103.72,
|
||||
"latency_ms": {
|
||||
"p50": 111.3,
|
||||
"p95": 124.2,
|
||||
"p99": 124.2,
|
||||
"max": 124.2
|
||||
},
|
||||
"memory": {
|
||||
"ec6206619cf6": {
|
||||
"idle_mib": 121.3,
|
||||
"docker_stats_peak_mib": 163.6,
|
||||
"cgroup_memory_peak_mib": 175.6,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"e6b400d02401": {
|
||||
"idle_mib": 118.2,
|
||||
"docker_stats_peak_mib": 163.1,
|
||||
"cgroup_memory_peak_mib": 176.4,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 24.2,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 64,
|
||||
"mode": "http",
|
||||
"count": 40,
|
||||
"concurrency": 20,
|
||||
"body_bytes": 1048276,
|
||||
"status_codes": {
|
||||
"201": 40
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 0.317,
|
||||
"successful_rps": 126.16,
|
||||
"latency_ms": {
|
||||
"p50": 122.9,
|
||||
"p95": 210.1,
|
||||
"p99": 244.2,
|
||||
"max": 244.2
|
||||
},
|
||||
"memory": {
|
||||
"148482fccd2b": {
|
||||
"idle_mib": 114.6,
|
||||
"docker_stats_peak_mib": 166.6,
|
||||
"cgroup_memory_peak_mib": 187.1,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"b81399cb9176": {
|
||||
"idle_mib": 117.6,
|
||||
"docker_stats_peak_mib": 165.5,
|
||||
"cgroup_memory_peak_mib": 187.6,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 24.9,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 64,
|
||||
"mode": "http",
|
||||
"count": 80,
|
||||
"concurrency": 40,
|
||||
"body_bytes": 1048276,
|
||||
"status_codes": {
|
||||
"201": 80
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 0.566,
|
||||
"successful_rps": 141.23,
|
||||
"latency_ms": {
|
||||
"p50": 249.7,
|
||||
"p95": 526.6,
|
||||
"p99": 538.9,
|
||||
"max": 538.9
|
||||
},
|
||||
"memory": {
|
||||
"aeabf9291a4c": {
|
||||
"idle_mib": 121.4,
|
||||
"docker_stats_peak_mib": 169.6,
|
||||
"cgroup_memory_peak_mib": 213.2,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"ade618bef523": {
|
||||
"idle_mib": 117.9,
|
||||
"docker_stats_peak_mib": 174.2,
|
||||
"cgroup_memory_peak_mib": 213.1,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 26.0,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
# 2026-10-30T04:37:06Z commit 81dd816; api x2: 1 CPU, 512 MiB, 2 workers; MALLOC_MMAP_THRESHOLD_=131072; 2 uploads per client; peaks from cgroup memory.peak, MiB
|
||||
slots size conc codes p50_ms p95_ms api_idle api_peak api_oom lb_peak lb_oom
|
||||
64 1.0M 10 201x20 111.3 124.2 121.3 176.4 0 24.2 0
|
||||
64 1.0M 20 201x40 122.9 210.1 117.6 187.6 0 24.9 0
|
||||
64 1.0M 40 201x80 249.7 526.6 121.4 213.2 0 26.0 0
|
||||
64 10.0M 10 201x20 855.6 869.6 119.6 291.0 0 23.9 0
|
||||
64 10.0M 20 201x40 1479.8 2084.6 120.6 421.8 0 22.5 0
|
||||
64 10.0M 40 201x46,503x34 6380.9 7658.0 119.8 512.4 0 24.9 0
|
||||
3 1.0M 10 201x20 105.4 157.4 118.1 172.9 0 21.9 0
|
||||
3 1.0M 20 201x40 154.5 249.8 120.0 180.3 0 24.0 0
|
||||
3 1.0M 40 201x80 229.7 384.8 119.7 184.5 0 25.0 0
|
||||
3 10.0M 10 201x20 768.6 1402.3 119.4 280.9 0 23.0 0
|
||||
3 10.0M 20 201x40 1199.2 2163.5 121.7 321.2 0 25.6 0
|
||||
3 10.0M 40 201x80 3942.7 7309.7 121.2 344.6 0 28.8 0
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 3,
|
||||
"mode": "http",
|
||||
"count": 20,
|
||||
"concurrency": 10,
|
||||
"body_bytes": 10485256,
|
||||
"status_codes": {
|
||||
"201": 20
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 1.767,
|
||||
"successful_rps": 11.32,
|
||||
"latency_ms": {
|
||||
"p50": 858.8,
|
||||
"p95": 1546.5,
|
||||
"p99": 1546.5,
|
||||
"max": 1546.5
|
||||
},
|
||||
"memory": {
|
||||
"7aef48d6908e": {
|
||||
"idle_mib": 112.2,
|
||||
"docker_stats_peak_mib": 179.7,
|
||||
"cgroup_memory_peak_mib": 250.1,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"e008839a90c4": {
|
||||
"idle_mib": 114.4,
|
||||
"docker_stats_peak_mib": 164.0,
|
||||
"cgroup_memory_peak_mib": 296.6,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 24.0,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 3,
|
||||
"mode": "http",
|
||||
"count": 40,
|
||||
"concurrency": 20,
|
||||
"body_bytes": 10485256,
|
||||
"status_codes": {
|
||||
"201": 40
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 2.99,
|
||||
"successful_rps": 13.38,
|
||||
"latency_ms": {
|
||||
"p50": 953.0,
|
||||
"p95": 2639.6,
|
||||
"p99": 2640.2,
|
||||
"max": 2640.2
|
||||
},
|
||||
"memory": {
|
||||
"15eae71d8ec2": {
|
||||
"idle_mib": 112.2,
|
||||
"docker_stats_peak_mib": 183.6,
|
||||
"cgroup_memory_peak_mib": 290.9,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"d8b39e52ff9b": {
|
||||
"idle_mib": 121.0,
|
||||
"docker_stats_peak_mib": 201.4,
|
||||
"cgroup_memory_peak_mib": 321.1,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 26.7,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 3,
|
||||
"mode": "http",
|
||||
"count": 80,
|
||||
"concurrency": 40,
|
||||
"body_bytes": 10485256,
|
||||
"status_codes": {
|
||||
"201": 80
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 6.894,
|
||||
"successful_rps": 11.6,
|
||||
"latency_ms": {
|
||||
"p50": 2543.9,
|
||||
"p95": 4589.0,
|
||||
"p99": 5497.6,
|
||||
"max": 5497.6
|
||||
},
|
||||
"memory": {
|
||||
"44ad491b7622": {
|
||||
"idle_mib": 118.8,
|
||||
"docker_stats_peak_mib": 299.1,
|
||||
"cgroup_memory_peak_mib": 333.7,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"03bc8a62427b": {
|
||||
"idle_mib": 119.9,
|
||||
"docker_stats_peak_mib": 297.0,
|
||||
"cgroup_memory_peak_mib": 317.5,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 30.6,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 3,
|
||||
"mode": "http",
|
||||
"count": 20,
|
||||
"concurrency": 10,
|
||||
"body_bytes": 1048276,
|
||||
"status_codes": {
|
||||
"201": 20
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 0.236,
|
||||
"successful_rps": 84.69,
|
||||
"latency_ms": {
|
||||
"p50": 108.7,
|
||||
"p95": 200.2,
|
||||
"p99": 200.2,
|
||||
"max": 200.2
|
||||
},
|
||||
"memory": {
|
||||
"4e3a88060236": {
|
||||
"idle_mib": 114.6,
|
||||
"docker_stats_peak_mib": 163.5,
|
||||
"cgroup_memory_peak_mib": 172.3,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"b2cb5ba749e0": {
|
||||
"idle_mib": 117.6,
|
||||
"docker_stats_peak_mib": 163.0,
|
||||
"cgroup_memory_peak_mib": 173.0,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 23.4,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 3,
|
||||
"mode": "http",
|
||||
"count": 40,
|
||||
"concurrency": 20,
|
||||
"body_bytes": 1048276,
|
||||
"status_codes": {
|
||||
"201": 40
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 0.363,
|
||||
"successful_rps": 110.05,
|
||||
"latency_ms": {
|
||||
"p50": 142.5,
|
||||
"p95": 298.9,
|
||||
"p99": 299.2,
|
||||
"max": 299.2
|
||||
},
|
||||
"memory": {
|
||||
"d62dfa3bed99": {
|
||||
"idle_mib": 119.6,
|
||||
"docker_stats_peak_mib": 164.3,
|
||||
"cgroup_memory_peak_mib": 179.7,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"2e54ceff8006": {
|
||||
"idle_mib": 114.6,
|
||||
"docker_stats_peak_mib": 164.9,
|
||||
"cgroup_memory_peak_mib": 176.8,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 25.8,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 3,
|
||||
"mode": "http",
|
||||
"count": 80,
|
||||
"concurrency": 40,
|
||||
"body_bytes": 1048276,
|
||||
"status_codes": {
|
||||
"201": 80
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 0.693,
|
||||
"successful_rps": 115.4,
|
||||
"latency_ms": {
|
||||
"p50": 288.3,
|
||||
"p95": 462.8,
|
||||
"p99": 494.3,
|
||||
"max": 494.3
|
||||
},
|
||||
"memory": {
|
||||
"cb20b0543fee": {
|
||||
"idle_mib": 114.4,
|
||||
"docker_stats_peak_mib": 168.4,
|
||||
"cgroup_memory_peak_mib": 184.9,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"e96980437739": {
|
||||
"idle_mib": 119.2,
|
||||
"docker_stats_peak_mib": 167.9,
|
||||
"cgroup_memory_peak_mib": 184.1,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 27.7,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 64,
|
||||
"mode": "http",
|
||||
"count": 20,
|
||||
"concurrency": 10,
|
||||
"body_bytes": 10485256,
|
||||
"status_codes": {
|
||||
"201": 20
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 1.614,
|
||||
"successful_rps": 12.39,
|
||||
"latency_ms": {
|
||||
"p50": 806.1,
|
||||
"p95": 808.9,
|
||||
"p99": 808.9,
|
||||
"max": 808.9
|
||||
},
|
||||
"memory": {
|
||||
"aa2815720856": {
|
||||
"idle_mib": 112.7,
|
||||
"docker_stats_peak_mib": 166.8,
|
||||
"cgroup_memory_peak_mib": 287.9,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"fb9f6a9797cf": {
|
||||
"idle_mib": 114.2,
|
||||
"docker_stats_peak_mib": 187.2,
|
||||
"cgroup_memory_peak_mib": 281.8,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 21.4,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 64,
|
||||
"mode": "http",
|
||||
"count": 40,
|
||||
"concurrency": 20,
|
||||
"body_bytes": 10485256,
|
||||
"status_codes": {
|
||||
"201": 40
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 6.263,
|
||||
"successful_rps": 6.39,
|
||||
"latency_ms": {
|
||||
"p50": 3515.0,
|
||||
"p95": 5338.4,
|
||||
"p99": 5341.8,
|
||||
"max": 5341.8
|
||||
},
|
||||
"memory": {
|
||||
"17dbab36549f": {
|
||||
"idle_mib": 120.9,
|
||||
"docker_stats_peak_mib": 368.3,
|
||||
"cgroup_memory_peak_mib": 380.4,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"337529b2d7cd": {
|
||||
"idle_mib": 119.0,
|
||||
"docker_stats_peak_mib": 475.5,
|
||||
"cgroup_memory_peak_mib": 503.2,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 23.6,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 64,
|
||||
"mode": "http",
|
||||
"count": 80,
|
||||
"concurrency": 40,
|
||||
"body_bytes": 10485256,
|
||||
"status_codes": {
|
||||
"201": 80
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 14.047,
|
||||
"successful_rps": 5.7,
|
||||
"latency_ms": {
|
||||
"p50": 5986.1,
|
||||
"p95": 6981.0,
|
||||
"p99": 7866.6,
|
||||
"max": 7866.6
|
||||
},
|
||||
"memory": {
|
||||
"e9241a5f49e0": {
|
||||
"idle_mib": 120.1,
|
||||
"docker_stats_peak_mib": 501.9,
|
||||
"cgroup_memory_peak_mib": 512.1,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"7e6c77d0454e": {
|
||||
"idle_mib": 111.8,
|
||||
"docker_stats_peak_mib": 499.9,
|
||||
"cgroup_memory_peak_mib": 512.3,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 26.2,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 64,
|
||||
"mode": "http",
|
||||
"count": 20,
|
||||
"concurrency": 10,
|
||||
"body_bytes": 1048276,
|
||||
"status_codes": {
|
||||
"201": 20
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 0.223,
|
||||
"successful_rps": 89.58,
|
||||
"latency_ms": {
|
||||
"p50": 104.1,
|
||||
"p95": 156.3,
|
||||
"p99": 156.3,
|
||||
"max": 156.3
|
||||
},
|
||||
"memory": {
|
||||
"aab8a420da67": {
|
||||
"idle_mib": 114.2,
|
||||
"docker_stats_peak_mib": 164.1,
|
||||
"cgroup_memory_peak_mib": 174.1,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"8fdf4587aa20": {
|
||||
"idle_mib": 117.3,
|
||||
"docker_stats_peak_mib": 163.2,
|
||||
"cgroup_memory_peak_mib": 175.8,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 22.1,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 64,
|
||||
"mode": "http",
|
||||
"count": 40,
|
||||
"concurrency": 20,
|
||||
"body_bytes": 1048276,
|
||||
"status_codes": {
|
||||
"201": 40
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 0.402,
|
||||
"successful_rps": 99.47,
|
||||
"latency_ms": {
|
||||
"p50": 201.6,
|
||||
"p95": 247.1,
|
||||
"p99": 247.6,
|
||||
"max": 247.6
|
||||
},
|
||||
"memory": {
|
||||
"7abd4ac902e7": {
|
||||
"idle_mib": 114.5,
|
||||
"docker_stats_peak_mib": 165.2,
|
||||
"cgroup_memory_peak_mib": 189.0,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"e80e2d961451": {
|
||||
"idle_mib": 117.8,
|
||||
"docker_stats_peak_mib": 165.2,
|
||||
"cgroup_memory_peak_mib": 188.7,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 25.8,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"upload_concurrency": 64,
|
||||
"mode": "http",
|
||||
"count": 80,
|
||||
"concurrency": 40,
|
||||
"body_bytes": 1048276,
|
||||
"status_codes": {
|
||||
"201": 80
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 0.72,
|
||||
"successful_rps": 111.06,
|
||||
"latency_ms": {
|
||||
"p50": 345.3,
|
||||
"p95": 397.5,
|
||||
"p99": 398.7,
|
||||
"max": 398.7
|
||||
},
|
||||
"memory": {
|
||||
"5c0f3ec011ec": {
|
||||
"idle_mib": 118.1,
|
||||
"docker_stats_peak_mib": 168.6,
|
||||
"cgroup_memory_peak_mib": 208.1,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"332bebeaac24": {
|
||||
"idle_mib": 121.6,
|
||||
"docker_stats_peak_mib": 168.4,
|
||||
"cgroup_memory_peak_mib": 211.7,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 26.0,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
# 2026-10-30T04:39:31Z commit 81dd816; api x2: 1 CPU, 512 MiB, 2 workers; MALLOC_MMAP_THRESHOLD_=131072; 2 uploads per client; peaks from cgroup memory.peak, MiB
|
||||
slots size conc codes p50_ms p95_ms api_idle api_peak api_oom lb_peak lb_oom
|
||||
64 1.0M 10 201x20 104.1 156.3 117.3 175.8 0 22.1 0
|
||||
64 1.0M 20 201x40 201.6 247.1 117.8 189.0 0 25.8 0
|
||||
64 1.0M 40 201x80 345.3 397.5 121.6 211.7 0 26.0 0
|
||||
64 10.0M 10 201x20 806.1 808.9 114.2 287.9 0 21.4 0
|
||||
64 10.0M 20 201x40 3515.0 5338.4 120.9 503.2 0 23.6 0
|
||||
64 10.0M 40 201x80 5986.1 6981.0 120.1 512.3 0 26.2 0
|
||||
3 1.0M 10 201x20 108.7 200.2 117.6 173.0 0 23.4 0
|
||||
3 1.0M 20 201x40 142.5 298.9 119.6 179.7 0 25.8 0
|
||||
3 1.0M 40 201x80 288.3 462.8 119.2 184.9 0 27.7 0
|
||||
3 10.0M 10 201x20 858.8 1546.5 114.4 296.6 0 24.0 0
|
||||
3 10.0M 20 201x40 953.0 2639.6 121.0 321.1 0 26.7 0
|
||||
3 10.0M 40 201x80 2543.9 4589.0 119.9 333.7 0 30.6 0
|
||||
@@ -1,38 +0,0 @@
|
||||
{
|
||||
"upload_concurrency": 3,
|
||||
"mode": "http",
|
||||
"count": 20,
|
||||
"concurrency": 10,
|
||||
"body_bytes": 10485256,
|
||||
"status_codes": {
|
||||
"201": 20
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 5.065,
|
||||
"successful_rps": 3.95,
|
||||
"latency_ms": {
|
||||
"p50": 2352.4,
|
||||
"p95": 4189.7,
|
||||
"p99": 4189.7,
|
||||
"max": 4189.7
|
||||
},
|
||||
"memory": {
|
||||
"3c2d730085c8": {
|
||||
"idle_mib": 131.5,
|
||||
"docker_stats_peak_mib": 293.7,
|
||||
"cgroup_memory_peak_mib": 304.0,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"93f9bbc1bceb": {
|
||||
"idle_mib": 111.1,
|
||||
"docker_stats_peak_mib": 247.1,
|
||||
"cgroup_memory_peak_mib": 281.5,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 21.2,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
{
|
||||
"upload_concurrency": 3,
|
||||
"mode": "http",
|
||||
"count": 40,
|
||||
"concurrency": 20,
|
||||
"body_bytes": 10485256,
|
||||
"status_codes": {
|
||||
"201": 40
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 4.465,
|
||||
"successful_rps": 8.96,
|
||||
"latency_ms": {
|
||||
"p50": 1920.8,
|
||||
"p95": 3240.6,
|
||||
"p99": 3245.7,
|
||||
"max": 3245.7
|
||||
},
|
||||
"memory": {
|
||||
"e182be5b687d": {
|
||||
"idle_mib": 120.5,
|
||||
"docker_stats_peak_mib": 282.5,
|
||||
"cgroup_memory_peak_mib": 319.1,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"f17f1e812c22": {
|
||||
"idle_mib": 118.4,
|
||||
"docker_stats_peak_mib": 294.0,
|
||||
"cgroup_memory_peak_mib": 315.8,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 24.3,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
{
|
||||
"upload_concurrency": 3,
|
||||
"mode": "http",
|
||||
"count": 80,
|
||||
"concurrency": 40,
|
||||
"body_bytes": 10485256,
|
||||
"status_codes": {
|
||||
"201": 80
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 6.851,
|
||||
"successful_rps": 11.68,
|
||||
"latency_ms": {
|
||||
"p50": 2711.0,
|
||||
"p95": 4799.3,
|
||||
"p99": 5257.9,
|
||||
"max": 5257.9
|
||||
},
|
||||
"memory": {
|
||||
"bb38d9440f2d": {
|
||||
"idle_mib": 120.8,
|
||||
"docker_stats_peak_mib": 298.7,
|
||||
"cgroup_memory_peak_mib": 329.7,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"84d678b69298": {
|
||||
"idle_mib": 119.4,
|
||||
"docker_stats_peak_mib": 298.7,
|
||||
"cgroup_memory_peak_mib": 312.7,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 28.6,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
{
|
||||
"upload_concurrency": 3,
|
||||
"mode": "http",
|
||||
"count": 20,
|
||||
"concurrency": 10,
|
||||
"body_bytes": 1048276,
|
||||
"status_codes": {
|
||||
"201": 20
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 0.265,
|
||||
"successful_rps": 75.45,
|
||||
"latency_ms": {
|
||||
"p50": 113.1,
|
||||
"p95": 232.8,
|
||||
"p99": 232.8,
|
||||
"max": 232.8
|
||||
},
|
||||
"memory": {
|
||||
"c83ab609c3fd": {
|
||||
"idle_mib": 120.8,
|
||||
"docker_stats_peak_mib": 163.3,
|
||||
"cgroup_memory_peak_mib": 190.4,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"26c71ec1883e": {
|
||||
"idle_mib": 117.4,
|
||||
"docker_stats_peak_mib": 162.7,
|
||||
"cgroup_memory_peak_mib": 181.1,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 23.1,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
{
|
||||
"upload_concurrency": 3,
|
||||
"mode": "http",
|
||||
"count": 40,
|
||||
"concurrency": 20,
|
||||
"body_bytes": 1048276,
|
||||
"status_codes": {
|
||||
"201": 40
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 0.468,
|
||||
"successful_rps": 85.48,
|
||||
"latency_ms": {
|
||||
"p50": 224.4,
|
||||
"p95": 366.0,
|
||||
"p99": 371.8,
|
||||
"max": 371.8
|
||||
},
|
||||
"memory": {
|
||||
"4cc6524e77c8": {
|
||||
"idle_mib": 112.1,
|
||||
"docker_stats_peak_mib": 164.9,
|
||||
"cgroup_memory_peak_mib": 192.9,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"c3ba0e9c5e5d": {
|
||||
"idle_mib": 119.7,
|
||||
"docker_stats_peak_mib": 164.6,
|
||||
"cgroup_memory_peak_mib": 192.5,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 29.7,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
{
|
||||
"upload_concurrency": 3,
|
||||
"mode": "http",
|
||||
"count": 80,
|
||||
"concurrency": 40,
|
||||
"body_bytes": 1048276,
|
||||
"status_codes": {
|
||||
"201": 80
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 0.783,
|
||||
"successful_rps": 102.19,
|
||||
"latency_ms": {
|
||||
"p50": 297.8,
|
||||
"p95": 556.8,
|
||||
"p99": 751.0,
|
||||
"max": 751.0
|
||||
},
|
||||
"memory": {
|
||||
"76e59517c4ab": {
|
||||
"idle_mib": 120.3,
|
||||
"docker_stats_peak_mib": 169.2,
|
||||
"cgroup_memory_peak_mib": 194.3,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"6432fcfd1bca": {
|
||||
"idle_mib": 118.6,
|
||||
"docker_stats_peak_mib": 168.7,
|
||||
"cgroup_memory_peak_mib": 191.6,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 25.9,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
{
|
||||
"upload_concurrency": 64,
|
||||
"mode": "http",
|
||||
"count": 20,
|
||||
"concurrency": 10,
|
||||
"body_bytes": 10485256,
|
||||
"status_codes": {
|
||||
"201": 20
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 1.703,
|
||||
"successful_rps": 11.74,
|
||||
"latency_ms": {
|
||||
"p50": 912.4,
|
||||
"p95": 950.2,
|
||||
"p99": 950.2,
|
||||
"max": 950.2
|
||||
},
|
||||
"memory": {
|
||||
"ed961ad8f7af": {
|
||||
"idle_mib": 119.3,
|
||||
"docker_stats_peak_mib": 169.9,
|
||||
"cgroup_memory_peak_mib": 279.8,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"3eee49d32532": {
|
||||
"idle_mib": 117.1,
|
||||
"docker_stats_peak_mib": 183.5,
|
||||
"cgroup_memory_peak_mib": 299.7,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 21.4,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
{
|
||||
"upload_concurrency": 64,
|
||||
"mode": "http",
|
||||
"count": 40,
|
||||
"concurrency": 20,
|
||||
"body_bytes": 10485256,
|
||||
"status_codes": {
|
||||
"201": 40
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 4.342,
|
||||
"successful_rps": 9.21,
|
||||
"latency_ms": {
|
||||
"p50": 2177.2,
|
||||
"p95": 2493.4,
|
||||
"p99": 2621.4,
|
||||
"max": 2621.4
|
||||
},
|
||||
"memory": {
|
||||
"3beae51664f3": {
|
||||
"idle_mib": 117.8,
|
||||
"docker_stats_peak_mib": 366.2,
|
||||
"cgroup_memory_peak_mib": 386.4,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"fbd9ba2a6325": {
|
||||
"idle_mib": 113.8,
|
||||
"docker_stats_peak_mib": 400.9,
|
||||
"cgroup_memory_peak_mib": 422.6,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 23.6,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
{
|
||||
"upload_concurrency": 64,
|
||||
"mode": "http",
|
||||
"count": 80,
|
||||
"concurrency": 40,
|
||||
"body_bytes": 10485256,
|
||||
"status_codes": {
|
||||
"201": 43,
|
||||
"503": 37
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 13.192,
|
||||
"successful_rps": 3.26,
|
||||
"latency_ms": {
|
||||
"p50": 3920.8,
|
||||
"p95": 6328.1,
|
||||
"p99": 7061.7,
|
||||
"max": 7061.7
|
||||
},
|
||||
"memory": {
|
||||
"76bf24c2a7e4": {
|
||||
"idle_mib": 120.7,
|
||||
"docker_stats_peak_mib": 501.4,
|
||||
"cgroup_memory_peak_mib": 513.2,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"b913c1711548": {
|
||||
"idle_mib": 118.6,
|
||||
"docker_stats_peak_mib": 511.9,
|
||||
"cgroup_memory_peak_mib": 512.4,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 26.2,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
{
|
||||
"upload_concurrency": 64,
|
||||
"mode": "http",
|
||||
"count": 20,
|
||||
"concurrency": 10,
|
||||
"body_bytes": 1048276,
|
||||
"status_codes": {
|
||||
"201": 20
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 0.369,
|
||||
"successful_rps": 54.21,
|
||||
"latency_ms": {
|
||||
"p50": 201.4,
|
||||
"p95": 282.8,
|
||||
"p99": 282.8,
|
||||
"max": 282.8
|
||||
},
|
||||
"memory": {
|
||||
"bd429b0994e1": {
|
||||
"idle_mib": 111.7,
|
||||
"docker_stats_peak_mib": 163.4,
|
||||
"cgroup_memory_peak_mib": 184.2,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"abd2f4842514": {
|
||||
"idle_mib": 119.4,
|
||||
"docker_stats_peak_mib": 163.4,
|
||||
"cgroup_memory_peak_mib": 187.5,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 20.9,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
{
|
||||
"upload_concurrency": 64,
|
||||
"mode": "http",
|
||||
"count": 40,
|
||||
"concurrency": 20,
|
||||
"body_bytes": 1048276,
|
||||
"status_codes": {
|
||||
"201": 40
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 0.498,
|
||||
"successful_rps": 80.37,
|
||||
"latency_ms": {
|
||||
"p50": 227.1,
|
||||
"p95": 377.3,
|
||||
"p99": 380.1,
|
||||
"max": 380.1
|
||||
},
|
||||
"memory": {
|
||||
"12d95dfd6365": {
|
||||
"idle_mib": 117.2,
|
||||
"docker_stats_peak_mib": 164.0,
|
||||
"cgroup_memory_peak_mib": 193.9,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"66e748dbcb67": {
|
||||
"idle_mib": 118.7,
|
||||
"docker_stats_peak_mib": 164.8,
|
||||
"cgroup_memory_peak_mib": 202.1,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 23.3,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
{
|
||||
"upload_concurrency": 64,
|
||||
"mode": "http",
|
||||
"count": 80,
|
||||
"concurrency": 40,
|
||||
"body_bytes": 1048276,
|
||||
"status_codes": {
|
||||
"201": 80
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 0.799,
|
||||
"successful_rps": 100.07,
|
||||
"latency_ms": {
|
||||
"p50": 347.3,
|
||||
"p95": 688.0,
|
||||
"p99": 690.3,
|
||||
"max": 690.3
|
||||
},
|
||||
"memory": {
|
||||
"fa8ec003b262": {
|
||||
"idle_mib": 117.1,
|
||||
"docker_stats_peak_mib": 169.1,
|
||||
"cgroup_memory_peak_mib": 209.4,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"9ff57a54c245": {
|
||||
"idle_mib": 120.6,
|
||||
"docker_stats_peak_mib": 167.9,
|
||||
"cgroup_memory_peak_mib": 218.8,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 27.3,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
# 2026-10-28T21:19:30Z commit a774a2f; api x2: 1 CPU, 512 MiB, 2 workers; MALLOC_MMAP_THRESHOLD_=131072; 2 uploads per client; peaks from cgroup memory.peak, MiB
|
||||
slots size conc codes p50_ms p95_ms api_idle api_peak api_oom lb_peak lb_oom
|
||||
64 1.0M 10 201x20 201.4 282.8 119.4 187.5 0 20.9 0
|
||||
64 1.0M 20 201x40 227.1 377.3 118.7 202.1 0 23.3 0
|
||||
64 1.0M 40 201x80 347.3 688.0 120.6 218.8 0 27.3 0
|
||||
64 10.0M 10 201x20 912.4 950.2 119.3 299.7 0 21.4 0
|
||||
64 10.0M 20 201x40 2177.2 2493.4 117.8 422.6 0 23.6 0
|
||||
64 10.0M 40 201x43,503x37 3920.8 6328.1 120.7 513.2 0 26.2 0
|
||||
3 1.0M 10 201x20 113.1 232.8 120.8 190.4 0 23.1 0
|
||||
3 1.0M 20 201x40 224.4 366.0 119.7 192.9 0 29.7 0
|
||||
3 1.0M 40 201x80 297.8 556.8 120.3 194.3 0 25.9 0
|
||||
3 10.0M 10 201x20 2352.4 4189.7 131.5 304.0 0 21.2 0
|
||||
3 10.0M 20 201x40 1920.8 3240.6 120.5 319.1 0 24.3 0
|
||||
3 10.0M 40 201x80 2711.0 4799.3 120.8 329.7 0 28.6 0
|
||||
Reference in New Issue
Block a user