diff --git a/.env.example b/.env.example index dbe6195..8dd166d 100644 --- a/.env.example +++ b/.env.example @@ -158,11 +158,26 @@ ADMISSION_MAX_PENDING=200 ADMISSION_MAX_STAGED_BYTES=2147483648 ADMISSION_MAX_CONCURRENT_UPLOADS=8 -# --- Lab6: observability (to implement) ------------------------------------- +# --- Lab6: observability ----------------------------------------------------- # SDK/Collector settings; OTLP traffic must never carry message bodies, # attachment bytes, credentials or user/chat/message ids as metric labels. -OTEL_SERVICE_NAME=messenger-api -# worker and relay override this with a distinct service.name in compose.yaml. +# Service names are set per service in compose.yaml (API/worker/relay must differ). OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4318 OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf OTEL_RESOURCE_ATTRIBUTES=deployment.environment.name=lab +OTEL_METRIC_EXPORT_INTERVAL=15000 +TELEMETRY_ENABLED=1 +PROMETHEUS_PORT=9090 +LOKI_PORT=3100 +TEMPO_PORT=3200 +GRAFANA_PORT=3000 +OTEL_COLLECTOR_CPU_LIMIT=0.25 +OTEL_COLLECTOR_MEM_LIMIT=192M +PROMETHEUS_CPU_LIMIT=0.50 +PROMETHEUS_MEM_LIMIT=320M +LOKI_CPU_LIMIT=0.50 +LOKI_MEM_LIMIT=320M +TEMPO_CPU_LIMIT=0.25 +TEMPO_MEM_LIMIT=768M +GRAFANA_CPU_LIMIT=0.25 +GRAFANA_MEM_LIMIT=512M diff --git a/.github/workflows/app.yml b/.github/workflows/app.yml index 817915b..67a411d 100644 --- a/.github/workflows/app.yml +++ b/.github/workflows/app.yml @@ -53,7 +53,8 @@ jobs: timeout-minutes: 20 steps: - uses: actions/checkout@v4 - - run: cp .env.example .env + - run: cp .env.example .env && sed -i 's/^TELEMETRY_ENABLED=.*/TELEMETRY_ENABLED=0/' .env + - run: ./scripts/init-secrets.sh - run: docker compose --env-file .env config --quiet - run: docker compose --env-file .env up -d --build - name: Wait for readiness through the load balancer @@ -78,12 +79,47 @@ jobs: run: python3 scripts/lab5_track2.py --reps 1 - name: Parallel idempotency through the LB run: python3 student-tests/idempotency_parallel.py --base-url http://localhost:8080 + - name: LB removes a not-ready replica + run: make test-lb-readiness - name: Upload, stop the serving replica, download through another run: python3 student-tests/attachment_failover.py --base-url http://localhost:8080 - name: Stop one API replica and keep writing run: make test-failover ACTION_SCRIPT=scripts/stop-one.sh - name: Logs on failure if: failure() - run: docker compose --env-file .env logs --tail 100 + run: docker compose --env-file .env logs --tail 100 api worker relay - if: always() run: docker compose --env-file .env down -v + + observability: + name: Lab6 observability stand + needs: build + runs-on: ubuntu-latest + timeout-minutes: 25 + steps: + - uses: actions/checkout@v4 + - run: cp .env.example .env + - run: ./scripts/init-secrets.sh + - run: docker compose --env-file .env --profile telemetry config --quiet + - run: docker compose --env-file .env --profile telemetry up -d --build + - name: Validate Prometheus configuration and rules + run: | + docker compose --env-file .env --profile telemetry exec -T prometheus promtool check config /etc/prometheus/prometheus.yml + docker compose --env-file .env --profile telemetry exec -T prometheus sh -c 'promtool check rules /etc/prometheus/rules/*.yml' + - name: Wait for readiness through the LB + run: | + for attempt in $(seq 1 60); do + if curl -fsS -o /dev/null http://localhost:8080/health/ready; then exit 0; fi + sleep 2 + done + docker compose --env-file .env ps + exit 1 + - name: Public smoke with telemetry enabled + run: make test + - name: Observability and privacy checks + run: make test-observability + - name: Logs on failure + if: failure() + run: docker compose --env-file .env --profile telemetry logs --tail 120 api worker relay otel-collector prometheus loki tempo grafana + - if: always() + run: docker compose --env-file .env --profile telemetry down -v diff --git a/LAB6-PLAN.md b/LAB6-PLAN.md index 5e55aa1..b324f9f 100644 --- a/LAB6-PLAN.md +++ b/LAB6-PLAN.md @@ -88,14 +88,14 @@ Go-модули (проверены в module cache на 2026-11-04): (только если нужен HTTP client instrumentation; серверный слой — свой); - `github.com/exaring/otelpgx` — **v0.13.0** (pgx v5). -Backend-образы (manifest list digest проверен `docker manifest inspect`): +Backend-образы (manifest-list digest (Docker Hub tag API)): | Роль | Образ | Digest | |---|---|---| -| Collector contrib | `otel/opentelemetry-collector-contrib:0.164.0` | `sha256:40392928d2b988b77e7525dbac33e5e3d9bedb40b9ff8c1f9119d92ca3a8a1c3` | -| Prometheus | `prom/prometheus:v3.15.1` | `sha256:d445d1806b38f85b5c394a1b87f94113fde0473b45245922c2e8b1bd41fa68ae` | -| Loki | `grafana/loki:3.6.4` | `sha256:9b6c06e988c990dc089424180df4a810758786f9341bb3deafbcb8b6698d2e9e` | -| Tempo | `grafana/tempo:2.9.0` | `sha256:b025a4a4db0a58cc94e2abfab59751f92d74ab8cc024d2e6025ba7efb87bbaff` | -| Grafana | `grafana/grafana:13.2.5` | `sha256:ffeeebf613b00fede764821c5e5b1545fb376aba561ae91c488e91f219adb25a` | +| Collector contrib | `otel/opentelemetry-collector-contrib:0.164.0` | `sha256:340c9ca6a36617084c6661bdc4f0fe92b7cda5a805d61673ec8db375fddc522b` | +| Prometheus | `prom/prometheus:v3.15.1` | `sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2` | +| Loki | `grafana/loki:3.6.4` | `sha256:be31579ac047e9f78b81e48f3b69d3af709e7299b431d5aa78bcda43382f9511` | +| Tempo | `grafana/tempo:2.9.0` | `sha256:65a5789759435f1ef696f1953258b9bbdb18eb571d5ce711ff812d2e128288a4` | +| Grafana | `grafana/grafana:13.2.5` | `sha256:9f7aa1e1e3246aade5792d35a738049f7f32f89cd51d1956cf426a4e86268a84` | Проверено: HAProxy `3.2-alpine` собран с `USE_PROMEX=1`; RabbitMQ `4.3.7-management-alpine` уже содержит включённый `rabbitmq_prometheus` @@ -161,7 +161,7 @@ Backend-образы (manifest list digest проверен `docker manifest ins 1. Остановить старый lab5-стенд (`mtusi-messenger-lab5-*`) и `lab5-it-*`, volumes не удалять. Освободить память/CPU. -2. **Ресурсный блокер:** Docker VM сейчас ~2053 МБ / 2 CPU; лимиты существующего +2. **Ресурсный блокер (на момент плана):** тогда было ~2053 МБ / 2 CPU; лимиты существующего compose уже ~3024 МБ / 4.75 CPU. Для M4/M5 нужно **≥ 6 ГБ RAM и ≥ 4 CPU** (Docker Desktop settings) либо явное сокращение: M3 на tight-бюджете, M4/M5 не заявлять. Зафиксировать `docker info`, `docker stats` idle/load. @@ -493,8 +493,8 @@ held-out; ограничения (single-node, 7d окно, 2–4 CPU) опис ## 7. Риски и ограничения -1. **Ресурсы (blocker):** 2 ГБ/2 CPU не хватит для достоверных M4/M5. Нужно - ≥6 ГБ/4 CPU либо сокращение scope. Telemetry на 2 CPU само влияет на +1. **Ресурсы:** на момент плана было 2 ГБ/2 CPU; сейчас Colima VM увеличена до + 4 CPU / 8 ГиБ, чего достаточно для M4/M5. Telemetry на 2 CPU влияла на latency/TTD; baseline только с финальной конфигурацией. 2. **OTel logs SDK** — evolving API; изолировать в `internal/telemetry`, pin v1.47.0/v0.23.0, in-memory exporter tests. diff --git a/Makefile b/Makefile index 64374cb..beb71d9 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,6 @@ PYTHON ?= python3 +VERSION ?= $(shell git describe --always --dirty 2>/dev/null || echo dev) +export VERSION BASE_URL ?= http://localhost:8080 CA_FILE ?= ACTION_SCRIPT ?= @@ -6,11 +8,12 @@ PIPELINE ?= 2 TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",) PYTHON_LOCAL = env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 $(PYTHON) -.PHONY: help check validate test test-attachments test-presign load test-persistence test-failover smoke-local load-local test-idempotency test-lb-readiness up down ps logs +.PHONY: help check validate test test-attachments test-presign load test-persistence test-failover smoke-local load-local test-idempotency test-lb-readiness test-observability test-slo up up-base init-secrets down ps logs help: @echo "check: offline structure; validate: full OpenAPI (requirements-dev.txt); test: running API; load: synthetic writes" - @echo "up/down/ps/logs: lab3 stand from compose.yaml (LB + API_REPLICAS replicas + stores)" + @echo "up: lab6 stand with telemetry profile; up-base: lab5 regression without telemetry" + @echo "down/ps/logs: same profile; test-observability/test-slo: lab6 checks" check: $(PYTHON) scripts/check_contract.py @@ -37,6 +40,14 @@ test-faults: test-track2: $(PYTHON_LOCAL) scripts/lab5_track2.py --base-url "$(BASE_URL)" $(TLS_ARGS) +# Lab6 observability and SLO checks (stand must be running with the telemetry profile). +test-observability: + $(PYTHON_LOCAL) scripts/check_evidence.py + $(PYTHON_LOCAL) scripts/lab6_verify.py --base-url "$(BASE_URL)" $(TLS_ARGS) + +test-slo: + $(PYTHON_LOCAL) scripts/lab6_track2.py --base-url "$(BASE_URL)" $(TLS_ARGS) + load: $(PYTHON_LOCAL) tests/load.py --base-url "$(BASE_URL)" $(TLS_ARGS) @@ -69,17 +80,26 @@ COMPOSE_BIN ?= docker compose COMPOSE_FILE ?= compose.yaml ENV_FILE ?= .env -up: - $(COMPOSE_BIN) --env-file $(ENV_FILE) -f $(COMPOSE_FILE) up -d --build +TELEMETRY_PROFILE ?= telemetry + +up: init-secrets + $(COMPOSE_BIN) --env-file $(ENV_FILE) -f $(COMPOSE_FILE) --profile $(TELEMETRY_PROFILE) up -d --build + +# Lab5 regression without the telemetry profile. +up-base: init-secrets + TELEMETRY_ENABLED=0 $(COMPOSE_BIN) --env-file $(ENV_FILE) -f $(COMPOSE_FILE) up -d --build + +init-secrets: + ./scripts/init-secrets.sh down: - $(COMPOSE_BIN) --env-file $(ENV_FILE) -f $(COMPOSE_FILE) down + $(COMPOSE_BIN) --env-file $(ENV_FILE) -f $(COMPOSE_FILE) --profile $(TELEMETRY_PROFILE) down ps: - $(COMPOSE_BIN) --env-file $(ENV_FILE) -f $(COMPOSE_FILE) ps + $(COMPOSE_BIN) --env-file $(ENV_FILE) -f $(COMPOSE_FILE) --profile $(TELEMETRY_PROFILE) ps logs: - $(COMPOSE_BIN) --env-file $(ENV_FILE) -f $(COMPOSE_FILE) logs -f --tail 100 + $(COMPOSE_BIN) --env-file $(ENV_FILE) -f $(COMPOSE_FILE) --profile $(TELEMETRY_PROFILE) logs -f --tail 100 # Operator views: the failed registry is PostgreSQL, the DLQ is a backstop. jobs-failed: diff --git a/REPORT.md b/REPORT.md index b97ae42..917485f 100644 --- a/REPORT.md +++ b/REPORT.md @@ -1,37 +1,148 @@ # Отчёт — лабораторная 6 -- Автор, группа: TODO -- Целевая оценка; выбранный трек 5, если нужен: TODO -- Commit/PR: TODO после публикации -- Использованные источники, библиотеки и помощь ИИ: TODO +- Автор, группа: Кунецкий Владислав, БВТ2303 +- Целевая оценка; выбранный трек 5: **5, трек 2 (SLO и обнаружение инцидентов); полный live-прогон выполнен** +- Commit/PR: один коммит `lab6` в `main`, запушен в origin +- Использованные источники, библиотеки и помощь ИИ: Go 1.27, OTel Go SDK v1.47.0 / + otelslog v0.21.0 / otelpgx v0.13.0, OTel Collector contrib 0.164.0, + Prometheus 3.15.1, Loki 3.6.4, Tempo 2.9.0, Grafana 13.2.5. ИИ-ассистент + использовался для реализации и текста; ниже перечислены реально выполненные + команды и артефакты, включая полный live-прогон трека 2. ## Запуск из чистого clone -TODO: версии runtime/образов, prerequisites, команды создания локальных secrets/.env, build, миграций, запуска, ожидания готовности, тестов и остановки. Указать необходимые действия оператора. Не вставлять секреты. Отдельно указать безопасную остановку и команду намеренного удаления учебных данных. +```sh +cp .env.example .env +./scripts/init-secrets.sh # secrets/grafana.env, gitignored +make up # docker compose --profile telemetry up -d --build +# дождаться http://localhost:8080/health/ready +make test # публичный smoke +make test-observability # сигналы, route labels, Grafana, sentinels +make test-slo # короткий alert smoke; promtool rules — CI job +python3 scripts/lab6_track2_full.py --out evidence/lab6/track2/full +``` + +Остановка без потери данных: `docker compose --env-file .env down`. +Намеренный сброс учебных данных: `docker compose --env-file .env --profile telemetry down -v`. +`make up-base` поднимает только lab5-профиль без telemetry; `make unit-test` — Go-тесты. +Grafana: `http://127.0.0.1:3000` (admin-пароль в `secrets/grafana.env`). +Prometheus/Loki/Tempo опубликованы только на loopback для evidence-запросов; +OTLP 4317/4318, RabbitMQ 15692 и self-metrics Collector 8888 — без host-портов. + +Версии закреплены manifest-list digest’ами Collector/Loki/Tempo/Grafana/Prometheus: +Docker выбирает arm64 на этой машине и amd64 на CI. Переопределения +`*_IMAGE/PLATFORM` остаются опциональными для нестандартного registry mirror. ## Архитектура и решения -TODO: схема процессов/хранилищ, источник истины, транзакционные границы, ограничения. Что перенесено из lab5, что изменено в этой работе. Соответствие переменных из .env.example реальной конфигурации. +```mermaid +flowchart LR + C[client] --> LB[HAProxy] + LB --> API[API x2] + API --> PG[(PostgreSQL)] + API --> S3[(SeaweedFS)] + API -->|OTLP| COL[Collector] + RELAY[relay] --> PG + RELAY --> MQ[(RabbitMQ)] + MQ --> W[worker] + W --> PG + W --> S3 + W -->|OTLP| COL + RELAY -->|OTLP| COL + COL -->|:8889| PROM[Prometheus] + COL -->|OTLP /otlp| LOKI[Loki] + COL -->|OTLP gRPC| TEMPO[Tempo] + PROM -->|scrape| MQ + PROM -->|scrape| LB + GRAF[Grafana] --> PROM + GRAF --> LOKI + GRAF --> TEMPO +``` -## Доказательства критериев +- API/worker/relay — OTel SDK; Collector — единственный OTLP-приёмник; + Prometheus/Loki/Tempo — хранилища; Grafana — UI и provisioning. +- Queue depth — `rabbitmq_prometheus`; oldest job age — SQL в relay; + CPU/RAM приложения — cgroup v2 (`messenger_process_*`), без cAdvisor и + Docker socket. Broker process metrics — RabbitMQ plugin. +- `service.name` задаётся кодом (`messenger-api`, `messenger-worker`, + `messenger-relay`) и явно в compose; `service.instance.id` — `INSTANCE_ID`/ + hostname; `deployment.environment.name=lab`. +- Логи проходят allowlist/redactor: `user_id`, `chat_id`, `message_id`, + filename, raw `path`, `query`, `object_key`, bodies, tokens и signed URL не + экспортируются. `X-Request-Id` нормализуется. +- HTTP route — OpenAPI-шаблон через `server.FindPath`; `r.Pattern` не + используется, потому что ogen регистрирует `/` на внешнем mux. +- W3C context переносится в payload outbox (`traceparent`/`tracestate`, + разрешены `contracts/jobs.schema.json`), relay создаёт `job.publish`, + worker — `job.process`; retry получает новый attempt-span. -| Критерий README | Команда/сценарий | Наблюдаемый результат | Файл доказательства | -| --- | --- | --- | --- | -| Публичный smoke | make test | TODO | TODO | -| Остальные пункты уровня 3 | TODO | TODO | TODO | -| Все пункты уровня 4, если заявлен | TODO | TODO | TODO | -| Выбранный трек 5, если заявлен | TODO | TODO | TODO | +## Сигналы и единицы -TODO: добавить отдельную строку для каждого заявленного критерия. PASS без команды и наблюдения не является доказательством. Проверка инфраструктурного hook требует подтверждения, какие реальные процессы/хранилища перезапущены. +| Сигнал | Имя | Единица/лейблы | +|---|---|---| +| HTTP requests | `messenger_http_server_requests_total` | method, route, status_class | +| HTTP duration | `http_server_request_duration_seconds` | histogram, seconds, method/route/status | +| Jobs attempts | `messenger_jobs_processed_total` | job.type, outcome | +| Job duration | `messenger_job_duration_seconds` | histogram, seconds | +| Accepted/ready | `messenger_jobs_accepted_total`, `messenger_jobs_ready_within_budget_total` | pipeline.version | +| Time to ready | `messenger_job_time_to_ready_seconds` | histogram, seconds | +| Overdue jobs | `messenger_jobs_overdue` | gauge, count >30s | +| Queue depth | `rabbitmq_queue_messages_ready` | queue | +| Oldest job age | `messenger_queue_oldest_job_age_seconds` | seconds | +| Outbox age | `messenger_outbox_oldest_unpublished_age_seconds` | seconds | +| Worker saturation | `messenger_worker_busy`, `messenger_worker_capacity` | service.name | +| DB pool | `messenger_db_pool_used/idle/max`, empty-acquire counters | service.name | +| App CPU/RAM | `messenger_process_cpu_seconds_total`, `memory_usage/limit_bytes` | service.name | +| Collector | `otelcol_*` | pipeline/exporter | +| Edge SLI | `haproxy_frontend_http_responses_total{proxy="http_front"}` | code | -## Эксперименты и отказы +SLO-окно — 7 дней (совпадает с retention Prometheus): API availability 99.5% +(бюджет 50.4 мин), время до ready 99% ≤30 с (бюджет 100.8 мин). +Burn-rate: fast 14.4× на 1h+5m, slow 6× на 6h+30m. -TODO: гипотеза, hardware/лимиты, версии, объём данных, профиль нагрузки, concurrency/arrival rate, длительность/прогрев, повторы, успешные RPS, ошибки, p50/p95/p99, CPU/RAM. Сохранить raw summary без tokens и объяснить ограничения измерения. +Полный live-прогон трека 2 выполнен `scripts/lab6_track2_full.py`: +70m warmup → 20m baseline → 2m burst → 15m sustained → 60m resolution → +15m TTR → 20m false-positive. Старт `19:28:25Z`, финиш `23:05:40Z`. +Warmup: 840 операций, 0 failed; burst не пейджил; sustained обнаружен +`SlowBurn` через **3m35s**, `FastBurn` через **5m15s**; worker-down +`JobsOverdue` — pending через 46s, firing через 2m46s, resolved через 17s +после restore. Детали и residual-окна: `track2/full/ttd-ttr.md`. -| Воздействие | Что ожидаем | Что наблюдали | Время восстановления / потеря данных | -| --- | --- | --- | --- | -| TODO | TODO | TODO | TODO | +## Доказательства -## Ограничения и следующие шаги +| Критерий | Команда/сценарий | Наблюдаемый результат | Файл | +|---|---|---|---| +| Публичный smoke | `make test` | PASS lab6 | `evidence/lab6/smoke.txt` | +| Три сигнала, Grafana provisioning | `make test-observability` | PASS, datasources/dashboard, route labels без UUID | `evidence/lab6/telemetry.txt` | +| Метрики всех уровней | PromQL из `queries/promql.txt` | непустые серии | `evidence/lab6/metrics.txt` | +| Trace upload → publish → worker, retry | Tempo trace | API span → `job.publish` → `job.process` → S3/DB; attempt 1/2 | `trace-pipeline.json`, `trace-retry.txt` | +| Лог и trace связаны | Loki query по `trace_id` | worker-запись найдена | `telemetry.txt` | +| Нет тел/токенов/filename | sentinel-запрос | 0 совпадений | `telemetry.txt` | +| Worker stop → backlog → drain | `stop-worker.sh`, controlled load, `start-worker.sh` | queue 3→0, oldest 15s→0; `JobsOverdue` fired/resolved | `worker-stop.txt`, `worker-stopped-load.json`, `track2/overdue-alert.txt` | +| Collector down | stop collector, smoke | API продолжает работать; TelemetryCollectorDown/CollectorDroppedTelemetry | `collector-down.txt` | +| Telemetry storage down | stop Loki+Tempo, load, RSS | API работает; collector queues bounded, затем 0 | `storage-down.txt` | +| DB unavailable | stop PostgreSQL | readiness 503, edge 5xx, recovery smoke PASS | `db-down.txt` | +| JobsOverdue firing→resolved | stop worker, one queued job, restart | metric 1 → alert firing → 0 → no alerts | `track2/overdue-alert.txt` | +| Регрессия lab5 | `make test-attachments`, `test-presign`, `test-idempotency`, `test-queue`, `test-faults`, `test-persistence`, `test-failover`, `test-lb-readiness`, `make integration-test`, `make lint`, `make load`, `make test-track2` | PASS | `evidence/lab6/regression/` | +| Track 2: TTD/TTR, burst, false-positive | `python3 scripts/lab6_track2_full.py` | warmup 840 ops/0 failed; burst без page; sustained TTD 3m35s (slow) / 5m15s (fast); TTR 15m17s; residual TTR page в FP-окне зафиксирован | `evidence/lab6/track2/full/` (summary, phases, alerts, snapshots, ttd-ttr) | +| Track 2: rules / alert smoke | `make test-slo`; CI `app.yml` | короткий burst alert smoke PASS; `promtool check rules` — CI job | `evidence/lab6/track2/burst-alerts.csv` | -TODO: какие отказы выдерживаются и какие нет; что не реализовано; где учебное упрощение; какое улучшение подтверждено, а какое пока гипотеза. +## Ограничения + +- Текущая Colima VM: **4 CPU / 8 ГиБ** (диск 100 ГиБ). Часть evidence M3/M4 + снята до увеличения ресурсов (было 2 CPU / 2 ГиБ); после увеличения сборка + и strict-проверка проходят без остановки telemetry. Полный track 2 выполнен + на этой конфигурации; 70-минутный warmup прошёл без ошибок. +- Collector/Loki/Tempo/Grafana/Prometheus — single-node, без TLS/auth + (lab7); Grafana admin — локальный secret, остальные интерфейсы только loopback. +- SDK queue drops не имеют полного публичного счётчика в Go SDK; наблюдаются + Collector `otelcol_*` и app export failures, граница описана в runbook. +- Полный 6h slow-burn live-прогон не заявляется; 30-дневная политика не + является измеренным фактом. Slow-burn alert проверен на 30m/6h окнах в + полном прогоне, но не на 30-дневном retention. +- False-positive окно после TTR не было «чистым»: остаточный 1h TTR-бюджет + дал короткие `TTRErrorBudgetFastBurn` firing до `23:02:52Z`; это + зафиксировано как residual, а не как новый инцидент. +- Сессия загрузчика живёт 3600 s; harness обновляет её за 10 минут до TTL. + Ранний прогон без refresh упал на 401 после 60 минут; дефект исправлен, + финальный warmup прошёл без ошибок. diff --git a/cmd/messenger/main.go b/cmd/messenger/main.go index 45c46e9..c6a1099 100644 --- a/cmd/messenger/main.go +++ b/cmd/messenger/main.go @@ -25,9 +25,12 @@ import ( "mtusi-messenger/internal/service/user" "mtusi-messenger/internal/storage/postgres" storageredis "mtusi-messenger/internal/storage/redis" + "mtusi-messenger/internal/telemetry" "mtusi-messenger/internal/transport/rest" ) +var version = "dev" + func main() { log := logger.New() @@ -41,26 +44,49 @@ func main() { logger.WithLevel(cfg.SlogLevel()), logger.WithFormat(cfg.LoggerFormat()), ) + + shutdown, telemetryErr := telemetry.Setup(context.Background(), "messenger-api", version) + if telemetryErr != nil { + log.Warn("telemetry setup failed; continuing without OTLP", slog.Any("error", telemetryErr)) + shutdown = func(context.Context) error { return nil } + } + log = telemetry.WrapLogger(log, "messenger-api", cfg.SlogLevel()) slog.SetDefault(log) if err := run(cfg, log); err != nil { log.Error("shutdown with error", slog.Any("error", err)) + shutdownCtx, cancel := context.WithTimeout(context.Background(), 3*time.Second) + _ = shutdown(shutdownCtx) + cancel() os.Exit(1) } + + shutdownCtx, cancel := context.WithTimeout(context.Background(), 3*time.Second) + defer cancel() + if err := shutdown(shutdownCtx); err != nil { + log.Warn("telemetry shutdown failed", slog.Any("error", err)) + } } func run(cfg config.Config, log *slog.Logger) error { ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM) defer stop() - store, err := postgres.New(ctx, cfg.Postgres, time.Duration(cfg.Idempotency.TTLSeconds)*time.Second) + store, err := postgres.New(ctx, cfg.Postgres, time.Duration(cfg.Idempotency.TTLSeconds)*time.Second, postgres.WithQueryTracer(telemetry.NewPGXTracer())) if err != nil { return fmt.Errorf("connect database: %w", err) } defer store.Close() - objectStore, err := objectstore.New(objectstore.Config{ + if err := telemetry.RegisterDBPool(store.PoolStats); err != nil { + log.Warn("register db pool metrics", slog.Any("error", err)) + } + if err := telemetry.RegisterProcessMetrics(); err != nil { + log.Warn("register process metrics", slog.Any("error", err)) + } + + objectStoreConcrete, err := objectstore.New(objectstore.Config{ Endpoint: cfg.S3.Endpoint, PublicEndpoint: cfg.S3.PublicEndpoint, Region: cfg.S3.Region, @@ -74,6 +100,8 @@ func run(cfg config.Config, log *slog.Logger) error { return fmt.Errorf("connect object store: %w", err) } + objectStore := telemetry.WrapStore(objectStoreConcrete) + pipelineRepository := store.Pipeline() attachmentService := attachment.NewService( pipelineRepository, diff --git a/cmd/relay/main.go b/cmd/relay/main.go index 402be97..f349775 100644 --- a/cmd/relay/main.go +++ b/cmd/relay/main.go @@ -19,10 +19,13 @@ import ( "mtusi-messenger/internal/logger" "mtusi-messenger/internal/outbox" "mtusi-messenger/internal/storage/postgres" + "mtusi-messenger/internal/telemetry" ) const maxUnpublishedAge = 10 * time.Minute +var version = "dev" + func main() { log := logger.New() @@ -36,12 +39,28 @@ func main() { logger.WithLevel(cfg.SlogLevel()), logger.WithFormat(cfg.LoggerFormat()), ) + + shutdown, telemetryErr := telemetry.Setup(context.Background(), "messenger-relay", version) + if telemetryErr != nil { + log.Warn("telemetry setup failed; continuing without OTLP", slog.Any("error", telemetryErr)) + shutdown = func(context.Context) error { return nil } + } + log = telemetry.WrapLogger(log, "messenger-relay", cfg.SlogLevel()) slog.SetDefault(log) if err := run(cfg, log); err != nil { log.Error("shutdown with error", slog.Any("error", err)) + shutdownCtx, cancel := context.WithTimeout(context.Background(), 3*time.Second) + _ = shutdown(shutdownCtx) + cancel() os.Exit(1) } + + shutdownCtx, cancel := context.WithTimeout(context.Background(), 3*time.Second) + defer cancel() + if err := shutdown(shutdownCtx); err != nil { + log.Warn("telemetry shutdown failed", slog.Any("error", err)) + } } type publisher struct { @@ -143,12 +162,19 @@ func run(cfg config.Config, log *slog.Logger) error { ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM) defer stop() - store, err := postgres.New(ctx, cfg.Postgres, time.Duration(cfg.Idempotency.TTLSeconds)*time.Second) + store, err := postgres.New(ctx, cfg.Postgres, time.Duration(cfg.Idempotency.TTLSeconds)*time.Second, postgres.WithQueryTracer(telemetry.NewPGXTracer())) if err != nil { return fmt.Errorf("connect database: %w", err) } defer store.Close() + if err := telemetry.RegisterDBPool(store.PoolStats); err != nil { + log.Warn("register db pool metrics", slog.Any("error", err)) + } + if err := telemetry.RegisterProcessMetrics(); err != nil { + log.Warn("register process metrics", slog.Any("error", err)) + } + pub := &publisher{cfg: brokerConfig(cfg), log: log} defer pub.Close() @@ -166,6 +192,12 @@ func run(cfg config.Config, log *slog.Logger) error { Retention: cfg.Outbox.Retention, }, log) + if err := telemetry.RegisterRelayMetrics(store.Pipeline().OldestActiveJobAge, relay.Health, func(ctx context.Context) (int64, error) { + return store.Pipeline().CountOverdueJobs(ctx, 30*time.Second) + }); err != nil { + log.Warn("register relay metrics", slog.Any("error", err)) + } + relayCtx, cancelRelay := context.WithCancel(ctx) defer cancelRelay() diff --git a/cmd/worker/main.go b/cmd/worker/main.go index d61bf4a..7d91c90 100644 --- a/cmd/worker/main.go +++ b/cmd/worker/main.go @@ -18,9 +18,12 @@ import ( "mtusi-messenger/internal/logger" "mtusi-messenger/internal/platform/objectstore" "mtusi-messenger/internal/storage/postgres" + "mtusi-messenger/internal/telemetry" "mtusi-messenger/internal/worker" ) +var version = "dev" + func main() { log := logger.New() @@ -34,12 +37,28 @@ func main() { logger.WithLevel(cfg.SlogLevel()), logger.WithFormat(cfg.LoggerFormat()), ) + + shutdown, telemetryErr := telemetry.Setup(context.Background(), "messenger-worker", version) + if telemetryErr != nil { + log.Warn("telemetry setup failed; continuing without OTLP", slog.Any("error", telemetryErr)) + shutdown = func(context.Context) error { return nil } + } + log = telemetry.WrapLogger(log, "messenger-worker", cfg.SlogLevel()) slog.SetDefault(log) if err := run(cfg, log); err != nil { log.Error("shutdown with error", slog.Any("error", err)) + shutdownCtx, cancel := context.WithTimeout(context.Background(), 3*time.Second) + _ = shutdown(shutdownCtx) + cancel() os.Exit(1) } + + shutdownCtx, cancel := context.WithTimeout(context.Background(), 3*time.Second) + defer cancel() + if err := shutdown(shutdownCtx); err != nil { + log.Warn("telemetry shutdown failed", slog.Any("error", err)) + } } func run(cfg config.Config, log *slog.Logger) error { @@ -50,13 +69,20 @@ func run(cfg config.Config, log *slog.Logger) error { ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM) defer stop() - store, err := postgres.New(ctx, cfg.Postgres, time.Duration(cfg.Idempotency.TTLSeconds)*time.Second) + store, err := postgres.New(ctx, cfg.Postgres, time.Duration(cfg.Idempotency.TTLSeconds)*time.Second, postgres.WithQueryTracer(telemetry.NewPGXTracer())) if err != nil { return fmt.Errorf("connect database: %w", err) } defer store.Close() - objectStore, err := objectstore.New(objectstore.Config{ + if err := telemetry.RegisterDBPool(store.PoolStats); err != nil { + log.Warn("register db pool metrics", slog.Any("error", err)) + } + if err := telemetry.RegisterProcessMetrics(); err != nil { + log.Warn("register process metrics", slog.Any("error", err)) + } + + objectStoreConcrete, err := objectstore.New(objectstore.Config{ Endpoint: cfg.S3.Endpoint, PublicEndpoint: cfg.S3.PublicEndpoint, Region: cfg.S3.Region, @@ -70,6 +96,8 @@ func run(cfg config.Config, log *slog.Logger) error { return fmt.Errorf("connect object store: %w", err) } + objectStore := telemetry.WrapStore(objectStoreConcrete) + workerInstance := worker.New(store.Pipeline(), objectStore, worker.Config{ Concurrency: cfg.Worker.Concurrency, LeaseTTL: cfg.Processing.LeaseTTL, @@ -81,6 +109,10 @@ func run(cfg config.Config, log *slog.Logger) error { MaxImagePixels: cfg.S3.MaxImagePixels, }, log) + if err := telemetry.RegisterWorkerMetrics(workerInstance.Busy, int64(cfg.Worker.Concurrency)); err != nil { + log.Warn("register worker metrics", slog.Any("error", err)) + } + server := healthServer(cfg.Worker.HealthAddr, store, objectStore, workerInstance) var serverWait sync.WaitGroup diff --git a/compose.yaml b/compose.yaml index 582085b..4fa88eb 100644 --- a/compose.yaml +++ b/compose.yaml @@ -16,10 +16,21 @@ name: mtusi-messenger-lab6 # and OOMs Docker Desktop's default VM. x-app: &app image: mtusi-messenger:lab6 + logging: + driver: json-file + options: + max-size: "10m" + max-file: "3" services: postgres: image: postgres:18-alpine@sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873 + + logging: + driver: json-file + options: + max-size: "10m" + max-file: "3" environment: POSTGRES_USER: ${POSTGRES_USER:-messenger} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-messenger} @@ -44,6 +55,12 @@ services: redis: image: redis:7.4-alpine@sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499 + + logging: + driver: json-file + options: + max-size: "10m" + max-file: "3" command: - redis-server - --appendonly @@ -73,6 +90,12 @@ services: # host. master/volume/filer ports stay inside the compose network. seaweedfs: image: chrislusf/seaweedfs:3.80@sha256:1055999e08eed1789b0ae45d235126e4495e23d3fb9d6396293fd42539b1ae6a + + logging: + driver: json-file + options: + max-size: "10m" + max-file: "3" command: - server - -s3 @@ -106,13 +129,21 @@ services: # the broker; PostgreSQL's outbox remains the source of truth for intent. broker: image: rabbitmq:4.3.7-management-alpine@sha256:1528a88eebf2bc4d0ab7e9d5d9bc542e9bdf5e1b105e65848fcf8de5c2186528 + + logging: + driver: json-file + options: + max-size: "10m" + max-file: "3" hostname: broker + networks: [default, observability] environment: RABBITMQ_DEFAULT_USER: ${BROKER_USER:-messenger} RABBITMQ_DEFAULT_PASS: ${BROKER_PASSWORD:-messenger} RABBITMQ_DEFAULT_VHOST: ${BROKER_VHOST:-messenger} volumes: - rabbitmq-data:/var/lib/rabbitmq + - ./infra/rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro ports: # Management UI only on loopback, for operator evidence. AMQP stays internal. - "127.0.0.1:${BROKER_MANAGEMENT_PORT:-15672}:15672" @@ -180,6 +211,8 @@ services: build: context: . dockerfile: Dockerfile + args: + VERSION: ${VERSION:-dev} # Общий сетевой alias: LB резолвит одно имя в адреса всех реплик, поэтому # масштабирование и замена контейнеров не зависят от их номеров/ID. networks: @@ -192,6 +225,13 @@ services: # Explicit values win over localhost defaults coming from .env (see .env.example). environment: APP_CONFIG: /etc/messenger/dev/config.yaml + OTEL_SERVICE_NAME: messenger-api + OTEL_EXPORTER_OTLP_ENDPOINT: ${OTEL_EXPORTER_OTLP_ENDPOINT:-http://otel-collector:4318} + OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf + OTEL_RESOURCE_ATTRIBUTES: deployment.environment.name=lab + OTEL_METRIC_EXPORT_INTERVAL: ${OTEL_METRIC_EXPORT_INTERVAL:-15000} + TELEMETRY_ENABLED: ${TELEMETRY_ENABLED:-1} + GOMEMLIMIT: ${API_GOMEMLIMIT:-192MiB} POSTGRES_HOST: postgres POSTGRES_PORT: "5432" POSTGRES_DATABASE: ${POSTGRES_DB:-messenger} @@ -271,6 +311,13 @@ services: required: false environment: APP_CONFIG: /etc/messenger/dev/config.yaml + OTEL_SERVICE_NAME: messenger-worker + OTEL_EXPORTER_OTLP_ENDPOINT: ${OTEL_EXPORTER_OTLP_ENDPOINT:-http://otel-collector:4318} + OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf + OTEL_RESOURCE_ATTRIBUTES: deployment.environment.name=lab + OTEL_METRIC_EXPORT_INTERVAL: ${OTEL_METRIC_EXPORT_INTERVAL:-15000} + TELEMETRY_ENABLED: ${TELEMETRY_ENABLED:-1} + GOMEMLIMIT: ${WORKER_GOMEMLIMIT:-768MiB} POSTGRES_HOST: postgres POSTGRES_PORT: "5432" POSTGRES_DATABASE: ${POSTGRES_DB:-messenger} @@ -341,6 +388,13 @@ services: required: false environment: APP_CONFIG: /etc/messenger/dev/config.yaml + OTEL_SERVICE_NAME: messenger-relay + OTEL_EXPORTER_OTLP_ENDPOINT: ${OTEL_EXPORTER_OTLP_ENDPOINT:-http://otel-collector:4318} + OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf + OTEL_RESOURCE_ATTRIBUTES: deployment.environment.name=lab + OTEL_METRIC_EXPORT_INTERVAL: ${OTEL_METRIC_EXPORT_INTERVAL:-15000} + TELEMETRY_ENABLED: ${TELEMETRY_ENABLED:-1} + GOMEMLIMIT: ${RELAY_GOMEMLIMIT:-96MiB} POSTGRES_HOST: postgres POSTGRES_PORT: "5432" POSTGRES_DATABASE: ${POSTGRES_DB:-messenger} @@ -387,6 +441,13 @@ services: # rotation entirely; infra/lb/haproxy.cfg holds the upstream, checks and retries. lb: image: haproxy:3.2-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122 + + logging: + driver: json-file + options: + max-size: "10m" + max-file: "3" + networks: [default, observability] volumes: - ./infra/lb/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro ports: @@ -403,8 +464,169 @@ services: memory: 48M restart: unless-stopped + # --- Lab6 telemetry profile ------------------------------------------------ + # Start with: docker compose --profile telemetry up -d --build + otel-collector: + # The manifest-list digest resolves to linux/386 on this Docker Desktop; + # pin the arm64 child digest and keep the platform explicit. On amd64 set + # OTEL_COLLECTOR_IMAGE/PLATFORM to the amd64 child digest. + image: ${OTEL_COLLECTOR_IMAGE:-otel/opentelemetry-collector-contrib:0.164.0@sha256:340c9ca6a36617084c6661bdc4f0fe92b7cda5a805d61673ec8db375fddc522b} + logging: + driver: json-file + options: + max-size: "10m" + max-file: "3" + environment: + GOMEMLIMIT: 140MiB + profiles: [telemetry] + command: ["--config=/etc/otel/collector.yaml"] + volumes: + - ./infra/otel/collector.yaml:/etc/otel/collector.yaml:ro + networks: [default, observability] + deploy: + resources: + limits: + cpus: "${OTEL_COLLECTOR_CPU_LIMIT:-0.25}" + memory: ${OTEL_COLLECTOR_MEM_LIMIT:-192M} + restart: unless-stopped + + prometheus: + image: ${PROMETHEUS_IMAGE:-prom/prometheus:v3.15.1@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2} + logging: + driver: json-file + options: + max-size: "10m" + max-file: "3" + environment: + GOMEMLIMIT: 256MiB + profiles: [telemetry] + command: + - --config.file=/etc/prometheus/prometheus.yml + - --storage.tsdb.path=/prometheus + - --storage.tsdb.retention.time=7d + - --storage.tsdb.retention.size=2GB + - --web.enable-lifecycle + volumes: + - ./infra/prometheus:/etc/prometheus:ro + - prometheus-data:/prometheus + ports: + - "127.0.0.1:${PROMETHEUS_PORT:-9090}:9090" + networks: [observability] + deploy: + resources: + limits: + cpus: "${PROMETHEUS_CPU_LIMIT:-0.50}" + memory: ${PROMETHEUS_MEM_LIMIT:-320M} + healthcheck: + test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:9090/-/healthy >/dev/null || exit 1"] + interval: 10s + timeout: 5s + retries: 12 + start_period: 10s + restart: unless-stopped + + loki: + image: ${LOKI_IMAGE:-grafana/loki:3.6.4@sha256:be31579ac047e9f78b81e48f3b69d3af709e7299b431d5aa78bcda43382f9511} + logging: + driver: json-file + options: + max-size: "10m" + max-file: "3" + environment: + GOMEMLIMIT: 256MiB + profiles: [telemetry] + command: ["-config.file=/etc/loki/loki.yaml"] + volumes: + - ./infra/loki/loki.yaml:/etc/loki/loki.yaml:ro + - loki-data:/loki + ports: + - "127.0.0.1:${LOKI_PORT:-3100}:3100" + networks: [observability] + deploy: + resources: + limits: + cpus: "${LOKI_CPU_LIMIT:-0.50}" + memory: ${LOKI_MEM_LIMIT:-320M} + # Distroless image: no /bin/sh or wget. Readiness is checked through + # Prometheus `up` and the /ready endpoint from the host. + healthcheck: + disable: true + restart: unless-stopped + + tempo: + image: ${TEMPO_IMAGE:-grafana/tempo:2.9.0@sha256:65a5789759435f1ef696f1953258b9bbdb18eb571d5ce711ff812d2e128288a4} + logging: + driver: json-file + options: + max-size: "10m" + max-file: "3" + environment: + GOMEMLIMIT: 640MiB + profiles: [telemetry] + command: ["-config.file=/etc/tempo/tempo.yaml"] + volumes: + - ./infra/tempo/tempo.yaml:/etc/tempo/tempo.yaml:ro + - tempo-data:/var/tempo + ports: + - "127.0.0.1:${TEMPO_PORT:-3200}:3200" + networks: [observability] + deploy: + resources: + limits: + cpus: "${TEMPO_CPU_LIMIT:-0.25}" + memory: ${TEMPO_MEM_LIMIT:-768M} + # Distroless image: no /bin/sh or wget. Readiness is checked through + # Prometheus `up` and the /ready endpoint from the host. + healthcheck: + disable: true + restart: unless-stopped + + grafana: + image: ${GRAFANA_IMAGE:-grafana/grafana:13.2.5@sha256:9f7aa1e1e3246aade5792d35a738049f7f32f89cd51d1956cf426a4e86268a84} + logging: + driver: json-file + options: + max-size: "10m" + max-file: "3" + profiles: [telemetry] + env_file: + - path: ./secrets/grafana.env + required: true + environment: + GOMEMLIMIT: 256MiB + GF_AUTH_ANONYMOUS_ENABLED: "false" + GF_USERS_ALLOW_SIGN_UP: "false" + volumes: + - ./infra/grafana/provisioning:/etc/grafana/provisioning:ro + - ./infra/grafana/dashboards:/var/lib/grafana/dashboards:ro + - grafana-data:/var/lib/grafana + ports: + - "127.0.0.1:${GRAFANA_PORT:-3000}:3000" + networks: [observability] + deploy: + resources: + limits: + cpus: "${GRAFANA_CPU_LIMIT:-0.25}" + memory: ${GRAFANA_MEM_LIMIT:-512M} + healthcheck: + test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:3000/api/health >/dev/null || exit 1"] + interval: 10s + timeout: 5s + retries: 12 + start_period: 10s + restart: unless-stopped + +networks: + default: + observability: + + volumes: postgres18-data: redis7-data: seaweedfs-data: rabbitmq-data: + prometheus-data: + loki-data: + tempo-data: + grafana-data: diff --git a/evidence/lab5/vet.txt b/evidence/lab5/vet.txt deleted file mode 100644 index e69de29..0000000 diff --git a/evidence/lab6/README.md b/evidence/lab6/README.md new file mode 100644 index 0000000..e9f5456 --- /dev/null +++ b/evidence/lab6/README.md @@ -0,0 +1,25 @@ +# Lab6 evidence + +- `smoke.txt` — `make test` with the telemetry profile running. +- `telemetry.txt` — `make test-observability`: Prometheus/Loki/Tempo/Grafana + queries, route-label validation, forbidden-sentinel search. +- `unit-test.txt` — `make unit-test` (`go test -race -shuffle=on`). +- `stand.txt` — `docker compose --profile telemetry ps`. +- `metrics.txt` — actual sample counts from Prometheus for the required signal set. +- `queries/promql.txt` — PromQL used by dashboards and alerts. +- `tempo-search.json`, `trace-pipeline.json` — raw Tempo responses for an + upload trace; `trace-retry.txt` — attempt=2 trace after a transient fault; + traces include API, relay `job.publish`, worker `job.process`, S3 and DB + child spans. +- Track 2 evidence is generated by `scripts/lab6_track2.py`; raw CSV/JSON and + `plan.md` belong in `track2/`. The full run needs the documented 3-hour window; + short runs are explicitly not evidence of the 6h slow-burn window. +- `storage-down.txt`, `db-down.txt` — telemetry-storage and PostgreSQL + outage observations (API continues; bounded Collector queues). +- `track2/overdue-alert.txt` — JobsOverdue firing/resolved. +- `regression/` is for the lab5 regression commands (`test-queue`, + `test-faults`, `test-attachments`, `test-presign`, `test-idempotency`, + `test-lb-readiness`, persistence/failover). + +No tokens, signed URLs, message bodies or images are stored here. The +`scripts/check_evidence.py` scanner is part of `make test-observability`. diff --git a/evidence/lab6/collector-down.txt b/evidence/lab6/collector-down.txt new file mode 100644 index 0000000..2d9f70e --- /dev/null +++ b/evidence/lab6/collector-down.txt @@ -0,0 +1,10 @@ +Collector down scenario (local, 2026-11-04) +========================================== +$ docker compose --env-file .env stop otel-collector +$ curl up{job=otel-collector} +{"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"up","instance":"otel-collector:8889","job":"otel-collector"},"value":[1793801606.395,"0"]}]}} +$ curl /api/v1/alerts +{"status":"success","data":{"alerts":[{"labels":{"alertname":"CollectorDroppedTelemetry","severity":"warning"},"annotations":{"runbook":"infra/runbooks/telemetry-backend-down.md","summary":"Collector is dropping or refusing telemetry"},"state":"firing","activeAt":"2026-11-04T14:07:53.187213033Z","value":"1.380952380952381e-01"},{"labels":{"alertname":"TelemetryCollectorDown","component":"telemetry","instance":"otel-collector:8889","job":"otel-collector","severity":"warning"},"annotations":{"runbook":"infra/runbooks/telemetry-backend-down.md","summary":"OTel Collector is unavailable; application keeps running"},"state":"pending","activeAt":"2026-11-04T14:11:28.187213033Z","value":"0e+00"}]}} +$ make test +env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 tests/smoke.py --base-url "http://localhost:8080" +PASS: lab6 public API scenario; infrastructure and grading evidence remain separate. diff --git a/evidence/lab6/db-down.txt b/evidence/lab6/db-down.txt new file mode 100644 index 0000000..fb75437 --- /dev/null +++ b/evidence/lab6/db-down.txt @@ -0,0 +1,16 @@ +PostgreSQL unavailable (local, 2026-11-04) +=========================================== +$ docker compose --env-file .env stop postgres + Container mtusi-messenger-lab6-postgres-1 Stopped +$ load during outage: bootstrap could not get a ready API through the LB + (readiness 503; HAProxy removed the DB-dependent replicas) +$ sum(rate(haproxy_frontend_http_responses_total{proxy="http_front",code=~"5.."}[1m])) + {"value":"0.017931433566648815"} +$ curl /health/ready + 503 +$ docker compose --env-file .env start postgres +$ make test after restore + PASS: lab6 public API scenario +Result: DB outage is visible as edge 5xx/readiness loss; after PostgreSQL +returns, the public smoke passes. No accepted upload is lost (queue/relay +evidence from the worker scenario remains zero-loss). diff --git a/evidence/lab6/db-pause.txt b/evidence/lab6/db-pause.txt new file mode 100644 index 0000000..3cc2cc3 --- /dev/null +++ b/evidence/lab6/db-pause.txt @@ -0,0 +1,13 @@ +PostgreSQL pause (short burst) — local check +============================================= +$ docker compose --env-file .env pause postgres +$ python3 scripts/lab6_load.py --rate 1 --duration 8 --upload-ratio 0 --deadline 5 + messages were attempted during a frozen DB; client deadline errors are bad. +$ sum(rate(haproxy_frontend_http_responses_total{proxy="http_front",code=~"5.."}[1m])) + -> 0.017002102915598543 +$ slo:api_error_ratio:5m -> 0 +$ docker compose --env-file .env unpause postgres +$ make test -> PASS lab6 public API scenario +$ Prometheus alerts -> [] +Interpretation: a short sub-5m burst is below the multi-window page threshold; +this is the expected no-page control, not evidence of a sustained incident. diff --git a/evidence/lab6/load-smoke.json b/evidence/lab6/load-smoke.json new file mode 100644 index 0000000..16a9cca --- /dev/null +++ b/evidence/lab6/load-smoke.json @@ -0,0 +1,25 @@ +{ + "base_url": "http://localhost:8080", + "rate": 0.5, + "duration_s": 8.36, + "scheduled": 5, + "counters": { + "accepted": 5, + "ready": 5, + "failed": 0, + "messages": 0, + "uploads": 5 + }, + "failures": 0, + "failure_samples": [], + "latency_ms": { + "p50": null, + "p95": null, + "p99": null + }, + "ttr_ms": { + "p50": 349.0, + "p95": 359.9, + "p99": 359.9 + } +} diff --git a/evidence/lab6/metrics.txt b/evidence/lab6/metrics.txt new file mode 100644 index 0000000..cc62c43 --- /dev/null +++ b/evidence/lab6/metrics.txt @@ -0,0 +1,16 @@ +messenger_http_server_requests_total: 33 +http_server_request_duration_seconds_bucket: 396 +messenger_jobs_accepted_total: 2 +messenger_jobs_processed_total: 1 +messenger_jobs_ready_within_budget_total: 1 +messenger_job_duration_seconds_bucket: 11 +messenger_job_time_to_ready_seconds_bucket: 10 +messenger_jobs_overdue: 1 +messenger_queue_oldest_job_age_seconds: 1 +messenger_outbox_oldest_unpublished_age_seconds: 1 +messenger_worker_busy: 1 +messenger_db_pool_used: 4 +messenger_process_cpu_seconds_total: 4 +rabbitmq_queue_messages_ready: 2 +otelcol_exporter_queue_size: 2 +haproxy_frontend_http_responses_total: 12 diff --git a/evidence/lab6/queries/promql.txt b/evidence/lab6/queries/promql.txt new file mode 100644 index 0000000..4ea0bb7 --- /dev/null +++ b/evidence/lab6/queries/promql.txt @@ -0,0 +1,29 @@ +# Actual PromQL used by the provisioned dashboards and alert rules. +sum(rate(messenger_http_server_requests_total[5m])) +slo:api_error_ratio:5m +histogram_quantile(0.50, sum by (le) (rate(http_server_request_duration_seconds_bucket[5m]))) +histogram_quantile(0.95, sum by (le) (rate(http_server_request_duration_seconds_bucket[5m]))) +histogram_quantile(0.99, sum by (le) (rate(http_server_request_duration_seconds_bucket[5m]))) +sum(rate(messenger_jobs_processed_total{outcome="succeeded"}[5m])) +sum(rate(messenger_jobs_processed_total{outcome="failed"}[5m])) +sum(rate(messenger_jobs_processed_total{outcome="retried"}[5m])) +histogram_quantile(0.50, sum by (le) (rate(messenger_job_duration_seconds_bucket[5m]))) +histogram_quantile(0.95, sum by (le) (rate(messenger_job_duration_seconds_bucket[5m]))) +histogram_quantile(0.99, sum by (le) (rate(messenger_job_duration_seconds_bucket[5m]))) +histogram_quantile(0.95, sum by (le) (rate(messenger_job_time_to_ready_seconds_bucket[5m]))) +slo:ttr_bad_ratio:5m +max(rabbitmq_queue_messages_ready{queue="attachment.process.v1"}) +max(messenger_queue_oldest_job_age_seconds) +max(messenger_jobs_overdue) +max(messenger_outbox_oldest_unpublished_age_seconds) +sum(messenger_worker_busy) +sum(messenger_worker_capacity) +sum(messenger_db_pool_used) +sum(messenger_db_pool_idle) +sum(messenger_db_pool_max) +sum(rate(messenger_db_pool_empty_acquire_total[5m])) +max(messenger_process_cpu_seconds_total) +max(messenger_process_memory_usage_bytes) +otelcol_exporter_queue_size +otelcol_exporter_send_failed_spans +sum(rate(haproxy_frontend_http_responses_total{proxy="http_front",code=~"5.."}[5m])) diff --git a/evidence/lab6/regression/attachments.txt b/evidence/lab6/regression/attachments.txt new file mode 100644 index 0000000..3a29966 --- /dev/null +++ b/evidence/lab6/regression/attachments.txt @@ -0,0 +1,24 @@ +env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 student-tests/attachments_negative.py --base-url "http://localhost:8080" +10 MiB + 1 body: 413 +empty body: 415 +corrupt PNG (IDAT CRC): 415 +MIME spoof (PNG declared as JPEG): 415 +structurally valid PNG with non-zlib IDAT: 415 +valid zlib, empty PNG raster: 415 +valid zlib, invalid PNG scanline filter: 415 +invalid PNG color type/bit depth pair: 415 +duplicate PNG IHDR: 415 +trailing bytes after PNG zlib stream: 415 +tRNS on RGBA PNG: 415 +short tRNS on RGB PNG: 415 +PLTE entries exceed palette bit depth: 415 +palette tRNS exceeds PLTE entries: 415 +dangerous filenames: 400 +foreign attachment metadata/content: 404 +empty text without attachments: 400 +attachment from another chat: 404 +11 attachment ids: 400 +duplicate attachment ids: 400 +attachment-only message: 201 +anonymous direct S3 GET: 403 +PASS: lab4 attachment negative scenarios diff --git a/evidence/lab6/regression/failover.txt b/evidence/lab6/regression/failover.txt new file mode 100644 index 0000000..c95c535 --- /dev/null +++ b/evidence/lab6/regression/failover.txt @@ -0,0 +1,4 @@ +env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://localhost:8080" +Executing explicit failover hook; hook output suppressed to avoid leaking secrets. +{"observed_instances_before": 2, "successful_writes": 97, "failed_attempts": 0, "first_recovery_seconds": 3.068} +PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence. diff --git a/evidence/lab6/regression/faults.txt b/evidence/lab6/regression/faults.txt new file mode 100644 index 0000000..66e355d --- /dev/null +++ b/evidence/lab6/regression/faults.txt @@ -0,0 +1,14 @@ +env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 student-tests/lab5_faults.py --base-url "http://localhost:8080" +permanent failure: failed/injected_failure, content 409, failed attachment not linkable, registry visible +replay: failed -> queued -> ready, one thumbnail +replay ready job: refused +replay older failed version while v2 queued: refused, state intact +v2 published after older replay refusal +replay of failed reprocess: queued projection restored, then ready at pipeline 2 +transient exhaustion: attempts=5, retry_exhausted, four retries, DLQ message present +crash after first variant: redelivered, same three variants, attempts=2 +crash after commit before ack: ready remains, redelivery is a no-op +crash after claim before side effect: requeued, attempts=2, ready +outbox gap: crash before publish recovered through the relay, outbox published, ready +lease expiry: paused worker, reaper requeued, stale attempt fenced, ready +PASS: lab5 level 4 fault injection diff --git a/evidence/lab6/regression/idempotency.txt b/evidence/lab6/regression/idempotency.txt new file mode 100644 index 0000000..5e864ba --- /dev/null +++ b/evidence/lab6/regression/idempotency.txt @@ -0,0 +1,3 @@ +env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 student-tests/idempotency_parallel.py --base-url "http://localhost:8080" +{"replay": {"workers": 12, "instances": ["8f0e5bdd7998", "e8d2415b9c96"], "message_id": "01a1a763-5b9b-7a27-994f-78248c9271aa"}, "conflict": {"workers": 12, "accepted": 1, "conflicts": 11}, "stable_body": {"message_id": "01a1a763-5bd8-778e-ba62-16240fa3ec36"}, "key_required": {"status": 400}} +PASS: параллельный повтор с одним Idempotency-Key создаёт ровно одно сообщение diff --git a/evidence/lab6/regression/integration.txt b/evidence/lab6/regression/integration.txt new file mode 100644 index 0000000..d57ecda --- /dev/null +++ b/evidence/lab6/regression/integration.txt @@ -0,0 +1,3 @@ +go test -tags=integration -p 1 -count=1 -timeout=15m ./internal/storage/postgres ./internal/storage/redis +ok mtusi-messenger/internal/storage/postgres 8.003s +ok mtusi-messenger/internal/storage/redis 1.133s diff --git a/evidence/lab6/regression/lint.txt b/evidence/lab6/regression/lint.txt new file mode 100644 index 0000000..caabb14 --- /dev/null +++ b/evidence/lab6/regression/lint.txt @@ -0,0 +1,20 @@ +/Users/vladislav/Projects/mtusi2026lab6/bin/golangci-lint run -v +level=info msg="golangci-lint has version 2.13.2 built with go1.27.1 from (unknown, modified: ?, mod sum: \"h1:bCyq3E4vo9qwzifjpzJqYndEt7Ncva80qkk8G2B4TXU=\") on (unknown)" +level=info msg="[config_reader] Config search paths: [./ /Users/vladislav/Projects/mtusi2026lab6 /Users/vladislav/Projects /Users/vladislav /Users /]" +level=info msg="[config_reader] Used config file .golangci.yml" +level=info msg="[config_reader] Module name \"mtusi-messenger\"" +level=info msg="[goenv] Read go env for 5.163584ms: map[string]string{\"GOCACHE\":\"/Users/vladislav/Library/Caches/go-build\", \"GOROOT\":\"/opt/homebrew/Cellar/go/1.27.1/libexec\"}" +level=info msg="[lintersdb] Active 50 linters: [asasalint bodyclose canonicalheader containedctx contextcheck copyloopvar depguard durationcheck errcheck errname errorlint exhaustive exptostd fatcontext forbidigo forcetypeassert gocheckcompilerdirectives gocritic gofumpt goimports gomoddirectives gosec govet ineffassign intrange makezero misspell musttag nilerr nilnil noctx nolintlint perfsprint prealloc reassign recvcheck revive rowserrcheck sloglint sqlclosecheck staticcheck testifylint thelper tparallel unconvert unparam unused usestdlibvars usetesting wastedassign]" +level=info msg="[loader] Using build tags: [integration]" +level=info msg="[loader] Go packages loading at mode 8767 (compiled_files|deps|files|imports|types_sizes|exports_file|name) took 363.317916ms" +level=info msg="[runner/filename_unadjuster] Pre-built 0 adjustments in 9.772458ms" +level=info msg="[linters_context/goanalysis] analyzers took 10.930463359s with top 10 stages: revive: 2.628586625s, goimports: 1.744804s, gosec: 899.898833ms, unparam: 692.242917ms, wastedassign: 325.500166ms, gocritic: 151.973916ms, buildir: 143.08475ms, gofumpt: 134.217041ms, forbidigo: 133.863209ms, buildssa: 114.559414ms" +level=info msg="[runner/exclusion_rules] Skipped 14 issues by rules: [Path: \"_test\\\\.go\", Linters: \"gosec, prealloc, forcetypeassert, unparam\"]" +level=info msg="[runner] Issues before processing: 893, after processing: 0" +level=info msg="[runner] Processors filtering stat (in/out): path_absoluter: 893/893, cgo: 893/893, exclusion_paths: 893/893, generated_file_filter: 893/304, filename_unadjuster: 893/893, invalid_issue: 893/893, path_relativity: 893/893, nolint_filter: 6/0, exclusion_rules: 304/6" +level=info msg="[runner] processing took 3.351875ms with stages: generated_file_filter: 2.096458ms, nolint_filter: 636.084µs, path_relativity: 291.167µs, exclusion_rules: 290.125µs, invalid_issue: 13.834µs, cgo: 11.916µs, path_absoluter: 6.458µs, filename_unadjuster: 2.75µs, sort_results: 791ns, max_same_issues: 584ns, fixer: 334ns, exclusion_paths: 292ns, max_from_linter: 167ns, diff: 166ns, uniq_by_line: 166ns, path_prettifier: 166ns, max_per_file_from_linter: 125ns, source_code: 125ns, path_shortener: 84ns, severity-rules: 83ns" +level=info msg="[runner] linters took 1.75139825s with stages: goanalysis_metalinter: 1.74801175s" +0 issues. +level=info msg="File cache stats: 0 entries of total size 0B" +level=info msg="Memory: 23 samples, avg is 358.6MB, max is 642.8MB" +level=info msg="Execution took 2.130137542s" diff --git a/evidence/track1/superseded/run1-wrong-budgets/load-g05.json b/evidence/lab6/regression/load.txt similarity index 58% rename from evidence/track1/superseded/run1-wrong-budgets/load-g05.json rename to evidence/lab6/regression/load.txt index fcc536e..c1aaa7a 100644 --- a/evidence/track1/superseded/run1-wrong-budgets/load-g05.json +++ b/evidence/lab6/regression/load.txt @@ -1,17 +1,15 @@ -{ - "lab": 3, "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.01, - "concurrency": 8, - "successful_requests": 96941, + "requested_duration_seconds": 30, + "elapsed_seconds": 30.009, + "concurrency": 4, + "successful_requests": 30857, "failed_requests": 0, "error_ratio": 0.0, - "successful_rps": 1615.408, + "successful_rps": 1028.26, "successful_latency_ms": { - "p50": 4.348, - "p95": 8.823, - "p99": 20.46 + "p50": 2.846, + "p95": 9.485, + "p99": 17.614 }, "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." } diff --git a/evidence/lab6/regression/persistence.txt b/evidence/lab6/regression/persistence.txt new file mode 100644 index 0000000..1d3d684 --- /dev/null +++ b/evidence/lab6/regression/persistence.txt @@ -0,0 +1,3 @@ +env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost:8080" +Executing explicit persistence hook; hook output suppressed to avoid leaking secrets. +PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence. diff --git a/evidence/lab6/regression/presign.txt b/evidence/lab6/regression/presign.txt new file mode 100644 index 0000000..6db70db --- /dev/null +++ b/evidence/lab6/regression/presign.txt @@ -0,0 +1,10 @@ +env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 student-tests/presign_flow.py --base-url "http://localhost:8080" +happy path: direct PUT 200, complete queued, ready after worker +message with attachment downloaded as the second chat member +repeated complete is idempotent +foreign complete: 404 +complete before PUT: 409 +wrong completion checksum: 409 +oversized direct PUT: 403 from S3; complete: 409 (nothing stored) +same-size overwrite: last PUT wins, checksum verified +PASS: lab4 presigned upload flow diff --git a/evidence/lab6/regression/queue.txt b/evidence/lab6/regression/queue.txt new file mode 100644 index 0000000..1ff1015 --- /dev/null +++ b/evidence/lab6/regression/queue.txt @@ -0,0 +1,11 @@ +$ make test-queue +worker down: 202 queued, content 409, queued attachment linked, API restarted +worker restarted: ready, thumbnail and original downloadable, staging cleared +broker down: upload accepted into outbox +broker + relay recovered: queued job reached ready +stack restart: ready attachment and original preserved +worker down: reprocess pipeline 2 accepted, v1 audit event recorded, upload still queued +worker up: reprocessed upload reached ready at pipeline 2, v1 superseded +worker down: reprocess pipeline 3 refused, v1 job untouched +worker up: preserved upload reached ready at pipeline 1 +PASS: lab5 async worker/broker durability diff --git a/evidence/lab6/regression/track2-lab5.txt b/evidence/lab6/regression/track2-lab5.txt new file mode 100644 index 0000000..3650872 --- /dev/null +++ b/evidence/lab6/regression/track2-lab5.txt @@ -0,0 +1,8 @@ +env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 scripts/lab5_track2.py --base-url "http://localhost:8080" +Dduplicate_before_effect rep=1: PASS +Dstale_version_after_v2 rep=1: PASS +Dduplicate_before_effect rep=2: PASS +Dstale_version_after_v2 rep=2: PASS +Dduplicate_before_effect rep=3: PASS +Dstale_version_after_v2 rep=3: PASS +PASS: track2 6/6 scenarios diff --git a/evidence/lab6/smoke.txt b/evidence/lab6/smoke.txt new file mode 100644 index 0000000..414c497 --- /dev/null +++ b/evidence/lab6/smoke.txt @@ -0,0 +1,2 @@ +env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 tests/smoke.py --base-url "http://localhost:8080" +PASS: lab6 public API scenario; infrastructure and grading evidence remain separate. diff --git a/evidence/lab6/stand.txt b/evidence/lab6/stand.txt new file mode 100644 index 0000000..ab4ca3b --- /dev/null +++ b/evidence/lab6/stand.txt @@ -0,0 +1,15 @@ +NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS +mtusi-messenger-lab6-api-1 mtusi-messenger:lab6 "/usr/local/bin/mess…" api 59 seconds ago Up 57 seconds (healthy) 8080/tcp +mtusi-messenger-lab6-api-2 mtusi-messenger:lab6 "/usr/local/bin/mess…" api 59 seconds ago Up 57 seconds (healthy) 8080/tcp +mtusi-messenger-lab6-broker-1 rabbitmq:4.3.7-management-alpine@sha256:1528a88eebf2bc4d0ab7e9d5d9bc542e9bdf5e1b105e65848fcf8de5c2186528 "docker-entrypoint.s…" broker 3 hours ago Up 26 minutes (healthy) 4369/tcp, 5671-5672/tcp, 15671/tcp, 15691-15692/tcp, 25672/tcp, 127.0.0.1:15672->15672/tcp +mtusi-messenger-lab6-grafana-1 grafana/grafana:13.2.5@sha256:9f7aa1e1e3246aade5792d35a738049f7f32f89cd51d1956cf426a4e86268a84 "/run.sh" grafana 3 hours ago Up 31 minutes (healthy) 127.0.0.1:3000->3000/tcp +mtusi-messenger-lab6-lb-1 haproxy:3.2-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122 "docker-entrypoint.s…" lb 3 hours ago Up 26 minutes 127.0.0.1:8404->8404/tcp, 127.0.0.1:8080->80/tcp +mtusi-messenger-lab6-loki-1 grafana/loki:3.6.4@sha256:be31579ac047e9f78b81e48f3b69d3af709e7299b431d5aa78bcda43382f9511 "/usr/bin/loki -conf…" loki 3 hours ago Up 7 minutes 127.0.0.1:3100->3100/tcp +mtusi-messenger-lab6-otel-collector-1 otel/opentelemetry-collector-contrib:0.164.0@sha256:340c9ca6a36617084c6661bdc4f0fe92b7cda5a805d61673ec8db375fddc522b "/otelcol-contrib --…" otel-collector 31 minutes ago Up 56 seconds 4317-4318/tcp, 55679/tcp +mtusi-messenger-lab6-postgres-1 postgres:18-alpine@sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873 "docker-entrypoint.s…" postgres 3 hours ago Up 5 minutes (healthy) 5432/tcp +mtusi-messenger-lab6-prometheus-1 prom/prometheus:v3.15.1@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2 "/bin/prometheus --c…" prometheus 59 seconds ago Up 59 seconds (healthy) 127.0.0.1:9090->9090/tcp +mtusi-messenger-lab6-redis-1 redis:7.4-alpine@sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499 "docker-entrypoint.s…" redis 3 hours ago Up 26 minutes (healthy) 6379/tcp +mtusi-messenger-lab6-relay-1 mtusi-messenger:lab6 "/usr/local/bin/relay" relay 59 seconds ago Up 57 seconds (healthy) 8080/tcp, 127.0.0.1:8082->8082/tcp +mtusi-messenger-lab6-seaweedfs-1 chrislusf/seaweedfs:3.80@sha256:1055999e08eed1789b0ae45d235126e4495e23d3fb9d6396293fd42539b1ae6a "/entrypoint.sh serv…" seaweedfs 3 hours ago Up 26 minutes (healthy) 7333/tcp, 8080/tcp, 8888/tcp, 9333/tcp, 18080/tcp, 18888/tcp, 19333/tcp, 127.0.0.1:8333->8333/tcp +mtusi-messenger-lab6-tempo-1 grafana/tempo:2.9.0@sha256:65a5789759435f1ef696f1953258b9bbdb18eb571d5ce711ff812d2e128288a4 "/tempo -config.file…" tempo 28 minutes ago Up 7 minutes 127.0.0.1:3200->3200/tcp +mtusi-messenger-lab6-worker-1 mtusi-messenger:lab6 "/usr/local/bin/work…" worker 59 seconds ago Up 57 seconds (healthy) 8080/tcp, 127.0.0.1:8081->8081/tcp diff --git a/evidence/lab6/storage-down.txt b/evidence/lab6/storage-down.txt new file mode 100644 index 0000000..1c66bf1 --- /dev/null +++ b/evidence/lab6/storage-down.txt @@ -0,0 +1,20 @@ +Telemetry storage down (local, 2026-11-04) +========================================== +$ docker compose --env-file .env stop loki tempo + Container mtusi-messenger-lab6-loki-1 Stopping + Container mtusi-messenger-lab6-tempo-1 Stopped + Container mtusi-messenger-lab6-loki-1 Stopped +$ make test +env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 tests/smoke.py --base-url "http://localhost:8080" +PASS: lab6 public API scenario; infrastructure and grading evidence remain separate. +$ collector queue after 20s +[{'metric': {'__name__': 'otelcol_exporter_queue_size', 'data_type': 'logs', 'exporter': 'otlp_http/loki', 'instance': 'otel-collector:8888', 'job': 'otel-collector-self'}, 'value': [1793810852.186, '21950']}, {'metric': {'__name__': 'otelcol_exporter_queue_size', 'data_type': 'traces', 'exporter': 'otlp_grpc/tempo', 'instance': 'otel-collector:8888', 'job': 'otel-collector-self'}, 'value': [1793810852.186, '47471']}] +$ RSS app/collector +mtusi-messenger-lab6-api-2 190.6MiB / 256MiB +mtusi-messenger-lab6-api-1 191.2MiB / 256MiB +mtusi-messenger-lab6-relay-1 15.76MiB / 128MiB +mtusi-messenger-lab6-worker-1 13.85MiB / 1GiB +mtusi-messenger-lab6-otel-collector-1 86.08MiB / 192MiB +$ docker compose start loki tempo + Container mtusi-messenger-lab6-loki-1 Started + Container mtusi-messenger-lab6-tempo-1 Started diff --git a/evidence/lab6/telemetry.txt b/evidence/lab6/telemetry.txt new file mode 100644 index 0000000..a1f22c3 --- /dev/null +++ b/evidence/lab6/telemetry.txt @@ -0,0 +1,5 @@ +env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 scripts/check_evidence.py +PASS: evidence has no obvious secrets, signed URLs or bearer tokens +env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 scripts/lab6_verify.py --base-url "http://localhost:8080" +NOTE: created request_id=lab6-verify-4bb0892c6612450eaaa6eef0fc44e854 +PASS: lab6 strict telemetry gate (signals, trace/log correlation, labels, Grafana, rules, privacy sentinels) diff --git a/evidence/lab6/tempo-search.json b/evidence/lab6/tempo-search.json new file mode 100644 index 0000000..0353eae --- /dev/null +++ b/evidence/lab6/tempo-search.json @@ -0,0 +1,148 @@ +{ + "traces": [ + { + "traceID": "ab5d63adca313645838a34fc3ad7f8ca", + "rootServiceName": "messenger-api", + "rootTraceName": "POST /api/v1/chats/{chat_id}/attachments", + "startTimeUnixNano": "1793802395453580634", + "durationMs": 331 + }, + { + "traceID": "5cf3ce94777116f51994548bcf747052", + "rootServiceName": "messenger-api", + "rootTraceName": "POST /api/v1/chats/{chat_id}/attachments", + "startTimeUnixNano": "1793802394113546330", + "durationMs": 684 + }, + { + "traceID": "280c2940aca363c6df3cdb2f96d49986", + "rootServiceName": "messenger-relay", + "rootTraceName": "job.requeue", + "startTimeUnixNano": "1793802302815608431", + "durationMs": 10295 + }, + { + "traceID": "2baabe5633a1fdffc903471dbf0ad125", + "rootServiceName": "", + "startTimeUnixNano": "1793802286828434101", + "durationMs": 26284 + }, + { + "traceID": "82ccdbe9637df43f06ffe9395c93b2c0", + "rootServiceName": "", + "startTimeUnixNano": "1793802283997651340", + "durationMs": 66 + }, + { + "traceID": "8f101cc3cd1062641cd9eaa83c59c643", + "rootServiceName": "messenger-relay", + "rootTraceName": "job.requeue", + "startTimeUnixNano": "1793802249508919589", + "durationMs": 1057 + }, + { + "traceID": "61b680a368c7eec86c2102ea3615e732", + "rootServiceName": "messenger-api", + "rootTraceName": "POST /api/v1/chats/{chat_id}/attachments", + "startTimeUnixNano": "1793802231049714535", + "durationMs": 6522 + }, + { + "traceID": "1767197f0752b7ebbfff4207d9ce968", + "rootServiceName": "messenger-api", + "rootTraceName": "POST /api/v1/chats/{chat_id}/attachments", + "startTimeUnixNano": "1793802229382459658", + "durationMs": 5632 + }, + { + "traceID": "3a1357d5589a82f6a6c0c39e705f3ecb", + "rootServiceName": "messenger-relay", + "rootTraceName": "job.requeue", + "startTimeUnixNano": "1793802226689471392", + "durationMs": 1053 + }, + { + "traceID": "74f025e1b6e88b5d9cfdc4f99069efdf", + "rootServiceName": "messenger-api", + "rootTraceName": "POST /api/v1/chats/{chat_id}/attachments", + "startTimeUnixNano": "1793802208176199125", + "durationMs": 6582 + }, + { + "traceID": "b9167e578de7e82af6e6105d5ec0a2e9", + "rootServiceName": "messenger-api", + "rootTraceName": "POST /api/v1/chats/{chat_id}/attachments", + "startTimeUnixNano": "1793802200775289740", + "durationMs": 4342 + }, + { + "traceID": "14e39e95e83064c0adfcba0877b44c49", + "rootServiceName": "messenger-relay", + "rootTraceName": "job.publish", + "startTimeUnixNano": "1793802200114468641", + "durationMs": 36 + }, + { + "traceID": "887eb29fbf7ad92e0c27c32e027f32b0", + "rootServiceName": "messenger-relay", + "rootTraceName": "job.publish", + "startTimeUnixNano": "1793802197116311702", + "durationMs": 9 + }, + { + "traceID": "5672c6454888c536c5f006c8266522a4", + "rootServiceName": "messenger-api", + "rootTraceName": "POST /api/v1/chats/{chat_id}/attachments", + "startTimeUnixNano": "1793802194349063459", + "durationMs": 2399 + }, + { + "traceID": "40ef0be37efbba23776a3dc2b83bd7f5", + "rootServiceName": "messenger-relay", + "rootTraceName": "job.publish", + "startTimeUnixNano": "1793802192116769803", + "durationMs": 1754 + }, + { + "traceID": "c16f04beae65b3b9f62855e8a7ea984e", + "rootServiceName": "messenger-api", + "rootTraceName": "POST /api/v1/chats/{chat_id}/attachments", + "startTimeUnixNano": "1793802188641651123", + "durationMs": 481 + }, + { + "traceID": "c7c01244d150f988c198e5b23767d8c2", + "rootServiceName": "messenger-relay", + "rootTraceName": "job.publish", + "startTimeUnixNano": "1793802186116479256", + "durationMs": 46 + }, + { + "traceID": "2abac52091c4e48c83f257b01c8b9afb", + "rootServiceName": "messenger-api", + "rootTraceName": "POST /api/v1/chats/{chat_id}/attachments", + "startTimeUnixNano": "1793802180136938542", + "durationMs": 987 + }, + { + "traceID": "c21959639cf799d78b3dd30fa8fb14cc", + "rootServiceName": "messenger-api", + "rootTraceName": "POST /api/v1/chats/{chat_id}/attachments", + "startTimeUnixNano": "1793802140038435535", + "durationMs": 108 + }, + { + "traceID": "b9e0d22c746e6dedefd32b6ea29682e0", + "rootServiceName": "messenger-api", + "rootTraceName": "POST /api/v1/chats/{chat_id}/attachments", + "startTimeUnixNano": "1793802138735163857", + "durationMs": 427 + } + ], + "metrics": { + "inspectedTraces": 3709, + "inspectedBytes": "595516", + "completedJobs": 1, + "totalJobs": 1 + } +} diff --git a/evidence/lab6/trace-pipeline.json b/evidence/lab6/trace-pipeline.json new file mode 100644 index 0000000..40f4237 --- /dev/null +++ b/evidence/lab6/trace-pipeline.json @@ -0,0 +1,1776 @@ +{ + "batches": [ + { + "resource": { + "attributes": [ + { + "key": "deployment.environment.name", + "value": { + "stringValue": "lab" + } + }, + { + "key": "service.instance.id", + "value": { + "stringValue": "e8a057b9355c" + } + }, + { + "key": "service.version", + "value": { + "stringValue": "dev" + } + }, + { + "key": "telemetry.sdk.language", + "value": { + "stringValue": "go" + } + }, + { + "key": "telemetry.sdk.name", + "value": { + "stringValue": "opentelemetry" + } + }, + { + "key": "telemetry.sdk.version", + "value": { + "stringValue": "1.47.0" + } + }, + { + "key": "service.name", + "value": { + "stringValue": "messenger-relay" + } + } + ] + }, + "scopeSpans": [ + { + "scope": { + "name": "messenger/queue" + }, + "spans": [ + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "oN85QJB5xaA=", + "parentSpanId": "PYX0hZrvFv4=", + "name": "job.publish", + "kind": "SPAN_KIND_PRODUCER", + "startTimeUnixNano": "1793802395736654878", + "endTimeUnixNano": "1793802395739327243", + "attributes": [ + { + "key": "messaging.system", + "value": { + "stringValue": "rabbitmq" + } + }, + { + "key": "messaging.operation", + "value": { + "stringValue": "publish" + } + }, + { + "key": "messaging.destination.name", + "value": { + "stringValue": "attachment.process.v1" + } + }, + { + "key": "job.id", + "value": { + "stringValue": "01a1a6f4-5f40-77db-9331-2261a2c747b0" + } + }, + { + "key": "job.type", + "value": { + "stringValue": "attachment.process.v1" + } + }, + { + "key": "job.attempt", + "value": { + "intValue": "1" + } + } + ], + "status": {} + } + ] + } + ] + }, + { + "resource": { + "attributes": [ + { + "key": "deployment.environment.name", + "value": { + "stringValue": "lab" + } + }, + { + "key": "service.instance.id", + "value": { + "stringValue": "d97e22fe420e" + } + }, + { + "key": "service.version", + "value": { + "stringValue": "dev" + } + }, + { + "key": "telemetry.sdk.language", + "value": { + "stringValue": "go" + } + }, + { + "key": "telemetry.sdk.name", + "value": { + "stringValue": "opentelemetry" + } + }, + { + "key": "telemetry.sdk.version", + "value": { + "stringValue": "1.47.0" + } + }, + { + "key": "service.name", + "value": { + "stringValue": "messenger-worker" + } + } + ] + }, + "scopeSpans": [ + { + "scope": { + "name": "messenger/s3" + }, + "spans": [ + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "sPjksIkMlbU=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "S3.GetObject", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395743690577", + "endTimeUnixNano": "1793802395748370487", + "attributes": [ + { + "key": "rpc.system", + "value": { + "stringValue": "aws.s3" + } + }, + { + "key": "rpc.service", + "value": { + "stringValue": "S3" + } + }, + { + "key": "rpc.method", + "value": { + "stringValue": "GetObject" + } + }, + { + "key": "aws.s3.operation", + "value": { + "stringValue": "GetObject" + } + }, + { + "key": "aws.s3.object.size", + "value": { + "intValue": "111817" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "KOGfMHgDV68=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "S3.PutObject", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395754326456", + "endTimeUnixNano": "1793802395758256714", + "attributes": [ + { + "key": "rpc.system", + "value": { + "stringValue": "aws.s3" + } + }, + { + "key": "rpc.service", + "value": { + "stringValue": "S3" + } + }, + { + "key": "rpc.method", + "value": { + "stringValue": "PutObject" + } + }, + { + "key": "aws.s3.operation", + "value": { + "stringValue": "PutObject" + } + }, + { + "key": "aws.s3.object.size", + "value": { + "intValue": "111817" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "DjUiBygbyvo=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "S3.PutObject", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395760192469", + "endTimeUnixNano": "1793802395766000982", + "attributes": [ + { + "key": "rpc.system", + "value": { + "stringValue": "aws.s3" + } + }, + { + "key": "rpc.service", + "value": { + "stringValue": "S3" + } + }, + { + "key": "rpc.method", + "value": { + "stringValue": "PutObject" + } + }, + { + "key": "aws.s3.operation", + "value": { + "stringValue": "PutObject" + } + }, + { + "key": "aws.s3.object.size", + "value": { + "intValue": "5653" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "rO05iZLOiZI=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "S3.PutObject", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395767125545", + "endTimeUnixNano": "1793802395771114302", + "attributes": [ + { + "key": "rpc.system", + "value": { + "stringValue": "aws.s3" + } + }, + { + "key": "rpc.service", + "value": { + "stringValue": "S3" + } + }, + { + "key": "rpc.method", + "value": { + "stringValue": "PutObject" + } + }, + { + "key": "aws.s3.operation", + "value": { + "stringValue": "PutObject" + } + }, + { + "key": "aws.s3.object.size", + "value": { + "intValue": "2441" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "Xd0hQfAjGZA=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "S3.PutObject", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395779580848", + "endTimeUnixNano": "1793802395781121610", + "attributes": [ + { + "key": "rpc.system", + "value": { + "stringValue": "aws.s3" + } + }, + { + "key": "rpc.service", + "value": { + "stringValue": "S3" + } + }, + { + "key": "rpc.method", + "value": { + "stringValue": "PutObject" + } + }, + { + "key": "aws.s3.operation", + "value": { + "stringValue": "PutObject" + } + }, + { + "key": "aws.s3.object.size", + "value": { + "intValue": "2588" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "p4zv1IBZl0U=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "S3.DeleteObject", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395783437774", + "endTimeUnixNano": "1793802395784156218", + "attributes": [ + { + "key": "rpc.system", + "value": { + "stringValue": "aws.s3" + } + }, + { + "key": "rpc.service", + "value": { + "stringValue": "S3" + } + }, + { + "key": "rpc.method", + "value": { + "stringValue": "DeleteObject" + } + }, + { + "key": "aws.s3.operation", + "value": { + "stringValue": "DeleteObject" + } + } + ], + "status": {} + } + ] + }, + { + "scope": { + "name": "github.com/exaring/otelpgx", + "version": "v0.13.0" + }, + "spans": [ + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "cPpoLv8+Hw0=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "pool.acquire", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395740442681", + "endTimeUnixNano": "1793802395740481722", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "7QHwOwW9lRw=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "BEGIN", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395740522096", + "endTimeUnixNano": "1793802395740688676", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "0" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "K7AJi/h9yfM=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "SELECT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395740710426", + "endTimeUnixNano": "1793802395741213167", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "1G/J5zes0OM=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "SELECT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395741234457", + "endTimeUnixNano": "1793802395741553617", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "TmKUClTHGFc=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "UPDATE", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395741571492", + "endTimeUnixNano": "1793802395742012692", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "zPZSfI4gCDE=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "UPDATE", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395742029692", + "endTimeUnixNano": "1793802395742564056", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "SV1e22mLLcY=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "INSERT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395742573682", + "endTimeUnixNano": "1793802395742858468", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "OE6OO5Dijz0=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "COMMIT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395742867676", + "endTimeUnixNano": "1793802395743466206", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "0" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "RNy722+Sshs=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "pool.acquire", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395781135234", + "endTimeUnixNano": "1793802395781147693", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "dsDrBFLuC54=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "BEGIN", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395781150484", + "endTimeUnixNano": "1793802395781209899", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "0" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "729wTBL1Hlc=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "SELECT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395781216900", + "endTimeUnixNano": "1793802395781404313", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "Xx1FREDbGyY=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "SELECT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395781408229", + "endTimeUnixNano": "1793802395782070758", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "Nb2AV4LFXJ4=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "INSERT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395782078508", + "endTimeUnixNano": "1793802395782260463", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "1sQr4MKHMuM=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "INSERT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395782263046", + "endTimeUnixNano": "1793802395782398627", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "HJ33M4VLlY4=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "INSERT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395782408460", + "endTimeUnixNano": "1793802395782594790", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "6YX3a2r14Ro=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "UPDATE", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395782598248", + "endTimeUnixNano": "1793802395782788953", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "AcwmdvpVhxY=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "UPDATE", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395782795078", + "endTimeUnixNano": "1793802395782927992", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "vqusgHDzIk8=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "INSERT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395782930950", + "endTimeUnixNano": "1793802395783029490", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "7fQbGRyppzI=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "COMMIT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395783036573", + "endTimeUnixNano": "1793802395783365400", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "0" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "6GainDTI+UU=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "pool.acquire", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395784160843", + "endTimeUnixNano": "1793802395784165509", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "+lk0shUxPWw=", + "parentSpanId": "0o4HJmhKdUc=", + "name": "UPDATE", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395784166885", + "endTimeUnixNano": "1793802395784543795", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + } + ] + }, + { + "scope": { + "name": "messenger/worker" + }, + "spans": [ + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "0o4HJmhKdUc=", + "parentSpanId": "oN85QJB5xaA=", + "name": "job.process", + "kind": "SPAN_KIND_CONSUMER", + "startTimeUnixNano": "1793802395740407265", + "endTimeUnixNano": "1793802395784624751", + "attributes": [ + { + "key": "messaging.system", + "value": { + "stringValue": "rabbitmq" + } + }, + { + "key": "messaging.operation", + "value": { + "stringValue": "process" + } + }, + { + "key": "messaging.destination.name", + "value": { + "stringValue": "attachment.process.v1" + } + }, + { + "key": "job.id", + "value": { + "stringValue": "01a1a6f4-5f40-77db-9331-2261a2c747b0" + } + }, + { + "key": "job.type", + "value": { + "stringValue": "attachment.process.v1" + } + }, + { + "key": "job.attempt", + "value": { + "intValue": "1" + } + }, + { + "key": "pipeline.version", + "value": { + "intValue": "1" + } + } + ], + "status": {} + } + ] + } + ] + }, + { + "resource": { + "attributes": [ + { + "key": "deployment.environment.name", + "value": { + "stringValue": "lab" + } + }, + { + "key": "service.instance.id", + "value": { + "stringValue": "05930701c929" + } + }, + { + "key": "service.version", + "value": { + "stringValue": "dev" + } + }, + { + "key": "telemetry.sdk.language", + "value": { + "stringValue": "go" + } + }, + { + "key": "telemetry.sdk.name", + "value": { + "stringValue": "opentelemetry" + } + }, + { + "key": "telemetry.sdk.version", + "value": { + "stringValue": "1.47.0" + } + }, + { + "key": "service.name", + "value": { + "stringValue": "messenger-api" + } + } + ] + }, + "scopeSpans": [ + { + "scope": { + "name": "github.com/exaring/otelpgx", + "version": "v0.13.0" + }, + "spans": [ + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "kZ57mfnH2bU=", + "parentSpanId": "PYX0hZrvFv4=", + "name": "pool.acquire", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395453611509", + "endTimeUnixNano": "1793802395453615925", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "cgWz+XzfPmg=", + "parentSpanId": "PYX0hZrvFv4=", + "name": "SELECT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395453618717", + "endTimeUnixNano": "1793802395453794922", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "8bVgqLP/0uU=", + "parentSpanId": "PYX0hZrvFv4=", + "name": "pool.acquire", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395453808505", + "endTimeUnixNano": "1793802395453809963", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "wPWtPUlEDio=", + "parentSpanId": "WnsLZopRomY=", + "name": "SELECT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395453814797", + "endTimeUnixNano": "1793802395453896254", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.prepare_stmt.name", + "value": { + "stringValue": "stmtcache_de0ea135810354b7f61683adb3b09404ce39ab5d034c1a14" + } + }, + { + "key": "db.operation.name", + "value": { + "stringValue": "SELECT" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "WnsLZopRomY=", + "parentSpanId": "PYX0hZrvFv4=", + "name": "SELECT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395453810880", + "endTimeUnixNano": "1793802395454017084", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "jEq4yF6bJ4c=", + "parentSpanId": "PYX0hZrvFv4=", + "name": "pool.acquire", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395454022876", + "endTimeUnixNano": "1793802395454024667", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "7c+kU2FHIwg=", + "parentSpanId": "bYfKpK2Qry4=", + "name": "SELECT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395454029459", + "endTimeUnixNano": "1793802395454250372", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.prepare_stmt.name", + "value": { + "stringValue": "stmtcache_0653adaeb90b9d056b56a00b5e9a7ff06c410e757f5f0f33" + } + }, + { + "key": "db.operation.name", + "value": { + "stringValue": "SELECT" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "bYfKpK2Qry4=", + "parentSpanId": "PYX0hZrvFv4=", + "name": "SELECT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395454025918", + "endTimeUnixNano": "1793802395454578866", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "DVd4mZMF4aQ=", + "parentSpanId": "PYX0hZrvFv4=", + "name": "pool.acquire", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395464015101", + "endTimeUnixNano": "1793802395464024101", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "m8uA0khNg/w=", + "parentSpanId": "PYX0hZrvFv4=", + "name": "BEGIN", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395464026309", + "endTimeUnixNano": "1793802395464095100", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "0" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "a+MOeYooA2k=", + "parentSpanId": "toZ0hvmTDcQ=", + "name": "SELECT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395464102600", + "endTimeUnixNano": "1793802395464211889", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.prepare_stmt.name", + "value": { + "stringValue": "stmtcache_a06e1d9f6f95e4c4c2b98310ebddcc9d963cc033582bf2e9" + } + }, + { + "key": "db.operation.name", + "value": { + "stringValue": "SELECT" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "toZ0hvmTDcQ=", + "parentSpanId": "PYX0hZrvFv4=", + "name": "SELECT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395464100391", + "endTimeUnixNano": "1793802395464260180", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "MK2GBK8eLTs=", + "parentSpanId": "G4RGzrsTobY=", + "name": "SELECT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395464267596", + "endTimeUnixNano": "1793802395464325179", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.prepare_stmt.name", + "value": { + "stringValue": "stmtcache_07c46797cbfa81d213deef56f51735a4f36385c48ba06154" + } + }, + { + "key": "db.operation.name", + "value": { + "stringValue": "SELECT" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "G4RGzrsTobY=", + "parentSpanId": "PYX0hZrvFv4=", + "name": "SELECT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395464264055", + "endTimeUnixNano": "1793802395464551716", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "BME8KY6w41g=", + "parentSpanId": "UH0CMrr/hzE=", + "name": "SELECT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395464557091", + "endTimeUnixNano": "1793802395464589132", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.prepare_stmt.name", + "value": { + "stringValue": "stmtcache_f76724b3c1e99473765b9b6667245a4f70550ddcfaeb487c" + } + }, + { + "key": "db.operation.name", + "value": { + "stringValue": "SELECT" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "UH0CMrr/hzE=", + "parentSpanId": "PYX0hZrvFv4=", + "name": "SELECT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395464554674", + "endTimeUnixNano": "1793802395464727254", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "M+md+NdJlOc=", + "parentSpanId": "RHlHifPxVT0=", + "name": "INSERT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395464734004", + "endTimeUnixNano": "1793802395464778378", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.prepare_stmt.name", + "value": { + "stringValue": "stmtcache_bb4955d9edbde9fe5507f79b4fea34d6fc34fcc6d640e8f2" + } + }, + { + "key": "db.operation.name", + "value": { + "stringValue": "INSERT" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "RHlHifPxVT0=", + "parentSpanId": "PYX0hZrvFv4=", + "name": "INSERT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395464732129", + "endTimeUnixNano": "1793802395465256494", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "cT0rT57CMTg=", + "parentSpanId": "rBDxadkKFsU=", + "name": "INSERT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395465261827", + "endTimeUnixNano": "1793802395465496073", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.prepare_stmt.name", + "value": { + "stringValue": "stmtcache_189223a1e419a869bef6ea254806c23811f32e5dab57507e" + } + }, + { + "key": "db.operation.name", + "value": { + "stringValue": "INSERT" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "rBDxadkKFsU=", + "parentSpanId": "PYX0hZrvFv4=", + "name": "INSERT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395465258994", + "endTimeUnixNano": "1793802395465758317", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "fDXELczToRA=", + "parentSpanId": "P3r2SrzfxZw=", + "name": "INSERT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395465764901", + "endTimeUnixNano": "1793802395465997897", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.prepare_stmt.name", + "value": { + "stringValue": "stmtcache_4ebc8e8cf059e889f4e7768a351363c78a335ebd72ea57c1" + } + }, + { + "key": "db.operation.name", + "value": { + "stringValue": "INSERT" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "P3r2SrzfxZw=", + "parentSpanId": "PYX0hZrvFv4=", + "name": "INSERT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395465763401", + "endTimeUnixNano": "1793802395466209267", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "zggpkziN/gw=", + "parentSpanId": "eUOyyqgJu2Q=", + "name": "INSERT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395466273391", + "endTimeUnixNano": "1793802395466351348", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.prepare_stmt.name", + "value": { + "stringValue": "stmtcache_1a9e31070dddea814c8e3bfa6542b1b34c1c471eb96b3a74" + } + }, + { + "key": "db.operation.name", + "value": { + "stringValue": "INSERT" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "eUOyyqgJu2Q=", + "parentSpanId": "PYX0hZrvFv4=", + "name": "INSERT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395466261517", + "endTimeUnixNano": "1793802395466522512", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "BHGeHoh+ON0=", + "parentSpanId": "PYX0hZrvFv4=", + "name": "COMMIT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395466525136", + "endTimeUnixNano": "1793802395466967586", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "0" + } + } + ], + "status": {} + } + ] + }, + { + "scope": { + "name": "messenger/http" + }, + "spans": [ + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "PYX0hZrvFv4=", + "name": "POST /api/v1/chats/{chat_id}/attachments", + "kind": "SPAN_KIND_SERVER", + "startTimeUnixNano": "1793802395453580634", + "endTimeUnixNano": "1793802395467131875", + "attributes": [ + { + "key": "http.request.method", + "value": { + "stringValue": "POST" + } + }, + { + "key": "http.route", + "value": { + "stringValue": "/api/v1/chats/{chat_id}/attachments" + } + }, + { + "key": "http.response.status_code", + "value": { + "intValue": "202" + } + } + ], + "status": {} + } + ] + }, + { + "scope": { + "name": "messenger/s3" + }, + "spans": [ + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "twJRBVyTXgc=", + "parentSpanId": "PYX0hZrvFv4=", + "name": "S3.PutObject", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395456519745", + "endTimeUnixNano": "1793802395463618984", + "attributes": [ + { + "key": "rpc.system", + "value": { + "stringValue": "aws.s3" + } + }, + { + "key": "rpc.service", + "value": { + "stringValue": "S3" + } + }, + { + "key": "rpc.method", + "value": { + "stringValue": "PutObject" + } + }, + { + "key": "aws.s3.operation", + "value": { + "stringValue": "PutObject" + } + }, + { + "key": "aws.s3.object.size", + "value": { + "intValue": "111817" + } + } + ], + "status": {} + }, + { + "traceId": "q11jrcoxNkWDijT8Otf4yg==", + "spanId": "n5w2CUNMyIE=", + "parentSpanId": "PYX0hZrvFv4=", + "name": "S3.HeadObject", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802395463629817", + "endTimeUnixNano": "1793802395464004351", + "attributes": [ + { + "key": "rpc.system", + "value": { + "stringValue": "aws.s3" + } + }, + { + "key": "rpc.service", + "value": { + "stringValue": "S3" + } + }, + { + "key": "rpc.method", + "value": { + "stringValue": "HeadObject" + } + }, + { + "key": "aws.s3.operation", + "value": { + "stringValue": "HeadObject" + } + } + ], + "status": {} + } + ] + } + ] + } + ] +} diff --git a/evidence/lab6/trace-retry.json b/evidence/lab6/trace-retry.json new file mode 100644 index 0000000..525bcb4 --- /dev/null +++ b/evidence/lab6/trace-retry.json @@ -0,0 +1,1677 @@ +{ + "batches": [ + { + "resource": { + "attributes": [ + { + "key": "deployment.environment.name", + "value": { + "stringValue": "lab" + } + }, + { + "key": "service.instance.id", + "value": { + "stringValue": "a934cf9186e3" + } + }, + { + "key": "service.version", + "value": { + "stringValue": "dev" + } + }, + { + "key": "telemetry.sdk.language", + "value": { + "stringValue": "go" + } + }, + { + "key": "telemetry.sdk.name", + "value": { + "stringValue": "opentelemetry" + } + }, + { + "key": "telemetry.sdk.version", + "value": { + "stringValue": "1.47.0" + } + }, + { + "key": "service.name", + "value": { + "stringValue": "messenger-relay" + } + } + ] + }, + "scopeSpans": [ + { + "scope": { + "name": "github.com/exaring/otelpgx", + "version": "v0.13.0" + }, + "spans": [ + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "+awTPopStFs=", + "parentSpanId": "BnhRFOI4G5c=", + "name": "pool.acquire", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802302815621430", + "endTimeUnixNano": "1793802302815627680", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "w2TnbsOq5j4=", + "parentSpanId": "BnhRFOI4G5c=", + "name": "UPDATE", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802302815646013", + "endTimeUnixNano": "1793802302815929798", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "0" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "ltn6Zi71b94=", + "parentSpanId": "BnhRFOI4G5c=", + "name": "pool.acquire", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802302815939215", + "endTimeUnixNano": "1793802302815941131", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "kttk0PWY4kg=", + "parentSpanId": "BnhRFOI4G5c=", + "name": "BEGIN", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802302815945590", + "endTimeUnixNano": "1793802302816092671", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "0" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "8PflHcACWsI=", + "parentSpanId": "BnhRFOI4G5c=", + "name": "SELECT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802302816104378", + "endTimeUnixNano": "1793802302816443912", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "xV759W0q78A=", + "parentSpanId": "v+1N0rqYsLY=", + "name": "SELECT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802302816479161", + "endTimeUnixNano": "1793802302816975566", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.prepare_stmt.name", + "value": { + "stringValue": "stmtcache_ebbcbaa0458d8bba982162ae20d90f44baaaf857781dbeee" + } + }, + { + "key": "db.operation.name", + "value": { + "stringValue": "SELECT" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "v+1N0rqYsLY=", + "parentSpanId": "BnhRFOI4G5c=", + "name": "SELECT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802302816458912", + "endTimeUnixNano": "1793802302817889422", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "DulMvAGlujs=", + "parentSpanId": "uqV+DzT9nvw=", + "name": "UPDATE", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802302817935671", + "endTimeUnixNano": "1793802302818141375", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.prepare_stmt.name", + "value": { + "stringValue": "stmtcache_b087940c690a13f6ffe89cf66263b8dd360405914ffda329" + } + }, + { + "key": "db.operation.name", + "value": { + "stringValue": "UPDATE" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "uqV+DzT9nvw=", + "parentSpanId": "BnhRFOI4G5c=", + "name": "UPDATE", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802302817927213", + "endTimeUnixNano": "1793802302818649113", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "yqkpV4B0fo8=", + "parentSpanId": "/89+b5yQCs0=", + "name": "UPDATE", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802302818691363", + "endTimeUnixNano": "1793802302818949566", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.prepare_stmt.name", + "value": { + "stringValue": "stmtcache_49095027771e9a26673f2ef0e4d86d190e6eb144e08c447f" + } + }, + { + "key": "db.operation.name", + "value": { + "stringValue": "UPDATE" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "/89+b5yQCs0=", + "parentSpanId": "BnhRFOI4G5c=", + "name": "UPDATE", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802302818681821", + "endTimeUnixNano": "1793802302820199954", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "cz4ic/4b70E=", + "parentSpanId": "4GeTkGDAOl0=", + "name": "INSERT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802302820250495", + "endTimeUnixNano": "1793802302821554216", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.prepare_stmt.name", + "value": { + "stringValue": "stmtcache_4ebc8e8cf059e889f4e7768a351363c78a335ebd72ea57c1" + } + }, + { + "key": "db.operation.name", + "value": { + "stringValue": "INSERT" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "4GeTkGDAOl0=", + "parentSpanId": "BnhRFOI4G5c=", + "name": "INSERT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802302820236579", + "endTimeUnixNano": "1793802302822778190", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "D9uKZ+FHinw=", + "parentSpanId": "nH87bULQO7s=", + "name": "INSERT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802302822872562", + "endTimeUnixNano": "1793802302823028975", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.prepare_stmt.name", + "value": { + "stringValue": "stmtcache_1a9e31070dddea814c8e3bfa6542b1b34c1c471eb96b3a74" + } + }, + { + "key": "db.operation.name", + "value": { + "stringValue": "INSERT" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "nH87bULQO7s=", + "parentSpanId": "BnhRFOI4G5c=", + "name": "INSERT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802302822858854", + "endTimeUnixNano": "1793802302823392842", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "13BaaQsyrQQ=", + "parentSpanId": "BnhRFOI4G5c=", + "name": "COMMIT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802302823398634", + "endTimeUnixNano": "1793802302824306948", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "0" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "1+PD52xlAPM=", + "parentSpanId": "BnhRFOI4G5c=", + "name": "pool.acquire", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802302824488110", + "endTimeUnixNano": "1793802302824495276", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "C3saI/pM5xY=", + "parentSpanId": "BnhRFOI4G5c=", + "name": "DELETE", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802302824504443", + "endTimeUnixNano": "1793802302824865935", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "0" + } + } + ], + "status": {} + } + ] + }, + { + "scope": { + "name": "messenger/relay" + }, + "spans": [ + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "BnhRFOI4G5c=", + "name": "job.requeue", + "kind": "SPAN_KIND_INTERNAL", + "startTimeUnixNano": "1793802302815608431", + "endTimeUnixNano": "1793802302824892894", + "attributes": [ + { + "key": "job.operation", + "value": { + "stringValue": "requeue" + } + } + ], + "status": {} + } + ] + }, + { + "scope": { + "name": "messenger/queue" + }, + "spans": [ + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "4J4JtxSlLP0=", + "parentSpanId": "BnhRFOI4G5c=", + "name": "job.publish", + "kind": "SPAN_KIND_PRODUCER", + "startTimeUnixNano": "1793802303818529564", + "endTimeUnixNano": "1793802303821735993", + "attributes": [ + { + "key": "messaging.system", + "value": { + "stringValue": "rabbitmq" + } + }, + { + "key": "messaging.operation", + "value": { + "stringValue": "publish" + } + }, + { + "key": "messaging.destination.name", + "value": { + "stringValue": "attachment.process.v1" + } + }, + { + "key": "job.id", + "value": { + "stringValue": "01a1a6f2-b11a-7b75-ab8d-06cce0a59e49" + } + }, + { + "key": "job.type", + "value": { + "stringValue": "attachment.process.v1" + } + }, + { + "key": "job.attempt", + "value": { + "intValue": "2" + } + } + ], + "status": {} + } + ] + } + ] + }, + { + "resource": { + "attributes": [ + { + "key": "deployment.environment.name", + "value": { + "stringValue": "lab" + } + }, + { + "key": "service.instance.id", + "value": { + "stringValue": "25aa94c6940b" + } + }, + { + "key": "service.version", + "value": { + "stringValue": "dev" + } + }, + { + "key": "telemetry.sdk.language", + "value": { + "stringValue": "go" + } + }, + { + "key": "telemetry.sdk.name", + "value": { + "stringValue": "opentelemetry" + } + }, + { + "key": "telemetry.sdk.version", + "value": { + "stringValue": "1.47.0" + } + }, + { + "key": "service.name", + "value": { + "stringValue": "messenger-worker" + } + } + ] + }, + "scopeSpans": [ + { + "scope": { + "name": "github.com/exaring/otelpgx", + "version": "v0.13.0" + }, + "spans": [ + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "Ld1buXEJACU=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "pool.acquire", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802305044414135", + "endTimeUnixNano": "1793802305044694879", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "EwnyuRk4moU=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "BEGIN", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802305044711920", + "endTimeUnixNano": "1793802305044815918", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "0" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "wCejovFKfGQ=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "SELECT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802305044827751", + "endTimeUnixNano": "1793802305046189304", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "nzzqFnC1CT0=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "SELECT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802305046220554", + "endTimeUnixNano": "1793802305046645503", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "fZi0e+f5icY=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "UPDATE", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802305046672377", + "endTimeUnixNano": "1793802305047024286", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "0jI8sW2Tvb8=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "UPDATE", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802305047033411", + "endTimeUnixNano": "1793802305047317780", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "ugdb6AZZQgA=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "INSERT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802305047323613", + "endTimeUnixNano": "1793802305047565149", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "ZSd35Wjd1Zs=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "COMMIT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802305047575441", + "endTimeUnixNano": "1793802305048067056", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "0" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "YvjMxos8lRM=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "pool.acquire", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802308050298463", + "endTimeUnixNano": "1793802308050618247", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "qxIVp3LNO+A=", + "parentSpanId": "snmsEFRNDMA=", + "name": "UPDATE", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802308050672997", + "endTimeUnixNano": "1793802308051011531", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.prepare_stmt.name", + "value": { + "stringValue": "stmtcache_dd0ca3739b55a7632fe7326a344ad1133f72a0e3d2e8959d" + } + }, + { + "key": "db.operation.name", + "value": { + "stringValue": "UPDATE" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "snmsEFRNDMA=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "UPDATE", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802308050634872", + "endTimeUnixNano": "1793802308054941153", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "S/eHS+l1krA=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "pool.acquire", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802311048585797", + "endTimeUnixNano": "1793802311048891665", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "CBAYCebp6Pw=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "UPDATE", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802311048930581", + "endTimeUnixNano": "1793802311050875497", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "qHzMiN6qeFs=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "pool.acquire", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802313105787490", + "endTimeUnixNano": "1793802313105803240", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "/h9D29RxFyU=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "BEGIN", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802313105806573", + "endTimeUnixNano": "1793802313106992506", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "0" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "9059eryfPNY=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "SELECT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802313107010214", + "endTimeUnixNano": "1793802313107293708", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "ZZYMzm10zrY=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "SELECT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802313107302124", + "endTimeUnixNano": "1793802313107438121", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "qODdDyvJ3TY=", + "parentSpanId": "lmj71AmwsCU=", + "name": "INSERT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802313107452204", + "endTimeUnixNano": "1793802313107590160", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.prepare_stmt.name", + "value": { + "stringValue": "stmtcache_14dc60f644da6f8a7202f0c5d5df0eb1141c844b78b82019" + } + }, + { + "key": "db.operation.name", + "value": { + "stringValue": "INSERT" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "lmj71AmwsCU=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "INSERT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802313107446829", + "endTimeUnixNano": "1793802313107906736", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "B9NyUqltAgQ=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "INSERT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802313107911486", + "endTimeUnixNano": "1793802313108012442", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "+uScoj2zXCY=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "INSERT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802313108018192", + "endTimeUnixNano": "1793802313108142106", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "HTLVEEv/yzs=", + "parentSpanId": "sHuxrc55d3s=", + "name": "UPDATE", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802313108150648", + "endTimeUnixNano": "1793802313108233937", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.prepare_stmt.name", + "value": { + "stringValue": "stmtcache_bfb6a7dc0f53dfcd38aefaf13c90ae7ea9b8ec25681d6ac2" + } + }, + { + "key": "db.operation.name", + "value": { + "stringValue": "UPDATE" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "sHuxrc55d3s=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "UPDATE", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802313108145898", + "endTimeUnixNano": "1793802313108420642", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "RlrUp1CnfRM=", + "parentSpanId": "JkExPBk05hs=", + "name": "UPDATE", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802313108432850", + "endTimeUnixNano": "1793802313108487599", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.prepare_stmt.name", + "value": { + "stringValue": "stmtcache_f56957570da2038c8d89e8156bef39fa49e55ec384c81945" + } + }, + { + "key": "db.operation.name", + "value": { + "stringValue": "UPDATE" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "JkExPBk05hs=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "UPDATE", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802313108422892", + "endTimeUnixNano": "1793802313108597555", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "pnFuUx1XVEw=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "INSERT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802313108602971", + "endTimeUnixNano": "1793802313108711760", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "CYhZUC7drWo=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "COMMIT", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802313108715052", + "endTimeUnixNano": "1793802313109037461", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "0" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "NHqi6I+Y18g=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "pool.acquire", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802313110080731", + "endTimeUnixNano": "1793802313110085647", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "FG0ZXCikkUE=", + "parentSpanId": "pqs8NhyYnHI=", + "name": "UPDATE", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802313110090439", + "endTimeUnixNano": "1793802313110228727", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.prepare_stmt.name", + "value": { + "stringValue": "stmtcache_6c84955ce8a23b4b2d881a1f3183345b48410266e3eb12ad" + } + }, + { + "key": "db.operation.name", + "value": { + "stringValue": "UPDATE" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "pqs8NhyYnHI=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "UPDATE", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802313110087064", + "endTimeUnixNano": "1793802313110935171", + "attributes": [ + { + "key": "db.system.name", + "value": { + "stringValue": "postgresql" + } + }, + { + "key": "pgx.rows_affected", + "value": { + "intValue": "1" + } + } + ], + "status": {} + } + ] + }, + { + "scope": { + "name": "messenger/s3" + }, + "spans": [ + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "nHKmA69GSQE=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "S3.GetObject", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802313048808640", + "endTimeUnixNano": "1793802313059851360", + "attributes": [ + { + "key": "rpc.system", + "value": { + "stringValue": "aws.s3" + } + }, + { + "key": "rpc.service", + "value": { + "stringValue": "S3" + } + }, + { + "key": "rpc.method", + "value": { + "stringValue": "GetObject" + } + }, + { + "key": "aws.s3.operation", + "value": { + "stringValue": "GetObject" + } + }, + { + "key": "aws.s3.object.size", + "value": { + "intValue": "111817" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "QS4EriJzWwA=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "S3.PutObject", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802313070961869", + "endTimeUnixNano": "1793802313087197476", + "attributes": [ + { + "key": "rpc.system", + "value": { + "stringValue": "aws.s3" + } + }, + { + "key": "rpc.service", + "value": { + "stringValue": "S3" + } + }, + { + "key": "rpc.method", + "value": { + "stringValue": "PutObject" + } + }, + { + "key": "aws.s3.operation", + "value": { + "stringValue": "PutObject" + } + }, + { + "key": "aws.s3.object.size", + "value": { + "intValue": "111817" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "vbA7l8lLhrU=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "S3.PutObject", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802313090139954", + "endTimeUnixNano": "1793802313091971707", + "attributes": [ + { + "key": "rpc.system", + "value": { + "stringValue": "aws.s3" + } + }, + { + "key": "rpc.service", + "value": { + "stringValue": "S3" + } + }, + { + "key": "rpc.method", + "value": { + "stringValue": "PutObject" + } + }, + { + "key": "aws.s3.operation", + "value": { + "stringValue": "PutObject" + } + }, + { + "key": "aws.s3.object.size", + "value": { + "intValue": "5653" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "JsgNx4iOPOI=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "S3.PutObject", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802313094204283", + "endTimeUnixNano": "1793802313096115409", + "attributes": [ + { + "key": "rpc.system", + "value": { + "stringValue": "aws.s3" + } + }, + { + "key": "rpc.service", + "value": { + "stringValue": "S3" + } + }, + { + "key": "rpc.method", + "value": { + "stringValue": "PutObject" + } + }, + { + "key": "aws.s3.operation", + "value": { + "stringValue": "PutObject" + } + }, + { + "key": "aws.s3.object.size", + "value": { + "intValue": "2441" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "C/iGChs7M3E=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "S3.PutObject", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802313103677994", + "endTimeUnixNano": "1793802313105767449", + "attributes": [ + { + "key": "rpc.system", + "value": { + "stringValue": "aws.s3" + } + }, + { + "key": "rpc.service", + "value": { + "stringValue": "S3" + } + }, + { + "key": "rpc.method", + "value": { + "stringValue": "PutObject" + } + }, + { + "key": "aws.s3.operation", + "value": { + "stringValue": "PutObject" + } + }, + { + "key": "aws.s3.object.size", + "value": { + "intValue": "2588" + } + } + ], + "status": {} + }, + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "Aju2Y6fnIBI=", + "parentSpanId": "vFtM9OAQvCY=", + "name": "S3.DeleteObject", + "kind": "SPAN_KIND_CLIENT", + "startTimeUnixNano": "1793802313109207625", + "endTimeUnixNano": "1793802313110073898", + "attributes": [ + { + "key": "rpc.system", + "value": { + "stringValue": "aws.s3" + } + }, + { + "key": "rpc.service", + "value": { + "stringValue": "S3" + } + }, + { + "key": "rpc.method", + "value": { + "stringValue": "DeleteObject" + } + }, + { + "key": "aws.s3.operation", + "value": { + "stringValue": "DeleteObject" + } + } + ], + "status": {} + } + ] + }, + { + "scope": { + "name": "messenger/worker" + }, + "spans": [ + { + "traceId": "KAwpQKyjY8bfPNsvltSZhg==", + "spanId": "vFtM9OAQvCY=", + "parentSpanId": "4J4JtxSlLP0=", + "name": "job.process", + "kind": "SPAN_KIND_CONSUMER", + "startTimeUnixNano": "1793802305044390844", + "endTimeUnixNano": "1793802313111038168", + "attributes": [ + { + "key": "messaging.system", + "value": { + "stringValue": "rabbitmq" + } + }, + { + "key": "messaging.operation", + "value": { + "stringValue": "process" + } + }, + { + "key": "messaging.destination.name", + "value": { + "stringValue": "attachment.process.v1" + } + }, + { + "key": "job.id", + "value": { + "stringValue": "01a1a6f2-b11a-7b75-ab8d-06cce0a59e49" + } + }, + { + "key": "job.type", + "value": { + "stringValue": "attachment.process.v1" + } + }, + { + "key": "job.attempt", + "value": { + "intValue": "2" + } + }, + { + "key": "pipeline.version", + "value": { + "intValue": "1" + } + } + ], + "status": {} + } + ] + } + ] + } + ] +} diff --git a/evidence/lab6/trace-retry.txt b/evidence/lab6/trace-retry.txt new file mode 100644 index 0000000..aec4745 --- /dev/null +++ b/evidence/lab6/trace-retry.txt @@ -0,0 +1,3 @@ +trace_id=280c2940aca363c6df3cdb2f96d49986 +messenger-relay job.publish attempt=2 parent=BnhRFOI4G5c= +messenger-worker job.process attempt=2 parent=4J4JtxSlLP0= diff --git a/evidence/lab6/track2/burst-alerts.csv b/evidence/lab6/track2/burst-alerts.csv new file mode 100644 index 0000000..404a732 --- /dev/null +++ b/evidence/lab6/track2/burst-alerts.csv @@ -0,0 +1,4 @@ +observed_utc,alert,state,active_at,value,injection_utc +2026-11-04T23:06:11Z,DBPoolSaturated,pending,2026-11-04T23:02:48.187213033Z,"""3.3898419994644047e-03""", +2026-11-04T23:06:56Z,APIErrorBudgetSlowBurn,firing,2026-11-04T23:06:53.187213033Z,"""4.4048551292090836e-02""", +2026-11-04T23:07:46Z,DBPoolSaturated,resolved,,, diff --git a/evidence/lab6/track2/burst-load.json b/evidence/lab6/track2/burst-load.json new file mode 100644 index 0000000..5ec5ec5 --- /dev/null +++ b/evidence/lab6/track2/burst-load.json @@ -0,0 +1,37 @@ +{ + "base_url": "http://localhost:8080", + "rate": 0.5, + "duration_s": 138.01, + "scheduled": 70, + "counters": { + "accepted": 3, + "ready": 3, + "failed": 62, + "messages": 56, + "uploads": 3, + "dropped": 0 + }, + "failures": 62, + "failure_samples": [ + "Failure: POST /api/v1/chats/01a1a8d0-15a4-7499-8666-676db3cf53c8/attachments: expected [202], received 503", + "Failure: POST /api/v1/chats/01a1a8d0-15a4-7499-8666-676db3cf53c8/messages: expected [201], received 503", + "Failure: POST /api/v1/chats/01a1a8d0-15a4-7499-8666-676db3cf53c8/messages: expected [201], received 503", + "Failure: POST /api/v1/chats/01a1a8d0-15a4-7499-8666-676db3cf53c8/messages: expected [201], received 503", + "Failure: POST /api/v1/chats/01a1a8d0-15a4-7499-8666-676db3cf53c8/messages: expected [201], received 503", + "Failure: POST /api/v1/chats/01a1a8d0-15a4-7499-8666-676db3cf53c8/messages: expected [201], received 503", + "Failure: POST /api/v1/chats/01a1a8d0-15a4-7499-8666-676db3cf53c8/messages: expected [201], received 503", + "Failure: POST /api/v1/chats/01a1a8d0-15a4-7499-8666-676db3cf53c8/messages: expected [201], received 503", + "Failure: POST /api/v1/chats/01a1a8d0-15a4-7499-8666-676db3cf53c8/attachments: expected [202], received 503", + "Failure: POST /api/v1/chats/01a1a8d0-15a4-7499-8666-676db3cf53c8/messages: expected [201], received 503" + ], + "latency_ms": { + "p50": 6.2, + "p95": 10.7, + "p99": 10.7 + }, + "ttr_ms": { + "p50": 327.8, + "p95": 329.0, + "p99": 329.0 + } +} diff --git a/evidence/lab6/track2/burst-phases.json b/evidence/lab6/track2/burst-phases.json new file mode 100644 index 0000000..5a7382f --- /dev/null +++ b/evidence/lab6/track2/burst-phases.json @@ -0,0 +1,6 @@ +{ + "scenario": "burst", + "injection_utc": "2026-11-04T23:06:16Z", + "restore_utc": "2026-11-04T23:08:16Z", + "duration_seconds": 120 +} diff --git a/evidence/lab6/track2/full/alerts.csv b/evidence/lab6/track2/full/alerts.csv new file mode 100644 index 0000000..6c31525 --- /dev/null +++ b/evidence/lab6/track2/full/alerts.csv @@ -0,0 +1,52 @@ +observed_utc,alert,state,active_at,value,injection_utc +2026-11-04T19:28:22Z,QueueMetricsStale,pending,2026-11-04T19:27:48.187213033Z,1e+00, +2026-11-04T19:28:32Z,QueueMetricsStale,resolved,,, +2026-11-04T19:28:52Z,TTRErrorBudgetFastBurn,firing,2026-11-04T19:28:38.187213033Z,3.3333333333333326e-01, +2026-11-04T19:29:22Z,TTRErrorBudgetFastBurn,resolved,,, +2026-11-04T20:28:04Z,DBPoolSaturated,pending,2026-11-04T20:27:58.187213033Z,1.3601139775513188e-02, +2026-11-04T20:33:05Z,DBPoolSaturated,firing,2026-11-04T20:27:58.187213033Z,3.3969814422903804e-03, +2026-11-04T20:33:05Z,DBPoolSaturated,resolved,,, +2026-11-04T20:36:05Z,DBPoolSaturated,resolved,,, +2026-11-04T21:00:36Z,DBPoolSaturated,pending,2026-11-04T21:00:33.187213033Z,2.0338983050847456e-02,2026-11-04T20:58:26Z +2026-11-04T21:05:36Z,DBPoolSaturated,resolved,,,2026-11-04T20:58:26Z +2026-11-04T21:13:56Z,APIErrorBudgetSlowBurn,firing,2026-11-04T21:13:53.187213033Z,3.044280442804428e-02,2026-11-04T21:10:21Z +2026-11-04T21:15:26Z,QueueMetricsStale,pending,2026-11-04T21:15:18.187213033Z,1e+00,2026-11-04T21:10:21Z +2026-11-04T21:15:36Z,APIErrorBudgetFastBurn,firing,2026-11-04T21:15:28.187213033Z,7.369323050556983e-02,2026-11-04T21:10:21Z +2026-11-04T21:17:26Z,QueueMetricsStale,firing,2026-11-04T21:15:18.187213033Z,1e+00,2026-11-04T21:10:21Z +2026-11-04T21:17:26Z,QueueMetricsStale,resolved,,,2026-11-04T21:10:21Z +2026-11-04T21:25:37Z,DBPoolSaturated,pending,2026-11-04T21:25:33.187213033Z,1.0169457052687956e-02,2026-11-04T21:10:21Z +2026-11-04T21:25:37Z,QueueMetricsStale,resolved,,,2026-11-04T21:10:21Z +2026-11-04T21:30:07Z,APIErrorBudgetFastBurn,resolved,,,2026-11-04T21:10:21Z +2026-11-04T21:30:37Z,DBPoolSaturated,firing,2026-11-04T21:25:33.187213033Z,3.389807526728633e-03,2026-11-04T21:10:21Z +2026-11-04T21:30:37Z,DBPoolSaturated,resolved,,,2026-11-04T21:10:21Z +2026-11-04T21:30:47Z,DBPoolSaturated,resolved,,,2026-11-04T21:10:21Z +2026-11-04T21:54:08Z,APIErrorBudgetSlowBurn,resolved,,,2026-11-04T21:10:21Z +2026-11-04T22:01:58Z,DBPoolSaturated,pending,2026-11-04T22:01:48.187213033Z,3.389853490532139e-03,2026-11-04T21:10:21Z +2026-11-04T22:06:49Z,DBPoolSaturated,resolved,,,2026-11-04T21:10:21Z +2026-11-04T22:25:40Z,DBPoolSaturated,pending,2026-11-04T22:25:33.187213033Z,6.779638035125306e-03,2026-11-04T21:10:21Z +2026-11-04T22:30:40Z,DBPoolSaturated,firing,2026-11-04T22:25:33.187213033Z,3.3897845452943018e-03,2026-11-04T22:30:24Z +2026-11-04T22:30:40Z,DBPoolSaturated,resolved,,,2026-11-04T22:30:24Z +2026-11-04T22:30:50Z,DBPoolSaturated,resolved,,,2026-11-04T22:30:24Z +2026-11-04T22:31:10Z,JobsOverdue,pending,2026-11-04T22:31:03.187213033Z,3e+00,2026-11-04T22:30:24Z +2026-11-04T22:32:10Z,DBPoolSaturated,pending,2026-11-04T22:32:03.187213033Z,3.3898649816777792e-03,2026-11-04T22:30:24Z +2026-11-04T22:32:40Z,QueueOldestJobAgeHigh,pending,2026-11-04T22:32:33.187213033Z,1.32959697e+02,2026-11-04T22:30:24Z +2026-11-04T22:33:10Z,JobsOverdue,firing,2026-11-04T22:31:03.187213033Z,2e+01,2026-11-04T22:30:24Z +2026-11-04T22:33:10Z,JobsOverdue,resolved,,,2026-11-04T22:30:24Z +2026-11-04T22:37:00Z,DBPoolSaturated,resolved,,,2026-11-04T22:30:24Z +2026-11-04T22:40:40Z,QueueOldestJobAgeCritical,pending,2026-11-04T22:40:33.187213033Z,6.12958759e+02,2026-11-04T22:30:24Z +2026-11-04T22:42:40Z,QueueOldestJobAgeHigh,firing,2026-11-04T22:32:33.187213033Z,7.32958909e+02,2026-11-04T22:30:24Z +2026-11-04T22:42:40Z,QueueOldestJobAgeHigh,resolved,,,2026-11-04T22:30:24Z +2026-11-04T22:45:41Z,JobsOverdue,resolved,,,2026-11-04T22:30:24Z +2026-11-04T22:45:41Z,QueueOldestJobAgeCritical,resolved,,,2026-11-04T22:30:24Z +2026-11-04T22:45:41Z,QueueOldestJobAgeHigh,resolved,,,2026-11-04T22:30:24Z +2026-11-04T22:46:21Z,TTRErrorBudgetFastBurn,firing,2026-11-04T22:46:18.187213033Z,1.5503875968992242e-01,2026-11-04T22:30:24Z +2026-11-04T22:47:31Z,TTRErrorBudgetFastBurn,resolved,,,2026-11-04T22:30:24Z +2026-11-04T22:47:41Z,TTRErrorBudgetFastBurn,firing,2026-11-04T22:47:33.187213033Z,1.5625e-01,2026-11-04T22:30:24Z +2026-11-04T22:48:31Z,TTRErrorBudgetFastBurn,resolved,,,2026-11-04T22:30:24Z +2026-11-04T22:49:11Z,TTRErrorBudgetFastBurn,firing,2026-11-04T22:49:03.187213033Z,1.6535433070866146e-01,2026-11-04T22:30:24Z +2026-11-04T22:49:31Z,TTRErrorBudgetFastBurn,resolved,,,2026-11-04T22:30:24Z +2026-11-04T22:58:11Z,TTRErrorBudgetFastBurn,firing,2026-11-04T22:58:08.187213033Z,1.640625e-01,2026-11-04T22:30:24Z +2026-11-04T22:58:21Z,TTRErrorBudgetFastBurn,resolved,,,2026-11-04T22:30:24Z +2026-11-04T23:02:42Z,TTRErrorBudgetFastBurn,firing,2026-11-04T23:02:38.187213033Z,1.6279069767441856e-01,2026-11-04T22:30:24Z +2026-11-04T23:02:52Z,DBPoolSaturated,pending,2026-11-04T23:02:48.187213033Z,3.389830508474576e-03,2026-11-04T22:30:24Z +2026-11-04T23:02:52Z,TTRErrorBudgetFastBurn,resolved,,,2026-11-04T22:30:24Z diff --git a/evidence/lab6/track2/full/alerts.json b/evidence/lab6/track2/full/alerts.json new file mode 100644 index 0000000..6fba029 --- /dev/null +++ b/evidence/lab6/track2/full/alerts.json @@ -0,0 +1,410 @@ +[ + [ + "2026-11-04T19:28:22Z", + "QueueMetricsStale", + "pending", + "2026-11-04T19:27:48.187213033Z", + "1e+00", + "" + ], + [ + "2026-11-04T19:28:32Z", + "QueueMetricsStale", + "resolved", + "", + "", + "" + ], + [ + "2026-11-04T19:28:52Z", + "TTRErrorBudgetFastBurn", + "firing", + "2026-11-04T19:28:38.187213033Z", + "3.3333333333333326e-01", + "" + ], + [ + "2026-11-04T19:29:22Z", + "TTRErrorBudgetFastBurn", + "resolved", + "", + "", + "" + ], + [ + "2026-11-04T20:28:04Z", + "DBPoolSaturated", + "pending", + "2026-11-04T20:27:58.187213033Z", + "1.3601139775513188e-02", + "" + ], + [ + "2026-11-04T20:33:05Z", + "DBPoolSaturated", + "firing", + "2026-11-04T20:27:58.187213033Z", + "3.3969814422903804e-03", + "" + ], + [ + "2026-11-04T20:33:05Z", + "DBPoolSaturated", + "resolved", + "", + "", + "" + ], + [ + "2026-11-04T20:36:05Z", + "DBPoolSaturated", + "resolved", + "", + "", + "" + ], + [ + "2026-11-04T21:00:36Z", + "DBPoolSaturated", + "pending", + "2026-11-04T21:00:33.187213033Z", + "2.0338983050847456e-02", + "2026-11-04T20:58:26Z" + ], + [ + "2026-11-04T21:05:36Z", + "DBPoolSaturated", + "resolved", + "", + "", + "2026-11-04T20:58:26Z" + ], + [ + "2026-11-04T21:13:56Z", + "APIErrorBudgetSlowBurn", + "firing", + "2026-11-04T21:13:53.187213033Z", + "3.044280442804428e-02", + "2026-11-04T21:10:21Z" + ], + [ + "2026-11-04T21:15:26Z", + "QueueMetricsStale", + "pending", + "2026-11-04T21:15:18.187213033Z", + "1e+00", + "2026-11-04T21:10:21Z" + ], + [ + "2026-11-04T21:15:36Z", + "APIErrorBudgetFastBurn", + "firing", + "2026-11-04T21:15:28.187213033Z", + "7.369323050556983e-02", + "2026-11-04T21:10:21Z" + ], + [ + "2026-11-04T21:17:26Z", + "QueueMetricsStale", + "firing", + "2026-11-04T21:15:18.187213033Z", + "1e+00", + "2026-11-04T21:10:21Z" + ], + [ + "2026-11-04T21:17:26Z", + "QueueMetricsStale", + "resolved", + "", + "", + "2026-11-04T21:10:21Z" + ], + [ + "2026-11-04T21:25:37Z", + "DBPoolSaturated", + "pending", + "2026-11-04T21:25:33.187213033Z", + "1.0169457052687956e-02", + "2026-11-04T21:10:21Z" + ], + [ + "2026-11-04T21:25:37Z", + "QueueMetricsStale", + "resolved", + "", + "", + "2026-11-04T21:10:21Z" + ], + [ + "2026-11-04T21:30:07Z", + "APIErrorBudgetFastBurn", + "resolved", + "", + "", + "2026-11-04T21:10:21Z" + ], + [ + "2026-11-04T21:30:37Z", + "DBPoolSaturated", + "firing", + "2026-11-04T21:25:33.187213033Z", + "3.389807526728633e-03", + "2026-11-04T21:10:21Z" + ], + [ + "2026-11-04T21:30:37Z", + "DBPoolSaturated", + "resolved", + "", + "", + "2026-11-04T21:10:21Z" + ], + [ + "2026-11-04T21:30:47Z", + "DBPoolSaturated", + "resolved", + "", + "", + "2026-11-04T21:10:21Z" + ], + [ + "2026-11-04T21:54:08Z", + "APIErrorBudgetSlowBurn", + "resolved", + "", + "", + "2026-11-04T21:10:21Z" + ], + [ + "2026-11-04T22:01:58Z", + "DBPoolSaturated", + "pending", + "2026-11-04T22:01:48.187213033Z", + "3.389853490532139e-03", + "2026-11-04T21:10:21Z" + ], + [ + "2026-11-04T22:06:49Z", + "DBPoolSaturated", + "resolved", + "", + "", + "2026-11-04T21:10:21Z" + ], + [ + "2026-11-04T22:25:40Z", + "DBPoolSaturated", + "pending", + "2026-11-04T22:25:33.187213033Z", + "6.779638035125306e-03", + "2026-11-04T21:10:21Z" + ], + [ + "2026-11-04T22:30:40Z", + "DBPoolSaturated", + "firing", + "2026-11-04T22:25:33.187213033Z", + "3.3897845452943018e-03", + "2026-11-04T22:30:24Z" + ], + [ + "2026-11-04T22:30:40Z", + "DBPoolSaturated", + "resolved", + "", + "", + "2026-11-04T22:30:24Z" + ], + [ + "2026-11-04T22:30:50Z", + "DBPoolSaturated", + "resolved", + "", + "", + "2026-11-04T22:30:24Z" + ], + [ + "2026-11-04T22:31:10Z", + "JobsOverdue", + "pending", + "2026-11-04T22:31:03.187213033Z", + "3e+00", + "2026-11-04T22:30:24Z" + ], + [ + "2026-11-04T22:32:10Z", + "DBPoolSaturated", + "pending", + "2026-11-04T22:32:03.187213033Z", + "3.3898649816777792e-03", + "2026-11-04T22:30:24Z" + ], + [ + "2026-11-04T22:32:40Z", + "QueueOldestJobAgeHigh", + "pending", + "2026-11-04T22:32:33.187213033Z", + "1.32959697e+02", + "2026-11-04T22:30:24Z" + ], + [ + "2026-11-04T22:33:10Z", + "JobsOverdue", + "firing", + "2026-11-04T22:31:03.187213033Z", + "2e+01", + "2026-11-04T22:30:24Z" + ], + [ + "2026-11-04T22:33:10Z", + "JobsOverdue", + "resolved", + "", + "", + "2026-11-04T22:30:24Z" + ], + [ + "2026-11-04T22:37:00Z", + "DBPoolSaturated", + "resolved", + "", + "", + "2026-11-04T22:30:24Z" + ], + [ + "2026-11-04T22:40:40Z", + "QueueOldestJobAgeCritical", + "pending", + "2026-11-04T22:40:33.187213033Z", + "6.12958759e+02", + "2026-11-04T22:30:24Z" + ], + [ + "2026-11-04T22:42:40Z", + "QueueOldestJobAgeHigh", + "firing", + "2026-11-04T22:32:33.187213033Z", + "7.32958909e+02", + "2026-11-04T22:30:24Z" + ], + [ + "2026-11-04T22:42:40Z", + "QueueOldestJobAgeHigh", + "resolved", + "", + "", + "2026-11-04T22:30:24Z" + ], + [ + "2026-11-04T22:45:41Z", + "JobsOverdue", + "resolved", + "", + "", + "2026-11-04T22:30:24Z" + ], + [ + "2026-11-04T22:45:41Z", + "QueueOldestJobAgeCritical", + "resolved", + "", + "", + "2026-11-04T22:30:24Z" + ], + [ + "2026-11-04T22:45:41Z", + "QueueOldestJobAgeHigh", + "resolved", + "", + "", + "2026-11-04T22:30:24Z" + ], + [ + "2026-11-04T22:46:21Z", + "TTRErrorBudgetFastBurn", + "firing", + "2026-11-04T22:46:18.187213033Z", + "1.5503875968992242e-01", + "2026-11-04T22:30:24Z" + ], + [ + "2026-11-04T22:47:31Z", + "TTRErrorBudgetFastBurn", + "resolved", + "", + "", + "2026-11-04T22:30:24Z" + ], + [ + "2026-11-04T22:47:41Z", + "TTRErrorBudgetFastBurn", + "firing", + "2026-11-04T22:47:33.187213033Z", + "1.5625e-01", + "2026-11-04T22:30:24Z" + ], + [ + "2026-11-04T22:48:31Z", + "TTRErrorBudgetFastBurn", + "resolved", + "", + "", + "2026-11-04T22:30:24Z" + ], + [ + "2026-11-04T22:49:11Z", + "TTRErrorBudgetFastBurn", + "firing", + "2026-11-04T22:49:03.187213033Z", + "1.6535433070866146e-01", + "2026-11-04T22:30:24Z" + ], + [ + "2026-11-04T22:49:31Z", + "TTRErrorBudgetFastBurn", + "resolved", + "", + "", + "2026-11-04T22:30:24Z" + ], + [ + "2026-11-04T22:58:11Z", + "TTRErrorBudgetFastBurn", + "firing", + "2026-11-04T22:58:08.187213033Z", + "1.640625e-01", + "2026-11-04T22:30:24Z" + ], + [ + "2026-11-04T22:58:21Z", + "TTRErrorBudgetFastBurn", + "resolved", + "", + "", + "2026-11-04T22:30:24Z" + ], + [ + "2026-11-04T23:02:42Z", + "TTRErrorBudgetFastBurn", + "firing", + "2026-11-04T23:02:38.187213033Z", + "1.6279069767441856e-01", + "2026-11-04T22:30:24Z" + ], + [ + "2026-11-04T23:02:52Z", + "DBPoolSaturated", + "pending", + "2026-11-04T23:02:48.187213033Z", + "3.389830508474576e-03", + "2026-11-04T22:30:24Z" + ], + [ + "2026-11-04T23:02:52Z", + "TTRErrorBudgetFastBurn", + "resolved", + "", + "", + "2026-11-04T22:30:24Z" + ] +] diff --git a/evidence/lab6/track2/full/baseline-load.json b/evidence/lab6/track2/full/baseline-load.json new file mode 100644 index 0000000..039be28 --- /dev/null +++ b/evidence/lab6/track2/full/baseline-load.json @@ -0,0 +1,26 @@ +{ + "base_url": "http://localhost:8080", + "rate": 0.2, + "duration_s": 1195.01, + "scheduled": 240, + "counters": { + "accepted": 48, + "ready": 48, + "failed": 0, + "messages": 192, + "uploads": 48, + "dropped": 0 + }, + "failures": 0, + "failure_samples": [], + "latency_ms": { + "p50": 4.7, + "p95": 7.0, + "p99": 21.0 + }, + "ttr_ms": { + "p50": 326.5, + "p95": 942.1, + "p99": 1247.4 + } +} diff --git a/evidence/lab6/track2/full/baseline.json b/evidence/lab6/track2/full/baseline.json new file mode 100644 index 0000000..bc2fe5d --- /dev/null +++ b/evidence/lab6/track2/full/baseline.json @@ -0,0 +1,12 @@ +{ + "api_error_5m": "0", + "api_error_1h": "0", + "api_error_30m": "0", + "api_error_6h": "0", + "ttr_bad_5m": "0.08333333333333326", + "ttr_bad_1h": "0", + "queue_oldest": "0", + "queue_depth": "0", + "jobs_overdue": "0", + "worker_busy": "0" +} diff --git a/evidence/lab6/track2/full/burst-load.json b/evidence/lab6/track2/full/burst-load.json new file mode 100644 index 0000000..ad5a505 --- /dev/null +++ b/evidence/lab6/track2/full/burst-load.json @@ -0,0 +1,37 @@ +{ + "base_url": "http://localhost:8080", + "rate": 0.2, + "duration_s": 715.01, + "scheduled": 144, + "counters": { + "accepted": 24, + "ready": 24, + "failed": 25, + "messages": 115, + "uploads": 24, + "dropped": 0 + }, + "failures": 25, + "failure_samples": [ + "Failure: POST /api/v1/chats/01a1a85a-f8ac-7968-951c-0d94a6468bd7/messages: expected [201], received 503", + "Failure: POST /api/v1/chats/01a1a85a-f8ac-7968-951c-0d94a6468bd7/messages: expected [201], received 503", + "Failure: POST /api/v1/chats/01a1a85a-f8ac-7968-951c-0d94a6468bd7/attachments: expected [202], received 503", + "Failure: POST /api/v1/chats/01a1a85a-f8ac-7968-951c-0d94a6468bd7/messages: expected [201], received 503", + "Failure: POST /api/v1/chats/01a1a85a-f8ac-7968-951c-0d94a6468bd7/messages: expected [201], received 503", + "Failure: POST /api/v1/chats/01a1a85a-f8ac-7968-951c-0d94a6468bd7/messages: expected [201], received 503", + "Failure: POST /api/v1/chats/01a1a85a-f8ac-7968-951c-0d94a6468bd7/messages: expected [201], received 503", + "Failure: POST /api/v1/chats/01a1a85a-f8ac-7968-951c-0d94a6468bd7/messages: expected [201], received 503", + "Failure: POST /api/v1/chats/01a1a85a-f8ac-7968-951c-0d94a6468bd7/messages: expected [201], received 503", + "Failure: POST /api/v1/chats/01a1a85a-f8ac-7968-951c-0d94a6468bd7/attachments: expected [202], received 503" + ], + "latency_ms": { + "p50": 5.0, + "p95": 7.7, + "p99": 27.8 + }, + "ttr_ms": { + "p50": 632.0, + "p95": 649.5, + "p99": 661.3 + } +} diff --git a/evidence/lab6/track2/full/burst.json b/evidence/lab6/track2/full/burst.json new file mode 100644 index 0000000..aa59046 --- /dev/null +++ b/evidence/lab6/track2/full/burst.json @@ -0,0 +1,26 @@ +{ + "active": { + "api_error_5m": "0.06521739130434782", + "api_error_1h": "0.005059021922428331", + "api_error_30m": "0.010489510489510488", + "api_error_6h": "0.003196590303676079", + "ttr_bad_5m": "0", + "ttr_bad_1h": "0", + "queue_oldest": "0", + "queue_depth": "0", + "jobs_overdue": "0", + "worker_busy": "0" + }, + "after": { + "api_error_5m": "0", + "api_error_1h": "0.021496130696474637", + "api_error_30m": "0.04504504504504504", + "api_error_6h": "0.012013455069678039", + "ttr_bad_5m": "0", + "ttr_bad_1h": "0", + "queue_oldest": "0", + "queue_depth": "0", + "jobs_overdue": "0", + "worker_busy": "0" + } +} diff --git a/evidence/lab6/track2/full/false-positive-load.json b/evidence/lab6/track2/full/false-positive-load.json new file mode 100644 index 0000000..da24ff0 --- /dev/null +++ b/evidence/lab6/track2/full/false-positive-load.json @@ -0,0 +1,26 @@ +{ + "base_url": "http://localhost:8080", + "rate": 0.2, + "duration_s": 1195.02, + "scheduled": 240, + "counters": { + "accepted": 48, + "ready": 48, + "failed": 0, + "messages": 192, + "uploads": 48, + "dropped": 0 + }, + "failures": 0, + "failure_samples": [], + "latency_ms": { + "p50": 4.8, + "p95": 7.0, + "p99": 8.2 + }, + "ttr_ms": { + "p50": 638.4, + "p95": 945.7, + "p99": 954.5 + } +} diff --git a/evidence/lab6/track2/full/final.json b/evidence/lab6/track2/full/final.json new file mode 100644 index 0000000..a14e2f6 --- /dev/null +++ b/evidence/lab6/track2/full/final.json @@ -0,0 +1,12 @@ +{ + "api_error_5m": "0", + "api_error_1h": "0", + "api_error_30m": "0", + "api_error_6h": "0.04090909090909091", + "ttr_bad_5m": "0", + "ttr_bad_1h": "0.15748031496062986", + "queue_oldest": "0", + "queue_depth": "0", + "jobs_overdue": "0", + "worker_busy": "0" +} diff --git a/evidence/lab6/track2/full/phases.json b/evidence/lab6/track2/full/phases.json new file mode 100644 index 0000000..ba9a654 --- /dev/null +++ b/evidence/lab6/track2/full/phases.json @@ -0,0 +1,58 @@ +[ + { + "phase": "warmup", + "started_utc": "2026-11-04T19:28:25Z", + "finished_utc": "2026-11-04T20:38:20Z", + "duration_s": 4195.3, + "injection_utc": "", + "restore_utc": "" + }, + { + "phase": "baseline", + "started_utc": "2026-11-04T20:38:20Z", + "finished_utc": "2026-11-04T20:58:15Z", + "duration_s": 1195.6, + "injection_utc": "", + "restore_utc": "" + }, + { + "phase": "burst", + "started_utc": "2026-11-04T20:58:16Z", + "finished_utc": "2026-11-04T21:10:11Z", + "duration_s": 715.6, + "injection_utc": "2026-11-04T20:58:26Z", + "restore_utc": "2026-11-04T21:00:26Z" + }, + { + "phase": "sustained", + "started_utc": "2026-11-04T21:10:11Z", + "finished_utc": "2026-11-04T21:30:17Z", + "duration_s": 1206.0, + "injection_utc": "2026-11-04T21:10:21Z", + "restore_utc": "2026-11-04T21:25:27Z" + }, + { + "phase": "resolution_wait", + "started_utc": "2026-11-04T21:30:17Z", + "finished_utc": "2026-11-04T22:30:14Z", + "duration_s": 3596.5, + "injection_utc": "", + "restore_utc": "" + }, + { + "phase": "ttr", + "started_utc": "2026-11-04T22:30:14Z", + "finished_utc": "2026-11-04T22:45:44Z", + "duration_s": 930.8, + "injection_utc": "2026-11-04T22:30:24Z", + "restore_utc": "2026-11-04T22:45:24Z" + }, + { + "phase": "false-positive", + "started_utc": "2026-11-04T22:45:44Z", + "finished_utc": "2026-11-04T23:05:40Z", + "duration_s": 1195.4, + "injection_utc": "", + "restore_utc": "" + } +] diff --git a/evidence/lab6/track2/full/preflight-load.json b/evidence/lab6/track2/full/preflight-load.json new file mode 100644 index 0000000..8a31591 --- /dev/null +++ b/evidence/lab6/track2/full/preflight-load.json @@ -0,0 +1,26 @@ +{ + "base_url": "http://localhost:8080", + "rate": 1.0, + "duration_s": 2.26, + "scheduled": 3, + "counters": { + "accepted": 2, + "ready": 2, + "failed": 0, + "messages": 1, + "uploads": 2, + "dropped": 0 + }, + "failures": 0, + "failure_samples": [], + "latency_ms": { + "p50": 4.7, + "p95": 4.7, + "p99": 4.7 + }, + "ttr_ms": { + "p50": 1240.4, + "p95": 1246.1, + "p99": 1246.1 + } +} diff --git a/evidence/lab6/track2/full/resolution-load.json b/evidence/lab6/track2/full/resolution-load.json new file mode 100644 index 0000000..cd44207 --- /dev/null +++ b/evidence/lab6/track2/full/resolution-load.json @@ -0,0 +1,26 @@ +{ + "base_url": "http://localhost:8080", + "rate": 0.2, + "duration_s": 3595.96, + "scheduled": 720, + "counters": { + "accepted": 145, + "ready": 145, + "failed": 0, + "messages": 575, + "uploads": 145, + "dropped": 0 + }, + "failures": 0, + "failure_samples": [], + "latency_ms": { + "p50": 4.5, + "p95": 7.6, + "p99": 13.1 + }, + "ttr_ms": { + "p50": 1243.8, + "p95": 1268.5, + "p99": 1274.7 + } +} diff --git a/evidence/lab6/track2/full/snapshots/baseline-2026-11-04T20-58-16Z.json b/evidence/lab6/track2/full/snapshots/baseline-2026-11-04T20-58-16Z.json new file mode 100644 index 0000000..bc2fe5d --- /dev/null +++ b/evidence/lab6/track2/full/snapshots/baseline-2026-11-04T20-58-16Z.json @@ -0,0 +1,12 @@ +{ + "api_error_5m": "0", + "api_error_1h": "0", + "api_error_30m": "0", + "api_error_6h": "0", + "ttr_bad_5m": "0.08333333333333326", + "ttr_bad_1h": "0", + "queue_oldest": "0", + "queue_depth": "0", + "jobs_overdue": "0", + "worker_busy": "0" +} diff --git a/evidence/lab6/track2/full/snapshots/burst-active-2026-11-04T20-58-56Z.json b/evidence/lab6/track2/full/snapshots/burst-active-2026-11-04T20-58-56Z.json new file mode 100644 index 0000000..aa7c0ae --- /dev/null +++ b/evidence/lab6/track2/full/snapshots/burst-active-2026-11-04T20-58-56Z.json @@ -0,0 +1,12 @@ +{ + "api_error_5m": "0.06521739130434782", + "api_error_1h": "0.005059021922428331", + "api_error_30m": "0.010489510489510488", + "api_error_6h": "0.003196590303676079", + "ttr_bad_5m": "0", + "ttr_bad_1h": "0", + "queue_oldest": "0", + "queue_depth": "0", + "jobs_overdue": "0", + "worker_busy": "0" +} diff --git a/evidence/lab6/track2/full/snapshots/burst-after-2026-11-04T21-10-11Z.json b/evidence/lab6/track2/full/snapshots/burst-after-2026-11-04T21-10-11Z.json new file mode 100644 index 0000000..516a2ff --- /dev/null +++ b/evidence/lab6/track2/full/snapshots/burst-after-2026-11-04T21-10-11Z.json @@ -0,0 +1,12 @@ +{ + "api_error_5m": "0", + "api_error_1h": "0.021496130696474637", + "api_error_30m": "0.04504504504504504", + "api_error_6h": "0.012013455069678039", + "ttr_bad_5m": "0", + "ttr_bad_1h": "0", + "queue_oldest": "0", + "queue_depth": "0", + "jobs_overdue": "0", + "worker_busy": "0" +} diff --git a/evidence/lab6/track2/full/snapshots/final-2026-11-04T23-05-40Z.json b/evidence/lab6/track2/full/snapshots/final-2026-11-04T23-05-40Z.json new file mode 100644 index 0000000..a14e2f6 --- /dev/null +++ b/evidence/lab6/track2/full/snapshots/final-2026-11-04T23-05-40Z.json @@ -0,0 +1,12 @@ +{ + "api_error_5m": "0", + "api_error_1h": "0", + "api_error_30m": "0", + "api_error_6h": "0.04090909090909091", + "ttr_bad_5m": "0", + "ttr_bad_1h": "0.15748031496062986", + "queue_oldest": "0", + "queue_depth": "0", + "jobs_overdue": "0", + "worker_busy": "0" +} diff --git a/evidence/lab6/track2/full/snapshots/final-summary-2026-11-04T23-05-41Z.json b/evidence/lab6/track2/full/snapshots/final-summary-2026-11-04T23-05-41Z.json new file mode 100644 index 0000000..a14e2f6 --- /dev/null +++ b/evidence/lab6/track2/full/snapshots/final-summary-2026-11-04T23-05-41Z.json @@ -0,0 +1,12 @@ +{ + "api_error_5m": "0", + "api_error_1h": "0", + "api_error_30m": "0", + "api_error_6h": "0.04090909090909091", + "ttr_bad_5m": "0", + "ttr_bad_1h": "0.15748031496062986", + "queue_oldest": "0", + "queue_depth": "0", + "jobs_overdue": "0", + "worker_busy": "0" +} diff --git a/evidence/lab6/track2/full/snapshots/resolution-2026-11-04T22-30-14Z.json b/evidence/lab6/track2/full/snapshots/resolution-2026-11-04T22-30-14Z.json new file mode 100644 index 0000000..e3c530c --- /dev/null +++ b/evidence/lab6/track2/full/snapshots/resolution-2026-11-04T22-30-14Z.json @@ -0,0 +1,12 @@ +{ + "api_error_5m": "0", + "api_error_1h": "0", + "api_error_30m": "0", + "api_error_6h": "0.054344972433709636", + "ttr_bad_5m": "0", + "ttr_bad_1h": "0", + "queue_oldest": "0", + "queue_depth": "0", + "jobs_overdue": "0", + "worker_busy": "0" +} diff --git a/evidence/lab6/track2/full/snapshots/sustained-active-2026-11-04T21-10-52Z.json b/evidence/lab6/track2/full/snapshots/sustained-active-2026-11-04T21-10-52Z.json new file mode 100644 index 0000000..322ce70 --- /dev/null +++ b/evidence/lab6/track2/full/snapshots/sustained-active-2026-11-04T21-10-52Z.json @@ -0,0 +1,12 @@ +{ + "api_error_5m": "0.029850746268656716", + "api_error_1h": "0.024126455906821963", + "api_error_30m": "0.048739495798319335", + "api_error_6h": "0.01360863444392304", + "ttr_bad_5m": "0.08333333333333326", + "ttr_bad_1h": "0.007194244604316502", + "queue_oldest": "0.443175", + "queue_depth": "1", + "jobs_overdue": "0", + "worker_busy": "0" +} diff --git a/evidence/lab6/track2/full/snapshots/sustained-after-2026-11-04T21-30-17Z.json b/evidence/lab6/track2/full/snapshots/sustained-after-2026-11-04T21-30-17Z.json new file mode 100644 index 0000000..009db96 --- /dev/null +++ b/evidence/lab6/track2/full/snapshots/sustained-after-2026-11-04T21-30-17Z.json @@ -0,0 +1,12 @@ +{ + "api_error_5m": "0.04081632653061224", + "api_error_1h": "0.19291705498602052", + "api_error_30m": "0.3614931237721022", + "api_error_6h": "0.08614232209737828", + "ttr_bad_5m": "0.09341449406517988", + "ttr_bad_1h": "0.009615384615384581", + "queue_oldest": "0", + "queue_depth": "0", + "jobs_overdue": "0", + "worker_busy": "0" +} diff --git a/evidence/lab6/track2/full/snapshots/ttr-after-2026-11-04T22-45-44Z.json b/evidence/lab6/track2/full/snapshots/ttr-after-2026-11-04T22-45-44Z.json new file mode 100644 index 0000000..1d52303 --- /dev/null +++ b/evidence/lab6/track2/full/snapshots/ttr-after-2026-11-04T22-45-44Z.json @@ -0,0 +1,12 @@ +{ + "api_error_5m": "0", + "api_error_1h": "0", + "api_error_30m": "0", + "api_error_6h": "0.04438250428816467", + "ttr_bad_5m": null, + "ttr_bad_1h": "0.15564521484105343", + "queue_oldest": "0", + "queue_depth": "0", + "jobs_overdue": "0", + "worker_busy": "0" +} diff --git a/evidence/lab6/track2/full/snapshots/warmup-2026-11-04T20-38-20Z.json b/evidence/lab6/track2/full/snapshots/warmup-2026-11-04T20-38-20Z.json new file mode 100644 index 0000000..e363299 --- /dev/null +++ b/evidence/lab6/track2/full/snapshots/warmup-2026-11-04T20-38-20Z.json @@ -0,0 +1,12 @@ +{ + "api_error_5m": "0", + "api_error_1h": "0", + "api_error_30m": "0", + "api_error_6h": "0", + "ttr_bad_5m": "0", + "ttr_bad_1h": "0", + "queue_oldest": "0", + "queue_depth": "0", + "jobs_overdue": "0", + "worker_busy": "0" +} diff --git a/evidence/lab6/track2/full/summary.md b/evidence/lab6/track2/full/summary.md new file mode 100644 index 0000000..c103b72 --- /dev/null +++ b/evidence/lab6/track2/full/summary.md @@ -0,0 +1,82 @@ +# Full Track 2 run + +Phases: +```json +[ + { + "phase": "warmup", + "started_utc": "2026-11-04T19:28:25Z", + "finished_utc": "2026-11-04T20:38:20Z", + "duration_s": 4195.3, + "injection_utc": "", + "restore_utc": "" + }, + { + "phase": "baseline", + "started_utc": "2026-11-04T20:38:20Z", + "finished_utc": "2026-11-04T20:58:15Z", + "duration_s": 1195.6, + "injection_utc": "", + "restore_utc": "" + }, + { + "phase": "burst", + "started_utc": "2026-11-04T20:58:16Z", + "finished_utc": "2026-11-04T21:10:11Z", + "duration_s": 715.6, + "injection_utc": "2026-11-04T20:58:26Z", + "restore_utc": "2026-11-04T21:00:26Z" + }, + { + "phase": "sustained", + "started_utc": "2026-11-04T21:10:11Z", + "finished_utc": "2026-11-04T21:30:17Z", + "duration_s": 1206.0, + "injection_utc": "2026-11-04T21:10:21Z", + "restore_utc": "2026-11-04T21:25:27Z" + }, + { + "phase": "resolution_wait", + "started_utc": "2026-11-04T21:30:17Z", + "finished_utc": "2026-11-04T22:30:14Z", + "duration_s": 3596.5, + "injection_utc": "", + "restore_utc": "" + }, + { + "phase": "ttr", + "started_utc": "2026-11-04T22:30:14Z", + "finished_utc": "2026-11-04T22:45:44Z", + "duration_s": 930.8, + "injection_utc": "2026-11-04T22:30:24Z", + "restore_utc": "2026-11-04T22:45:24Z" + }, + { + "phase": "false-positive", + "started_utc": "2026-11-04T22:45:44Z", + "finished_utc": "2026-11-04T23:05:40Z", + "duration_s": 1195.4, + "injection_utc": "", + "restore_utc": "" + } +] +``` + +Final snapshot: +```json +{ + "api_error_5m": "0", + "api_error_1h": "0", + "api_error_30m": "0", + "api_error_6h": "0.04090909090909091", + "ttr_bad_5m": "0", + "ttr_bad_1h": "0.15748031496062986", + "queue_oldest": "0", + "queue_depth": "0", + "jobs_overdue": "0", + "worker_busy": "0" +} +``` + +Aborted: False +Restored: True diff --git a/evidence/lab6/track2/full/sustained-load.json b/evidence/lab6/track2/full/sustained-load.json new file mode 100644 index 0000000..3a549f8 --- /dev/null +++ b/evidence/lab6/track2/full/sustained-load.json @@ -0,0 +1,37 @@ +{ + "base_url": "http://localhost:8080", + "rate": 0.2, + "duration_s": 1195.02, + "scheduled": 240, + "counters": { + "accepted": 13, + "ready": 12, + "failed": 182, + "messages": 192, + "uploads": 13, + "dropped": 0 + }, + "failures": 182, + "failure_samples": [ + "ready: Failure: GET /api/v1/attachments/01a1a865-e530-7199-bfbb-f394966c5da1: expected [200], received 401", + "Failure: POST /api/v1/chats/01a1a865-e526-7aba-ba9d-ec6d99010c13/messages: expected [201], received 401", + "Failure: POST /api/v1/chats/01a1a865-e526-7aba-ba9d-ec6d99010c13/attachments: expected [202], received 503", + "Failure: POST /api/v1/chats/01a1a865-e526-7aba-ba9d-ec6d99010c13/messages: expected [201], received 503", + "Failure: POST /api/v1/chats/01a1a865-e526-7aba-ba9d-ec6d99010c13/messages: expected [201], received 503", + "Failure: POST /api/v1/chats/01a1a865-e526-7aba-ba9d-ec6d99010c13/messages: expected [201], received 503", + "Failure: POST /api/v1/chats/01a1a865-e526-7aba-ba9d-ec6d99010c13/messages: expected [201], received 503", + "Failure: POST /api/v1/chats/01a1a865-e526-7aba-ba9d-ec6d99010c13/messages: expected [201], received 503", + "Failure: POST /api/v1/chats/01a1a865-e526-7aba-ba9d-ec6d99010c13/messages: expected [201], received 503", + "Failure: POST /api/v1/chats/01a1a865-e526-7aba-ba9d-ec6d99010c13/messages: expected [201], received 503" + ], + "latency_ms": { + "p50": 4.8, + "p95": 7.0, + "p99": 22.0 + }, + "ttr_ms": { + "p50": 630.2, + "p95": 644.2, + "p99": 644.2 + } +} diff --git a/evidence/lab6/track2/full/sustained.json b/evidence/lab6/track2/full/sustained.json new file mode 100644 index 0000000..0746482 --- /dev/null +++ b/evidence/lab6/track2/full/sustained.json @@ -0,0 +1,27 @@ +{ + "active": { + "api_error_5m": "0.029850746268656716", + "api_error_1h": "0.024126455906821963", + "api_error_30m": "0.048739495798319335", + "api_error_6h": "0.01360863444392304", + "ttr_bad_5m": "0.08333333333333326", + "ttr_bad_1h": "0.007194244604316502", + "queue_oldest": "0.443175", + "queue_depth": "1", + "jobs_overdue": "0", + "worker_busy": "0" + }, + "after": { + "api_error_5m": "0.04081632653061224", + "api_error_1h": "0.19291705498602052", + "api_error_30m": "0.3614931237721022", + "api_error_6h": "0.08614232209737828", + "ttr_bad_5m": "0.09341449406517988", + "ttr_bad_1h": "0.009615384615384581", + "queue_oldest": "0", + "queue_depth": "0", + "jobs_overdue": "0", + "worker_busy": "0" + }, + "queue_drained": true +} diff --git a/evidence/lab6/track2/full/ttd-ttr.md b/evidence/lab6/track2/full/ttd-ttr.md new file mode 100644 index 0000000..1f15949 --- /dev/null +++ b/evidence/lab6/track2/full/ttd-ttr.md @@ -0,0 +1,79 @@ +# Track 2: полный прогон — TTD/TTR + +Прогон: `scripts/lab6_track2_full.py` +Старт: `2026-11-04T19:28:25Z`; завершение: `2026-11-04T23:05:40Z`. +Стенд: 2 API, relay, worker, PostgreSQL, S3, RabbitMQ, OTel Collector, +Prometheus/Loki/Tempo/Grafana. Нагрузка: open-loop 0.2 req/s, 20% uploads, +базовый набор — 2 API-реплики. + +## Warmup + +- 70 минут, 840 запланированных операций: 672 сообщения, 168 uploads. +- `failed=0`, `dropped=0`; все 168 uploads дошли до `ready`. +- HTTP latency p50/p95/p99 = 5.3 / 10.1 / 15.1 ms. +- TTR p50/p95/p99 = 640.9 / 1246.4 / 1251.9 ms. +- Токен сессии обновлялся за 10 минут до TTL (иначе 70-минутный warmup + получал 401 после 60 минут; этот дефект harness исправлен). + +## Burst: 2 минуты PostgreSQL pause + +- Инъекция: `20:58:26Z`, восстановление: `21:00:26Z`. +- `DBPoolSaturated` дошёл только до `pending` в `21:00:36Z` (+2m10s), + `resolved` в `21:05:36Z`; **firing/page не было**. +- `APIErrorBudgetFastBurn`/`SlowBurn` не сработали. +- Снимок во время инъекции: `api_error_5m=6.52%`, `api_error_1h=0.51%`, + `api_error_30m=1.05%`; после восстановления `api_error_5m=0`, + `api_error_1h=2.15%`, `api_error_30m=4.50%`. + +## Sustained: 15 минут PostgreSQL stop + +- Инъекция: `21:10:21Z`; восстановление: `21:25:27Z`; + восстановление readiness/worker подтверждено. +- `APIErrorBudgetSlowBurn`: `firing` в `21:13:56Z` — **TTD 3m35s** + (215 s; alert `active_at=21:13:53Z`). +- `APIErrorBudgetFastBurn`: `firing` в `21:15:36Z` — **TTD 5m15s** + (315 s). +- `QueueMetricsStale`: pending `21:15:26Z`, firing `21:17:26Z`; это + следствие недоступности relay, не отдельный инцидент. +- Снимок во время инъекции: `api_error_5m=2.99%`, `api_error_1h=2.41%`, + `api_error_30m=4.87%`, `queue_oldest=0.44 s`, `queue_depth=1`. +- После восстановления: `api_error_5m=4.08%`, `api_error_1h=19.29%`, + `api_error_30m=36.15%`; `queue_drained=true`. +- `APIErrorBudgetSlowBurn` `resolved` в `21:54:08Z` — **TTR 43m47s** + от инъекции. Это время жизни 6h/30m burn-rate окон, а не время + восстановления процесса; фактическое readiness восстановлено в + `21:25:27Z` (+15m06s). + +## TTR: worker остановлен на 15 минут + +- Инъекция: `22:30:24Z`; worker восстановлен: `22:45:24Z`. +- `JobsOverdue`: pending `22:31:10Z` (+46 s), firing `22:33:10Z` + (+2m46s); resolved `22:45:41Z` (+17 s после восстановления worker, + +15m17s от инъекции). +- `QueueOldestJobAgeHigh`: pending `22:32:40Z` (+2m16s), firing + `22:42:40Z` (+12m16s); resolved `22:45:41Z`. +- `QueueOldestJobAgeCritical`: pending `22:40:40Z` (+10m16s); до restore + firing не успел; resolved `22:45:41Z`. +- `ttr-load.json`: 180 операций, 20 uploads accepted, 0 ready, 180 failed. + Это ожидаемо: worker остановлен, а клиент ждёт ready только 10 s; + фаза проверяет алерты и восстановление, а не перцентиль TTR. + +## False-positive control + +- Нормальная нагрузка: `22:45:44Z–23:05:40Z`, новых инъекций нет. +- `TTRErrorBudgetFastBurn` ещё срабатывал в `22:46:21Z–23:02:52Z` + (5 коротких firing/resolved) — это остаточный 1h TTR-бюджет от + предыдущей TTR-фазы, а не новый инцидент. Чистого «нулевого» окна + после TTR не было; ограничение зафиксировано в отчёте. +- Финальный снимок: `api_error_5m=0`, `api_error_30m=0`, + `api_error_1h=0`; `ttr_bad_5m=0`, `ttr_bad_1h=15.75%`; + `queue_oldest=0`, `queue_depth=0`, `jobs_overdue=0`, `worker_busy=0`. + +## Ограничения измерений + +- Burst и sustained используют один и тот же 1h/6h burn-rate ряд; + остаточные ошибки burst видны в 1h-окне (2.15% после burst), поэтому + sustained TTD — это обнаружение на уже частично израсходованном бюджете. +- `APIErrorBudgetSlowBurn` использует 6h+30m окна; его TTR не равен + времени восстановления сервиса. +- Все компоненты single-node; HA-поведение не заявляется. diff --git a/evidence/lab6/track2/full/ttr-load.json b/evidence/lab6/track2/full/ttr-load.json new file mode 100644 index 0000000..83c6577 --- /dev/null +++ b/evidence/lab6/track2/full/ttr-load.json @@ -0,0 +1,37 @@ +{ + "base_url": "http://localhost:8080", + "rate": 0.2, + "duration_s": 895.02, + "scheduled": 180, + "counters": { + "accepted": 20, + "ready": 0, + "failed": 180, + "messages": 0, + "uploads": 20, + "dropped": 0 + }, + "failures": 180, + "failure_samples": [ + "ready: Failure: attachment did not become ready within test deadline", + "ready: Failure: attachment did not become ready within test deadline", + "ready: Failure: attachment did not become ready within test deadline", + "ready: Failure: attachment did not become ready within test deadline", + "ready: Failure: attachment did not become ready within test deadline", + "ready: Failure: attachment did not become ready within test deadline", + "ready: Failure: attachment did not become ready within test deadline", + "ready: Failure: attachment did not become ready within test deadline", + "ready: Failure: attachment did not become ready within test deadline", + "ready: Failure: attachment did not become ready within test deadline" + ], + "latency_ms": { + "p50": null, + "p95": null, + "p99": null + }, + "ttr_ms": { + "p50": null, + "p95": null, + "p99": null + } +} diff --git a/evidence/lab6/track2/full/warmup-load.json b/evidence/lab6/track2/full/warmup-load.json new file mode 100644 index 0000000..e0a5205 --- /dev/null +++ b/evidence/lab6/track2/full/warmup-load.json @@ -0,0 +1,26 @@ +{ + "base_url": "http://localhost:8080", + "rate": 0.2, + "duration_s": 4195.02, + "scheduled": 840, + "counters": { + "accepted": 168, + "ready": 168, + "failed": 0, + "messages": 672, + "uploads": 168, + "dropped": 0 + }, + "failures": 0, + "failure_samples": [], + "latency_ms": { + "p50": 5.3, + "p95": 10.1, + "p99": 15.1 + }, + "ttr_ms": { + "p50": 640.9, + "p95": 1246.4, + "p99": 1251.9 + } +} diff --git a/evidence/lab6/track2/overdue-alert.txt b/evidence/lab6/track2/overdue-alert.txt new file mode 100644 index 0000000..670728e --- /dev/null +++ b/evidence/lab6/track2/overdue-alert.txt @@ -0,0 +1,9 @@ +Overdue alert evidence (local, 2026-11-04) +========================================= +Worker stopped, one upload accepted as queued. +At +30s: messenger_jobs_overdue = 0 +At +150s: messenger_jobs_overdue = 1 +At +180s: JobsOverdue = firing (for: 2m); QueueOldestJobAgeHigh = pending +Worker restarted; queue drained. +After drain: messenger_jobs_overdue = 0; Prometheus alerts = []. +This proves a firing -> resolved transition for the time-to-ready incident. diff --git a/evidence/lab6/track2/plan.md b/evidence/lab6/track2/plan.md new file mode 100644 index 0000000..2b69202 --- /dev/null +++ b/evidence/lab6/track2/plan.md @@ -0,0 +1,26 @@ +# Track 2 preregistered plan + +Hypothesis: the multi-window fast burn (1h + 5m, 14.4×) stays silent for a +2-minute PostgreSQL burst and fires for a sustained 15-minute outage; the +slow-burn pair (6h + 30m, 6×) is validated synthetically because this stand +cannot accumulate six hours of live data in one run. + +SLO windows: 7 days (Prometheus retention). API availability target 99.5% +(budget 50.4 min); time-to-ready target 99% ≤30s (budget 100.8 min). + +Phases: +1. Calibrate open-loop upload/message rate; use ≤50% of measured capacity. +2. Warmup ≥70 min so the 1h burn window is full; baseline 20 min. +3. Burst: pause PostgreSQL 2 min. Expected: no fast page; a counterfactual + 5m-only alert would have fired. Record edge SLI and per-route diagnostics. +4. Sustained: stop worker, stop PostgreSQL 15 min, restore both. Expected fast + page around 4m19s after injection; measure TTD and TTR_service separately + from TTR_alert (the 1h window clears later). +5. False-positive controls: 4xx traffic, 1% 5xx for 10 min, a 60–90s blip, + then normal load; count evaluations and firing events. +6. Runbook held-out check: another person gets only the alert name/time and uses + Grafana/Prometheus/Loki/Tempo; record transcript and time-to-cause. + +Evidence files: `*-load.json`, `*-alerts.csv`, `*-phases.json`, +`runbook-check.md`, `summary.md`. `promtool test rules` covers slow-burn with +synthetic 6h series; no live slow-burn claim is made. diff --git a/evidence/lab6/unit-test.txt b/evidence/lab6/unit-test.txt new file mode 100644 index 0000000..422d73b --- /dev/null +++ b/evidence/lab6/unit-test.txt @@ -0,0 +1,43 @@ +env -u APP_ENV -u SERVER_HOST -u SERVER_PORT -u SERVER_READ_HEADER_TIMEOUT -u SERVER_READ_TIMEOUT -u SERVER_SHUTDOWN_TIMEOUT -u SERVER_MAX_BODY_BYTES -u LOG_LEVEL -u LOG_FORMAT -u POSTGRES_HOST -u POSTGRES_PORT -u POSTGRES_DATABASE -u POSTGRES_USER -u POSTGRES_PASSWORD -u POSTGRES_SSL_MODE -u POSTGRES_MAX_CONNS -u POSTGRES_MIN_CONNS -u POSTGRES_MAX_CONN_LIFETIME -u POSTGRES_MAX_CONN_IDLE_TIME -u POSTGRES_CONNECT_TIMEOUT -u POSTGRES_QUERY_TIMEOUT -u REDIS_ENABLED -u REDIS_HOST -u REDIS_PORT -u REDIS_PASSWORD -u REDIS_DB -u REDIS_MAX_RETRIES -u REDIS_DIAL_TIMEOUT -u REDIS_READ_TIMEOUT -u REDIS_WRITE_TIMEOUT -u REDIS_POOL_SIZE -u CACHE_ENABLED -u CACHE_CHAT_LIST_TTL -u CACHE_LOCK_TTL -u CACHE_LOCK_WAIT_TIMEOUT -u SESSION_TTL_SECONDS -u IDEMPOTENCY_TTL_SECONDS -u API_REPLICAS -u API_CPU_LIMIT -u API_MEM_LIMIT -u POSTGRES_MAX_CONNS -u POSTGRES_CPU_LIMIT -u POSTGRES_MEM_LIMIT -u LB_STATS_PORT -u S3_ENDPOINT -u S3_PUBLIC_ENDPOINT -u S3_PORT -u S3_REGION -u S3_BUCKET -u S3_ACCESS_KEY_ID -u S3_SECRET_ACCESS_KEY -u MAX_UPLOAD_BYTES -u MAX_IMAGE_PIXELS -u S3_PRESIGN_TTL -u S3_SWEEP_INTERVAL -u S3_SWEEP_GRACE -u BROKER_USER -u BROKER_PASSWORD -u BROKER_VHOST -u BROKER_URL -u BROKER_EXCHANGE -u BROKER_QUEUE -u BROKER_DLX -u BROKER_DLQ -u BROKER_MANAGEMENT_PORT -u BROKER_CPU_LIMIT -u BROKER_MEM_LIMIT -u WORKER_CONCURRENCY -u WORKER_PREFETCH -u WORKER_CPU_LIMIT -u WORKER_MEM_LIMIT -u WORKER_SHUTDOWN_TIMEOUT -u WORKER_HEALTH_PORT -u PROCESSING_PIPELINE_VERSION -u PROCESSING_MAX_ATTEMPTS -u PROCESSING_JOB_TIMEOUT -u PROCESSING_LEASE_TTL -u PROCESSING_HEARTBEAT -u PROCESSING_RETRY_BASE -u PROCESSING_RETRY_CAP -u OUTBOX_POLL_INTERVAL -u OUTBOX_CLAIM_TTL -u OUTBOX_BATCH -u OUTBOX_REAPER_INTERVAL -u OUTBOX_RECONCILE_AFTER -u OUTBOX_RETENTION -u RELAY_CPU_LIMIT -u RELAY_MEM_LIMIT -u RELAY_HEALTH_PORT -u STAGING_ORPHAN_GRACE -u STAGING_FAILED_RETENTION -u ADMISSION_MAX_PENDING_PER_USER -u ADMISSION_MAX_PENDING -u ADMISSION_MAX_STAGED_BYTES -u ADMISSION_MAX_CONCURRENT_UPLOADS -u OTEL_EXPORTER_OTLP_ENDPOINT -u OTEL_EXPORTER_OTLP_PROTOCOL -u OTEL_RESOURCE_ATTRIBUTES -u OTEL_METRIC_EXPORT_INTERVAL -u TELEMETRY_ENABLED -u PROMETHEUS_PORT -u LOKI_PORT -u TEMPO_PORT -u GRAFANA_PORT -u OTEL_COLLECTOR_CPU_LIMIT -u OTEL_COLLECTOR_MEM_LIMIT -u PROMETHEUS_CPU_LIMIT -u PROMETHEUS_MEM_LIMIT -u LOKI_CPU_LIMIT -u LOKI_MEM_LIMIT -u TEMPO_CPU_LIMIT -u TEMPO_MEM_LIMIT -u GRAFANA_CPU_LIMIT -u GRAFANA_MEM_LIMIT go test -race -shuffle=on -count=1 -timeout=5m ./... +? mtusi-messenger/cmd/jobctl [no test files] +? mtusi-messenger/cmd/messenger [no test files] +? mtusi-messenger/cmd/migrate [no test files] +? mtusi-messenger/cmd/relay [no test files] +? mtusi-messenger/cmd/s3init [no test files] +? mtusi-messenger/cmd/worker [no test files] +? mtusi-messenger/internal/broker [no test files] +ok mtusi-messenger/internal/config 3.198s +ok mtusi-messenger/internal/domain 5.063s +? mtusi-messenger/internal/failpoint [no test files] +ok mtusi-messenger/internal/health 9.434s +ok mtusi-messenger/internal/imagecheck 2.795s +ok mtusi-messenger/internal/imageproc 8.860s +ok mtusi-messenger/internal/logger 5.419s +? mtusi-messenger/internal/outbox [no test files] +ok mtusi-messenger/internal/platform/cache 7.191s +? mtusi-messenger/internal/platform/cache/mocks [no test files] +? mtusi-messenger/internal/platform/instanceid [no test files] +ok mtusi-messenger/internal/platform/objectstore 7.683s +ok mtusi-messenger/internal/platform/password 2.131s +ok mtusi-messenger/internal/platform/token 2.099s +ok mtusi-messenger/internal/service/attachment 9.423s +? mtusi-messenger/internal/service/attachment/mocks [no test files] +ok mtusi-messenger/internal/service/chat 9.939s +? mtusi-messenger/internal/service/chat/mocks [no test files] +ok mtusi-messenger/internal/service/message 10.300s +? mtusi-messenger/internal/service/message/mocks [no test files] +ok mtusi-messenger/internal/service/session 11.441s +? mtusi-messenger/internal/service/session/mocks [no test files] +ok mtusi-messenger/internal/service/user 10.787s +? mtusi-messenger/internal/service/user/mocks [no test files] +ok mtusi-messenger/internal/storage/postgres 11.786s +? mtusi-messenger/internal/storage/postgres/internal/sqlcgen [no test files] +? mtusi-messenger/internal/storage/postgres/migrations [no test files] +? mtusi-messenger/internal/storage/redis [no test files] +? mtusi-messenger/internal/storage/redis/mocks [no test files] +ok mtusi-messenger/internal/telemetry 12.820s +ok mtusi-messenger/internal/transport/rest 14.628s +? mtusi-messenger/internal/transport/rest/internal/oas [no test files] +? mtusi-messenger/internal/transport/rest/mocks [no test files] +? mtusi-messenger/internal/worker [no test files] +? mtusi-messenger/tools/specgen [no test files] diff --git a/evidence/lab6/worker-stop.txt b/evidence/lab6/worker-stop.txt new file mode 100644 index 0000000..e781b21 --- /dev/null +++ b/evidence/lab6/worker-stop.txt @@ -0,0 +1,18 @@ +Worker stop scenario (local, 2026-11-04) +========================================== +$ ./scripts/stop-worker.sh + Container mtusi-messenger-lab6-worker-1 Stopped +$ python3 scripts/lab6_load.py --rate 1 --duration 3 --upload-ratio 1 --deadline 3 + (three upload requests were accepted as 202; wait_ready timed out because no worker) +$ max(messenger_queue_oldest_job_age_seconds) after 20s + {"value":"15.218417"} (seconds) +$ max(rabbitmq_queue_messages_ready{queue="attachment.process.v1"}) + {"value":"3"} +$ ./scripts/start-worker.sh + Container mtusi-messenger-lab6-worker-1 Healthy +$ max(messenger_queue_oldest_job_age_seconds) after drain + {"value":"0"} +$ max(rabbitmq_queue_messages_ready{queue="attachment.process.v1"}) after drain + {"value":"0"} +Business result: accepted jobs were not lost; worker drain made them ready. +Logs: `job claimed`/`attachment ready` include trace_id; job_id is redacted; bodies and filenames are absent. diff --git a/evidence/lab6/worker-stopped-load.json b/evidence/lab6/worker-stopped-load.json new file mode 100644 index 0000000..71cadc2 --- /dev/null +++ b/evidence/lab6/worker-stopped-load.json @@ -0,0 +1,30 @@ +{ + "base_url": "http://localhost:8080", + "rate": 1.0, + "duration_s": 5.12, + "scheduled": 3, + "counters": { + "accepted": 3, + "ready": 0, + "failed": 3, + "messages": 0, + "uploads": 3, + "dropped": 0 + }, + "failures": 3, + "failure_samples": [ + "ready: Failure: attachment did not become ready within test deadline", + "ready: Failure: attachment did not become ready within test deadline", + "ready: Failure: attachment did not become ready within test deadline" + ], + "latency_ms": { + "p50": null, + "p95": null, + "p99": null + }, + "ttr_ms": { + "p50": null, + "p95": null, + "p99": null + } +} diff --git a/evidence/track1/superseded/README.md b/evidence/track1/superseded/README.md deleted file mode 100644 index 824326b..0000000 --- a/evidence/track1/superseded/README.md +++ /dev/null @@ -1,22 +0,0 @@ -# Заменённые прогоны серии трека 1 - -Оба каталога сохранены как история: в них видны дефекты, которые нашло ревью. -Действующие артефакты лежат в `evidence/track1/` и воспроизводятся -`scripts/track1_series.sh`. - -## run1-wrong-budgets — бюджеты хранилищ записаны, но не применены - -`scripts/track1_scaling.sh` перенастраивал только API (`compose up -d --no-deps api`), -поэтому PostgreSQL продолжал работать с действующими 0.50 CPU / 384 MiB, тогда как в -`profile-*.json` попадало `512M` (серии `r`/`g`/`pool`) и `1.00` CPU (контроль -`db1cpu`). Контроль удвоения CPU БД в этом прогоне измерением не был. - -## run2-host-client — клиент на хосте терял соединения - -Бюджеты здесь уже применялись и проверялись по `docker inspect`, но генератор -работал на хосте через проброс порта. Под шквалом новых соединений forwarder хоста -отклонял их: 4 450-26 520 отказов на профиль (4-22 %), при этом в статистике HAProxy -`hrsp_5xx=0`, а в логах API нет ошибок — то есть отказы клиентские, а не от стенда -(разбор и контроль: `evidence/path-overhead/`). Из-за разного числа успешных запросов -загрузка PostgreSQL по профилям несопоставима, поэтому прогон заменён серией с -клиентом внутри VM (`CLIENT=vm`), где отказов нет. diff --git a/evidence/track1/superseded/run1-wrong-budgets/load-db1cpu.json b/evidence/track1/superseded/run1-wrong-budgets/load-db1cpu.json deleted file mode 100644 index e13e6ee..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/load-db1cpu.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.012, - "concurrency": 8, - "successful_requests": 98492, - "failed_requests": 0, - "error_ratio": 0.0, - "successful_rps": 1641.212, - "successful_latency_ms": { - "p50": 4.085, - "p95": 8.787, - "p99": 23.973 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} diff --git a/evidence/track1/superseded/run1-wrong-budgets/load-g10.json b/evidence/track1/superseded/run1-wrong-budgets/load-g10.json deleted file mode 100644 index 79a7ea0..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/load-g10.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.011, - "concurrency": 8, - "successful_requests": 99970, - "failed_requests": 0, - "error_ratio": 0.0, - "successful_rps": 1665.873, - "successful_latency_ms": { - "p50": 4.168, - "p95": 8.323, - "p99": 21.636 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} diff --git a/evidence/track1/superseded/run1-wrong-budgets/load-g15.json b/evidence/track1/superseded/run1-wrong-budgets/load-g15.json deleted file mode 100644 index 2736930..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/load-g15.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.017, - "concurrency": 8, - "successful_requests": 99132, - "failed_requests": 0, - "error_ratio": 0.0, - "successful_rps": 1651.746, - "successful_latency_ms": { - "p50": 4.094, - "p95": 8.631, - "p99": 24.272 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} diff --git a/evidence/track1/superseded/run1-wrong-budgets/load-pool10.json b/evidence/track1/superseded/run1-wrong-budgets/load-pool10.json deleted file mode 100644 index e8af33d..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/load-pool10.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.012, - "concurrency": 8, - "successful_requests": 97133, - "failed_requests": 222, - "error_ratio": 0.00228, - "successful_rps": 1618.552, - "successful_latency_ms": { - "p50": 4.394, - "p95": 8.205, - "p99": 20.61 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} diff --git a/evidence/track1/superseded/run1-wrong-budgets/load-pool5.json b/evidence/track1/superseded/run1-wrong-budgets/load-pool5.json deleted file mode 100644 index 6133963..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/load-pool5.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.027, - "concurrency": 8, - "successful_requests": 93849, - "failed_requests": 2, - "error_ratio": 2.1e-05, - "successful_rps": 1563.449, - "successful_latency_ms": { - "p50": 4.464, - "p95": 8.965, - "p99": 22.758 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} diff --git a/evidence/track1/superseded/run1-wrong-budgets/load-r1.json b/evidence/track1/superseded/run1-wrong-budgets/load-r1.json deleted file mode 100644 index 5c1fe71..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/load-r1.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.015, - "concurrency": 8, - "successful_requests": 100860, - "failed_requests": 0, - "error_ratio": 0.0, - "successful_rps": 1680.576, - "successful_latency_ms": { - "p50": 4.005, - "p95": 8.354, - "p99": 22.526 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} diff --git a/evidence/track1/superseded/run1-wrong-budgets/load-r2.json b/evidence/track1/superseded/run1-wrong-budgets/load-r2.json deleted file mode 100644 index 1aaf684..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/load-r2.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.011, - "concurrency": 8, - "successful_requests": 94054, - "failed_requests": 0, - "error_ratio": 0.0, - "successful_rps": 1567.279, - "successful_latency_ms": { - "p50": 4.474, - "p95": 9.495, - "p99": 20.649 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} diff --git a/evidence/track1/superseded/run1-wrong-budgets/load-r4.json b/evidence/track1/superseded/run1-wrong-budgets/load-r4.json deleted file mode 100644 index e6e824e..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/load-r4.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.013, - "concurrency": 8, - "successful_requests": 92928, - "failed_requests": 178, - "error_ratio": 0.001912, - "successful_rps": 1548.476, - "successful_latency_ms": { - "p50": 4.633, - "p95": 8.8, - "p99": 18.978 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} diff --git a/evidence/track1/superseded/run1-wrong-budgets/profile-db1cpu.json b/evidence/track1/superseded/run1-wrong-budgets/profile-db1cpu.json deleted file mode 100644 index 83ee4ba..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/profile-db1cpu.json +++ /dev/null @@ -1 +0,0 @@ -{"label":"db1cpu","replicas":2,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"1.0","postgres_mem_limit":"384M","postgres_max_conns":10} diff --git a/evidence/track1/superseded/run1-wrong-budgets/profile-g05.json b/evidence/track1/superseded/run1-wrong-budgets/profile-g05.json deleted file mode 100644 index 4f8b438..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/profile-g05.json +++ /dev/null @@ -1 +0,0 @@ -{"label":"g05","replicas":2,"total_cpu":0.5,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"0.50","postgres_mem_limit":"512M","postgres_max_conns":10} diff --git a/evidence/track1/superseded/run1-wrong-budgets/profile-g10.json b/evidence/track1/superseded/run1-wrong-budgets/profile-g10.json deleted file mode 100644 index 173884f..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/profile-g10.json +++ /dev/null @@ -1 +0,0 @@ -{"label":"g10","replicas":2,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"0.50","postgres_mem_limit":"512M","postgres_max_conns":10} diff --git a/evidence/track1/superseded/run1-wrong-budgets/profile-g15.json b/evidence/track1/superseded/run1-wrong-budgets/profile-g15.json deleted file mode 100644 index 33c3500..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/profile-g15.json +++ /dev/null @@ -1 +0,0 @@ -{"label":"g15","replicas":2,"total_cpu":1.5,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"0.50","postgres_mem_limit":"512M","postgres_max_conns":10} diff --git a/evidence/track1/superseded/run1-wrong-budgets/profile-pool10.json b/evidence/track1/superseded/run1-wrong-budgets/profile-pool10.json deleted file mode 100644 index 6e3246e..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/profile-pool10.json +++ /dev/null @@ -1 +0,0 @@ -{"label":"pool10","replicas":4,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"0.50","postgres_mem_limit":"512M","postgres_max_conns":10} diff --git a/evidence/track1/superseded/run1-wrong-budgets/profile-pool5.json b/evidence/track1/superseded/run1-wrong-budgets/profile-pool5.json deleted file mode 100644 index 374b1fd..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/profile-pool5.json +++ /dev/null @@ -1 +0,0 @@ -{"label":"pool5","replicas":4,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"0.50","postgres_mem_limit":"512M","postgres_max_conns":5} diff --git a/evidence/track1/superseded/run1-wrong-budgets/profile-r1.json b/evidence/track1/superseded/run1-wrong-budgets/profile-r1.json deleted file mode 100644 index e46b48b..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/profile-r1.json +++ /dev/null @@ -1 +0,0 @@ -{"label":"r1","replicas":1,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"0.50","postgres_mem_limit":"512M","postgres_max_conns":10} diff --git a/evidence/track1/superseded/run1-wrong-budgets/profile-r2.json b/evidence/track1/superseded/run1-wrong-budgets/profile-r2.json deleted file mode 100644 index 4bb29e7..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/profile-r2.json +++ /dev/null @@ -1 +0,0 @@ -{"label":"r2","replicas":2,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"0.50","postgres_mem_limit":"512M","postgres_max_conns":10} diff --git a/evidence/track1/superseded/run1-wrong-budgets/profile-r4.json b/evidence/track1/superseded/run1-wrong-budgets/profile-r4.json deleted file mode 100644 index 379dfd0..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/profile-r4.json +++ /dev/null @@ -1 +0,0 @@ -{"label":"r4","replicas":4,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"0.50","postgres_mem_limit":"512M","postgres_max_conns":10} diff --git a/evidence/track1/superseded/run1-wrong-budgets/scaling-fixed-budget.png b/evidence/track1/superseded/run1-wrong-budgets/scaling-fixed-budget.png deleted file mode 100644 index 10f0bfa..0000000 Binary files a/evidence/track1/superseded/run1-wrong-budgets/scaling-fixed-budget.png and /dev/null differ diff --git a/evidence/track1/superseded/run1-wrong-budgets/scaling-growth.png b/evidence/track1/superseded/run1-wrong-budgets/scaling-growth.png deleted file mode 100644 index e9ed6a2..0000000 Binary files a/evidence/track1/superseded/run1-wrong-budgets/scaling-growth.png and /dev/null differ diff --git a/evidence/track1/superseded/run1-wrong-budgets/stats-db1cpu.csv b/evidence/track1/superseded/run1-wrong-budgets/stats-db1cpu.csv deleted file mode 100644 index ae4b7d3..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/stats-db1cpu.csv +++ /dev/null @@ -1,101 +0,0 @@ -timestamp,container,cpu_percent,mem_usage -2026-10-16T14:23:04Z,mtusi-messenger-lab3-api-1,18.81%,164MiB / 384MiB -2026-10-16T14:23:04Z,mtusi-messenger-lab3-api-2,19.49%,165.3MiB / 384MiB -2026-10-16T14:23:04Z,mtusi-messenger-lab3-lb-1,14.54%,13.11MiB / 64MiB -2026-10-16T14:23:04Z,mtusi-messenger-lab3-postgres-1,50.60%,326MiB / 384MiB -2026-10-16T14:23:04Z,mtusi-messenger-lab3-redis-1,0.23%,6.289MiB / 192MiB -2026-10-16T14:23:07Z,mtusi-messenger-lab3-api-1,18.29%,197MiB / 384MiB -2026-10-16T14:23:07Z,mtusi-messenger-lab3-api-2,20.02%,11.13MiB / 384MiB -2026-10-16T14:23:07Z,mtusi-messenger-lab3-lb-1,14.47%,13.11MiB / 64MiB -2026-10-16T14:23:07Z,mtusi-messenger-lab3-postgres-1,50.84%,326MiB / 384MiB -2026-10-16T14:23:07Z,mtusi-messenger-lab3-redis-1,0.69%,6.289MiB / 192MiB -2026-10-16T14:23:10Z,mtusi-messenger-lab3-api-1,19.38%,10.8MiB / 384MiB -2026-10-16T14:23:10Z,mtusi-messenger-lab3-api-2,19.18%,11.07MiB / 384MiB -2026-10-16T14:23:10Z,mtusi-messenger-lab3-lb-1,14.39%,13.11MiB / 64MiB -2026-10-16T14:23:10Z,mtusi-messenger-lab3-postgres-1,49.50%,326MiB / 384MiB -2026-10-16T14:23:10Z,mtusi-messenger-lab3-redis-1,0.22%,6.289MiB / 192MiB -2026-10-16T14:23:13Z,mtusi-messenger-lab3-api-1,19.36%,10.93MiB / 384MiB -2026-10-16T14:23:13Z,mtusi-messenger-lab3-api-2,19.41%,10.99MiB / 384MiB -2026-10-16T14:23:13Z,mtusi-messenger-lab3-lb-1,14.65%,13.12MiB / 64MiB -2026-10-16T14:23:13Z,mtusi-messenger-lab3-postgres-1,50.39%,326MiB / 384MiB -2026-10-16T14:23:13Z,mtusi-messenger-lab3-redis-1,0.77%,6.289MiB / 192MiB -2026-10-16T14:23:16Z,mtusi-messenger-lab3-api-1,19.61%,10.75MiB / 384MiB -2026-10-16T14:23:16Z,mtusi-messenger-lab3-api-2,19.36%,11MiB / 384MiB -2026-10-16T14:23:16Z,mtusi-messenger-lab3-lb-1,14.68%,13.11MiB / 64MiB -2026-10-16T14:23:16Z,mtusi-messenger-lab3-postgres-1,50.43%,326MiB / 384MiB -2026-10-16T14:23:16Z,mtusi-messenger-lab3-redis-1,0.24%,6.289MiB / 192MiB -2026-10-16T14:23:19Z,mtusi-messenger-lab3-api-1,19.50%,10.77MiB / 384MiB -2026-10-16T14:23:19Z,mtusi-messenger-lab3-api-2,19.22%,10.9MiB / 384MiB -2026-10-16T14:23:19Z,mtusi-messenger-lab3-lb-1,14.41%,13.12MiB / 64MiB -2026-10-16T14:23:19Z,mtusi-messenger-lab3-postgres-1,49.90%,328.8MiB / 384MiB -2026-10-16T14:23:19Z,mtusi-messenger-lab3-redis-1,0.23%,6.289MiB / 192MiB -2026-10-16T14:23:22Z,mtusi-messenger-lab3-api-1,18.97%,10.8MiB / 384MiB -2026-10-16T14:23:22Z,mtusi-messenger-lab3-api-2,19.32%,10.95MiB / 384MiB -2026-10-16T14:23:22Z,mtusi-messenger-lab3-lb-1,14.53%,13.12MiB / 64MiB -2026-10-16T14:23:22Z,mtusi-messenger-lab3-postgres-1,50.35%,331.3MiB / 384MiB -2026-10-16T14:23:22Z,mtusi-messenger-lab3-redis-1,0.22%,6.289MiB / 192MiB -2026-10-16T14:23:25Z,mtusi-messenger-lab3-api-1,19.07%,10.8MiB / 384MiB -2026-10-16T14:23:25Z,mtusi-messenger-lab3-api-2,19.85%,10.91MiB / 384MiB -2026-10-16T14:23:25Z,mtusi-messenger-lab3-lb-1,14.57%,13.12MiB / 64MiB -2026-10-16T14:23:25Z,mtusi-messenger-lab3-postgres-1,50.64%,328MiB / 384MiB -2026-10-16T14:23:25Z,mtusi-messenger-lab3-redis-1,0.23%,6.289MiB / 192MiB -2026-10-16T14:23:28Z,mtusi-messenger-lab3-api-1,19.71%,10.8MiB / 384MiB -2026-10-16T14:23:28Z,mtusi-messenger-lab3-api-2,19.40%,10.82MiB / 384MiB -2026-10-16T14:23:28Z,mtusi-messenger-lab3-lb-1,14.78%,13.11MiB / 64MiB -2026-10-16T14:23:28Z,mtusi-messenger-lab3-postgres-1,50.66%,328.7MiB / 384MiB -2026-10-16T14:23:28Z,mtusi-messenger-lab3-redis-1,0.21%,6.289MiB / 192MiB -2026-10-16T14:23:31Z,mtusi-messenger-lab3-api-1,18.84%,10.82MiB / 384MiB -2026-10-16T14:23:31Z,mtusi-messenger-lab3-api-2,18.99%,10.87MiB / 384MiB -2026-10-16T14:23:31Z,mtusi-messenger-lab3-lb-1,14.23%,13.37MiB / 64MiB -2026-10-16T14:23:31Z,mtusi-messenger-lab3-postgres-1,49.69%,326.9MiB / 384MiB -2026-10-16T14:23:31Z,mtusi-messenger-lab3-redis-1,0.26%,6.289MiB / 192MiB -2026-10-16T14:23:34Z,mtusi-messenger-lab3-api-1,19.13%,10.82MiB / 384MiB -2026-10-16T14:23:34Z,mtusi-messenger-lab3-api-2,20.01%,10.86MiB / 384MiB -2026-10-16T14:23:34Z,mtusi-messenger-lab3-lb-1,15.00%,13.12MiB / 64MiB -2026-10-16T14:23:34Z,mtusi-messenger-lab3-postgres-1,50.67%,326.8MiB / 384MiB -2026-10-16T14:23:34Z,mtusi-messenger-lab3-redis-1,0.23%,6.289MiB / 192MiB -2026-10-16T14:23:37Z,mtusi-messenger-lab3-api-1,19.61%,10.93MiB / 384MiB -2026-10-16T14:23:37Z,mtusi-messenger-lab3-api-2,20.35%,10.9MiB / 384MiB -2026-10-16T14:23:37Z,mtusi-messenger-lab3-lb-1,14.03%,13.13MiB / 64MiB -2026-10-16T14:23:37Z,mtusi-messenger-lab3-postgres-1,49.51%,326.7MiB / 384MiB -2026-10-16T14:23:37Z,mtusi-messenger-lab3-redis-1,0.23%,6.289MiB / 192MiB -2026-10-16T14:23:40Z,mtusi-messenger-lab3-api-1,19.56%,10.83MiB / 384MiB -2026-10-16T14:23:40Z,mtusi-messenger-lab3-api-2,19.18%,10.86MiB / 384MiB -2026-10-16T14:23:40Z,mtusi-messenger-lab3-lb-1,14.56%,13.36MiB / 64MiB -2026-10-16T14:23:40Z,mtusi-messenger-lab3-postgres-1,51.07%,328.8MiB / 384MiB -2026-10-16T14:23:40Z,mtusi-messenger-lab3-redis-1,0.24%,6.289MiB / 192MiB -2026-10-16T14:23:44Z,mtusi-messenger-lab3-api-1,19.15%,10.86MiB / 384MiB -2026-10-16T14:23:44Z,mtusi-messenger-lab3-api-2,19.13%,10.8MiB / 384MiB -2026-10-16T14:23:44Z,mtusi-messenger-lab3-lb-1,14.26%,13.13MiB / 64MiB -2026-10-16T14:23:44Z,mtusi-messenger-lab3-postgres-1,49.93%,331.9MiB / 384MiB -2026-10-16T14:23:44Z,mtusi-messenger-lab3-redis-1,0.22%,6.289MiB / 192MiB -2026-10-16T14:23:47Z,mtusi-messenger-lab3-api-1,13.80%,10.69MiB / 384MiB -2026-10-16T14:23:47Z,mtusi-messenger-lab3-api-2,14.11%,10.84MiB / 384MiB -2026-10-16T14:23:47Z,mtusi-messenger-lab3-lb-1,9.99%,13.11MiB / 64MiB -2026-10-16T14:23:47Z,mtusi-messenger-lab3-postgres-1,50.42%,350.8MiB / 384MiB -2026-10-16T14:23:47Z,mtusi-messenger-lab3-redis-1,0.68%,6.289MiB / 192MiB -2026-10-16T14:23:50Z,mtusi-messenger-lab3-api-1,19.38%,10.73MiB / 384MiB -2026-10-16T14:23:50Z,mtusi-messenger-lab3-api-2,17.91%,10.84MiB / 384MiB -2026-10-16T14:23:50Z,mtusi-messenger-lab3-lb-1,14.14%,13.11MiB / 64MiB -2026-10-16T14:23:50Z,mtusi-messenger-lab3-postgres-1,49.93%,325.9MiB / 384MiB -2026-10-16T14:23:50Z,mtusi-messenger-lab3-redis-1,0.21%,6.289MiB / 192MiB -2026-10-16T14:23:53Z,mtusi-messenger-lab3-api-1,19.90%,10.81MiB / 384MiB -2026-10-16T14:23:53Z,mtusi-messenger-lab3-api-2,19.36%,10.84MiB / 384MiB -2026-10-16T14:23:53Z,mtusi-messenger-lab3-lb-1,14.86%,13.13MiB / 64MiB -2026-10-16T14:23:53Z,mtusi-messenger-lab3-postgres-1,51.01%,325.7MiB / 384MiB -2026-10-16T14:23:53Z,mtusi-messenger-lab3-redis-1,0.81%,6.289MiB / 192MiB -2026-10-16T14:23:56Z,mtusi-messenger-lab3-api-1,19.40%,10.82MiB / 384MiB -2026-10-16T14:23:56Z,mtusi-messenger-lab3-api-2,19.04%,10.83MiB / 384MiB -2026-10-16T14:23:56Z,mtusi-messenger-lab3-lb-1,14.42%,13.12MiB / 64MiB -2026-10-16T14:23:56Z,mtusi-messenger-lab3-postgres-1,49.73%,325.8MiB / 384MiB -2026-10-16T14:23:56Z,mtusi-messenger-lab3-redis-1,0.22%,6.289MiB / 192MiB -2026-10-16T14:23:59Z,mtusi-messenger-lab3-api-1,20.10%,10.84MiB / 384MiB -2026-10-16T14:23:59Z,mtusi-messenger-lab3-api-2,18.83%,11.03MiB / 384MiB -2026-10-16T14:23:59Z,mtusi-messenger-lab3-lb-1,14.25%,13.37MiB / 64MiB -2026-10-16T14:23:59Z,mtusi-messenger-lab3-postgres-1,50.85%,326.1MiB / 384MiB -2026-10-16T14:23:59Z,mtusi-messenger-lab3-redis-1,0.23%,6.289MiB / 192MiB -2026-10-16T14:24:02Z,mtusi-messenger-lab3-api-1,20.06%,10.83MiB / 384MiB -2026-10-16T14:24:02Z,mtusi-messenger-lab3-api-2,19.40%,10.79MiB / 384MiB -2026-10-16T14:24:02Z,mtusi-messenger-lab3-lb-1,14.37%,13.36MiB / 64MiB -2026-10-16T14:24:02Z,mtusi-messenger-lab3-postgres-1,49.78%,326.3MiB / 384MiB -2026-10-16T14:24:02Z,mtusi-messenger-lab3-redis-1,0.22%,6.289MiB / 192MiB diff --git a/evidence/track1/superseded/run1-wrong-budgets/stats-g05.csv b/evidence/track1/superseded/run1-wrong-budgets/stats-g05.csv deleted file mode 100644 index 0cc8981..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/stats-g05.csv +++ /dev/null @@ -1,101 +0,0 @@ -timestamp,container,cpu_percent,mem_usage -2026-10-16T14:16:30Z,mtusi-messenger-lab3-api-1,20.21%,90.41MiB / 384MiB -2026-10-16T14:16:30Z,mtusi-messenger-lab3-api-2,19.72%,153.9MiB / 384MiB -2026-10-16T14:16:30Z,mtusi-messenger-lab3-lb-1,15.56%,13.11MiB / 64MiB -2026-10-16T14:16:30Z,mtusi-messenger-lab3-postgres-1,50.96%,228.8MiB / 384MiB -2026-10-16T14:16:30Z,mtusi-messenger-lab3-redis-1,0.76%,6.289MiB / 192MiB -2026-10-16T14:16:33Z,mtusi-messenger-lab3-api-1,20.72%,14.09MiB / 384MiB -2026-10-16T14:16:33Z,mtusi-messenger-lab3-api-2,21.56%,12.55MiB / 384MiB -2026-10-16T14:16:33Z,mtusi-messenger-lab3-lb-1,15.16%,13.37MiB / 64MiB -2026-10-16T14:16:33Z,mtusi-messenger-lab3-postgres-1,50.88%,228.8MiB / 384MiB -2026-10-16T14:16:33Z,mtusi-messenger-lab3-redis-1,0.23%,6.289MiB / 192MiB -2026-10-16T14:16:36Z,mtusi-messenger-lab3-api-1,20.66%,14.26MiB / 384MiB -2026-10-16T14:16:36Z,mtusi-messenger-lab3-api-2,20.61%,11.88MiB / 384MiB -2026-10-16T14:16:36Z,mtusi-messenger-lab3-lb-1,15.51%,13.12MiB / 64MiB -2026-10-16T14:16:36Z,mtusi-messenger-lab3-postgres-1,51.15%,229.1MiB / 384MiB -2026-10-16T14:16:36Z,mtusi-messenger-lab3-redis-1,0.23%,6.289MiB / 192MiB -2026-10-16T14:16:39Z,mtusi-messenger-lab3-api-1,19.97%,14.26MiB / 384MiB -2026-10-16T14:16:39Z,mtusi-messenger-lab3-api-2,19.42%,11.7MiB / 384MiB -2026-10-16T14:16:39Z,mtusi-messenger-lab3-lb-1,15.25%,13.13MiB / 64MiB -2026-10-16T14:16:39Z,mtusi-messenger-lab3-postgres-1,50.31%,229.5MiB / 384MiB -2026-10-16T14:16:39Z,mtusi-messenger-lab3-redis-1,0.72%,6.289MiB / 192MiB -2026-10-16T14:16:42Z,mtusi-messenger-lab3-api-1,19.00%,14.26MiB / 384MiB -2026-10-16T14:16:42Z,mtusi-messenger-lab3-api-2,20.19%,11.16MiB / 384MiB -2026-10-16T14:16:42Z,mtusi-messenger-lab3-lb-1,14.57%,13.12MiB / 64MiB -2026-10-16T14:16:42Z,mtusi-messenger-lab3-postgres-1,50.26%,230.3MiB / 384MiB -2026-10-16T14:16:42Z,mtusi-messenger-lab3-redis-1,0.23%,6.289MiB / 192MiB -2026-10-16T14:16:45Z,mtusi-messenger-lab3-api-1,17.32%,14.52MiB / 384MiB -2026-10-16T14:16:45Z,mtusi-messenger-lab3-api-2,17.50%,11.19MiB / 384MiB -2026-10-16T14:16:45Z,mtusi-messenger-lab3-lb-1,13.00%,13.12MiB / 64MiB -2026-10-16T14:16:45Z,mtusi-messenger-lab3-postgres-1,50.46%,238.5MiB / 384MiB -2026-10-16T14:16:45Z,mtusi-messenger-lab3-redis-1,0.79%,6.289MiB / 192MiB -2026-10-16T14:16:49Z,mtusi-messenger-lab3-api-1,20.93%,14.16MiB / 384MiB -2026-10-16T14:16:49Z,mtusi-messenger-lab3-api-2,19.78%,11.34MiB / 384MiB -2026-10-16T14:16:49Z,mtusi-messenger-lab3-lb-1,15.39%,13.11MiB / 64MiB -2026-10-16T14:16:49Z,mtusi-messenger-lab3-postgres-1,50.65%,229.3MiB / 384MiB -2026-10-16T14:16:49Z,mtusi-messenger-lab3-redis-1,0.19%,6.289MiB / 192MiB -2026-10-16T14:16:52Z,mtusi-messenger-lab3-api-1,19.56%,13.57MiB / 384MiB -2026-10-16T14:16:52Z,mtusi-messenger-lab3-api-2,19.14%,11.27MiB / 384MiB -2026-10-16T14:16:52Z,mtusi-messenger-lab3-lb-1,14.31%,13.12MiB / 64MiB -2026-10-16T14:16:52Z,mtusi-messenger-lab3-postgres-1,50.27%,229.5MiB / 384MiB -2026-10-16T14:16:52Z,mtusi-messenger-lab3-redis-1,0.22%,6.289MiB / 192MiB -2026-10-16T14:16:55Z,mtusi-messenger-lab3-api-1,19.72%,14.32MiB / 384MiB -2026-10-16T14:16:55Z,mtusi-messenger-lab3-api-2,20.01%,11.28MiB / 384MiB -2026-10-16T14:16:55Z,mtusi-messenger-lab3-lb-1,15.03%,13.38MiB / 64MiB -2026-10-16T14:16:55Z,mtusi-messenger-lab3-postgres-1,50.64%,229.6MiB / 384MiB -2026-10-16T14:16:55Z,mtusi-messenger-lab3-redis-1,0.80%,6.289MiB / 192MiB -2026-10-16T14:16:58Z,mtusi-messenger-lab3-api-1,19.63%,13.89MiB / 384MiB -2026-10-16T14:16:58Z,mtusi-messenger-lab3-api-2,20.79%,11.27MiB / 384MiB -2026-10-16T14:16:58Z,mtusi-messenger-lab3-lb-1,15.33%,13.12MiB / 64MiB -2026-10-16T14:16:58Z,mtusi-messenger-lab3-postgres-1,50.90%,229.7MiB / 384MiB -2026-10-16T14:16:58Z,mtusi-messenger-lab3-redis-1,0.24%,6.289MiB / 192MiB -2026-10-16T14:17:01Z,mtusi-messenger-lab3-api-1,19.82%,14.15MiB / 384MiB -2026-10-16T14:17:01Z,mtusi-messenger-lab3-api-2,19.81%,11.28MiB / 384MiB -2026-10-16T14:17:01Z,mtusi-messenger-lab3-lb-1,15.12%,13.12MiB / 64MiB -2026-10-16T14:17:01Z,mtusi-messenger-lab3-postgres-1,51.04%,230MiB / 384MiB -2026-10-16T14:17:01Z,mtusi-messenger-lab3-redis-1,0.22%,6.289MiB / 192MiB -2026-10-16T14:17:04Z,mtusi-messenger-lab3-api-1,20.03%,13.73MiB / 384MiB -2026-10-16T14:17:04Z,mtusi-messenger-lab3-api-2,20.48%,11.23MiB / 384MiB -2026-10-16T14:17:04Z,mtusi-messenger-lab3-lb-1,14.84%,13.11MiB / 64MiB -2026-10-16T14:17:04Z,mtusi-messenger-lab3-postgres-1,49.99%,230.1MiB / 384MiB -2026-10-16T14:17:04Z,mtusi-messenger-lab3-redis-1,0.24%,6.289MiB / 192MiB -2026-10-16T14:17:07Z,mtusi-messenger-lab3-api-1,20.83%,13.68MiB / 384MiB -2026-10-16T14:17:07Z,mtusi-messenger-lab3-api-2,20.17%,11.3MiB / 384MiB -2026-10-16T14:17:07Z,mtusi-messenger-lab3-lb-1,15.42%,13.11MiB / 64MiB -2026-10-16T14:17:07Z,mtusi-messenger-lab3-postgres-1,50.48%,230.1MiB / 384MiB -2026-10-16T14:17:07Z,mtusi-messenger-lab3-redis-1,0.22%,6.289MiB / 192MiB -2026-10-16T14:17:10Z,mtusi-messenger-lab3-api-1,20.59%,13.52MiB / 384MiB -2026-10-16T14:17:10Z,mtusi-messenger-lab3-api-2,20.87%,11.3MiB / 384MiB -2026-10-16T14:17:10Z,mtusi-messenger-lab3-lb-1,15.42%,13.12MiB / 64MiB -2026-10-16T14:17:10Z,mtusi-messenger-lab3-postgres-1,50.57%,230.2MiB / 384MiB -2026-10-16T14:17:10Z,mtusi-messenger-lab3-redis-1,0.86%,6.289MiB / 192MiB -2026-10-16T14:17:13Z,mtusi-messenger-lab3-api-1,20.25%,14.21MiB / 384MiB -2026-10-16T14:17:13Z,mtusi-messenger-lab3-api-2,20.40%,11.3MiB / 384MiB -2026-10-16T14:17:13Z,mtusi-messenger-lab3-lb-1,15.61%,13.12MiB / 64MiB -2026-10-16T14:17:13Z,mtusi-messenger-lab3-postgres-1,49.60%,230.7MiB / 384MiB -2026-10-16T14:17:13Z,mtusi-messenger-lab3-redis-1,0.25%,6.289MiB / 192MiB -2026-10-16T14:17:16Z,mtusi-messenger-lab3-api-1,20.79%,14.28MiB / 384MiB -2026-10-16T14:17:16Z,mtusi-messenger-lab3-api-2,20.63%,11.21MiB / 384MiB -2026-10-16T14:17:16Z,mtusi-messenger-lab3-lb-1,15.57%,13.11MiB / 64MiB -2026-10-16T14:17:16Z,mtusi-messenger-lab3-postgres-1,50.94%,230.6MiB / 384MiB -2026-10-16T14:17:16Z,mtusi-messenger-lab3-redis-1,0.25%,6.289MiB / 192MiB -2026-10-16T14:17:19Z,mtusi-messenger-lab3-api-1,20.22%,14.14MiB / 384MiB -2026-10-16T14:17:19Z,mtusi-messenger-lab3-api-2,19.84%,11.18MiB / 384MiB -2026-10-16T14:17:19Z,mtusi-messenger-lab3-lb-1,15.03%,13.11MiB / 64MiB -2026-10-16T14:17:19Z,mtusi-messenger-lab3-postgres-1,49.91%,231.1MiB / 384MiB -2026-10-16T14:17:19Z,mtusi-messenger-lab3-redis-1,0.77%,6.289MiB / 192MiB -2026-10-16T14:17:22Z,mtusi-messenger-lab3-api-1,20.21%,14.02MiB / 384MiB -2026-10-16T14:17:22Z,mtusi-messenger-lab3-api-2,20.30%,11.25MiB / 384MiB -2026-10-16T14:17:22Z,mtusi-messenger-lab3-lb-1,15.50%,13.11MiB / 64MiB -2026-10-16T14:17:22Z,mtusi-messenger-lab3-postgres-1,50.05%,231.2MiB / 384MiB -2026-10-16T14:17:22Z,mtusi-messenger-lab3-redis-1,0.21%,6.289MiB / 192MiB -2026-10-16T14:17:25Z,mtusi-messenger-lab3-api-1,21.31%,14.12MiB / 384MiB -2026-10-16T14:17:25Z,mtusi-messenger-lab3-api-2,19.67%,11.2MiB / 384MiB -2026-10-16T14:17:25Z,mtusi-messenger-lab3-lb-1,14.78%,13.11MiB / 64MiB -2026-10-16T14:17:25Z,mtusi-messenger-lab3-postgres-1,49.24%,231.4MiB / 384MiB -2026-10-16T14:17:25Z,mtusi-messenger-lab3-redis-1,0.23%,6.289MiB / 192MiB -2026-10-16T14:17:28Z,mtusi-messenger-lab3-api-1,19.89%,14.02MiB / 384MiB -2026-10-16T14:17:28Z,mtusi-messenger-lab3-api-2,20.58%,11.19MiB / 384MiB -2026-10-16T14:17:28Z,mtusi-messenger-lab3-lb-1,14.93%,13.11MiB / 64MiB -2026-10-16T14:17:28Z,mtusi-messenger-lab3-postgres-1,50.55%,231.6MiB / 384MiB -2026-10-16T14:17:28Z,mtusi-messenger-lab3-redis-1,0.22%,6.289MiB / 192MiB diff --git a/evidence/track1/superseded/run1-wrong-budgets/stats-g10.csv b/evidence/track1/superseded/run1-wrong-budgets/stats-g10.csv deleted file mode 100644 index d213bb0..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/stats-g10.csv +++ /dev/null @@ -1,101 +0,0 @@ -timestamp,container,cpu_percent,mem_usage -2026-10-16T14:17:48Z,mtusi-messenger-lab3-api-1,19.02%,163.2MiB / 384MiB -2026-10-16T14:17:48Z,mtusi-messenger-lab3-api-2,19.12%,162.9MiB / 384MiB -2026-10-16T14:17:48Z,mtusi-messenger-lab3-lb-1,15.00%,13.12MiB / 64MiB -2026-10-16T14:17:48Z,mtusi-messenger-lab3-postgres-1,50.80%,284.3MiB / 384MiB -2026-10-16T14:17:48Z,mtusi-messenger-lab3-redis-1,0.24%,6.289MiB / 192MiB -2026-10-16T14:17:51Z,mtusi-messenger-lab3-api-1,21.12%,13.22MiB / 384MiB -2026-10-16T14:17:51Z,mtusi-messenger-lab3-api-2,21.10%,37.39MiB / 384MiB -2026-10-16T14:17:51Z,mtusi-messenger-lab3-lb-1,14.86%,13.12MiB / 64MiB -2026-10-16T14:17:51Z,mtusi-messenger-lab3-postgres-1,49.89%,284.7MiB / 384MiB -2026-10-16T14:17:51Z,mtusi-messenger-lab3-redis-1,0.72%,6.289MiB / 192MiB -2026-10-16T14:17:54Z,mtusi-messenger-lab3-api-1,19.02%,12.97MiB / 384MiB -2026-10-16T14:17:54Z,mtusi-messenger-lab3-api-2,19.00%,11.07MiB / 384MiB -2026-10-16T14:17:54Z,mtusi-messenger-lab3-lb-1,14.34%,13.11MiB / 64MiB -2026-10-16T14:17:54Z,mtusi-messenger-lab3-postgres-1,49.20%,285.2MiB / 384MiB -2026-10-16T14:17:54Z,mtusi-messenger-lab3-redis-1,0.23%,6.289MiB / 192MiB -2026-10-16T14:17:57Z,mtusi-messenger-lab3-api-1,20.42%,13.18MiB / 384MiB -2026-10-16T14:17:57Z,mtusi-messenger-lab3-api-2,19.98%,11.2MiB / 384MiB -2026-10-16T14:17:57Z,mtusi-messenger-lab3-lb-1,15.21%,13.38MiB / 64MiB -2026-10-16T14:17:57Z,mtusi-messenger-lab3-postgres-1,51.20%,285.7MiB / 384MiB -2026-10-16T14:17:57Z,mtusi-messenger-lab3-redis-1,0.25%,6.289MiB / 192MiB -2026-10-16T14:18:00Z,mtusi-messenger-lab3-api-1,19.88%,12.91MiB / 384MiB -2026-10-16T14:18:00Z,mtusi-messenger-lab3-api-2,19.42%,11.15MiB / 384MiB -2026-10-16T14:18:00Z,mtusi-messenger-lab3-lb-1,14.57%,13.13MiB / 64MiB -2026-10-16T14:18:00Z,mtusi-messenger-lab3-postgres-1,50.93%,285.7MiB / 384MiB -2026-10-16T14:18:00Z,mtusi-messenger-lab3-redis-1,0.75%,6.289MiB / 192MiB -2026-10-16T14:18:03Z,mtusi-messenger-lab3-api-1,20.34%,12.64MiB / 384MiB -2026-10-16T14:18:03Z,mtusi-messenger-lab3-api-2,20.46%,11.13MiB / 384MiB -2026-10-16T14:18:03Z,mtusi-messenger-lab3-lb-1,15.18%,13.11MiB / 64MiB -2026-10-16T14:18:03Z,mtusi-messenger-lab3-postgres-1,51.35%,286.1MiB / 384MiB -2026-10-16T14:18:03Z,mtusi-messenger-lab3-redis-1,0.25%,6.289MiB / 192MiB -2026-10-16T14:18:06Z,mtusi-messenger-lab3-api-1,19.79%,12.71MiB / 384MiB -2026-10-16T14:18:06Z,mtusi-messenger-lab3-api-2,19.59%,11.3MiB / 384MiB -2026-10-16T14:18:06Z,mtusi-messenger-lab3-lb-1,14.29%,13.11MiB / 64MiB -2026-10-16T14:18:06Z,mtusi-messenger-lab3-postgres-1,49.24%,286.2MiB / 384MiB -2026-10-16T14:18:06Z,mtusi-messenger-lab3-redis-1,0.72%,6.289MiB / 192MiB -2026-10-16T14:18:09Z,mtusi-messenger-lab3-api-1,19.59%,12.46MiB / 384MiB -2026-10-16T14:18:09Z,mtusi-messenger-lab3-api-2,20.28%,11.04MiB / 384MiB -2026-10-16T14:18:09Z,mtusi-messenger-lab3-lb-1,14.20%,13.12MiB / 64MiB -2026-10-16T14:18:09Z,mtusi-messenger-lab3-postgres-1,49.58%,286.5MiB / 384MiB -2026-10-16T14:18:09Z,mtusi-messenger-lab3-redis-1,0.26%,6.289MiB / 192MiB -2026-10-16T14:18:12Z,mtusi-messenger-lab3-api-1,19.85%,12.8MiB / 384MiB -2026-10-16T14:18:12Z,mtusi-messenger-lab3-api-2,19.74%,11.24MiB / 384MiB -2026-10-16T14:18:12Z,mtusi-messenger-lab3-lb-1,14.95%,13.11MiB / 64MiB -2026-10-16T14:18:12Z,mtusi-messenger-lab3-postgres-1,51.16%,286.6MiB / 384MiB -2026-10-16T14:18:12Z,mtusi-messenger-lab3-redis-1,0.23%,6.289MiB / 192MiB -2026-10-16T14:18:15Z,mtusi-messenger-lab3-api-1,20.79%,12.46MiB / 384MiB -2026-10-16T14:18:15Z,mtusi-messenger-lab3-api-2,19.53%,11.12MiB / 384MiB -2026-10-16T14:18:15Z,mtusi-messenger-lab3-lb-1,14.79%,13.1MiB / 64MiB -2026-10-16T14:18:15Z,mtusi-messenger-lab3-postgres-1,49.91%,286.6MiB / 384MiB -2026-10-16T14:18:15Z,mtusi-messenger-lab3-redis-1,0.72%,6.289MiB / 192MiB -2026-10-16T14:18:18Z,mtusi-messenger-lab3-api-1,20.26%,12.9MiB / 384MiB -2026-10-16T14:18:18Z,mtusi-messenger-lab3-api-2,19.49%,11.18MiB / 384MiB -2026-10-16T14:18:18Z,mtusi-messenger-lab3-lb-1,14.65%,13.12MiB / 64MiB -2026-10-16T14:18:18Z,mtusi-messenger-lab3-postgres-1,50.53%,286.9MiB / 384MiB -2026-10-16T14:18:18Z,mtusi-messenger-lab3-redis-1,0.22%,6.289MiB / 192MiB -2026-10-16T14:18:21Z,mtusi-messenger-lab3-api-1,19.72%,12.96MiB / 384MiB -2026-10-16T14:18:21Z,mtusi-messenger-lab3-api-2,18.76%,11.21MiB / 384MiB -2026-10-16T14:18:21Z,mtusi-messenger-lab3-lb-1,14.93%,13.1MiB / 64MiB -2026-10-16T14:18:21Z,mtusi-messenger-lab3-postgres-1,49.35%,287MiB / 384MiB -2026-10-16T14:18:21Z,mtusi-messenger-lab3-redis-1,0.22%,6.289MiB / 192MiB -2026-10-16T14:18:24Z,mtusi-messenger-lab3-api-1,20.39%,12.59MiB / 384MiB -2026-10-16T14:18:24Z,mtusi-messenger-lab3-api-2,20.29%,11.21MiB / 384MiB -2026-10-16T14:18:24Z,mtusi-messenger-lab3-lb-1,15.17%,13.12MiB / 64MiB -2026-10-16T14:18:24Z,mtusi-messenger-lab3-postgres-1,49.73%,287MiB / 384MiB -2026-10-16T14:18:24Z,mtusi-messenger-lab3-redis-1,0.23%,6.289MiB / 192MiB -2026-10-16T14:18:27Z,mtusi-messenger-lab3-api-1,20.71%,12.79MiB / 384MiB -2026-10-16T14:18:27Z,mtusi-messenger-lab3-api-2,19.85%,11.21MiB / 384MiB -2026-10-16T14:18:27Z,mtusi-messenger-lab3-lb-1,14.84%,13.12MiB / 64MiB -2026-10-16T14:18:27Z,mtusi-messenger-lab3-postgres-1,50.63%,287MiB / 384MiB -2026-10-16T14:18:27Z,mtusi-messenger-lab3-redis-1,0.22%,6.289MiB / 192MiB -2026-10-16T14:18:31Z,mtusi-messenger-lab3-api-1,19.13%,12.54MiB / 384MiB -2026-10-16T14:18:31Z,mtusi-messenger-lab3-api-2,19.53%,11.22MiB / 384MiB -2026-10-16T14:18:31Z,mtusi-messenger-lab3-lb-1,14.50%,13.12MiB / 64MiB -2026-10-16T14:18:31Z,mtusi-messenger-lab3-postgres-1,50.83%,287.1MiB / 384MiB -2026-10-16T14:18:31Z,mtusi-messenger-lab3-redis-1,0.21%,6.289MiB / 192MiB -2026-10-16T14:18:34Z,mtusi-messenger-lab3-api-1,19.67%,12.66MiB / 384MiB -2026-10-16T14:18:34Z,mtusi-messenger-lab3-api-2,20.05%,11.12MiB / 384MiB -2026-10-16T14:18:34Z,mtusi-messenger-lab3-lb-1,14.70%,13.12MiB / 64MiB -2026-10-16T14:18:34Z,mtusi-messenger-lab3-postgres-1,50.17%,287.1MiB / 384MiB -2026-10-16T14:18:34Z,mtusi-messenger-lab3-redis-1,0.21%,6.289MiB / 192MiB -2026-10-16T14:18:37Z,mtusi-messenger-lab3-api-1,20.01%,12.61MiB / 384MiB -2026-10-16T14:18:37Z,mtusi-messenger-lab3-api-2,20.25%,11.04MiB / 384MiB -2026-10-16T14:18:37Z,mtusi-messenger-lab3-lb-1,15.12%,13.11MiB / 64MiB -2026-10-16T14:18:37Z,mtusi-messenger-lab3-postgres-1,50.58%,287.2MiB / 384MiB -2026-10-16T14:18:37Z,mtusi-messenger-lab3-redis-1,0.22%,6.289MiB / 192MiB -2026-10-16T14:18:40Z,mtusi-messenger-lab3-api-1,19.75%,12.68MiB / 384MiB -2026-10-16T14:18:40Z,mtusi-messenger-lab3-api-2,20.04%,11.21MiB / 384MiB -2026-10-16T14:18:40Z,mtusi-messenger-lab3-lb-1,14.71%,13.12MiB / 64MiB -2026-10-16T14:18:40Z,mtusi-messenger-lab3-postgres-1,51.15%,287.4MiB / 384MiB -2026-10-16T14:18:40Z,mtusi-messenger-lab3-redis-1,0.22%,6.289MiB / 192MiB -2026-10-16T14:18:43Z,mtusi-messenger-lab3-api-1,20.06%,12.67MiB / 384MiB -2026-10-16T14:18:43Z,mtusi-messenger-lab3-api-2,18.55%,11.22MiB / 384MiB -2026-10-16T14:18:43Z,mtusi-messenger-lab3-lb-1,14.38%,13.11MiB / 64MiB -2026-10-16T14:18:43Z,mtusi-messenger-lab3-postgres-1,49.84%,287.4MiB / 384MiB -2026-10-16T14:18:43Z,mtusi-messenger-lab3-redis-1,0.21%,6.289MiB / 192MiB -2026-10-16T14:18:46Z,mtusi-messenger-lab3-api-1,18.02%,12.73MiB / 384MiB -2026-10-16T14:18:46Z,mtusi-messenger-lab3-api-2,17.16%,11.17MiB / 384MiB -2026-10-16T14:18:46Z,mtusi-messenger-lab3-lb-1,14.63%,13.12MiB / 64MiB -2026-10-16T14:18:46Z,mtusi-messenger-lab3-postgres-1,50.43%,288.9MiB / 384MiB -2026-10-16T14:18:46Z,mtusi-messenger-lab3-redis-1,0.23%,6.289MiB / 192MiB diff --git a/evidence/track1/superseded/run1-wrong-budgets/stats-g15.csv b/evidence/track1/superseded/run1-wrong-budgets/stats-g15.csv deleted file mode 100644 index bc1328c..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/stats-g15.csv +++ /dev/null @@ -1,101 +0,0 @@ -timestamp,container,cpu_percent,mem_usage -2026-10-16T14:19:04Z,mtusi-messenger-lab3-api-2,19.13%,167.4MiB / 384MiB -2026-10-16T14:19:04Z,mtusi-messenger-lab3-api-1,18.67%,167.2MiB / 384MiB -2026-10-16T14:19:04Z,mtusi-messenger-lab3-lb-1,14.49%,13.11MiB / 64MiB -2026-10-16T14:19:04Z,mtusi-messenger-lab3-postgres-1,49.27%,300.4MiB / 384MiB -2026-10-16T14:19:04Z,mtusi-messenger-lab3-redis-1,0.23%,6.289MiB / 192MiB -2026-10-16T14:19:07Z,mtusi-messenger-lab3-api-2,19.67%,11.5MiB / 384MiB -2026-10-16T14:19:07Z,mtusi-messenger-lab3-api-1,19.73%,11.44MiB / 384MiB -2026-10-16T14:19:07Z,mtusi-messenger-lab3-lb-1,14.74%,13.12MiB / 64MiB -2026-10-16T14:19:07Z,mtusi-messenger-lab3-postgres-1,49.44%,300.6MiB / 384MiB -2026-10-16T14:19:07Z,mtusi-messenger-lab3-redis-1,0.21%,6.289MiB / 192MiB -2026-10-16T14:19:10Z,mtusi-messenger-lab3-api-2,19.06%,11.34MiB / 384MiB -2026-10-16T14:19:10Z,mtusi-messenger-lab3-api-1,20.05%,11.44MiB / 384MiB -2026-10-16T14:19:10Z,mtusi-messenger-lab3-lb-1,14.75%,13.12MiB / 64MiB -2026-10-16T14:19:10Z,mtusi-messenger-lab3-postgres-1,49.83%,300.7MiB / 384MiB -2026-10-16T14:19:10Z,mtusi-messenger-lab3-redis-1,0.71%,6.289MiB / 192MiB -2026-10-16T14:19:14Z,mtusi-messenger-lab3-api-2,20.38%,11.3MiB / 384MiB -2026-10-16T14:19:14Z,mtusi-messenger-lab3-api-1,19.71%,11.28MiB / 384MiB -2026-10-16T14:19:14Z,mtusi-messenger-lab3-lb-1,15.02%,13.12MiB / 64MiB -2026-10-16T14:19:14Z,mtusi-messenger-lab3-postgres-1,50.17%,303MiB / 384MiB -2026-10-16T14:19:14Z,mtusi-messenger-lab3-redis-1,0.22%,6.289MiB / 192MiB -2026-10-16T14:19:17Z,mtusi-messenger-lab3-api-2,19.69%,11.28MiB / 384MiB -2026-10-16T14:19:17Z,mtusi-messenger-lab3-api-1,19.95%,11.11MiB / 384MiB -2026-10-16T14:19:17Z,mtusi-messenger-lab3-lb-1,14.69%,13.12MiB / 64MiB -2026-10-16T14:19:17Z,mtusi-messenger-lab3-postgres-1,50.28%,303.6MiB / 384MiB -2026-10-16T14:19:17Z,mtusi-messenger-lab3-redis-1,0.23%,6.289MiB / 192MiB -2026-10-16T14:19:20Z,mtusi-messenger-lab3-api-2,19.06%,11.26MiB / 384MiB -2026-10-16T14:19:20Z,mtusi-messenger-lab3-api-1,19.32%,11.01MiB / 384MiB -2026-10-16T14:19:20Z,mtusi-messenger-lab3-lb-1,14.66%,13.12MiB / 64MiB -2026-10-16T14:19:20Z,mtusi-messenger-lab3-postgres-1,49.41%,300.8MiB / 384MiB -2026-10-16T14:19:20Z,mtusi-messenger-lab3-redis-1,0.23%,6.289MiB / 192MiB -2026-10-16T14:19:23Z,mtusi-messenger-lab3-api-2,19.83%,11.26MiB / 384MiB -2026-10-16T14:19:23Z,mtusi-messenger-lab3-api-1,19.78%,11.02MiB / 384MiB -2026-10-16T14:19:23Z,mtusi-messenger-lab3-lb-1,14.62%,13.11MiB / 64MiB -2026-10-16T14:19:23Z,mtusi-messenger-lab3-postgres-1,49.73%,300.9MiB / 384MiB -2026-10-16T14:19:23Z,mtusi-messenger-lab3-redis-1,0.22%,6.289MiB / 192MiB -2026-10-16T14:19:26Z,mtusi-messenger-lab3-api-2,19.05%,11.11MiB / 384MiB -2026-10-16T14:19:26Z,mtusi-messenger-lab3-api-1,20.03%,11.19MiB / 384MiB -2026-10-16T14:19:26Z,mtusi-messenger-lab3-lb-1,15.06%,13.1MiB / 64MiB -2026-10-16T14:19:26Z,mtusi-messenger-lab3-postgres-1,50.18%,301MiB / 384MiB -2026-10-16T14:19:26Z,mtusi-messenger-lab3-redis-1,1.04%,6.289MiB / 192MiB -2026-10-16T14:19:29Z,mtusi-messenger-lab3-api-2,19.15%,11.14MiB / 384MiB -2026-10-16T14:19:29Z,mtusi-messenger-lab3-api-1,18.77%,11.08MiB / 384MiB -2026-10-16T14:19:29Z,mtusi-messenger-lab3-lb-1,14.46%,13.11MiB / 64MiB -2026-10-16T14:19:29Z,mtusi-messenger-lab3-postgres-1,50.42%,300.9MiB / 384MiB -2026-10-16T14:19:29Z,mtusi-messenger-lab3-redis-1,0.23%,6.289MiB / 192MiB -2026-10-16T14:19:32Z,mtusi-messenger-lab3-api-2,19.69%,11.17MiB / 384MiB -2026-10-16T14:19:32Z,mtusi-messenger-lab3-api-1,19.42%,11.1MiB / 384MiB -2026-10-16T14:19:32Z,mtusi-messenger-lab3-lb-1,14.80%,13.11MiB / 64MiB -2026-10-16T14:19:32Z,mtusi-messenger-lab3-postgres-1,49.92%,301MiB / 384MiB -2026-10-16T14:19:32Z,mtusi-messenger-lab3-redis-1,0.23%,6.289MiB / 192MiB -2026-10-16T14:19:35Z,mtusi-messenger-lab3-api-2,19.16%,11.16MiB / 384MiB -2026-10-16T14:19:35Z,mtusi-messenger-lab3-api-1,19.73%,11.16MiB / 384MiB -2026-10-16T14:19:35Z,mtusi-messenger-lab3-lb-1,14.79%,13.1MiB / 64MiB -2026-10-16T14:19:35Z,mtusi-messenger-lab3-postgres-1,48.75%,301.8MiB / 384MiB -2026-10-16T14:19:35Z,mtusi-messenger-lab3-redis-1,0.69%,6.289MiB / 192MiB -2026-10-16T14:19:38Z,mtusi-messenger-lab3-api-2,18.98%,11.2MiB / 384MiB -2026-10-16T14:19:38Z,mtusi-messenger-lab3-api-1,20.01%,11.07MiB / 384MiB -2026-10-16T14:19:38Z,mtusi-messenger-lab3-lb-1,15.28%,13.11MiB / 64MiB -2026-10-16T14:19:38Z,mtusi-messenger-lab3-postgres-1,50.46%,305.4MiB / 384MiB -2026-10-16T14:19:38Z,mtusi-messenger-lab3-redis-1,0.22%,6.289MiB / 192MiB -2026-10-16T14:19:41Z,mtusi-messenger-lab3-api-2,19.37%,11.23MiB / 384MiB -2026-10-16T14:19:41Z,mtusi-messenger-lab3-api-1,19.27%,11.11MiB / 384MiB -2026-10-16T14:19:41Z,mtusi-messenger-lab3-lb-1,14.78%,13.11MiB / 64MiB -2026-10-16T14:19:41Z,mtusi-messenger-lab3-postgres-1,49.90%,308.3MiB / 384MiB -2026-10-16T14:19:41Z,mtusi-messenger-lab3-redis-1,0.69%,6.289MiB / 192MiB -2026-10-16T14:19:44Z,mtusi-messenger-lab3-api-2,19.79%,11.13MiB / 384MiB -2026-10-16T14:19:44Z,mtusi-messenger-lab3-api-1,19.87%,11.1MiB / 384MiB -2026-10-16T14:19:44Z,mtusi-messenger-lab3-lb-1,14.84%,13.11MiB / 64MiB -2026-10-16T14:19:44Z,mtusi-messenger-lab3-postgres-1,50.75%,301MiB / 384MiB -2026-10-16T14:19:44Z,mtusi-messenger-lab3-redis-1,0.22%,6.289MiB / 192MiB -2026-10-16T14:19:47Z,mtusi-messenger-lab3-api-2,14.59%,11.13MiB / 384MiB -2026-10-16T14:19:47Z,mtusi-messenger-lab3-api-1,16.07%,11.41MiB / 384MiB -2026-10-16T14:19:47Z,mtusi-messenger-lab3-lb-1,12.04%,13.11MiB / 64MiB -2026-10-16T14:19:47Z,mtusi-messenger-lab3-postgres-1,50.81%,311.8MiB / 384MiB -2026-10-16T14:19:47Z,mtusi-messenger-lab3-redis-1,0.24%,6.289MiB / 192MiB -2026-10-16T14:19:50Z,mtusi-messenger-lab3-api-2,19.80%,11.24MiB / 384MiB -2026-10-16T14:19:50Z,mtusi-messenger-lab3-api-1,19.73%,11.23MiB / 384MiB -2026-10-16T14:19:50Z,mtusi-messenger-lab3-lb-1,14.74%,13.1MiB / 64MiB -2026-10-16T14:19:50Z,mtusi-messenger-lab3-postgres-1,50.18%,312.1MiB / 384MiB -2026-10-16T14:19:50Z,mtusi-messenger-lab3-redis-1,0.21%,6.289MiB / 192MiB -2026-10-16T14:19:53Z,mtusi-messenger-lab3-api-2,19.81%,11.11MiB / 384MiB -2026-10-16T14:19:53Z,mtusi-messenger-lab3-api-1,19.03%,11.3MiB / 384MiB -2026-10-16T14:19:53Z,mtusi-messenger-lab3-lb-1,14.61%,13.11MiB / 64MiB -2026-10-16T14:19:53Z,mtusi-messenger-lab3-postgres-1,50.02%,312.3MiB / 384MiB -2026-10-16T14:19:53Z,mtusi-messenger-lab3-redis-1,0.23%,6.289MiB / 192MiB -2026-10-16T14:19:56Z,mtusi-messenger-lab3-api-2,18.78%,11.23MiB / 384MiB -2026-10-16T14:19:56Z,mtusi-messenger-lab3-api-1,19.33%,10.95MiB / 384MiB -2026-10-16T14:19:56Z,mtusi-messenger-lab3-lb-1,14.39%,13.11MiB / 64MiB -2026-10-16T14:19:56Z,mtusi-messenger-lab3-postgres-1,49.49%,312.7MiB / 384MiB -2026-10-16T14:19:56Z,mtusi-messenger-lab3-redis-1,0.75%,6.289MiB / 192MiB -2026-10-16T14:20:00Z,mtusi-messenger-lab3-api-2,19.53%,11.17MiB / 384MiB -2026-10-16T14:20:00Z,mtusi-messenger-lab3-api-1,19.27%,10.97MiB / 384MiB -2026-10-16T14:20:00Z,mtusi-messenger-lab3-lb-1,14.51%,13.11MiB / 64MiB -2026-10-16T14:20:00Z,mtusi-messenger-lab3-postgres-1,49.69%,308.9MiB / 384MiB -2026-10-16T14:20:00Z,mtusi-messenger-lab3-redis-1,0.22%,6.289MiB / 192MiB -2026-10-16T14:20:03Z,mtusi-messenger-lab3-api-2,18.09%,11.18MiB / 384MiB -2026-10-16T14:20:03Z,mtusi-messenger-lab3-api-1,17.68%,11.05MiB / 384MiB -2026-10-16T14:20:03Z,mtusi-messenger-lab3-lb-1,14.74%,13.1MiB / 64MiB -2026-10-16T14:20:03Z,mtusi-messenger-lab3-postgres-1,45.37%,308.8MiB / 384MiB -2026-10-16T14:20:03Z,mtusi-messenger-lab3-redis-1,0.22%,6.289MiB / 192MiB diff --git a/evidence/track1/superseded/run1-wrong-budgets/stats-pool10.csv b/evidence/track1/superseded/run1-wrong-budgets/stats-pool10.csv deleted file mode 100644 index e28c3a6..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/stats-pool10.csv +++ /dev/null @@ -1,137 +0,0 @@ -timestamp,container,cpu_percent,mem_usage -2026-10-16T14:20:22Z,mtusi-messenger-lab3-api-1,11.69%,10.29MiB / 192MiB -2026-10-16T14:20:22Z,mtusi-messenger-lab3-api-4,12.38%,144.1MiB / 192MiB -2026-10-16T14:20:22Z,mtusi-messenger-lab3-api-3,11.03%,144.7MiB / 192MiB -2026-10-16T14:20:22Z,mtusi-messenger-lab3-api-2,11.07%,8.109MiB / 192MiB -2026-10-16T14:20:22Z,mtusi-messenger-lab3-lb-1,0.22%,13.07MiB / 64MiB -2026-10-16T14:20:22Z,mtusi-messenger-lab3-postgres-1,49.53%,317.8MiB / 384MiB -2026-10-16T14:20:22Z,mtusi-messenger-lab3-redis-1,0.23%,6.297MiB / 192MiB -2026-10-16T14:20:25Z,mtusi-messenger-lab3-api-1,11.18%,10.32MiB / 192MiB -2026-10-16T14:20:25Z,mtusi-messenger-lab3-api-4,11.12%,171.1MiB / 192MiB -2026-10-16T14:20:25Z,mtusi-messenger-lab3-api-3,11.35%,171.2MiB / 192MiB -2026-10-16T14:20:25Z,mtusi-messenger-lab3-api-2,11.68%,8.109MiB / 192MiB -2026-10-16T14:20:25Z,mtusi-messenger-lab3-lb-1,14.94%,13.13MiB / 64MiB -2026-10-16T14:20:25Z,mtusi-messenger-lab3-postgres-1,49.28%,318.6MiB / 384MiB -2026-10-16T14:20:25Z,mtusi-messenger-lab3-redis-1,0.23%,6.297MiB / 192MiB -2026-10-16T14:20:28Z,mtusi-messenger-lab3-api-1,12.12%,10.5MiB / 192MiB -2026-10-16T14:20:28Z,mtusi-messenger-lab3-api-2,12.46%,7.996MiB / 192MiB -2026-10-16T14:20:28Z,mtusi-messenger-lab3-lb-1,12.62%,13.12MiB / 64MiB -2026-10-16T14:20:28Z,mtusi-messenger-lab3-postgres-1,37.86%,307.3MiB / 384MiB -2026-10-16T14:20:28Z,mtusi-messenger-lab3-redis-1,0.21%,6.297MiB / 192MiB -2026-10-16T14:20:28Z,mtusi-messenger-lab3-api-3,5.07%,7.156MiB / 192MiB -2026-10-16T14:20:28Z,mtusi-messenger-lab3-api-4,4.56%,6.973MiB / 192MiB -2026-10-16T14:20:33Z,mtusi-messenger-lab3-api-1,11.23%,10.55MiB / 192MiB -2026-10-16T14:20:33Z,mtusi-messenger-lab3-api-4,11.62%,7.871MiB / 192MiB -2026-10-16T14:20:33Z,mtusi-messenger-lab3-api-3,11.03%,7.93MiB / 192MiB -2026-10-16T14:20:33Z,mtusi-messenger-lab3-api-2,11.67%,8.086MiB / 192MiB -2026-10-16T14:20:33Z,mtusi-messenger-lab3-lb-1,14.65%,13.12MiB / 64MiB -2026-10-16T14:20:33Z,mtusi-messenger-lab3-postgres-1,50.84%,321.6MiB / 384MiB -2026-10-16T14:20:33Z,mtusi-messenger-lab3-redis-1,0.22%,6.297MiB / 192MiB -2026-10-16T14:20:36Z,mtusi-messenger-lab3-api-1,11.70%,10.55MiB / 192MiB -2026-10-16T14:20:36Z,mtusi-messenger-lab3-api-4,10.65%,8.129MiB / 192MiB -2026-10-16T14:20:36Z,mtusi-messenger-lab3-api-3,11.47%,7.965MiB / 192MiB -2026-10-16T14:20:36Z,mtusi-messenger-lab3-api-2,11.14%,7.914MiB / 192MiB -2026-10-16T14:20:36Z,mtusi-messenger-lab3-lb-1,15.01%,13.13MiB / 64MiB -2026-10-16T14:20:36Z,mtusi-messenger-lab3-postgres-1,49.83%,322.5MiB / 384MiB -2026-10-16T14:20:36Z,mtusi-messenger-lab3-redis-1,0.22%,6.297MiB / 192MiB -2026-10-16T14:20:39Z,mtusi-messenger-lab3-api-1,12.07%,10.43MiB / 192MiB -2026-10-16T14:20:39Z,mtusi-messenger-lab3-api-4,11.05%,8.391MiB / 192MiB -2026-10-16T14:20:39Z,mtusi-messenger-lab3-api-3,11.02%,8.023MiB / 192MiB -2026-10-16T14:20:39Z,mtusi-messenger-lab3-api-2,10.99%,7.918MiB / 192MiB -2026-10-16T14:20:39Z,mtusi-messenger-lab3-lb-1,14.88%,13.12MiB / 64MiB -2026-10-16T14:20:39Z,mtusi-messenger-lab3-postgres-1,49.28%,322.6MiB / 384MiB -2026-10-16T14:20:39Z,mtusi-messenger-lab3-redis-1,0.24%,6.297MiB / 192MiB -2026-10-16T14:20:42Z,mtusi-messenger-lab3-api-1,11.41%,10.56MiB / 192MiB -2026-10-16T14:20:42Z,mtusi-messenger-lab3-api-4,11.05%,8.145MiB / 192MiB -2026-10-16T14:20:42Z,mtusi-messenger-lab3-api-3,11.23%,8.039MiB / 192MiB -2026-10-16T14:20:42Z,mtusi-messenger-lab3-api-2,11.45%,8.066MiB / 192MiB -2026-10-16T14:20:42Z,mtusi-messenger-lab3-lb-1,15.58%,13.14MiB / 64MiB -2026-10-16T14:20:42Z,mtusi-messenger-lab3-postgres-1,49.83%,325.2MiB / 384MiB -2026-10-16T14:20:42Z,mtusi-messenger-lab3-redis-1,0.21%,6.297MiB / 192MiB -2026-10-16T14:20:45Z,mtusi-messenger-lab3-api-1,10.95%,10.59MiB / 192MiB -2026-10-16T14:20:45Z,mtusi-messenger-lab3-api-4,11.07%,8.152MiB / 192MiB -2026-10-16T14:20:45Z,mtusi-messenger-lab3-api-3,11.31%,8.195MiB / 192MiB -2026-10-16T14:20:45Z,mtusi-messenger-lab3-api-2,11.84%,8.246MiB / 192MiB -2026-10-16T14:20:45Z,mtusi-messenger-lab3-lb-1,14.90%,13.11MiB / 64MiB -2026-10-16T14:20:45Z,mtusi-messenger-lab3-postgres-1,50.36%,337MiB / 384MiB -2026-10-16T14:20:45Z,mtusi-messenger-lab3-redis-1,0.22%,6.297MiB / 192MiB -2026-10-16T14:20:48Z,mtusi-messenger-lab3-api-1,11.59%,10.59MiB / 192MiB -2026-10-16T14:20:48Z,mtusi-messenger-lab3-api-4,11.54%,8.156MiB / 192MiB -2026-10-16T14:20:48Z,mtusi-messenger-lab3-api-3,11.87%,8.105MiB / 192MiB -2026-10-16T14:20:48Z,mtusi-messenger-lab3-api-2,11.50%,8.059MiB / 192MiB -2026-10-16T14:20:48Z,mtusi-messenger-lab3-lb-1,14.95%,13.14MiB / 64MiB -2026-10-16T14:20:48Z,mtusi-messenger-lab3-postgres-1,49.99%,337MiB / 384MiB -2026-10-16T14:20:48Z,mtusi-messenger-lab3-redis-1,0.22%,6.297MiB / 192MiB -2026-10-16T14:20:51Z,mtusi-messenger-lab3-api-1,11.46%,10.59MiB / 192MiB -2026-10-16T14:20:51Z,mtusi-messenger-lab3-api-4,10.91%,8.164MiB / 192MiB -2026-10-16T14:20:51Z,mtusi-messenger-lab3-api-3,11.63%,7.98MiB / 192MiB -2026-10-16T14:20:51Z,mtusi-messenger-lab3-api-2,11.78%,8.152MiB / 192MiB -2026-10-16T14:20:51Z,mtusi-messenger-lab3-lb-1,15.06%,13.12MiB / 64MiB -2026-10-16T14:20:51Z,mtusi-messenger-lab3-postgres-1,49.42%,337.4MiB / 384MiB -2026-10-16T14:20:51Z,mtusi-messenger-lab3-redis-1,0.23%,6.297MiB / 192MiB -2026-10-16T14:20:54Z,mtusi-messenger-lab3-api-1,11.60%,10.56MiB / 192MiB -2026-10-16T14:20:54Z,mtusi-messenger-lab3-api-4,11.98%,8.172MiB / 192MiB -2026-10-16T14:20:54Z,mtusi-messenger-lab3-api-3,10.85%,7.98MiB / 192MiB -2026-10-16T14:20:54Z,mtusi-messenger-lab3-api-2,11.20%,8.152MiB / 192MiB -2026-10-16T14:20:54Z,mtusi-messenger-lab3-lb-1,15.03%,13.14MiB / 64MiB -2026-10-16T14:20:54Z,mtusi-messenger-lab3-postgres-1,50.40%,322.9MiB / 384MiB -2026-10-16T14:20:54Z,mtusi-messenger-lab3-redis-1,0.24%,6.297MiB / 192MiB -2026-10-16T14:20:57Z,mtusi-messenger-lab3-api-1,11.62%,10.56MiB / 192MiB -2026-10-16T14:20:57Z,mtusi-messenger-lab3-api-4,11.65%,8.164MiB / 192MiB -2026-10-16T14:20:57Z,mtusi-messenger-lab3-api-3,11.68%,8.066MiB / 192MiB -2026-10-16T14:20:57Z,mtusi-messenger-lab3-api-2,11.40%,8.277MiB / 192MiB -2026-10-16T14:20:57Z,mtusi-messenger-lab3-lb-1,15.11%,13.15MiB / 64MiB -2026-10-16T14:20:57Z,mtusi-messenger-lab3-postgres-1,50.36%,322.7MiB / 384MiB -2026-10-16T14:20:57Z,mtusi-messenger-lab3-redis-1,0.24%,6.297MiB / 192MiB -2026-10-16T14:21:00Z,mtusi-messenger-lab3-api-1,11.72%,10.8MiB / 192MiB -2026-10-16T14:21:00Z,mtusi-messenger-lab3-api-4,11.67%,8.199MiB / 192MiB -2026-10-16T14:21:00Z,mtusi-messenger-lab3-api-3,11.02%,8.172MiB / 192MiB -2026-10-16T14:21:00Z,mtusi-messenger-lab3-api-2,11.06%,8.273MiB / 192MiB -2026-10-16T14:21:00Z,mtusi-messenger-lab3-lb-1,14.94%,13.14MiB / 64MiB -2026-10-16T14:21:00Z,mtusi-messenger-lab3-postgres-1,49.67%,322.9MiB / 384MiB -2026-10-16T14:21:00Z,mtusi-messenger-lab3-redis-1,0.74%,6.297MiB / 192MiB -2026-10-16T14:21:03Z,mtusi-messenger-lab3-api-1,10.97%,10.56MiB / 192MiB -2026-10-16T14:21:03Z,mtusi-messenger-lab3-api-4,10.95%,8.227MiB / 192MiB -2026-10-16T14:21:03Z,mtusi-messenger-lab3-api-3,11.52%,8.039MiB / 192MiB -2026-10-16T14:21:03Z,mtusi-messenger-lab3-api-2,11.06%,8.156MiB / 192MiB -2026-10-16T14:21:03Z,mtusi-messenger-lab3-lb-1,14.85%,13.11MiB / 64MiB -2026-10-16T14:21:03Z,mtusi-messenger-lab3-postgres-1,48.72%,323.2MiB / 384MiB -2026-10-16T14:21:03Z,mtusi-messenger-lab3-redis-1,0.22%,6.297MiB / 192MiB -2026-10-16T14:21:07Z,mtusi-messenger-lab3-api-1,11.35%,10.56MiB / 192MiB -2026-10-16T14:21:07Z,mtusi-messenger-lab3-api-4,11.26%,8.223MiB / 192MiB -2026-10-16T14:21:07Z,mtusi-messenger-lab3-api-3,11.11%,8.16MiB / 192MiB -2026-10-16T14:21:07Z,mtusi-messenger-lab3-api-2,11.82%,8.219MiB / 192MiB -2026-10-16T14:21:07Z,mtusi-messenger-lab3-lb-1,15.32%,13.13MiB / 64MiB -2026-10-16T14:21:07Z,mtusi-messenger-lab3-postgres-1,50.19%,323.6MiB / 384MiB -2026-10-16T14:21:07Z,mtusi-messenger-lab3-redis-1,0.70%,6.297MiB / 192MiB -2026-10-16T14:21:10Z,mtusi-messenger-lab3-api-1,11.44%,10.56MiB / 192MiB -2026-10-16T14:21:10Z,mtusi-messenger-lab3-api-4,11.25%,8.227MiB / 192MiB -2026-10-16T14:21:10Z,mtusi-messenger-lab3-api-3,10.86%,8.172MiB / 192MiB -2026-10-16T14:21:10Z,mtusi-messenger-lab3-api-2,11.62%,8.27MiB / 192MiB -2026-10-16T14:21:10Z,mtusi-messenger-lab3-lb-1,14.48%,13.12MiB / 64MiB -2026-10-16T14:21:10Z,mtusi-messenger-lab3-postgres-1,49.48%,323.7MiB / 384MiB -2026-10-16T14:21:10Z,mtusi-messenger-lab3-redis-1,0.22%,6.297MiB / 192MiB -2026-10-16T14:21:13Z,mtusi-messenger-lab3-api-1,11.79%,10.56MiB / 192MiB -2026-10-16T14:21:13Z,mtusi-messenger-lab3-api-4,11.36%,8.23MiB / 192MiB -2026-10-16T14:21:13Z,mtusi-messenger-lab3-api-3,10.80%,8.039MiB / 192MiB -2026-10-16T14:21:13Z,mtusi-messenger-lab3-api-2,11.34%,8.281MiB / 192MiB -2026-10-16T14:21:13Z,mtusi-messenger-lab3-lb-1,15.10%,13.12MiB / 64MiB -2026-10-16T14:21:13Z,mtusi-messenger-lab3-postgres-1,50.17%,323.8MiB / 384MiB -2026-10-16T14:21:13Z,mtusi-messenger-lab3-redis-1,0.22%,6.297MiB / 192MiB -2026-10-16T14:21:16Z,mtusi-messenger-lab3-api-1,11.06%,10.56MiB / 192MiB -2026-10-16T14:21:16Z,mtusi-messenger-lab3-api-4,11.63%,8.191MiB / 192MiB -2026-10-16T14:21:16Z,mtusi-messenger-lab3-api-3,11.32%,8.168MiB / 192MiB -2026-10-16T14:21:16Z,mtusi-messenger-lab3-api-2,11.19%,8.273MiB / 192MiB -2026-10-16T14:21:16Z,mtusi-messenger-lab3-lb-1,14.70%,13.12MiB / 64MiB -2026-10-16T14:21:16Z,mtusi-messenger-lab3-postgres-1,48.53%,323.9MiB / 384MiB -2026-10-16T14:21:16Z,mtusi-messenger-lab3-redis-1,0.69%,6.293MiB / 192MiB -2026-10-16T14:21:19Z,mtusi-messenger-lab3-api-1,11.02%,10.56MiB / 192MiB -2026-10-16T14:21:19Z,mtusi-messenger-lab3-api-4,11.65%,8.02MiB / 192MiB -2026-10-16T14:21:19Z,mtusi-messenger-lab3-api-3,11.41%,8.043MiB / 192MiB -2026-10-16T14:21:19Z,mtusi-messenger-lab3-api-2,11.47%,8.16MiB / 192MiB -2026-10-16T14:21:19Z,mtusi-messenger-lab3-lb-1,15.42%,13.12MiB / 64MiB -2026-10-16T14:21:19Z,mtusi-messenger-lab3-postgres-1,50.02%,324MiB / 384MiB -2026-10-16T14:21:19Z,mtusi-messenger-lab3-redis-1,0.24%,6.293MiB / 192MiB -2026-10-16T14:21:22Z,mtusi-messenger-lab3-lb-1,4.33%,13.03MiB / 64MiB -2026-10-16T14:21:22Z,mtusi-messenger-lab3-postgres-1,37.32%,285.3MiB / 384MiB -2026-10-16T14:21:22Z,mtusi-messenger-lab3-redis-1,0.68%,6.293MiB / 192MiB diff --git a/evidence/track1/superseded/run1-wrong-budgets/stats-pool5.csv b/evidence/track1/superseded/run1-wrong-budgets/stats-pool5.csv deleted file mode 100644 index a2cb647..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/stats-pool5.csv +++ /dev/null @@ -1,141 +0,0 @@ -timestamp,container,cpu_percent,mem_usage -2026-10-16T14:21:41Z,mtusi-messenger-lab3-api-3,8.75%,136.5MiB / 192MiB -2026-10-16T14:21:41Z,mtusi-messenger-lab3-api-2,9.53%,142.8MiB / 192MiB -2026-10-16T14:21:41Z,mtusi-messenger-lab3-api-4,9.25%,78.34MiB / 192MiB -2026-10-16T14:21:41Z,mtusi-messenger-lab3-api-1,15.85%,78.51MiB / 192MiB -2026-10-16T14:21:41Z,mtusi-messenger-lab3-lb-1,12.37%,13.12MiB / 64MiB -2026-10-16T14:21:41Z,mtusi-messenger-lab3-postgres-1,39.89%,319.3MiB / 384MiB -2026-10-16T14:21:41Z,mtusi-messenger-lab3-redis-1,0.34%,6.293MiB / 192MiB -2026-10-16T14:21:44Z,mtusi-messenger-lab3-api-3,11.46%,136.9MiB / 192MiB -2026-10-16T14:21:44Z,mtusi-messenger-lab3-api-2,11.52%,168.8MiB / 192MiB -2026-10-16T14:21:44Z,mtusi-messenger-lab3-api-4,11.69%,104.4MiB / 192MiB -2026-10-16T14:21:44Z,mtusi-messenger-lab3-api-1,10.95%,103.8MiB / 192MiB -2026-10-16T14:21:44Z,mtusi-messenger-lab3-lb-1,15.50%,13.13MiB / 64MiB -2026-10-16T14:21:44Z,mtusi-messenger-lab3-postgres-1,50.48%,319.9MiB / 384MiB -2026-10-16T14:21:44Z,mtusi-messenger-lab3-redis-1,0.23%,6.293MiB / 192MiB -2026-10-16T14:21:47Z,mtusi-messenger-lab3-api-3,9.40%,137.6MiB / 192MiB -2026-10-16T14:21:47Z,mtusi-messenger-lab3-api-2,10.02%,191.3MiB / 192MiB -2026-10-16T14:21:47Z,mtusi-messenger-lab3-api-4,10.51%,127.2MiB / 192MiB -2026-10-16T14:21:47Z,mtusi-messenger-lab3-api-1,9.98%,126MiB / 192MiB -2026-10-16T14:21:47Z,mtusi-messenger-lab3-lb-1,13.14%,13.14MiB / 64MiB -2026-10-16T14:21:47Z,mtusi-messenger-lab3-postgres-1,49.32%,321MiB / 384MiB -2026-10-16T14:21:47Z,mtusi-messenger-lab3-redis-1,0.90%,6.293MiB / 192MiB -2026-10-16T14:21:50Z,mtusi-messenger-lab3-api-3,9.62%,13.63MiB / 192MiB -2026-10-16T14:21:50Z,mtusi-messenger-lab3-api-2,8.82%,7.617MiB / 192MiB -2026-10-16T14:21:50Z,mtusi-messenger-lab3-api-4,9.77%,10.69MiB / 192MiB -2026-10-16T14:21:50Z,mtusi-messenger-lab3-api-1,10.06%,11.79MiB / 192MiB -2026-10-16T14:21:50Z,mtusi-messenger-lab3-lb-1,13.01%,13.13MiB / 64MiB -2026-10-16T14:21:50Z,mtusi-messenger-lab3-postgres-1,50.46%,327.4MiB / 384MiB -2026-10-16T14:21:50Z,mtusi-messenger-lab3-redis-1,0.23%,6.293MiB / 192MiB -2026-10-16T14:21:54Z,mtusi-messenger-lab3-api-3,8.26%,14.18MiB / 192MiB -2026-10-16T14:21:54Z,mtusi-messenger-lab3-api-2,9.00%,7.98MiB / 192MiB -2026-10-16T14:21:54Z,mtusi-messenger-lab3-api-4,7.52%,10.63MiB / 192MiB -2026-10-16T14:21:54Z,mtusi-messenger-lab3-api-1,8.35%,11.36MiB / 192MiB -2026-10-16T14:21:54Z,mtusi-messenger-lab3-lb-1,11.11%,13.13MiB / 64MiB -2026-10-16T14:21:54Z,mtusi-messenger-lab3-postgres-1,50.25%,330.1MiB / 384MiB -2026-10-16T14:21:54Z,mtusi-messenger-lab3-redis-1,0.23%,6.293MiB / 192MiB -2026-10-16T14:21:57Z,mtusi-messenger-lab3-api-3,11.09%,13.86MiB / 192MiB -2026-10-16T14:21:57Z,mtusi-messenger-lab3-api-2,11.17%,8.016MiB / 192MiB -2026-10-16T14:21:57Z,mtusi-messenger-lab3-api-4,11.23%,10.56MiB / 192MiB -2026-10-16T14:21:57Z,mtusi-messenger-lab3-api-1,10.76%,11.33MiB / 192MiB -2026-10-16T14:21:57Z,mtusi-messenger-lab3-lb-1,14.26%,13.12MiB / 64MiB -2026-10-16T14:21:57Z,mtusi-messenger-lab3-postgres-1,49.88%,332MiB / 384MiB -2026-10-16T14:21:57Z,mtusi-messenger-lab3-redis-1,0.23%,6.293MiB / 192MiB -2026-10-16T14:22:00Z,mtusi-messenger-lab3-api-3,11.48%,13.18MiB / 192MiB -2026-10-16T14:22:00Z,mtusi-messenger-lab3-api-2,10.83%,8.223MiB / 192MiB -2026-10-16T14:22:00Z,mtusi-messenger-lab3-api-4,11.31%,10.62MiB / 192MiB -2026-10-16T14:22:00Z,mtusi-messenger-lab3-api-1,11.62%,11.27MiB / 192MiB -2026-10-16T14:22:00Z,mtusi-messenger-lab3-lb-1,14.98%,13.12MiB / 64MiB -2026-10-16T14:22:00Z,mtusi-messenger-lab3-postgres-1,49.69%,335.2MiB / 384MiB -2026-10-16T14:22:00Z,mtusi-messenger-lab3-redis-1,0.23%,6.293MiB / 192MiB -2026-10-16T14:22:03Z,mtusi-messenger-lab3-api-3,11.53%,12.96MiB / 192MiB -2026-10-16T14:22:03Z,mtusi-messenger-lab3-api-2,11.62%,8.094MiB / 192MiB -2026-10-16T14:22:03Z,mtusi-messenger-lab3-api-4,11.20%,10.56MiB / 192MiB -2026-10-16T14:22:03Z,mtusi-messenger-lab3-api-1,11.88%,11.67MiB / 192MiB -2026-10-16T14:22:03Z,mtusi-messenger-lab3-lb-1,14.86%,13.13MiB / 64MiB -2026-10-16T14:22:03Z,mtusi-messenger-lab3-postgres-1,49.00%,335.7MiB / 384MiB -2026-10-16T14:22:03Z,mtusi-messenger-lab3-redis-1,0.22%,6.293MiB / 192MiB -2026-10-16T14:22:06Z,mtusi-messenger-lab3-api-3,11.21%,12.97MiB / 192MiB -2026-10-16T14:22:06Z,mtusi-messenger-lab3-api-2,10.96%,8.246MiB / 192MiB -2026-10-16T14:22:06Z,mtusi-messenger-lab3-api-4,10.52%,10.67MiB / 192MiB -2026-10-16T14:22:06Z,mtusi-messenger-lab3-api-1,10.90%,11.13MiB / 192MiB -2026-10-16T14:22:06Z,mtusi-messenger-lab3-lb-1,14.37%,13.13MiB / 64MiB -2026-10-16T14:22:06Z,mtusi-messenger-lab3-postgres-1,48.07%,330.7MiB / 384MiB -2026-10-16T14:22:06Z,mtusi-messenger-lab3-redis-1,0.25%,6.293MiB / 192MiB -2026-10-16T14:22:09Z,mtusi-messenger-lab3-api-3,11.81%,13.76MiB / 192MiB -2026-10-16T14:22:09Z,mtusi-messenger-lab3-api-2,10.98%,8.234MiB / 192MiB -2026-10-16T14:22:09Z,mtusi-messenger-lab3-api-4,11.31%,10.62MiB / 192MiB -2026-10-16T14:22:09Z,mtusi-messenger-lab3-api-1,11.25%,11.29MiB / 192MiB -2026-10-16T14:22:09Z,mtusi-messenger-lab3-lb-1,14.92%,13.12MiB / 64MiB -2026-10-16T14:22:09Z,mtusi-messenger-lab3-postgres-1,50.27%,330.7MiB / 384MiB -2026-10-16T14:22:09Z,mtusi-messenger-lab3-redis-1,0.22%,6.293MiB / 192MiB -2026-10-16T14:22:12Z,mtusi-messenger-lab3-api-3,11.67%,14.15MiB / 192MiB -2026-10-16T14:22:12Z,mtusi-messenger-lab3-api-2,11.52%,8.23MiB / 192MiB -2026-10-16T14:22:12Z,mtusi-messenger-lab3-api-4,11.05%,10.63MiB / 192MiB -2026-10-16T14:22:12Z,mtusi-messenger-lab3-api-1,11.42%,11.45MiB / 192MiB -2026-10-16T14:22:12Z,mtusi-messenger-lab3-lb-1,14.85%,13.12MiB / 64MiB -2026-10-16T14:22:12Z,mtusi-messenger-lab3-postgres-1,49.68%,330.8MiB / 384MiB -2026-10-16T14:22:12Z,mtusi-messenger-lab3-redis-1,0.67%,6.293MiB / 192MiB -2026-10-16T14:22:15Z,mtusi-messenger-lab3-api-3,10.56%,13.84MiB / 192MiB -2026-10-16T14:22:15Z,mtusi-messenger-lab3-api-2,10.53%,8.113MiB / 192MiB -2026-10-16T14:22:15Z,mtusi-messenger-lab3-api-4,11.45%,10.55MiB / 192MiB -2026-10-16T14:22:15Z,mtusi-messenger-lab3-api-1,10.96%,11.77MiB / 192MiB -2026-10-16T14:22:15Z,mtusi-messenger-lab3-lb-1,14.46%,13.12MiB / 64MiB -2026-10-16T14:22:15Z,mtusi-messenger-lab3-postgres-1,49.01%,330.8MiB / 384MiB -2026-10-16T14:22:15Z,mtusi-messenger-lab3-redis-1,0.21%,6.293MiB / 192MiB -2026-10-16T14:22:18Z,mtusi-messenger-lab3-api-3,12.23%,13.79MiB / 192MiB -2026-10-16T14:22:18Z,mtusi-messenger-lab3-api-2,11.14%,8.113MiB / 192MiB -2026-10-16T14:22:18Z,mtusi-messenger-lab3-api-4,11.57%,10.59MiB / 192MiB -2026-10-16T14:22:18Z,mtusi-messenger-lab3-api-1,11.67%,11.12MiB / 192MiB -2026-10-16T14:22:18Z,mtusi-messenger-lab3-lb-1,14.67%,13.14MiB / 64MiB -2026-10-16T14:22:18Z,mtusi-messenger-lab3-postgres-1,49.35%,330.9MiB / 384MiB -2026-10-16T14:22:18Z,mtusi-messenger-lab3-redis-1,0.25%,6.293MiB / 192MiB -2026-10-16T14:22:21Z,mtusi-messenger-lab3-api-3,11.89%,13.62MiB / 192MiB -2026-10-16T14:22:21Z,mtusi-messenger-lab3-api-2,11.52%,8.105MiB / 192MiB -2026-10-16T14:22:21Z,mtusi-messenger-lab3-api-4,11.64%,10.61MiB / 192MiB -2026-10-16T14:22:21Z,mtusi-messenger-lab3-api-1,11.27%,11.11MiB / 192MiB -2026-10-16T14:22:21Z,mtusi-messenger-lab3-lb-1,14.77%,13.09MiB / 64MiB -2026-10-16T14:22:21Z,mtusi-messenger-lab3-postgres-1,49.41%,330.9MiB / 384MiB -2026-10-16T14:22:21Z,mtusi-messenger-lab3-redis-1,0.76%,6.293MiB / 192MiB -2026-10-16T14:22:24Z,mtusi-messenger-lab3-api-3,11.08%,14.01MiB / 192MiB -2026-10-16T14:22:24Z,mtusi-messenger-lab3-api-2,10.75%,8.52MiB / 192MiB -2026-10-16T14:22:24Z,mtusi-messenger-lab3-api-4,11.17%,10.62MiB / 192MiB -2026-10-16T14:22:24Z,mtusi-messenger-lab3-api-1,12.34%,11.2MiB / 192MiB -2026-10-16T14:22:24Z,mtusi-messenger-lab3-lb-1,14.89%,13.13MiB / 64MiB -2026-10-16T14:22:24Z,mtusi-messenger-lab3-postgres-1,49.88%,330.9MiB / 384MiB -2026-10-16T14:22:24Z,mtusi-messenger-lab3-redis-1,0.22%,6.293MiB / 192MiB -2026-10-16T14:22:27Z,mtusi-messenger-lab3-api-3,11.38%,13.76MiB / 192MiB -2026-10-16T14:22:27Z,mtusi-messenger-lab3-api-2,11.53%,8.305MiB / 192MiB -2026-10-16T14:22:27Z,mtusi-messenger-lab3-api-4,11.26%,10.61MiB / 192MiB -2026-10-16T14:22:27Z,mtusi-messenger-lab3-api-1,11.58%,11.3MiB / 192MiB -2026-10-16T14:22:27Z,mtusi-messenger-lab3-lb-1,15.19%,13.12MiB / 64MiB -2026-10-16T14:22:27Z,mtusi-messenger-lab3-postgres-1,50.06%,330.9MiB / 384MiB -2026-10-16T14:22:27Z,mtusi-messenger-lab3-redis-1,0.71%,6.293MiB / 192MiB -2026-10-16T14:22:31Z,mtusi-messenger-lab3-api-3,11.66%,13.88MiB / 192MiB -2026-10-16T14:22:31Z,mtusi-messenger-lab3-api-2,11.17%,8.305MiB / 192MiB -2026-10-16T14:22:31Z,mtusi-messenger-lab3-api-4,11.37%,10.61MiB / 192MiB -2026-10-16T14:22:31Z,mtusi-messenger-lab3-api-1,11.04%,11.11MiB / 192MiB -2026-10-16T14:22:31Z,mtusi-messenger-lab3-lb-1,15.20%,13.13MiB / 64MiB -2026-10-16T14:22:31Z,mtusi-messenger-lab3-postgres-1,50.03%,330.9MiB / 384MiB -2026-10-16T14:22:31Z,mtusi-messenger-lab3-redis-1,0.27%,6.293MiB / 192MiB -2026-10-16T14:22:34Z,mtusi-messenger-lab3-api-3,11.15%,13.77MiB / 192MiB -2026-10-16T14:22:34Z,mtusi-messenger-lab3-api-2,11.95%,8.305MiB / 192MiB -2026-10-16T14:22:34Z,mtusi-messenger-lab3-api-4,11.55%,10.62MiB / 192MiB -2026-10-16T14:22:34Z,mtusi-messenger-lab3-api-1,11.35%,11.47MiB / 192MiB -2026-10-16T14:22:34Z,mtusi-messenger-lab3-lb-1,14.79%,13.13MiB / 64MiB -2026-10-16T14:22:34Z,mtusi-messenger-lab3-postgres-1,50.14%,330.9MiB / 384MiB -2026-10-16T14:22:34Z,mtusi-messenger-lab3-redis-1,0.23%,6.293MiB / 192MiB -2026-10-16T14:22:37Z,mtusi-messenger-lab3-api-3,11.38%,13.73MiB / 192MiB -2026-10-16T14:22:37Z,mtusi-messenger-lab3-api-2,11.40%,8.305MiB / 192MiB -2026-10-16T14:22:37Z,mtusi-messenger-lab3-api-4,11.56%,10.61MiB / 192MiB -2026-10-16T14:22:37Z,mtusi-messenger-lab3-api-1,11.60%,11.41MiB / 192MiB -2026-10-16T14:22:37Z,mtusi-messenger-lab3-lb-1,15.12%,13.12MiB / 64MiB -2026-10-16T14:22:37Z,mtusi-messenger-lab3-postgres-1,49.26%,330.9MiB / 384MiB -2026-10-16T14:22:37Z,mtusi-messenger-lab3-redis-1,0.74%,6.293MiB / 192MiB -2026-10-16T14:22:40Z,mtusi-messenger-lab3-api-3,11.59%,13.3MiB / 192MiB -2026-10-16T14:22:40Z,mtusi-messenger-lab3-api-2,11.41%,8.309MiB / 192MiB -2026-10-16T14:22:40Z,mtusi-messenger-lab3-api-4,11.24%,10.61MiB / 192MiB -2026-10-16T14:22:40Z,mtusi-messenger-lab3-api-1,10.87%,11.18MiB / 192MiB -2026-10-16T14:22:40Z,mtusi-messenger-lab3-lb-1,14.79%,13.12MiB / 64MiB -2026-10-16T14:22:40Z,mtusi-messenger-lab3-postgres-1,49.86%,331MiB / 384MiB -2026-10-16T14:22:40Z,mtusi-messenger-lab3-redis-1,0.22%,6.293MiB / 192MiB diff --git a/evidence/track1/superseded/run1-wrong-budgets/stats-r1.csv b/evidence/track1/superseded/run1-wrong-budgets/stats-r1.csv deleted file mode 100644 index 5779807..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/stats-r1.csv +++ /dev/null @@ -1,81 +0,0 @@ -timestamp,container,cpu_percent,mem_usage -2026-10-16T14:12:34Z,mtusi-messenger-lab3-api-1,32.74%,198.7MiB / 768MiB -2026-10-16T14:12:34Z,mtusi-messenger-lab3-lb-1,11.77%,11.01MiB / 64MiB -2026-10-16T14:12:34Z,mtusi-messenger-lab3-postgres-1,50.98%,106.1MiB / 384MiB -2026-10-16T14:12:34Z,mtusi-messenger-lab3-redis-1,0.76%,6.586MiB / 192MiB -2026-10-16T14:12:37Z,mtusi-messenger-lab3-api-1,33.66%,15.4MiB / 768MiB -2026-10-16T14:12:37Z,mtusi-messenger-lab3-lb-1,14.75%,11.07MiB / 64MiB -2026-10-16T14:12:37Z,mtusi-messenger-lab3-postgres-1,51.20%,109MiB / 384MiB -2026-10-16T14:12:37Z,mtusi-messenger-lab3-redis-1,0.23%,6.586MiB / 192MiB -2026-10-16T14:12:40Z,mtusi-messenger-lab3-api-1,33.08%,15.4MiB / 768MiB -2026-10-16T14:12:40Z,mtusi-messenger-lab3-lb-1,14.49%,11.07MiB / 64MiB -2026-10-16T14:12:40Z,mtusi-messenger-lab3-postgres-1,51.05%,112MiB / 384MiB -2026-10-16T14:12:40Z,mtusi-messenger-lab3-redis-1,0.23%,6.586MiB / 192MiB -2026-10-16T14:12:43Z,mtusi-messenger-lab3-api-1,32.89%,15.52MiB / 768MiB -2026-10-16T14:12:43Z,mtusi-messenger-lab3-lb-1,14.20%,11.07MiB / 64MiB -2026-10-16T14:12:43Z,mtusi-messenger-lab3-postgres-1,50.82%,115.1MiB / 384MiB -2026-10-16T14:12:43Z,mtusi-messenger-lab3-redis-1,0.72%,6.586MiB / 192MiB -2026-10-16T14:12:46Z,mtusi-messenger-lab3-api-1,22.99%,15.57MiB / 768MiB -2026-10-16T14:12:46Z,mtusi-messenger-lab3-lb-1,9.59%,11.07MiB / 64MiB -2026-10-16T14:12:46Z,mtusi-messenger-lab3-postgres-1,50.66%,126.2MiB / 384MiB -2026-10-16T14:12:46Z,mtusi-messenger-lab3-redis-1,0.23%,6.586MiB / 192MiB -2026-10-16T14:12:49Z,mtusi-messenger-lab3-api-1,33.56%,15.51MiB / 768MiB -2026-10-16T14:12:49Z,mtusi-messenger-lab3-lb-1,14.89%,11.07MiB / 64MiB -2026-10-16T14:12:49Z,mtusi-messenger-lab3-postgres-1,51.26%,122.7MiB / 384MiB -2026-10-16T14:12:49Z,mtusi-messenger-lab3-redis-1,0.79%,6.586MiB / 192MiB -2026-10-16T14:12:52Z,mtusi-messenger-lab3-api-1,32.37%,15.52MiB / 768MiB -2026-10-16T14:12:52Z,mtusi-messenger-lab3-lb-1,13.89%,11.05MiB / 64MiB -2026-10-16T14:12:52Z,mtusi-messenger-lab3-postgres-1,51.56%,125.5MiB / 384MiB -2026-10-16T14:12:52Z,mtusi-messenger-lab3-redis-1,0.25%,6.586MiB / 192MiB -2026-10-16T14:12:55Z,mtusi-messenger-lab3-api-1,32.46%,15.52MiB / 768MiB -2026-10-16T14:12:55Z,mtusi-messenger-lab3-lb-1,14.56%,11.04MiB / 64MiB -2026-10-16T14:12:55Z,mtusi-messenger-lab3-postgres-1,51.06%,128.4MiB / 384MiB -2026-10-16T14:12:55Z,mtusi-messenger-lab3-redis-1,0.22%,6.586MiB / 192MiB -2026-10-16T14:12:58Z,mtusi-messenger-lab3-api-1,33.12%,15.57MiB / 768MiB -2026-10-16T14:12:58Z,mtusi-messenger-lab3-lb-1,14.57%,11.06MiB / 64MiB -2026-10-16T14:12:58Z,mtusi-messenger-lab3-postgres-1,50.34%,139.5MiB / 384MiB -2026-10-16T14:12:58Z,mtusi-messenger-lab3-redis-1,0.25%,6.586MiB / 192MiB -2026-10-16T14:13:01Z,mtusi-messenger-lab3-api-1,32.06%,15.82MiB / 768MiB -2026-10-16T14:13:01Z,mtusi-messenger-lab3-lb-1,14.18%,11.07MiB / 64MiB -2026-10-16T14:13:01Z,mtusi-messenger-lab3-postgres-1,49.27%,142.6MiB / 384MiB -2026-10-16T14:13:01Z,mtusi-messenger-lab3-redis-1,0.23%,6.586MiB / 192MiB -2026-10-16T14:13:04Z,mtusi-messenger-lab3-api-1,33.16%,15.56MiB / 768MiB -2026-10-16T14:13:04Z,mtusi-messenger-lab3-lb-1,14.07%,11.05MiB / 64MiB -2026-10-16T14:13:04Z,mtusi-messenger-lab3-postgres-1,49.42%,144.4MiB / 384MiB -2026-10-16T14:13:04Z,mtusi-messenger-lab3-redis-1,0.25%,6.586MiB / 192MiB -2026-10-16T14:13:07Z,mtusi-messenger-lab3-api-1,33.54%,15.54MiB / 768MiB -2026-10-16T14:13:07Z,mtusi-messenger-lab3-lb-1,14.34%,11.05MiB / 64MiB -2026-10-16T14:13:07Z,mtusi-messenger-lab3-postgres-1,50.96%,148MiB / 384MiB -2026-10-16T14:13:07Z,mtusi-messenger-lab3-redis-1,0.22%,6.586MiB / 192MiB -2026-10-16T14:13:10Z,mtusi-messenger-lab3-api-1,32.24%,15.54MiB / 768MiB -2026-10-16T14:13:10Z,mtusi-messenger-lab3-lb-1,13.94%,11.05MiB / 64MiB -2026-10-16T14:13:10Z,mtusi-messenger-lab3-postgres-1,50.75%,150.5MiB / 384MiB -2026-10-16T14:13:10Z,mtusi-messenger-lab3-redis-1,0.23%,6.586MiB / 192MiB -2026-10-16T14:13:13Z,mtusi-messenger-lab3-api-1,32.62%,15.51MiB / 768MiB -2026-10-16T14:13:13Z,mtusi-messenger-lab3-lb-1,14.23%,11.07MiB / 64MiB -2026-10-16T14:13:13Z,mtusi-messenger-lab3-postgres-1,50.81%,152.6MiB / 384MiB -2026-10-16T14:13:13Z,mtusi-messenger-lab3-redis-1,0.78%,6.586MiB / 192MiB -2026-10-16T14:13:16Z,mtusi-messenger-lab3-api-1,32.42%,15.59MiB / 768MiB -2026-10-16T14:13:16Z,mtusi-messenger-lab3-lb-1,14.22%,11.08MiB / 64MiB -2026-10-16T14:13:16Z,mtusi-messenger-lab3-postgres-1,50.73%,155.7MiB / 384MiB -2026-10-16T14:13:16Z,mtusi-messenger-lab3-redis-1,0.25%,6.586MiB / 192MiB -2026-10-16T14:13:19Z,mtusi-messenger-lab3-api-1,32.57%,15.57MiB / 768MiB -2026-10-16T14:13:19Z,mtusi-messenger-lab3-lb-1,14.45%,11.06MiB / 64MiB -2026-10-16T14:13:19Z,mtusi-messenger-lab3-postgres-1,50.45%,158.4MiB / 384MiB -2026-10-16T14:13:19Z,mtusi-messenger-lab3-redis-1,0.74%,6.586MiB / 192MiB -2026-10-16T14:13:22Z,mtusi-messenger-lab3-api-1,31.82%,15.58MiB / 768MiB -2026-10-16T14:13:22Z,mtusi-messenger-lab3-lb-1,14.21%,11.07MiB / 64MiB -2026-10-16T14:13:22Z,mtusi-messenger-lab3-postgres-1,49.57%,161.1MiB / 384MiB -2026-10-16T14:13:22Z,mtusi-messenger-lab3-redis-1,0.24%,6.586MiB / 192MiB -2026-10-16T14:13:26Z,mtusi-messenger-lab3-api-1,33.40%,15.62MiB / 768MiB -2026-10-16T14:13:26Z,mtusi-messenger-lab3-lb-1,15.05%,11.05MiB / 64MiB -2026-10-16T14:13:26Z,mtusi-messenger-lab3-postgres-1,49.75%,163.3MiB / 384MiB -2026-10-16T14:13:26Z,mtusi-messenger-lab3-redis-1,0.27%,6.586MiB / 192MiB -2026-10-16T14:13:29Z,mtusi-messenger-lab3-api-1,31.80%,15.66MiB / 768MiB -2026-10-16T14:13:29Z,mtusi-messenger-lab3-lb-1,14.22%,11.07MiB / 64MiB -2026-10-16T14:13:29Z,mtusi-messenger-lab3-postgres-1,50.65%,165.9MiB / 384MiB -2026-10-16T14:13:29Z,mtusi-messenger-lab3-redis-1,0.25%,6.711MiB / 192MiB -2026-10-16T14:13:32Z,mtusi-messenger-lab3-api-1,33.93%,15.82MiB / 768MiB -2026-10-16T14:13:32Z,mtusi-messenger-lab3-lb-1,14.70%,11.07MiB / 64MiB -2026-10-16T14:13:32Z,mtusi-messenger-lab3-postgres-1,50.69%,168.6MiB / 384MiB -2026-10-16T14:13:32Z,mtusi-messenger-lab3-redis-1,0.26%,6.711MiB / 192MiB diff --git a/evidence/track1/superseded/run1-wrong-budgets/stats-r2.csv b/evidence/track1/superseded/run1-wrong-budgets/stats-r2.csv deleted file mode 100644 index c2eca6f..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/stats-r2.csv +++ /dev/null @@ -1,101 +0,0 @@ -timestamp,container,cpu_percent,mem_usage -2026-10-16T14:13:50Z,mtusi-messenger-lab3-api-2,20.08%,162.4MiB / 384MiB -2026-10-16T14:13:50Z,mtusi-messenger-lab3-api-1,19.77%,162.5MiB / 384MiB -2026-10-16T14:13:50Z,mtusi-messenger-lab3-lb-1,15.68%,11.08MiB / 64MiB -2026-10-16T14:13:50Z,mtusi-messenger-lab3-postgres-1,50.89%,230.6MiB / 384MiB -2026-10-16T14:13:50Z,mtusi-messenger-lab3-redis-1,0.23%,6.715MiB / 192MiB -2026-10-16T14:13:53Z,mtusi-messenger-lab3-api-2,20.21%,195.2MiB / 384MiB -2026-10-16T14:13:53Z,mtusi-messenger-lab3-api-1,21.25%,14.04MiB / 384MiB -2026-10-16T14:13:53Z,mtusi-messenger-lab3-lb-1,15.36%,13.09MiB / 64MiB -2026-10-16T14:13:53Z,mtusi-messenger-lab3-postgres-1,50.03%,236.4MiB / 384MiB -2026-10-16T14:13:53Z,mtusi-messenger-lab3-redis-1,0.75%,6.289MiB / 192MiB -2026-10-16T14:13:56Z,mtusi-messenger-lab3-api-2,20.33%,11.11MiB / 384MiB -2026-10-16T14:13:56Z,mtusi-messenger-lab3-api-1,20.04%,14.42MiB / 384MiB -2026-10-16T14:13:56Z,mtusi-messenger-lab3-lb-1,15.72%,13.11MiB / 64MiB -2026-10-16T14:13:56Z,mtusi-messenger-lab3-postgres-1,50.21%,240.5MiB / 384MiB -2026-10-16T14:13:56Z,mtusi-messenger-lab3-redis-1,0.24%,6.289MiB / 192MiB -2026-10-16T14:13:59Z,mtusi-messenger-lab3-api-2,20.65%,13.14MiB / 384MiB -2026-10-16T14:13:59Z,mtusi-messenger-lab3-api-1,19.74%,14.37MiB / 384MiB -2026-10-16T14:13:59Z,mtusi-messenger-lab3-lb-1,15.27%,13.09MiB / 64MiB -2026-10-16T14:13:59Z,mtusi-messenger-lab3-postgres-1,50.67%,232.9MiB / 384MiB -2026-10-16T14:13:59Z,mtusi-messenger-lab3-redis-1,0.24%,6.289MiB / 192MiB -2026-10-16T14:14:02Z,mtusi-messenger-lab3-api-2,19.46%,13.22MiB / 384MiB -2026-10-16T14:14:02Z,mtusi-messenger-lab3-api-1,20.79%,13.88MiB / 384MiB -2026-10-16T14:14:02Z,mtusi-messenger-lab3-lb-1,15.35%,13.08MiB / 64MiB -2026-10-16T14:14:02Z,mtusi-messenger-lab3-postgres-1,49.48%,235.2MiB / 384MiB -2026-10-16T14:14:02Z,mtusi-messenger-lab3-redis-1,0.24%,6.289MiB / 192MiB -2026-10-16T14:14:05Z,mtusi-messenger-lab3-api-2,19.56%,13.03MiB / 384MiB -2026-10-16T14:14:05Z,mtusi-messenger-lab3-api-1,19.84%,14.45MiB / 384MiB -2026-10-16T14:14:05Z,mtusi-messenger-lab3-lb-1,15.18%,13.33MiB / 64MiB -2026-10-16T14:14:05Z,mtusi-messenger-lab3-postgres-1,49.93%,235.3MiB / 384MiB -2026-10-16T14:14:05Z,mtusi-messenger-lab3-redis-1,0.25%,6.289MiB / 192MiB -2026-10-16T14:14:08Z,mtusi-messenger-lab3-api-2,21.44%,13MiB / 384MiB -2026-10-16T14:14:08Z,mtusi-messenger-lab3-api-1,20.61%,14.43MiB / 384MiB -2026-10-16T14:14:08Z,mtusi-messenger-lab3-lb-1,15.37%,13.08MiB / 64MiB -2026-10-16T14:14:08Z,mtusi-messenger-lab3-postgres-1,49.82%,235.9MiB / 384MiB -2026-10-16T14:14:08Z,mtusi-messenger-lab3-redis-1,0.22%,6.289MiB / 192MiB -2026-10-16T14:14:12Z,mtusi-messenger-lab3-api-2,19.38%,13.05MiB / 384MiB -2026-10-16T14:14:12Z,mtusi-messenger-lab3-api-1,20.24%,14.04MiB / 384MiB -2026-10-16T14:14:12Z,mtusi-messenger-lab3-lb-1,15.38%,13.33MiB / 64MiB -2026-10-16T14:14:12Z,mtusi-messenger-lab3-postgres-1,50.67%,236.1MiB / 384MiB -2026-10-16T14:14:12Z,mtusi-messenger-lab3-redis-1,0.22%,6.289MiB / 192MiB -2026-10-16T14:14:15Z,mtusi-messenger-lab3-api-2,20.07%,12.96MiB / 384MiB -2026-10-16T14:14:15Z,mtusi-messenger-lab3-api-1,19.67%,14.73MiB / 384MiB -2026-10-16T14:14:15Z,mtusi-messenger-lab3-lb-1,15.22%,13.09MiB / 64MiB -2026-10-16T14:14:15Z,mtusi-messenger-lab3-postgres-1,49.58%,236.2MiB / 384MiB -2026-10-16T14:14:15Z,mtusi-messenger-lab3-redis-1,0.21%,6.289MiB / 192MiB -2026-10-16T14:14:18Z,mtusi-messenger-lab3-api-2,20.92%,13.02MiB / 384MiB -2026-10-16T14:14:18Z,mtusi-messenger-lab3-api-1,20.75%,14.74MiB / 384MiB -2026-10-16T14:14:18Z,mtusi-messenger-lab3-lb-1,15.19%,13.09MiB / 64MiB -2026-10-16T14:14:18Z,mtusi-messenger-lab3-postgres-1,49.80%,236.8MiB / 384MiB -2026-10-16T14:14:18Z,mtusi-messenger-lab3-redis-1,0.22%,6.289MiB / 192MiB -2026-10-16T14:14:21Z,mtusi-messenger-lab3-api-2,20.85%,13.16MiB / 384MiB -2026-10-16T14:14:21Z,mtusi-messenger-lab3-api-1,20.08%,14.48MiB / 384MiB -2026-10-16T14:14:21Z,mtusi-messenger-lab3-lb-1,15.24%,13.1MiB / 64MiB -2026-10-16T14:14:21Z,mtusi-messenger-lab3-postgres-1,50.14%,237.3MiB / 384MiB -2026-10-16T14:14:21Z,mtusi-messenger-lab3-redis-1,0.24%,6.289MiB / 192MiB -2026-10-16T14:14:24Z,mtusi-messenger-lab3-api-2,20.58%,13.19MiB / 384MiB -2026-10-16T14:14:24Z,mtusi-messenger-lab3-api-1,19.75%,13.8MiB / 384MiB -2026-10-16T14:14:24Z,mtusi-messenger-lab3-lb-1,15.53%,13.09MiB / 64MiB -2026-10-16T14:14:24Z,mtusi-messenger-lab3-postgres-1,50.14%,237.2MiB / 384MiB -2026-10-16T14:14:24Z,mtusi-messenger-lab3-redis-1,0.22%,6.289MiB / 192MiB -2026-10-16T14:14:27Z,mtusi-messenger-lab3-api-2,20.52%,12.88MiB / 384MiB -2026-10-16T14:14:27Z,mtusi-messenger-lab3-api-1,20.06%,14.38MiB / 384MiB -2026-10-16T14:14:27Z,mtusi-messenger-lab3-lb-1,15.34%,13.09MiB / 64MiB -2026-10-16T14:14:27Z,mtusi-messenger-lab3-postgres-1,50.63%,238MiB / 384MiB -2026-10-16T14:14:27Z,mtusi-messenger-lab3-redis-1,0.23%,6.289MiB / 192MiB -2026-10-16T14:14:30Z,mtusi-messenger-lab3-api-2,20.82%,13.18MiB / 384MiB -2026-10-16T14:14:30Z,mtusi-messenger-lab3-api-1,20.80%,14.64MiB / 384MiB -2026-10-16T14:14:30Z,mtusi-messenger-lab3-lb-1,15.51%,13.11MiB / 64MiB -2026-10-16T14:14:30Z,mtusi-messenger-lab3-postgres-1,50.50%,237.8MiB / 384MiB -2026-10-16T14:14:30Z,mtusi-messenger-lab3-redis-1,0.25%,6.289MiB / 192MiB -2026-10-16T14:14:33Z,mtusi-messenger-lab3-api-2,20.03%,13.03MiB / 384MiB -2026-10-16T14:14:33Z,mtusi-messenger-lab3-api-1,20.43%,14.37MiB / 384MiB -2026-10-16T14:14:33Z,mtusi-messenger-lab3-lb-1,14.68%,13.1MiB / 64MiB -2026-10-16T14:14:33Z,mtusi-messenger-lab3-postgres-1,49.35%,237.8MiB / 384MiB -2026-10-16T14:14:33Z,mtusi-messenger-lab3-redis-1,0.22%,6.289MiB / 192MiB -2026-10-16T14:14:36Z,mtusi-messenger-lab3-api-2,20.67%,13.41MiB / 384MiB -2026-10-16T14:14:36Z,mtusi-messenger-lab3-api-1,20.32%,14.5MiB / 384MiB -2026-10-16T14:14:36Z,mtusi-messenger-lab3-lb-1,15.40%,13.09MiB / 64MiB -2026-10-16T14:14:36Z,mtusi-messenger-lab3-postgres-1,49.70%,238.2MiB / 384MiB -2026-10-16T14:14:36Z,mtusi-messenger-lab3-redis-1,0.25%,6.289MiB / 192MiB -2026-10-16T14:14:39Z,mtusi-messenger-lab3-api-2,20.33%,13.16MiB / 384MiB -2026-10-16T14:14:39Z,mtusi-messenger-lab3-api-1,19.97%,14.35MiB / 384MiB -2026-10-16T14:14:39Z,mtusi-messenger-lab3-lb-1,15.47%,13.09MiB / 64MiB -2026-10-16T14:14:39Z,mtusi-messenger-lab3-postgres-1,50.78%,238.3MiB / 384MiB -2026-10-16T14:14:39Z,mtusi-messenger-lab3-redis-1,0.25%,6.289MiB / 192MiB -2026-10-16T14:14:42Z,mtusi-messenger-lab3-api-2,19.91%,13.19MiB / 384MiB -2026-10-16T14:14:42Z,mtusi-messenger-lab3-api-1,20.24%,14.25MiB / 384MiB -2026-10-16T14:14:42Z,mtusi-messenger-lab3-lb-1,15.05%,13.09MiB / 64MiB -2026-10-16T14:14:42Z,mtusi-messenger-lab3-postgres-1,50.54%,238.7MiB / 384MiB -2026-10-16T14:14:42Z,mtusi-messenger-lab3-redis-1,0.24%,6.289MiB / 192MiB -2026-10-16T14:14:45Z,mtusi-messenger-lab3-api-2,17.04%,13.13MiB / 384MiB -2026-10-16T14:14:45Z,mtusi-messenger-lab3-api-1,16.74%,14.36MiB / 384MiB -2026-10-16T14:14:45Z,mtusi-messenger-lab3-lb-1,12.77%,13.09MiB / 64MiB -2026-10-16T14:14:45Z,mtusi-messenger-lab3-postgres-1,49.53%,247.4MiB / 384MiB -2026-10-16T14:14:45Z,mtusi-messenger-lab3-redis-1,0.24%,6.289MiB / 192MiB -2026-10-16T14:14:48Z,mtusi-messenger-lab3-api-2,19.78%,13.09MiB / 384MiB -2026-10-16T14:14:48Z,mtusi-messenger-lab3-api-1,19.66%,14.34MiB / 384MiB -2026-10-16T14:14:48Z,mtusi-messenger-lab3-lb-1,14.56%,13.04MiB / 64MiB -2026-10-16T14:14:48Z,mtusi-messenger-lab3-postgres-1,47.34%,236.9MiB / 384MiB -2026-10-16T14:14:48Z,mtusi-messenger-lab3-redis-1,0.23%,6.289MiB / 192MiB diff --git a/evidence/track1/superseded/run1-wrong-budgets/stats-r4.csv b/evidence/track1/superseded/run1-wrong-budgets/stats-r4.csv deleted file mode 100644 index a94b422..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/stats-r4.csv +++ /dev/null @@ -1,141 +0,0 @@ -timestamp,container,cpu_percent,mem_usage -2026-10-16T14:15:08Z,mtusi-messenger-lab3-api-1,10.59%,79.44MiB / 192MiB -2026-10-16T14:15:08Z,mtusi-messenger-lab3-api-2,10.88%,143.2MiB / 192MiB -2026-10-16T14:15:08Z,mtusi-messenger-lab3-api-3,11.78%,143.4MiB / 192MiB -2026-10-16T14:15:08Z,mtusi-messenger-lab3-api-4,11.04%,77.16MiB / 192MiB -2026-10-16T14:15:08Z,mtusi-messenger-lab3-lb-1,14.81%,13.11MiB / 64MiB -2026-10-16T14:15:08Z,mtusi-messenger-lab3-postgres-1,46.14%,307.7MiB / 384MiB -2026-10-16T14:15:08Z,mtusi-messenger-lab3-redis-1,0.27%,6.293MiB / 192MiB -2026-10-16T14:15:11Z,mtusi-messenger-lab3-api-1,11.90%,102.7MiB / 192MiB -2026-10-16T14:15:11Z,mtusi-messenger-lab3-api-2,11.46%,166.1MiB / 192MiB -2026-10-16T14:15:11Z,mtusi-messenger-lab3-api-3,11.71%,158.9MiB / 192MiB -2026-10-16T14:15:11Z,mtusi-messenger-lab3-api-4,11.77%,101MiB / 192MiB -2026-10-16T14:15:11Z,mtusi-messenger-lab3-lb-1,15.67%,13.11MiB / 64MiB -2026-10-16T14:15:11Z,mtusi-messenger-lab3-postgres-1,48.22%,198.6MiB / 384MiB -2026-10-16T14:15:11Z,mtusi-messenger-lab3-redis-1,0.27%,6.293MiB / 192MiB -2026-10-16T14:15:14Z,mtusi-messenger-lab3-api-1,11.72%,125.9MiB / 192MiB -2026-10-16T14:15:14Z,mtusi-messenger-lab3-api-2,12.03%,189.6MiB / 192MiB -2026-10-16T14:15:14Z,mtusi-messenger-lab3-api-3,11.46%,189.9MiB / 192MiB -2026-10-16T14:15:14Z,mtusi-messenger-lab3-api-4,12.04%,125MiB / 192MiB -2026-10-16T14:15:14Z,mtusi-messenger-lab3-lb-1,15.60%,13.11MiB / 64MiB -2026-10-16T14:15:14Z,mtusi-messenger-lab3-postgres-1,49.66%,199.1MiB / 384MiB -2026-10-16T14:15:14Z,mtusi-messenger-lab3-redis-1,0.85%,6.293MiB / 192MiB -2026-10-16T14:15:17Z,mtusi-messenger-lab3-api-1,11.56%,11.51MiB / 192MiB -2026-10-16T14:15:17Z,mtusi-messenger-lab3-api-2,11.86%,7.742MiB / 192MiB -2026-10-16T14:15:17Z,mtusi-messenger-lab3-api-3,11.37%,7.895MiB / 192MiB -2026-10-16T14:15:17Z,mtusi-messenger-lab3-api-4,11.86%,10.71MiB / 192MiB -2026-10-16T14:15:17Z,mtusi-messenger-lab3-lb-1,15.61%,13.13MiB / 64MiB -2026-10-16T14:15:17Z,mtusi-messenger-lab3-postgres-1,50.01%,197.7MiB / 384MiB -2026-10-16T14:15:17Z,mtusi-messenger-lab3-redis-1,0.24%,6.293MiB / 192MiB -2026-10-16T14:15:20Z,mtusi-messenger-lab3-api-1,11.77%,11.32MiB / 192MiB -2026-10-16T14:15:20Z,mtusi-messenger-lab3-api-2,12.63%,7.957MiB / 192MiB -2026-10-16T14:15:20Z,mtusi-messenger-lab3-api-3,12.15%,7.953MiB / 192MiB -2026-10-16T14:15:20Z,mtusi-messenger-lab3-api-4,11.76%,10.74MiB / 192MiB -2026-10-16T14:15:20Z,mtusi-messenger-lab3-lb-1,15.78%,13.12MiB / 64MiB -2026-10-16T14:15:20Z,mtusi-messenger-lab3-postgres-1,49.82%,200.2MiB / 384MiB -2026-10-16T14:15:20Z,mtusi-messenger-lab3-redis-1,0.21%,6.293MiB / 192MiB -2026-10-16T14:15:23Z,mtusi-messenger-lab3-api-1,11.99%,11MiB / 192MiB -2026-10-16T14:15:23Z,mtusi-messenger-lab3-api-2,11.25%,8.031MiB / 192MiB -2026-10-16T14:15:23Z,mtusi-messenger-lab3-api-3,11.27%,7.984MiB / 192MiB -2026-10-16T14:15:23Z,mtusi-messenger-lab3-api-4,11.73%,10.57MiB / 192MiB -2026-10-16T14:15:23Z,mtusi-messenger-lab3-lb-1,14.70%,13.14MiB / 64MiB -2026-10-16T14:15:23Z,mtusi-messenger-lab3-postgres-1,50.04%,200.4MiB / 384MiB -2026-10-16T14:15:23Z,mtusi-messenger-lab3-redis-1,0.23%,6.293MiB / 192MiB -2026-10-16T14:15:26Z,mtusi-messenger-lab3-api-1,11.74%,11.08MiB / 192MiB -2026-10-16T14:15:26Z,mtusi-messenger-lab3-api-2,11.84%,8.047MiB / 192MiB -2026-10-16T14:15:26Z,mtusi-messenger-lab3-api-3,12.02%,7.949MiB / 192MiB -2026-10-16T14:15:26Z,mtusi-messenger-lab3-api-4,11.50%,10.59MiB / 192MiB -2026-10-16T14:15:26Z,mtusi-messenger-lab3-lb-1,15.92%,13.14MiB / 64MiB -2026-10-16T14:15:26Z,mtusi-messenger-lab3-postgres-1,50.17%,201.6MiB / 384MiB -2026-10-16T14:15:26Z,mtusi-messenger-lab3-redis-1,0.25%,6.293MiB / 192MiB -2026-10-16T14:15:29Z,mtusi-messenger-lab3-api-1,11.93%,11.28MiB / 192MiB -2026-10-16T14:15:29Z,mtusi-messenger-lab3-api-2,11.71%,8.121MiB / 192MiB -2026-10-16T14:15:29Z,mtusi-messenger-lab3-api-3,12.26%,8.164MiB / 192MiB -2026-10-16T14:15:29Z,mtusi-messenger-lab3-api-4,11.98%,10.48MiB / 192MiB -2026-10-16T14:15:29Z,mtusi-messenger-lab3-lb-1,16.06%,13.14MiB / 64MiB -2026-10-16T14:15:29Z,mtusi-messenger-lab3-postgres-1,50.21%,201.6MiB / 384MiB -2026-10-16T14:15:29Z,mtusi-messenger-lab3-redis-1,0.84%,6.293MiB / 192MiB -2026-10-16T14:15:33Z,mtusi-messenger-lab3-api-1,11.12%,11.39MiB / 192MiB -2026-10-16T14:15:33Z,mtusi-messenger-lab3-api-2,11.09%,7.988MiB / 192MiB -2026-10-16T14:15:33Z,mtusi-messenger-lab3-api-3,11.34%,8.078MiB / 192MiB -2026-10-16T14:15:33Z,mtusi-messenger-lab3-api-4,12.02%,10.54MiB / 192MiB -2026-10-16T14:15:33Z,mtusi-messenger-lab3-lb-1,15.50%,13.12MiB / 64MiB -2026-10-16T14:15:33Z,mtusi-messenger-lab3-postgres-1,50.63%,202.3MiB / 384MiB -2026-10-16T14:15:33Z,mtusi-messenger-lab3-redis-1,0.24%,6.293MiB / 192MiB -2026-10-16T14:15:36Z,mtusi-messenger-lab3-api-1,12.39%,11.24MiB / 192MiB -2026-10-16T14:15:36Z,mtusi-messenger-lab3-api-2,11.14%,8.051MiB / 192MiB -2026-10-16T14:15:36Z,mtusi-messenger-lab3-api-3,11.98%,8.086MiB / 192MiB -2026-10-16T14:15:36Z,mtusi-messenger-lab3-api-4,12.42%,10.59MiB / 192MiB -2026-10-16T14:15:36Z,mtusi-messenger-lab3-lb-1,15.56%,13.14MiB / 64MiB -2026-10-16T14:15:36Z,mtusi-messenger-lab3-postgres-1,49.70%,218.3MiB / 384MiB -2026-10-16T14:15:36Z,mtusi-messenger-lab3-redis-1,0.23%,6.293MiB / 192MiB -2026-10-16T14:15:39Z,mtusi-messenger-lab3-api-1,12.05%,11.16MiB / 192MiB -2026-10-16T14:15:39Z,mtusi-messenger-lab3-api-2,12.05%,8.051MiB / 192MiB -2026-10-16T14:15:39Z,mtusi-messenger-lab3-api-3,11.55%,8.137MiB / 192MiB -2026-10-16T14:15:39Z,mtusi-messenger-lab3-api-4,11.79%,10.61MiB / 192MiB -2026-10-16T14:15:39Z,mtusi-messenger-lab3-lb-1,15.81%,13.12MiB / 64MiB -2026-10-16T14:15:39Z,mtusi-messenger-lab3-postgres-1,49.95%,218.5MiB / 384MiB -2026-10-16T14:15:39Z,mtusi-messenger-lab3-redis-1,0.85%,6.293MiB / 192MiB -2026-10-16T14:15:42Z,mtusi-messenger-lab3-api-1,11.39%,11.18MiB / 192MiB -2026-10-16T14:15:42Z,mtusi-messenger-lab3-api-2,10.89%,8.059MiB / 192MiB -2026-10-16T14:15:42Z,mtusi-messenger-lab3-api-3,12.18%,8.035MiB / 192MiB -2026-10-16T14:15:42Z,mtusi-messenger-lab3-api-4,11.71%,10.61MiB / 192MiB -2026-10-16T14:15:42Z,mtusi-messenger-lab3-lb-1,15.14%,13.12MiB / 64MiB -2026-10-16T14:15:42Z,mtusi-messenger-lab3-postgres-1,49.42%,226.3MiB / 384MiB -2026-10-16T14:15:42Z,mtusi-messenger-lab3-redis-1,0.23%,6.293MiB / 192MiB -2026-10-16T14:15:45Z,mtusi-messenger-lab3-api-1,11.37%,11.24MiB / 192MiB -2026-10-16T14:15:45Z,mtusi-messenger-lab3-api-2,11.56%,8.086MiB / 192MiB -2026-10-16T14:15:45Z,mtusi-messenger-lab3-api-3,11.54%,7.969MiB / 192MiB -2026-10-16T14:15:45Z,mtusi-messenger-lab3-api-4,12.19%,10.61MiB / 192MiB -2026-10-16T14:15:45Z,mtusi-messenger-lab3-lb-1,15.53%,13.12MiB / 64MiB -2026-10-16T14:15:45Z,mtusi-messenger-lab3-postgres-1,50.54%,227.9MiB / 384MiB -2026-10-16T14:15:45Z,mtusi-messenger-lab3-redis-1,0.22%,6.293MiB / 192MiB -2026-10-16T14:15:48Z,mtusi-messenger-lab3-api-1,9.12%,11.23MiB / 192MiB -2026-10-16T14:15:48Z,mtusi-messenger-lab3-api-2,9.00%,8.145MiB / 192MiB -2026-10-16T14:15:48Z,mtusi-messenger-lab3-api-3,9.21%,7.961MiB / 192MiB -2026-10-16T14:15:48Z,mtusi-messenger-lab3-api-4,8.99%,10.54MiB / 192MiB -2026-10-16T14:15:48Z,mtusi-messenger-lab3-lb-1,11.68%,13.12MiB / 64MiB -2026-10-16T14:15:48Z,mtusi-messenger-lab3-postgres-1,50.19%,245.5MiB / 384MiB -2026-10-16T14:15:48Z,mtusi-messenger-lab3-redis-1,0.21%,6.293MiB / 192MiB -2026-10-16T14:15:51Z,mtusi-messenger-lab3-api-1,11.23%,11.11MiB / 192MiB -2026-10-16T14:15:51Z,mtusi-messenger-lab3-api-2,12.16%,8.086MiB / 192MiB -2026-10-16T14:15:51Z,mtusi-messenger-lab3-api-3,9.18%,7.973MiB / 192MiB -2026-10-16T14:15:51Z,mtusi-messenger-lab3-api-4,11.76%,10.51MiB / 192MiB -2026-10-16T14:15:51Z,mtusi-messenger-lab3-lb-1,15.52%,13.12MiB / 64MiB -2026-10-16T14:15:51Z,mtusi-messenger-lab3-postgres-1,49.99%,235.3MiB / 384MiB -2026-10-16T14:15:51Z,mtusi-messenger-lab3-redis-1,0.23%,6.293MiB / 192MiB -2026-10-16T14:15:54Z,mtusi-messenger-lab3-api-1,12.17%,11.16MiB / 192MiB -2026-10-16T14:15:54Z,mtusi-messenger-lab3-api-2,12.05%,8.078MiB / 192MiB -2026-10-16T14:15:54Z,mtusi-messenger-lab3-api-3,11.38%,8.008MiB / 192MiB -2026-10-16T14:15:54Z,mtusi-messenger-lab3-api-4,11.61%,10.58MiB / 192MiB -2026-10-16T14:15:54Z,mtusi-messenger-lab3-lb-1,15.84%,13.13MiB / 64MiB -2026-10-16T14:15:54Z,mtusi-messenger-lab3-postgres-1,50.16%,235.8MiB / 384MiB -2026-10-16T14:15:54Z,mtusi-messenger-lab3-redis-1,0.22%,6.293MiB / 192MiB -2026-10-16T14:15:57Z,mtusi-messenger-lab3-api-1,11.28%,11.16MiB / 192MiB -2026-10-16T14:15:57Z,mtusi-messenger-lab3-api-2,10.89%,8.152MiB / 192MiB -2026-10-16T14:15:57Z,mtusi-messenger-lab3-api-3,11.65%,8.027MiB / 192MiB -2026-10-16T14:15:57Z,mtusi-messenger-lab3-api-4,11.40%,10.39MiB / 192MiB -2026-10-16T14:15:57Z,mtusi-messenger-lab3-lb-1,15.10%,13.12MiB / 64MiB -2026-10-16T14:15:57Z,mtusi-messenger-lab3-postgres-1,49.98%,235.9MiB / 384MiB -2026-10-16T14:15:57Z,mtusi-messenger-lab3-redis-1,0.23%,6.293MiB / 192MiB -2026-10-16T14:16:00Z,mtusi-messenger-lab3-api-1,12.52%,11.19MiB / 192MiB -2026-10-16T14:16:00Z,mtusi-messenger-lab3-api-2,12.01%,8.027MiB / 192MiB -2026-10-16T14:16:00Z,mtusi-messenger-lab3-api-3,11.52%,8.262MiB / 192MiB -2026-10-16T14:16:00Z,mtusi-messenger-lab3-api-4,11.23%,10.39MiB / 192MiB -2026-10-16T14:16:00Z,mtusi-messenger-lab3-lb-1,15.56%,13.12MiB / 64MiB -2026-10-16T14:16:00Z,mtusi-messenger-lab3-postgres-1,49.54%,236MiB / 384MiB -2026-10-16T14:16:00Z,mtusi-messenger-lab3-redis-1,0.72%,6.293MiB / 192MiB -2026-10-16T14:16:03Z,mtusi-messenger-lab3-api-1,11.46%,11.2MiB / 192MiB -2026-10-16T14:16:03Z,mtusi-messenger-lab3-api-2,11.21%,8.125MiB / 192MiB -2026-10-16T14:16:03Z,mtusi-messenger-lab3-api-3,11.23%,8.148MiB / 192MiB -2026-10-16T14:16:03Z,mtusi-messenger-lab3-api-4,11.61%,10.36MiB / 192MiB -2026-10-16T14:16:03Z,mtusi-messenger-lab3-lb-1,15.56%,13.13MiB / 64MiB -2026-10-16T14:16:03Z,mtusi-messenger-lab3-postgres-1,50.05%,236.9MiB / 384MiB -2026-10-16T14:16:03Z,mtusi-messenger-lab3-redis-1,0.23%,6.293MiB / 192MiB -2026-10-16T14:16:07Z,mtusi-messenger-lab3-api-1,11.62%,11.23MiB / 192MiB -2026-10-16T14:16:07Z,mtusi-messenger-lab3-api-2,11.86%,8.137MiB / 192MiB -2026-10-16T14:16:07Z,mtusi-messenger-lab3-api-3,11.52%,8.281MiB / 192MiB -2026-10-16T14:16:07Z,mtusi-messenger-lab3-api-4,11.73%,10.36MiB / 192MiB -2026-10-16T14:16:07Z,mtusi-messenger-lab3-lb-1,15.51%,13.12MiB / 64MiB -2026-10-16T14:16:07Z,mtusi-messenger-lab3-postgres-1,50.60%,236.7MiB / 384MiB -2026-10-16T14:16:07Z,mtusi-messenger-lab3-redis-1,0.23%,6.293MiB / 192MiB diff --git a/evidence/track1/superseded/run1-wrong-budgets/summary.md b/evidence/track1/superseded/run1-wrong-budgets/summary.md deleted file mode 100644 index ee55c59..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/summary.md +++ /dev/null @@ -1,13 +0,0 @@ -# Трек 1: цена масштабирования - -| профиль | реплик | бюджет CPU | CPU/реплика | успешный RPS | p50 мс | p95 мс | p99 мс | ошибки | API CPU (сумма) | API RAM max (сумма, MiB) | PG CPU | LB CPU | -| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | -| db1cpu | 2 | 1.0 | 0.5 | 1641.212 | 4.085 | 8.787 | 23.973 | 0 | 38.16 | 329.3 | 50.3 | 14.26 | -| g05 | 2 | 0.5 | 0.25 | 1615.408 | 4.348 | 8.823 | 20.46 | 0 | 40.16 | 244.3 | 50.44 | 15.07 | -| g10 | 2 | 1.0 | 0.5 | 1665.873 | 4.168 | 8.323 | 21.636 | 0 | 39.49 | 326.1 | 50.33 | 14.75 | -| g15 | 2 | 1.5 | 0.75 | 1651.746 | 4.094 | 8.631 | 24.272 | 0 | 38.4 | 334.6 | 49.7 | 14.6 | -| pool10 | 4 | 1.0 | 0.25 | 1618.552 | 4.394 | 8.205 | 20.61 | 222 | 44.88 | 360.7 | 48.55 | 13.6 | -| pool5 | 4 | 1.0 | 0.25 | 1563.449 | 4.464 | 8.965 | 22.758 | 2 | 44.02 | 582.1 | 49.2 | 14.36 | -| r1 | 1 | 1.0 | 1.0 | 1680.576 | 4.005 | 8.354 | 22.526 | 0 | 32.32 | 198.7 | 50.6 | 14.02 | -| r2 | 2 | 1.0 | 0.5 | 1567.279 | 4.474 | 9.495 | 20.649 | 0 | 40.17 | 324.9 | 49.99 | 15.16 | -| r4 | 4 | 1.0 | 0.25 | 1548.476 | 4.633 | 8.8 | 18.978 | 178 | 46.05 | 630.4 | 49.75 | 15.32 | diff --git a/evidence/track1/superseded/run1-wrong-budgets/summary.txt b/evidence/track1/superseded/run1-wrong-budgets/summary.txt deleted file mode 100644 index 956b4bc..0000000 --- a/evidence/track1/superseded/run1-wrong-budgets/summary.txt +++ /dev/null @@ -1,455 +0,0 @@ -# Track 1: the price of scaling -# generated: 2026-10-15T18:47:12Z -# host: Darwin arm64 -# cpu: Apple M5 Pro -# ram bytes: 51539607552 -# load: tests/load.py closed loop; postgres/redis/lb limits are fixed in compose.yaml -# each profile line below records the budget it was run with -docker engine 29.5.2 -Docker Compose version 5.5.1 - -=== invocation 2026-10-15T18:47:12Z: REPLICAS="1 2 4" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=r1 replicas=1 cpu=1.00 mem=768M === -=== invocation 2026-10-15T18:47:37Z: REPLICAS="1 2 4" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=r1 replicas=1 cpu=1.00 mem=768M === -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.02, - "concurrency": 8, - "successful_requests": 113740, - "failed_requests": 0, - "error_ratio": 0.0, - "successful_rps": 1895.027, - "successful_latency_ms": { - "p50": 4.031, - "p95": 6.507, - "p99": 8.906 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=19 -postgres_max_connections=100 -messages_rows=368298 -idempotency_rows=368298 - -=== profile label=r2 replicas=2 cpu=0.50 mem=384M === -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.023, - "concurrency": 8, - "successful_requests": 117433, - "failed_requests": 0, - "error_ratio": 0.0, - "successful_rps": 1956.481, - "successful_latency_ms": { - "p50": 3.957, - "p95": 6.18, - "p99": 8.499 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=23 -postgres_max_connections=100 -messages_rows=516197 -idempotency_rows=516197 - -=== profile label=r4 replicas=4 cpu=0.25 mem=192M === -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.014, - "concurrency": 8, - "successful_requests": 107236, - "failed_requests": 0, - "error_ratio": 0.0, - "successful_rps": 1786.838, - "successful_latency_ms": { - "p50": 4.288, - "p95": 7.051, - "p99": 10.001 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=23 -postgres_max_connections=100 -messages_rows=652759 -idempotency_rows=652759 - -=== invocation 2026-10-15T18:51:38Z: REPLICAS="2" TOTAL_CPU=0.5 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=g05 replicas=2 cpu=0.25 mem=384M === -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.02, - "concurrency": 8, - "successful_requests": 114389, - "failed_requests": 340, - "error_ratio": 0.002964, - "successful_rps": 1905.841, - "successful_latency_ms": { - "p50": 4.032, - "p95": 6.456, - "p99": 9.098 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=19 -postgres_max_connections=100 -messages_rows=797321 -idempotency_rows=797321 - -=== invocation 2026-10-15T18:53:02Z: REPLICAS="2" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=g10 replicas=2 cpu=0.50 mem=384M === -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.02, - "concurrency": 8, - "successful_requests": 117266, - "failed_requests": 1984, - "error_ratio": 0.016637, - "successful_rps": 1953.781, - "successful_latency_ms": { - "p50": 3.923, - "p95": 6.062, - "p99": 8.041 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=19 -postgres_max_connections=100 -messages_rows=944961 -idempotency_rows=944961 - -=== invocation 2026-10-15T18:54:19Z: REPLICAS="2" TOTAL_CPU=1.5 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=g15 replicas=2 cpu=0.75 mem=384M === -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.018, - "concurrency": 8, - "successful_requests": 111442, - "failed_requests": 0, - "error_ratio": 0.0, - "successful_rps": 1856.809, - "successful_latency_ms": { - "p50": 4.132, - "p95": 6.761, - "p99": 9.34 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=19 -postgres_max_connections=100 -messages_rows=1086579 -idempotency_rows=1086579 - -=== invocation 2026-10-15T18:55:35Z: REPLICAS="4" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=pool10 replicas=4 cpu=0.25 mem=192M === -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.016, - "concurrency": 8, - "successful_requests": 113438, - "failed_requests": 0, - "error_ratio": 0.0, - "successful_rps": 1890.142, - "successful_latency_ms": { - "p50": 4.133, - "p95": 6.416, - "p99": 8.487 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=23 -postgres_max_connections=100 -messages_rows=1229412 -idempotency_rows=1229412 - -=== invocation 2026-10-15T18:56:54Z: REPLICAS="4" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=pool5 replicas=4 cpu=0.25 mem=192M === -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.023, - "concurrency": 8, - "successful_requests": 109073, - "failed_requests": 0, - "error_ratio": 0.0, - "successful_rps": 1817.2, - "successful_latency_ms": { - "p50": 4.258, - "p95": 6.758, - "p99": 9.171 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=23 -postgres_max_connections=100 -messages_rows=1366625 -idempotency_rows=1366625 - -=== invocation 2026-10-15T19:05:27Z: REPLICAS="2" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=db1cpu replicas=2 cpu=0.50 mem=384M === -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.02, - "concurrency": 8, - "successful_requests": 117712, - "failed_requests": 0, - "error_ratio": 0.0, - "successful_rps": 1961.212, - "successful_latency_ms": { - "p50": 3.984, - "p95": 6.09, - "p99": 8.13 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=19 -postgres_max_connections=100 -messages_rows=1722748 -idempotency_rows=1722748 - -=== invocation 2026-10-16T14:12:13Z: REPLICAS="1 2 4" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=r1 replicas=1 cpu=1.00 mem=768M postgres=0.50/512M max_conns=10 === -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.015, - "concurrency": 8, - "successful_requests": 100860, - "failed_requests": 0, - "error_ratio": 0.0, - "successful_rps": 1680.576, - "successful_latency_ms": { - "p50": 4.005, - "p95": 8.354, - "p99": 22.526 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=18 -postgres_max_connections=100 -messages_rows=631570 -idempotency_rows=631570 - -=== profile label=r2 replicas=2 cpu=0.50 mem=384M postgres=0.50/512M max_conns=10 === -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.011, - "concurrency": 8, - "successful_requests": 94054, - "failed_requests": 0, - "error_ratio": 0.0, - "successful_rps": 1567.279, - "successful_latency_ms": { - "p50": 4.474, - "p95": 9.495, - "p99": 20.649 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=19 -postgres_max_connections=100 -messages_rows=747548 -idempotency_rows=747548 - -=== profile label=r4 replicas=4 cpu=0.25 mem=192M postgres=0.50/512M max_conns=10 === -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.013, - "concurrency": 8, - "successful_requests": 92928, - "failed_requests": 178, - "error_ratio": 0.001912, - "successful_rps": 1548.476, - "successful_latency_ms": { - "p50": 4.633, - "p95": 8.8, - "p99": 18.978 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=22 -postgres_max_connections=100 -messages_rows=863510 -idempotency_rows=863510 - -=== invocation 2026-10-16T14:16:09Z: REPLICAS="2" TOTAL_CPU=0.5 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=g05 replicas=2 cpu=0.25 mem=384M postgres=0.50/512M max_conns=10 === -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.01, - "concurrency": 8, - "successful_requests": 96941, - "failed_requests": 0, - "error_ratio": 0.0, - "successful_rps": 1615.408, - "successful_latency_ms": { - "p50": 4.348, - "p95": 8.823, - "p99": 20.46 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=19 -postgres_max_connections=100 -messages_rows=984900 -idempotency_rows=984900 - -=== invocation 2026-10-16T14:17:32Z: REPLICAS="2" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=g10 replicas=2 cpu=0.50 mem=384M postgres=0.50/512M max_conns=10 === -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.011, - "concurrency": 8, - "successful_requests": 99970, - "failed_requests": 0, - "error_ratio": 0.0, - "successful_rps": 1665.873, - "successful_latency_ms": { - "p50": 4.168, - "p95": 8.323, - "p99": 21.636 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=20 -postgres_max_connections=100 -messages_rows=1110124 -idempotency_rows=1110124 - -=== invocation 2026-10-16T14:18:48Z: REPLICAS="2" TOTAL_CPU=1.5 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=g15 replicas=2 cpu=0.75 mem=384M postgres=0.50/512M max_conns=10 === -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.017, - "concurrency": 8, - "successful_requests": 99132, - "failed_requests": 0, - "error_ratio": 0.0, - "successful_rps": 1651.746, - "successful_latency_ms": { - "p50": 4.094, - "p95": 8.631, - "p99": 24.272 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=19 -postgres_max_connections=100 -messages_rows=1233101 -idempotency_rows=1233101 - -=== invocation 2026-10-16T14:20:05Z: REPLICAS="4" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=pool10 replicas=4 cpu=0.25 mem=192M postgres=0.50/512M max_conns=10 === -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.012, - "concurrency": 8, - "successful_requests": 97133, - "failed_requests": 222, - "error_ratio": 0.00228, - "successful_rps": 1618.552, - "successful_latency_ms": { - "p50": 4.394, - "p95": 8.205, - "p99": 20.61 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=23 -postgres_max_connections=100 -messages_rows=1355629 -idempotency_rows=1355629 - -=== invocation 2026-10-16T14:21:24Z: REPLICAS="4" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=pool5 replicas=4 cpu=0.25 mem=192M postgres=0.50/512M max_conns=5 === -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.027, - "concurrency": 8, - "successful_requests": 93849, - "failed_requests": 2, - "error_ratio": 2.1e-05, - "successful_rps": 1563.449, - "successful_latency_ms": { - "p50": 4.464, - "p95": 8.965, - "p99": 22.758 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=21 -postgres_max_connections=100 -messages_rows=1474222 -idempotency_rows=1474222 - -=== invocation 2026-10-16T14:22:43Z: REPLICAS="2" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=db1cpu replicas=2 cpu=0.50 mem=384M postgres=1.0/384M max_conns=10 === -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.012, - "concurrency": 8, - "successful_requests": 98492, - "failed_requests": 0, - "error_ratio": 0.0, - "successful_rps": 1641.212, - "successful_latency_ms": { - "p50": 4.085, - "p95": 8.787, - "p99": 23.973 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=19 -postgres_max_connections=100 -messages_rows=1597333 -idempotency_rows=1597333 - diff --git a/evidence/track1/superseded/run2-host-client/load-db1cpu.json b/evidence/track1/superseded/run2-host-client/load-db1cpu.json deleted file mode 100644 index 6ca275a..0000000 --- a/evidence/track1/superseded/run2-host-client/load-db1cpu.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.83, - "concurrency": 8, - "successful_requests": 96094, - "failed_requests": 26520, - "error_ratio": 0.216289, - "successful_rps": 1579.722, - "successful_latency_ms": { - "p50": 4.033, - "p95": 6.236, - "p99": 8.668 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} diff --git a/evidence/track1/superseded/run2-host-client/load-g05.json b/evidence/track1/superseded/run2-host-client/load-g05.json deleted file mode 100644 index 2f58bd3..0000000 --- a/evidence/track1/superseded/run2-host-client/load-g05.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.013, - "concurrency": 8, - "successful_requests": 95087, - "failed_requests": 2845, - "error_ratio": 0.029051, - "successful_rps": 1584.428, - "successful_latency_ms": { - "p50": 4.042, - "p95": 9.331, - "p99": 27.665 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} diff --git a/evidence/track1/superseded/run2-host-client/load-g10.json b/evidence/track1/superseded/run2-host-client/load-g10.json deleted file mode 100644 index 985b67a..0000000 --- a/evidence/track1/superseded/run2-host-client/load-g10.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.012, - "concurrency": 8, - "successful_requests": 95841, - "failed_requests": 13795, - "error_ratio": 0.125825, - "successful_rps": 1597.028, - "successful_latency_ms": { - "p50": 3.927, - "p95": 7.67, - "p99": 21.91 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} diff --git a/evidence/track1/superseded/run2-host-client/load-g15.json b/evidence/track1/superseded/run2-host-client/load-g15.json deleted file mode 100644 index e696f35..0000000 --- a/evidence/track1/superseded/run2-host-client/load-g15.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.011, - "concurrency": 8, - "successful_requests": 98411, - "failed_requests": 6960, - "error_ratio": 0.066052, - "successful_rps": 1639.884, - "successful_latency_ms": { - "p50": 3.963, - "p95": 7.721, - "p99": 23.6 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} diff --git a/evidence/track1/superseded/run2-host-client/load-lb1cpu.json b/evidence/track1/superseded/run2-host-client/load-lb1cpu.json deleted file mode 100644 index b98c326..0000000 --- a/evidence/track1/superseded/run2-host-client/load-lb1cpu.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.01, - "concurrency": 8, - "successful_requests": 97901, - "failed_requests": 15652, - "error_ratio": 0.137839, - "successful_rps": 1631.408, - "successful_latency_ms": { - "p50": 3.894, - "p95": 6.989, - "p99": 20.148 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} diff --git a/evidence/track1/superseded/run2-host-client/load-pool10.json b/evidence/track1/superseded/run2-host-client/load-pool10.json deleted file mode 100644 index 3325617..0000000 --- a/evidence/track1/superseded/run2-host-client/load-pool10.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.014, - "concurrency": 8, - "successful_requests": 94995, - "failed_requests": 11008, - "error_ratio": 0.103846, - "successful_rps": 1582.872, - "successful_latency_ms": { - "p50": 4.156, - "p95": 7.798, - "p99": 19.723 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} diff --git a/evidence/track1/superseded/run2-host-client/load-pool5.json b/evidence/track1/superseded/run2-host-client/load-pool5.json deleted file mode 100644 index a5a19fe..0000000 --- a/evidence/track1/superseded/run2-host-client/load-pool5.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.016, - "concurrency": 8, - "successful_requests": 93110, - "failed_requests": 13051, - "error_ratio": 0.122936, - "successful_rps": 1551.419, - "successful_latency_ms": { - "p50": 4.125, - "p95": 7.868, - "p99": 21.268 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} diff --git a/evidence/track1/superseded/run2-host-client/load-r1.json b/evidence/track1/superseded/run2-host-client/load-r1.json deleted file mode 100644 index 788d729..0000000 --- a/evidence/track1/superseded/run2-host-client/load-r1.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.011, - "concurrency": 8, - "successful_requests": 103077, - "failed_requests": 0, - "error_ratio": 0.0, - "successful_rps": 1717.626, - "successful_latency_ms": { - "p50": 3.85, - "p95": 7.538, - "p99": 25.045 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} diff --git a/evidence/track1/superseded/run2-host-client/load-r2.json b/evidence/track1/superseded/run2-host-client/load-r2.json deleted file mode 100644 index 43961f6..0000000 --- a/evidence/track1/superseded/run2-host-client/load-r2.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.012, - "concurrency": 8, - "successful_requests": 97973, - "failed_requests": 9791, - "error_ratio": 0.090856, - "successful_rps": 1632.545, - "successful_latency_ms": { - "p50": 3.959, - "p95": 7.508, - "p99": 22.12 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} diff --git a/evidence/track1/superseded/run2-host-client/load-r4.json b/evidence/track1/superseded/run2-host-client/load-r4.json deleted file mode 100644 index 1a94233..0000000 --- a/evidence/track1/superseded/run2-host-client/load-r4.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.013, - "concurrency": 8, - "successful_requests": 92161, - "failed_requests": 11454, - "error_ratio": 0.110544, - "successful_rps": 1535.673, - "successful_latency_ms": { - "p50": 4.184, - "p95": 8.208, - "p99": 22.167 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} diff --git a/evidence/track1/superseded/run2-host-client/profile-db1cpu.json b/evidence/track1/superseded/run2-host-client/profile-db1cpu.json deleted file mode 100644 index 71f95f9..0000000 --- a/evidence/track1/superseded/run2-host-client/profile-db1cpu.json +++ /dev/null @@ -1 +0,0 @@ -{"label":"db1cpu","replicas":2,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"1.00","postgres_mem_limit":"384M","postgres_max_conns":10,"lb_cpu_limit":"0.25"} diff --git a/evidence/track1/superseded/run2-host-client/profile-g05.json b/evidence/track1/superseded/run2-host-client/profile-g05.json deleted file mode 100644 index 8e96a6f..0000000 --- a/evidence/track1/superseded/run2-host-client/profile-g05.json +++ /dev/null @@ -1 +0,0 @@ -{"label":"g05","replicas":2,"total_cpu":0.5,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"0.50","postgres_mem_limit":"384M","postgres_max_conns":10,"lb_cpu_limit":"0.25"} diff --git a/evidence/track1/superseded/run2-host-client/profile-g10.json b/evidence/track1/superseded/run2-host-client/profile-g10.json deleted file mode 100644 index e8223f7..0000000 --- a/evidence/track1/superseded/run2-host-client/profile-g10.json +++ /dev/null @@ -1 +0,0 @@ -{"label":"g10","replicas":2,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"0.50","postgres_mem_limit":"384M","postgres_max_conns":10,"lb_cpu_limit":"0.25"} diff --git a/evidence/track1/superseded/run2-host-client/profile-g15.json b/evidence/track1/superseded/run2-host-client/profile-g15.json deleted file mode 100644 index 7acdf27..0000000 --- a/evidence/track1/superseded/run2-host-client/profile-g15.json +++ /dev/null @@ -1 +0,0 @@ -{"label":"g15","replicas":2,"total_cpu":1.5,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"0.50","postgres_mem_limit":"384M","postgres_max_conns":10,"lb_cpu_limit":"0.25"} diff --git a/evidence/track1/superseded/run2-host-client/profile-lb1cpu.json b/evidence/track1/superseded/run2-host-client/profile-lb1cpu.json deleted file mode 100644 index 9a24d7f..0000000 --- a/evidence/track1/superseded/run2-host-client/profile-lb1cpu.json +++ /dev/null @@ -1 +0,0 @@ -{"label":"lb1cpu","replicas":2,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"0.50","postgres_mem_limit":"384M","postgres_max_conns":10,"lb_cpu_limit":"1.00"} diff --git a/evidence/track1/superseded/run2-host-client/profile-pool10.json b/evidence/track1/superseded/run2-host-client/profile-pool10.json deleted file mode 100644 index 0ec200d..0000000 --- a/evidence/track1/superseded/run2-host-client/profile-pool10.json +++ /dev/null @@ -1 +0,0 @@ -{"label":"pool10","replicas":4,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"0.50","postgres_mem_limit":"384M","postgres_max_conns":10,"lb_cpu_limit":"0.25"} diff --git a/evidence/track1/superseded/run2-host-client/profile-pool5.json b/evidence/track1/superseded/run2-host-client/profile-pool5.json deleted file mode 100644 index 032ed56..0000000 --- a/evidence/track1/superseded/run2-host-client/profile-pool5.json +++ /dev/null @@ -1 +0,0 @@ -{"label":"pool5","replicas":4,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"0.50","postgres_mem_limit":"384M","postgres_max_conns":5,"lb_cpu_limit":"0.25"} diff --git a/evidence/track1/superseded/run2-host-client/profile-r1.json b/evidence/track1/superseded/run2-host-client/profile-r1.json deleted file mode 100644 index 2c96e28..0000000 --- a/evidence/track1/superseded/run2-host-client/profile-r1.json +++ /dev/null @@ -1 +0,0 @@ -{"label":"r1","replicas":1,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"0.50","postgres_mem_limit":"384M","postgres_max_conns":10,"lb_cpu_limit":"0.25"} diff --git a/evidence/track1/superseded/run2-host-client/profile-r2.json b/evidence/track1/superseded/run2-host-client/profile-r2.json deleted file mode 100644 index 10661ad..0000000 --- a/evidence/track1/superseded/run2-host-client/profile-r2.json +++ /dev/null @@ -1 +0,0 @@ -{"label":"r2","replicas":2,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"0.50","postgres_mem_limit":"384M","postgres_max_conns":10,"lb_cpu_limit":"0.25"} diff --git a/evidence/track1/superseded/run2-host-client/profile-r4.json b/evidence/track1/superseded/run2-host-client/profile-r4.json deleted file mode 100644 index fde157c..0000000 --- a/evidence/track1/superseded/run2-host-client/profile-r4.json +++ /dev/null @@ -1 +0,0 @@ -{"label":"r4","replicas":4,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15,"postgres_cpu_limit":"0.50","postgres_mem_limit":"384M","postgres_max_conns":10,"lb_cpu_limit":"0.25"} diff --git a/evidence/track1/superseded/run2-host-client/scaling-fixed-budget.png b/evidence/track1/superseded/run2-host-client/scaling-fixed-budget.png deleted file mode 100644 index 8c25865..0000000 Binary files a/evidence/track1/superseded/run2-host-client/scaling-fixed-budget.png and /dev/null differ diff --git a/evidence/track1/superseded/run2-host-client/scaling-growth.png b/evidence/track1/superseded/run2-host-client/scaling-growth.png deleted file mode 100644 index 4c20504..0000000 Binary files a/evidence/track1/superseded/run2-host-client/scaling-growth.png and /dev/null differ diff --git a/evidence/track1/superseded/run2-host-client/stats-db1cpu.csv b/evidence/track1/superseded/run2-host-client/stats-db1cpu.csv deleted file mode 100644 index 622f33c..0000000 --- a/evidence/track1/superseded/run2-host-client/stats-db1cpu.csv +++ /dev/null @@ -1,148 +0,0 @@ -timestamp,container,cpu_percent,mem_usage -2026-10-16T18:09:18Z,mtusi-messenger-lab3-api-1,20.75%,170.2MiB / 384MiB -2026-10-16T18:09:18Z,mtusi-messenger-lab3-api-2,20.69%,169.8MiB / 384MiB -2026-10-16T18:09:18Z,mtusi-messenger-lab3-postgres-1,54.39%,78.59MiB / 384MiB -2026-10-16T18:09:18Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:09:18Z,mtusi-messenger-lab2-redis-1,0.64%,9.004MiB / 1.913GiB -2026-10-16T18:09:18Z,mtusi-messenger-lab3-lb-1,16.76%,11.65MiB / 64MiB -2026-10-16T18:09:18Z,mtusi-messenger-lab3-redis-1,0.22%,3.863MiB / 192MiB -2026-10-16T18:09:21Z,mtusi-messenger-lab3-api-1,21.82%,17.21MiB / 384MiB -2026-10-16T18:09:21Z,mtusi-messenger-lab3-api-2,22.12%,11.14MiB / 384MiB -2026-10-16T18:09:21Z,mtusi-messenger-lab3-postgres-1,53.73%,80.95MiB / 384MiB -2026-10-16T18:09:21Z,mtusi-messenger-lab2-postgres-1,0.68%,178.3MiB / 1.913GiB -2026-10-16T18:09:21Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:09:21Z,mtusi-messenger-lab3-lb-1,16.45%,11.64MiB / 64MiB -2026-10-16T18:09:21Z,mtusi-messenger-lab3-redis-1,0.75%,3.863MiB / 192MiB -2026-10-16T18:09:24Z,mtusi-messenger-lab3-api-1,22.20%,11.01MiB / 384MiB -2026-10-16T18:09:24Z,mtusi-messenger-lab3-api-2,21.88%,10.99MiB / 384MiB -2026-10-16T18:09:24Z,mtusi-messenger-lab3-postgres-1,56.71%,84.23MiB / 384MiB -2026-10-16T18:09:24Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:09:24Z,mtusi-messenger-lab2-redis-1,0.70%,9.004MiB / 1.913GiB -2026-10-16T18:09:24Z,mtusi-messenger-lab3-lb-1,17.04%,11.64MiB / 64MiB -2026-10-16T18:09:24Z,mtusi-messenger-lab3-redis-1,0.23%,3.863MiB / 192MiB -2026-10-16T18:09:27Z,mtusi-messenger-lab3-api-1,21.73%,10.91MiB / 384MiB -2026-10-16T18:09:27Z,mtusi-messenger-lab3-api-2,22.04%,10.89MiB / 384MiB -2026-10-16T18:09:27Z,mtusi-messenger-lab3-postgres-1,56.87%,86.43MiB / 384MiB -2026-10-16T18:09:27Z,mtusi-messenger-lab2-postgres-1,0.20%,178.3MiB / 1.913GiB -2026-10-16T18:09:27Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:09:27Z,mtusi-messenger-lab3-lb-1,16.74%,11.66MiB / 64MiB -2026-10-16T18:09:27Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB -2026-10-16T18:09:30Z,mtusi-messenger-lab3-api-1,0.04%,10.88MiB / 384MiB -2026-10-16T18:09:30Z,mtusi-messenger-lab3-api-2,0.03%,10.88MiB / 384MiB -2026-10-16T18:09:30Z,mtusi-messenger-lab3-postgres-1,0.04%,88.96MiB / 384MiB -2026-10-16T18:09:30Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:09:30Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:09:30Z,mtusi-messenger-lab3-lb-1,0.05%,11.59MiB / 64MiB -2026-10-16T18:09:30Z,mtusi-messenger-lab3-redis-1,0.24%,3.863MiB / 192MiB -2026-10-16T18:09:33Z,mtusi-messenger-lab3-api-1,0.00%,10.88MiB / 384MiB -2026-10-16T18:09:33Z,mtusi-messenger-lab3-api-2,0.00%,10.87MiB / 384MiB -2026-10-16T18:09:33Z,mtusi-messenger-lab3-postgres-1,0.02%,88.96MiB / 384MiB -2026-10-16T18:09:33Z,mtusi-messenger-lab2-postgres-1,0.01%,178.3MiB / 1.913GiB -2026-10-16T18:09:33Z,mtusi-messenger-lab2-redis-1,0.71%,9.004MiB / 1.913GiB -2026-10-16T18:09:33Z,mtusi-messenger-lab3-lb-1,0.70%,11.59MiB / 64MiB -2026-10-16T18:09:33Z,mtusi-messenger-lab3-redis-1,0.20%,3.863MiB / 192MiB -2026-10-16T18:09:36Z,mtusi-messenger-lab3-api-1,21.93%,11.05MiB / 384MiB -2026-10-16T18:09:36Z,mtusi-messenger-lab3-api-2,21.72%,10.93MiB / 384MiB -2026-10-16T18:09:36Z,mtusi-messenger-lab3-postgres-1,54.56%,92MiB / 384MiB -2026-10-16T18:09:36Z,mtusi-messenger-lab2-postgres-1,0.74%,178.3MiB / 1.913GiB -2026-10-16T18:09:36Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:09:36Z,mtusi-messenger-lab3-lb-1,16.85%,11.64MiB / 64MiB -2026-10-16T18:09:36Z,mtusi-messenger-lab3-redis-1,0.65%,3.863MiB / 192MiB -2026-10-16T18:09:39Z,mtusi-messenger-lab3-api-1,20.64%,10.93MiB / 384MiB -2026-10-16T18:09:39Z,mtusi-messenger-lab3-api-2,21.08%,10.86MiB / 384MiB -2026-10-16T18:09:39Z,mtusi-messenger-lab3-postgres-1,62.54%,99.2MiB / 384MiB -2026-10-16T18:09:39Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:09:39Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:09:39Z,mtusi-messenger-lab3-lb-1,15.84%,11.64MiB / 64MiB -2026-10-16T18:09:39Z,mtusi-messenger-lab3-redis-1,0.20%,3.863MiB / 192MiB -2026-10-16T18:09:42Z,mtusi-messenger-lab3-api-1,20.93%,10.97MiB / 384MiB -2026-10-16T18:09:42Z,mtusi-messenger-lab3-api-2,20.85%,10.86MiB / 384MiB -2026-10-16T18:09:42Z,mtusi-messenger-lab3-postgres-1,58.24%,105MiB / 384MiB -2026-10-16T18:09:42Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:09:42Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:09:42Z,mtusi-messenger-lab3-lb-1,15.45%,11.65MiB / 64MiB -2026-10-16T18:09:42Z,mtusi-messenger-lab3-redis-1,0.68%,3.863MiB / 192MiB -2026-10-16T18:09:45Z,mtusi-messenger-lab3-api-1,19.36%,10.96MiB / 384MiB -2026-10-16T18:09:45Z,mtusi-messenger-lab3-api-2,18.97%,10.88MiB / 384MiB -2026-10-16T18:09:45Z,mtusi-messenger-lab3-postgres-1,68.62%,203.6MiB / 384MiB -2026-10-16T18:09:45Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:09:45Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:09:45Z,mtusi-messenger-lab3-lb-1,14.00%,11.64MiB / 64MiB -2026-10-16T18:09:45Z,mtusi-messenger-lab3-redis-1,0.20%,3.863MiB / 192MiB -2026-10-16T18:09:48Z,mtusi-messenger-lab3-api-1,19.91%,10.95MiB / 384MiB -2026-10-16T18:09:48Z,mtusi-messenger-lab3-api-2,19.97%,10.84MiB / 384MiB -2026-10-16T18:09:48Z,mtusi-messenger-lab3-postgres-1,56.90%,204.4MiB / 384MiB -2026-10-16T18:09:48Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:09:48Z,mtusi-messenger-lab2-redis-1,0.72%,9.004MiB / 1.913GiB -2026-10-16T18:09:48Z,mtusi-messenger-lab3-lb-1,15.67%,11.65MiB / 64MiB -2026-10-16T18:09:48Z,mtusi-messenger-lab3-redis-1,0.22%,3.863MiB / 192MiB -2026-10-16T18:09:51Z,mtusi-messenger-lab3-api-1,20.80%,10.99MiB / 384MiB -2026-10-16T18:09:51Z,mtusi-messenger-lab3-api-2,19.52%,10.74MiB / 384MiB -2026-10-16T18:09:51Z,mtusi-messenger-lab3-postgres-1,55.90%,206.1MiB / 384MiB -2026-10-16T18:09:51Z,mtusi-messenger-lab2-postgres-1,1.01%,178.3MiB / 1.913GiB -2026-10-16T18:09:51Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:09:51Z,mtusi-messenger-lab3-lb-1,14.89%,11.65MiB / 64MiB -2026-10-16T18:09:51Z,mtusi-messenger-lab3-redis-1,0.75%,3.863MiB / 192MiB -2026-10-16T18:09:54Z,mtusi-messenger-lab3-api-1,20.93%,10.93MiB / 384MiB -2026-10-16T18:09:54Z,mtusi-messenger-lab3-api-2,21.59%,10.89MiB / 384MiB -2026-10-16T18:09:54Z,mtusi-messenger-lab3-postgres-1,57.25%,206.4MiB / 384MiB -2026-10-16T18:09:54Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:09:54Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:09:54Z,mtusi-messenger-lab3-lb-1,16.65%,11.64MiB / 64MiB -2026-10-16T18:09:54Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB -2026-10-16T18:09:57Z,mtusi-messenger-lab3-api-1,21.66%,10.96MiB / 384MiB -2026-10-16T18:09:57Z,mtusi-messenger-lab3-api-2,21.80%,10.9MiB / 384MiB -2026-10-16T18:09:57Z,mtusi-messenger-lab3-postgres-1,55.22%,206.5MiB / 384MiB -2026-10-16T18:09:57Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:09:57Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:09:57Z,mtusi-messenger-lab3-lb-1,16.30%,11.65MiB / 64MiB -2026-10-16T18:09:57Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB -2026-10-16T18:10:01Z,mtusi-messenger-lab3-api-1,21.62%,10.78MiB / 384MiB -2026-10-16T18:10:01Z,mtusi-messenger-lab3-api-2,21.19%,10.71MiB / 384MiB -2026-10-16T18:10:01Z,mtusi-messenger-lab3-postgres-1,54.76%,206.6MiB / 384MiB -2026-10-16T18:10:01Z,mtusi-messenger-lab2-postgres-1,0.68%,178.3MiB / 1.913GiB -2026-10-16T18:10:01Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:10:01Z,mtusi-messenger-lab3-lb-1,16.24%,11.64MiB / 64MiB -2026-10-16T18:10:01Z,mtusi-messenger-lab3-redis-1,0.70%,3.863MiB / 192MiB -2026-10-16T18:10:04Z,mtusi-messenger-lab3-api-1,1.05%,10.79MiB / 384MiB -2026-10-16T18:10:04Z,mtusi-messenger-lab3-api-2,0.79%,10.69MiB / 384MiB -2026-10-16T18:10:04Z,mtusi-messenger-lab3-postgres-1,2.03%,206.5MiB / 384MiB -2026-10-16T18:10:04Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:10:04Z,mtusi-messenger-lab2-redis-1,0.79%,9.004MiB / 1.913GiB -2026-10-16T18:10:04Z,mtusi-messenger-lab3-lb-1,0.70%,11.59MiB / 64MiB -2026-10-16T18:10:04Z,mtusi-messenger-lab3-redis-1,0.20%,3.863MiB / 192MiB -2026-10-16T18:10:07Z,mtusi-messenger-lab3-api-1,21.30%,10.8MiB / 384MiB -2026-10-16T18:10:07Z,mtusi-messenger-lab3-api-2,20.71%,11.06MiB / 384MiB -2026-10-16T18:10:07Z,mtusi-messenger-lab3-postgres-1,55.48%,206.8MiB / 384MiB -2026-10-16T18:10:07Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:10:07Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:10:07Z,mtusi-messenger-lab3-lb-1,16.17%,11.65MiB / 64MiB -2026-10-16T18:10:07Z,mtusi-messenger-lab3-redis-1,0.78%,3.863MiB / 192MiB -2026-10-16T18:10:10Z,mtusi-messenger-lab3-api-1,22.12%,10.81MiB / 384MiB -2026-10-16T18:10:10Z,mtusi-messenger-lab3-api-2,21.77%,10.84MiB / 384MiB -2026-10-16T18:10:10Z,mtusi-messenger-lab3-postgres-1,55.82%,206.7MiB / 384MiB -2026-10-16T18:10:10Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:10:10Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:10:10Z,mtusi-messenger-lab3-lb-1,16.80%,11.66MiB / 64MiB -2026-10-16T18:10:10Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB -2026-10-16T18:10:13Z,mtusi-messenger-lab3-api-1,21.75%,10.93MiB / 384MiB -2026-10-16T18:10:13Z,mtusi-messenger-lab3-api-2,20.98%,10.83MiB / 384MiB -2026-10-16T18:10:13Z,mtusi-messenger-lab3-postgres-1,52.41%,206.9MiB / 384MiB -2026-10-16T18:10:13Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:10:13Z,mtusi-messenger-lab2-redis-1,0.70%,9.004MiB / 1.913GiB -2026-10-16T18:10:13Z,mtusi-messenger-lab3-lb-1,16.23%,11.64MiB / 64MiB -2026-10-16T18:10:13Z,mtusi-messenger-lab3-redis-1,0.20%,3.863MiB / 192MiB -2026-10-16T18:10:16Z,mtusi-messenger-lab3-api-1,21.86%,10.93MiB / 384MiB -2026-10-16T18:10:16Z,mtusi-messenger-lab3-api-2,21.38%,10.86MiB / 384MiB -2026-10-16T18:10:16Z,mtusi-messenger-lab3-postgres-1,55.63%,206.7MiB / 384MiB -2026-10-16T18:10:16Z,mtusi-messenger-lab2-postgres-1,0.74%,178.3MiB / 1.913GiB -2026-10-16T18:10:16Z,mtusi-messenger-lab2-redis-1,0.24%,9.004MiB / 1.913GiB -2026-10-16T18:10:16Z,mtusi-messenger-lab3-lb-1,16.62%,11.65MiB / 64MiB -2026-10-16T18:10:16Z,mtusi-messenger-lab3-redis-1,0.70%,3.863MiB / 192MiB -2026-10-16T18:10:19Z,mtusi-messenger-lab3-api-1,0.16%,10.78MiB / 384MiB -2026-10-16T18:10:19Z,mtusi-messenger-lab3-api-2,0.13%,10.85MiB / 384MiB -2026-10-16T18:10:19Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:10:19Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:10:19Z,mtusi-messenger-lab3-redis-1,0.22%,3.863MiB / 192MiB -2026-10-16T18:10:19Z,mtusi-messenger-lab3-postgres-1,0.63%,27.27MiB / 384MiB -2026-10-16T18:10:19Z,mtusi-messenger-lab3-lb-1,12.40%,13.32MiB / 64MiB diff --git a/evidence/track1/superseded/run2-host-client/stats-g05.csv b/evidence/track1/superseded/run2-host-client/stats-g05.csv deleted file mode 100644 index b6c3164..0000000 --- a/evidence/track1/superseded/run2-host-client/stats-g05.csv +++ /dev/null @@ -1,141 +0,0 @@ -timestamp,container,cpu_percent,mem_usage -2026-10-16T18:02:39Z,mtusi-messenger-lab3-api-2,17.79%,81.74MiB / 384MiB -2026-10-16T18:02:39Z,mtusi-messenger-lab3-api-1,14.52%,146.2MiB / 384MiB -2026-10-16T18:02:39Z,mtusi-messenger-lab3-postgres-1,26.96%,182MiB / 384MiB -2026-10-16T18:02:39Z,mtusi-messenger-lab2-postgres-1,0.83%,240.6MiB / 1.913GiB -2026-10-16T18:02:39Z,mtusi-messenger-lab2-redis-1,0.30%,9.004MiB / 1.913GiB -2026-10-16T18:02:39Z,mtusi-messenger-lab3-lb-1,7.91%,11.58MiB / 64MiB -2026-10-16T18:02:39Z,mtusi-messenger-lab3-redis-1,0.43%,3.863MiB / 192MiB -2026-10-16T18:02:42Z,mtusi-messenger-lab3-api-2,19.58%,133.9MiB / 384MiB -2026-10-16T18:02:42Z,mtusi-messenger-lab3-api-1,18.81%,130.7MiB / 384MiB -2026-10-16T18:02:42Z,mtusi-messenger-lab3-postgres-1,50.34%,182.1MiB / 384MiB -2026-10-16T18:02:42Z,mtusi-messenger-lab2-postgres-1,0.00%,240.6MiB / 1.913GiB -2026-10-16T18:02:42Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:02:42Z,mtusi-messenger-lab3-lb-1,14.39%,11.58MiB / 64MiB -2026-10-16T18:02:42Z,mtusi-messenger-lab3-redis-1,0.20%,3.863MiB / 192MiB -2026-10-16T18:02:45Z,mtusi-messenger-lab3-api-2,18.45%,13.5MiB / 384MiB -2026-10-16T18:02:45Z,mtusi-messenger-lab3-api-1,17.91%,11.21MiB / 384MiB -2026-10-16T18:02:45Z,mtusi-messenger-lab3-postgres-1,49.64%,182.3MiB / 384MiB -2026-10-16T18:02:45Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:02:45Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:02:45Z,mtusi-messenger-lab3-lb-1,14.37%,11.57MiB / 64MiB -2026-10-16T18:02:45Z,mtusi-messenger-lab3-redis-1,0.66%,3.863MiB / 192MiB -2026-10-16T18:02:48Z,mtusi-messenger-lab3-api-2,17.88%,13.57MiB / 384MiB -2026-10-16T18:02:48Z,mtusi-messenger-lab3-api-1,17.90%,11.23MiB / 384MiB -2026-10-16T18:02:48Z,mtusi-messenger-lab3-postgres-1,50.01%,184.2MiB / 384MiB -2026-10-16T18:02:48Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:02:48Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:02:48Z,mtusi-messenger-lab3-lb-1,14.38%,11.54MiB / 64MiB -2026-10-16T18:02:48Z,mtusi-messenger-lab3-redis-1,0.64%,3.863MiB / 192MiB -2026-10-16T18:02:51Z,mtusi-messenger-lab3-api-2,16.80%,13.45MiB / 384MiB -2026-10-16T18:02:51Z,mtusi-messenger-lab3-api-1,15.83%,11.26MiB / 384MiB -2026-10-16T18:02:51Z,mtusi-messenger-lab3-postgres-1,49.20%,185.6MiB / 384MiB -2026-10-16T18:02:51Z,mtusi-messenger-lab2-postgres-1,0.22%,240.5MiB / 1.913GiB -2026-10-16T18:02:51Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:02:51Z,mtusi-messenger-lab3-lb-1,12.11%,11.57MiB / 64MiB -2026-10-16T18:02:51Z,mtusi-messenger-lab3-redis-1,0.22%,3.863MiB / 192MiB -2026-10-16T18:02:54Z,mtusi-messenger-lab3-api-2,15.10%,13.66MiB / 384MiB -2026-10-16T18:02:54Z,mtusi-messenger-lab3-api-1,15.35%,11.18MiB / 384MiB -2026-10-16T18:02:54Z,mtusi-messenger-lab3-postgres-1,49.94%,195.8MiB / 384MiB -2026-10-16T18:02:54Z,mtusi-messenger-lab2-postgres-1,0.74%,240.5MiB / 1.913GiB -2026-10-16T18:02:54Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:02:54Z,mtusi-messenger-lab3-lb-1,11.04%,11.57MiB / 64MiB -2026-10-16T18:02:54Z,mtusi-messenger-lab3-redis-1,0.19%,3.863MiB / 192MiB -2026-10-16T18:02:57Z,mtusi-messenger-lab3-api-2,16.69%,13.17MiB / 384MiB -2026-10-16T18:02:57Z,mtusi-messenger-lab3-api-1,16.46%,11.18MiB / 384MiB -2026-10-16T18:02:57Z,mtusi-messenger-lab3-postgres-1,50.32%,187.2MiB / 384MiB -2026-10-16T18:02:57Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:02:57Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:02:57Z,mtusi-messenger-lab3-lb-1,12.14%,11.57MiB / 64MiB -2026-10-16T18:02:57Z,mtusi-messenger-lab3-redis-1,0.19%,3.863MiB / 192MiB -2026-10-16T18:03:00Z,mtusi-messenger-lab3-api-2,14.82%,13.5MiB / 384MiB -2026-10-16T18:03:00Z,mtusi-messenger-lab3-api-1,13.04%,11.27MiB / 384MiB -2026-10-16T18:03:00Z,mtusi-messenger-lab3-postgres-1,49.80%,195.5MiB / 384MiB -2026-10-16T18:03:00Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:03:00Z,mtusi-messenger-lab2-redis-1,0.24%,9.004MiB / 1.913GiB -2026-10-16T18:03:00Z,mtusi-messenger-lab3-lb-1,9.39%,11.57MiB / 64MiB -2026-10-16T18:03:00Z,mtusi-messenger-lab3-redis-1,0.24%,3.863MiB / 192MiB -2026-10-16T18:03:04Z,mtusi-messenger-lab3-api-2,17.88%,13.25MiB / 384MiB -2026-10-16T18:03:04Z,mtusi-messenger-lab3-api-1,17.71%,11.2MiB / 384MiB -2026-10-16T18:03:04Z,mtusi-messenger-lab3-postgres-1,48.96%,186.1MiB / 384MiB -2026-10-16T18:03:04Z,mtusi-messenger-lab2-postgres-1,0.70%,240.5MiB / 1.913GiB -2026-10-16T18:03:04Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:03:04Z,mtusi-messenger-lab3-lb-1,13.68%,11.57MiB / 64MiB -2026-10-16T18:03:04Z,mtusi-messenger-lab3-redis-1,0.71%,3.863MiB / 192MiB -2026-10-16T18:03:07Z,mtusi-messenger-lab3-api-2,17.74%,13.3MiB / 384MiB -2026-10-16T18:03:07Z,mtusi-messenger-lab3-api-1,18.10%,11.32MiB / 384MiB -2026-10-16T18:03:07Z,mtusi-messenger-lab3-postgres-1,49.83%,186.6MiB / 384MiB -2026-10-16T18:03:07Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:03:07Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:03:07Z,mtusi-messenger-lab3-lb-1,13.22%,11.56MiB / 64MiB -2026-10-16T18:03:07Z,mtusi-messenger-lab3-redis-1,0.23%,3.863MiB / 192MiB -2026-10-16T18:03:10Z,mtusi-messenger-lab3-api-2,19.22%,13.18MiB / 384MiB -2026-10-16T18:03:10Z,mtusi-messenger-lab3-api-1,18.91%,10.92MiB / 384MiB -2026-10-16T18:03:10Z,mtusi-messenger-lab3-postgres-1,50.71%,187.1MiB / 384MiB -2026-10-16T18:03:10Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:03:10Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:03:10Z,mtusi-messenger-lab3-lb-1,14.24%,11.57MiB / 64MiB -2026-10-16T18:03:10Z,mtusi-messenger-lab3-redis-1,0.73%,3.863MiB / 192MiB -2026-10-16T18:03:13Z,mtusi-messenger-lab3-api-2,17.91%,13.36MiB / 384MiB -2026-10-16T18:03:13Z,mtusi-messenger-lab3-api-1,18.45%,11.18MiB / 384MiB -2026-10-16T18:03:13Z,mtusi-messenger-lab3-postgres-1,49.05%,187.4MiB / 384MiB -2026-10-16T18:03:13Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:03:13Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:03:13Z,mtusi-messenger-lab3-lb-1,13.90%,11.57MiB / 64MiB -2026-10-16T18:03:13Z,mtusi-messenger-lab3-redis-1,0.24%,3.863MiB / 192MiB -2026-10-16T18:03:16Z,mtusi-messenger-lab3-api-2,18.09%,13.3MiB / 384MiB -2026-10-16T18:03:16Z,mtusi-messenger-lab3-api-1,18.66%,11.28MiB / 384MiB -2026-10-16T18:03:16Z,mtusi-messenger-lab3-postgres-1,48.96%,187.9MiB / 384MiB -2026-10-16T18:03:16Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:03:16Z,mtusi-messenger-lab2-redis-1,0.72%,9.004MiB / 1.913GiB -2026-10-16T18:03:16Z,mtusi-messenger-lab3-lb-1,13.32%,11.8MiB / 64MiB -2026-10-16T18:03:16Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB -2026-10-16T18:03:19Z,mtusi-messenger-lab3-api-2,18.19%,13.39MiB / 384MiB -2026-10-16T18:03:19Z,mtusi-messenger-lab3-api-1,18.10%,11.25MiB / 384MiB -2026-10-16T18:03:19Z,mtusi-messenger-lab3-postgres-1,49.45%,188MiB / 384MiB -2026-10-16T18:03:19Z,mtusi-messenger-lab2-postgres-1,0.73%,240.5MiB / 1.913GiB -2026-10-16T18:03:19Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:03:19Z,mtusi-messenger-lab3-lb-1,13.70%,11.57MiB / 64MiB -2026-10-16T18:03:19Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB -2026-10-16T18:03:22Z,mtusi-messenger-lab3-api-2,18.66%,13.22MiB / 384MiB -2026-10-16T18:03:22Z,mtusi-messenger-lab3-api-1,19.62%,11.25MiB / 384MiB -2026-10-16T18:03:22Z,mtusi-messenger-lab3-postgres-1,49.69%,188.3MiB / 384MiB -2026-10-16T18:03:22Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:03:22Z,mtusi-messenger-lab2-redis-1,0.76%,9.004MiB / 1.913GiB -2026-10-16T18:03:22Z,mtusi-messenger-lab3-lb-1,14.28%,11.56MiB / 64MiB -2026-10-16T18:03:22Z,mtusi-messenger-lab3-redis-1,0.23%,3.863MiB / 192MiB -2026-10-16T18:03:25Z,mtusi-messenger-lab3-api-2,18.62%,13.34MiB / 384MiB -2026-10-16T18:03:25Z,mtusi-messenger-lab3-api-1,18.39%,11.25MiB / 384MiB -2026-10-16T18:03:25Z,mtusi-messenger-lab3-postgres-1,50.11%,188.4MiB / 384MiB -2026-10-16T18:03:25Z,mtusi-messenger-lab2-postgres-1,0.00%,240.6MiB / 1.913GiB -2026-10-16T18:03:25Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:03:25Z,mtusi-messenger-lab3-lb-1,14.14%,11.57MiB / 64MiB -2026-10-16T18:03:25Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB -2026-10-16T18:03:28Z,mtusi-messenger-lab3-api-2,16.59%,13.24MiB / 384MiB -2026-10-16T18:03:28Z,mtusi-messenger-lab3-api-1,15.98%,11.23MiB / 384MiB -2026-10-16T18:03:28Z,mtusi-messenger-lab3-postgres-1,43.46%,188.6MiB / 384MiB -2026-10-16T18:03:28Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:03:28Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:03:28Z,mtusi-messenger-lab3-lb-1,12.25%,11.57MiB / 64MiB -2026-10-16T18:03:28Z,mtusi-messenger-lab3-redis-1,0.23%,3.863MiB / 192MiB -2026-10-16T18:03:31Z,mtusi-messenger-lab3-api-2,18.66%,13.45MiB / 384MiB -2026-10-16T18:03:31Z,mtusi-messenger-lab3-api-1,19.18%,13.6MiB / 384MiB -2026-10-16T18:03:31Z,mtusi-messenger-lab3-postgres-1,49.64%,188.8MiB / 384MiB -2026-10-16T18:03:31Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:03:31Z,mtusi-messenger-lab2-redis-1,0.66%,9.004MiB / 1.913GiB -2026-10-16T18:03:31Z,mtusi-messenger-lab3-lb-1,14.05%,11.58MiB / 64MiB -2026-10-16T18:03:31Z,mtusi-messenger-lab3-redis-1,0.23%,3.863MiB / 192MiB -2026-10-16T18:03:34Z,mtusi-messenger-lab3-api-2,19.13%,13.44MiB / 384MiB -2026-10-16T18:03:34Z,mtusi-messenger-lab3-api-1,18.16%,11.23MiB / 384MiB -2026-10-16T18:03:34Z,mtusi-messenger-lab3-postgres-1,48.37%,188.8MiB / 384MiB -2026-10-16T18:03:34Z,mtusi-messenger-lab2-postgres-1,0.79%,240.5MiB / 1.913GiB -2026-10-16T18:03:34Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:03:34Z,mtusi-messenger-lab3-lb-1,13.94%,11.57MiB / 64MiB -2026-10-16T18:03:34Z,mtusi-messenger-lab3-redis-1,0.70%,3.863MiB / 192MiB -2026-10-16T18:03:37Z,mtusi-messenger-lab3-api-2,17.44%,13.33MiB / 384MiB -2026-10-16T18:03:37Z,mtusi-messenger-lab3-api-1,18.33%,11.23MiB / 384MiB -2026-10-16T18:03:37Z,mtusi-messenger-lab3-postgres-1,47.73%,189.2MiB / 384MiB -2026-10-16T18:03:37Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:03:37Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:03:37Z,mtusi-messenger-lab3-lb-1,13.68%,11.57MiB / 64MiB -2026-10-16T18:03:37Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB diff --git a/evidence/track1/superseded/run2-host-client/stats-g10.csv b/evidence/track1/superseded/run2-host-client/stats-g10.csv deleted file mode 100644 index aa40619..0000000 --- a/evidence/track1/superseded/run2-host-client/stats-g10.csv +++ /dev/null @@ -1,141 +0,0 @@ -timestamp,container,cpu_percent,mem_usage -2026-10-16T18:03:58Z,mtusi-messenger-lab3-api-2,18.80%,168.3MiB / 384MiB -2026-10-16T18:03:58Z,mtusi-messenger-lab3-api-1,19.24%,168.4MiB / 384MiB -2026-10-16T18:03:58Z,mtusi-messenger-lab3-postgres-1,50.84%,197.8MiB / 384MiB -2026-10-16T18:03:58Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:03:58Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:03:58Z,mtusi-messenger-lab3-lb-1,10.95%,11.57MiB / 64MiB -2026-10-16T18:03:58Z,mtusi-messenger-lab3-redis-1,0.81%,3.863MiB / 192MiB -2026-10-16T18:04:02Z,mtusi-messenger-lab3-api-2,19.42%,11.03MiB / 384MiB -2026-10-16T18:04:02Z,mtusi-messenger-lab3-api-1,19.30%,11.29MiB / 384MiB -2026-10-16T18:04:02Z,mtusi-messenger-lab3-postgres-1,50.68%,192.2MiB / 384MiB -2026-10-16T18:04:02Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:04:02Z,mtusi-messenger-lab2-redis-1,0.24%,9.004MiB / 1.913GiB -2026-10-16T18:04:02Z,mtusi-messenger-lab3-lb-1,14.56%,11.57MiB / 64MiB -2026-10-16T18:04:02Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB -2026-10-16T18:04:05Z,mtusi-messenger-lab3-api-2,19.04%,10.98MiB / 384MiB -2026-10-16T18:04:05Z,mtusi-messenger-lab3-api-1,19.86%,11.09MiB / 384MiB -2026-10-16T18:04:05Z,mtusi-messenger-lab3-postgres-1,50.45%,192.2MiB / 384MiB -2026-10-16T18:04:05Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:04:05Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:04:05Z,mtusi-messenger-lab3-lb-1,14.70%,11.58MiB / 64MiB -2026-10-16T18:04:05Z,mtusi-messenger-lab3-redis-1,0.20%,3.863MiB / 192MiB -2026-10-16T18:04:08Z,mtusi-messenger-lab3-api-2,19.61%,11.22MiB / 384MiB -2026-10-16T18:04:08Z,mtusi-messenger-lab3-api-1,19.10%,11.06MiB / 384MiB -2026-10-16T18:04:08Z,mtusi-messenger-lab3-postgres-1,49.85%,192.4MiB / 384MiB -2026-10-16T18:04:08Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:04:08Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:04:08Z,mtusi-messenger-lab3-lb-1,14.61%,11.57MiB / 64MiB -2026-10-16T18:04:08Z,mtusi-messenger-lab3-redis-1,0.23%,3.863MiB / 192MiB -2026-10-16T18:04:11Z,mtusi-messenger-lab3-api-2,19.50%,11.04MiB / 384MiB -2026-10-16T18:04:11Z,mtusi-messenger-lab3-api-1,19.18%,11MiB / 384MiB -2026-10-16T18:04:11Z,mtusi-messenger-lab3-postgres-1,50.13%,192.8MiB / 384MiB -2026-10-16T18:04:11Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:04:11Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:04:11Z,mtusi-messenger-lab3-lb-1,14.52%,11.57MiB / 64MiB -2026-10-16T18:04:11Z,mtusi-messenger-lab3-redis-1,0.22%,3.863MiB / 192MiB -2026-10-16T18:04:14Z,mtusi-messenger-lab3-api-2,14.52%,11.29MiB / 384MiB -2026-10-16T18:04:14Z,mtusi-messenger-lab3-api-1,15.10%,11MiB / 384MiB -2026-10-16T18:04:14Z,mtusi-messenger-lab3-postgres-1,37.84%,193MiB / 384MiB -2026-10-16T18:04:14Z,mtusi-messenger-lab2-postgres-1,0.80%,240.5MiB / 1.913GiB -2026-10-16T18:04:14Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:04:14Z,mtusi-messenger-lab3-lb-1,11.29%,11.57MiB / 64MiB -2026-10-16T18:04:14Z,mtusi-messenger-lab3-redis-1,0.24%,3.863MiB / 192MiB -2026-10-16T18:04:17Z,mtusi-messenger-lab3-api-2,20.19%,11.09MiB / 384MiB -2026-10-16T18:04:17Z,mtusi-messenger-lab3-api-1,19.71%,11MiB / 384MiB -2026-10-16T18:04:17Z,mtusi-messenger-lab3-postgres-1,50.46%,193.5MiB / 384MiB -2026-10-16T18:04:17Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:04:17Z,mtusi-messenger-lab2-redis-1,0.71%,9.004MiB / 1.913GiB -2026-10-16T18:04:17Z,mtusi-messenger-lab3-lb-1,14.72%,11.58MiB / 64MiB -2026-10-16T18:04:17Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB -2026-10-16T18:04:20Z,mtusi-messenger-lab3-api-2,19.00%,11.19MiB / 384MiB -2026-10-16T18:04:20Z,mtusi-messenger-lab3-api-1,18.60%,11.09MiB / 384MiB -2026-10-16T18:04:20Z,mtusi-messenger-lab3-postgres-1,48.99%,193.5MiB / 384MiB -2026-10-16T18:04:20Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:04:20Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:04:20Z,mtusi-messenger-lab3-lb-1,14.50%,11.57MiB / 64MiB -2026-10-16T18:04:20Z,mtusi-messenger-lab3-redis-1,0.74%,3.863MiB / 192MiB -2026-10-16T18:04:23Z,mtusi-messenger-lab3-api-2,17.52%,11.46MiB / 384MiB -2026-10-16T18:04:23Z,mtusi-messenger-lab3-api-1,19.76%,11.11MiB / 384MiB -2026-10-16T18:04:23Z,mtusi-messenger-lab3-postgres-1,43.80%,193.8MiB / 384MiB -2026-10-16T18:04:23Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:04:23Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:04:23Z,mtusi-messenger-lab3-lb-1,13.19%,11.52MiB / 64MiB -2026-10-16T18:04:23Z,mtusi-messenger-lab3-redis-1,0.22%,3.863MiB / 192MiB -2026-10-16T18:04:26Z,mtusi-messenger-lab3-api-2,19.86%,10.97MiB / 384MiB -2026-10-16T18:04:26Z,mtusi-messenger-lab3-api-1,19.28%,11.01MiB / 384MiB -2026-10-16T18:04:26Z,mtusi-messenger-lab3-postgres-1,50.53%,194MiB / 384MiB -2026-10-16T18:04:26Z,mtusi-messenger-lab2-postgres-1,0.24%,240.5MiB / 1.913GiB -2026-10-16T18:04:26Z,mtusi-messenger-lab2-redis-1,0.68%,9.004MiB / 1.913GiB -2026-10-16T18:04:26Z,mtusi-messenger-lab3-lb-1,14.46%,11.57MiB / 64MiB -2026-10-16T18:04:26Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB -2026-10-16T18:04:29Z,mtusi-messenger-lab3-api-2,18.86%,11.22MiB / 384MiB -2026-10-16T18:04:29Z,mtusi-messenger-lab3-api-1,19.31%,11.09MiB / 384MiB -2026-10-16T18:04:29Z,mtusi-messenger-lab3-postgres-1,49.22%,194.2MiB / 384MiB -2026-10-16T18:04:29Z,mtusi-messenger-lab2-postgres-1,0.73%,240.5MiB / 1.913GiB -2026-10-16T18:04:29Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:04:29Z,mtusi-messenger-lab3-lb-1,14.58%,11.57MiB / 64MiB -2026-10-16T18:04:29Z,mtusi-messenger-lab3-redis-1,0.22%,3.863MiB / 192MiB -2026-10-16T18:04:32Z,mtusi-messenger-lab3-api-2,17.91%,11.14MiB / 384MiB -2026-10-16T18:04:32Z,mtusi-messenger-lab3-api-1,14.49%,11.06MiB / 384MiB -2026-10-16T18:04:32Z,mtusi-messenger-lab3-postgres-1,36.01%,194.8MiB / 384MiB -2026-10-16T18:04:32Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:04:32Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:04:32Z,mtusi-messenger-lab3-lb-1,10.69%,11.58MiB / 64MiB -2026-10-16T18:04:32Z,mtusi-messenger-lab3-redis-1,0.22%,3.863MiB / 192MiB -2026-10-16T18:04:35Z,mtusi-messenger-lab3-api-2,19.32%,11.29MiB / 384MiB -2026-10-16T18:04:35Z,mtusi-messenger-lab3-api-1,19.87%,11.05MiB / 384MiB -2026-10-16T18:04:35Z,mtusi-messenger-lab3-postgres-1,49.86%,194.8MiB / 384MiB -2026-10-16T18:04:35Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:04:35Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:04:35Z,mtusi-messenger-lab3-lb-1,14.82%,11.58MiB / 64MiB -2026-10-16T18:04:35Z,mtusi-messenger-lab3-redis-1,0.69%,3.863MiB / 192MiB -2026-10-16T18:04:38Z,mtusi-messenger-lab3-api-2,19.18%,11.07MiB / 384MiB -2026-10-16T18:04:38Z,mtusi-messenger-lab3-api-1,19.71%,11.13MiB / 384MiB -2026-10-16T18:04:38Z,mtusi-messenger-lab3-postgres-1,49.73%,195.1MiB / 384MiB -2026-10-16T18:04:38Z,mtusi-messenger-lab2-postgres-1,0.21%,240.5MiB / 1.913GiB -2026-10-16T18:04:38Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:04:38Z,mtusi-messenger-lab3-lb-1,14.71%,11.57MiB / 64MiB -2026-10-16T18:04:38Z,mtusi-messenger-lab3-redis-1,0.20%,3.863MiB / 192MiB -2026-10-16T18:04:42Z,mtusi-messenger-lab3-api-2,19.16%,11.25MiB / 384MiB -2026-10-16T18:04:42Z,mtusi-messenger-lab3-api-1,18.94%,11.12MiB / 384MiB -2026-10-16T18:04:42Z,mtusi-messenger-lab3-postgres-1,50.58%,195.7MiB / 384MiB -2026-10-16T18:04:42Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:04:42Z,mtusi-messenger-lab2-redis-1,0.70%,9.004MiB / 1.913GiB -2026-10-16T18:04:42Z,mtusi-messenger-lab3-lb-1,14.56%,11.57MiB / 64MiB -2026-10-16T18:04:42Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB -2026-10-16T18:04:45Z,mtusi-messenger-lab3-api-2,15.05%,11.41MiB / 384MiB -2026-10-16T18:04:45Z,mtusi-messenger-lab3-api-1,14.81%,11.14MiB / 384MiB -2026-10-16T18:04:45Z,mtusi-messenger-lab3-postgres-1,38.51%,195.9MiB / 384MiB -2026-10-16T18:04:45Z,mtusi-messenger-lab2-postgres-1,0.78%,240.5MiB / 1.913GiB -2026-10-16T18:04:45Z,mtusi-messenger-lab2-redis-1,0.24%,9.004MiB / 1.913GiB -2026-10-16T18:04:45Z,mtusi-messenger-lab3-lb-1,2.96%,11.52MiB / 64MiB -2026-10-16T18:04:45Z,mtusi-messenger-lab3-redis-1,0.23%,3.863MiB / 192MiB -2026-10-16T18:04:48Z,mtusi-messenger-lab3-api-2,19.00%,11.06MiB / 384MiB -2026-10-16T18:04:48Z,mtusi-messenger-lab3-api-1,18.90%,11.26MiB / 384MiB -2026-10-16T18:04:48Z,mtusi-messenger-lab3-postgres-1,49.71%,196MiB / 384MiB -2026-10-16T18:04:48Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:04:48Z,mtusi-messenger-lab2-redis-1,0.24%,9.004MiB / 1.913GiB -2026-10-16T18:04:48Z,mtusi-messenger-lab3-lb-1,14.63%,11.57MiB / 64MiB -2026-10-16T18:04:48Z,mtusi-messenger-lab3-redis-1,0.23%,3.863MiB / 192MiB -2026-10-16T18:04:51Z,mtusi-messenger-lab3-api-2,0.69%,11.42MiB / 384MiB -2026-10-16T18:04:51Z,mtusi-messenger-lab3-api-1,0.60%,10.98MiB / 384MiB -2026-10-16T18:04:51Z,mtusi-messenger-lab3-postgres-1,50.55%,196.3MiB / 384MiB -2026-10-16T18:04:51Z,mtusi-messenger-lab2-postgres-1,0.23%,240.5MiB / 1.913GiB -2026-10-16T18:04:51Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:04:51Z,mtusi-messenger-lab3-lb-1,0.47%,11.52MiB / 64MiB -2026-10-16T18:04:51Z,mtusi-messenger-lab3-redis-1,0.22%,3.863MiB / 192MiB -2026-10-16T18:04:54Z,mtusi-messenger-lab3-api-2,19.30%,11.42MiB / 384MiB -2026-10-16T18:04:54Z,mtusi-messenger-lab3-api-1,19.42%,11.04MiB / 384MiB -2026-10-16T18:04:54Z,mtusi-messenger-lab3-postgres-1,50.00%,196.3MiB / 384MiB -2026-10-16T18:04:54Z,mtusi-messenger-lab2-postgres-1,0.68%,240.5MiB / 1.913GiB -2026-10-16T18:04:54Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:04:54Z,mtusi-messenger-lab3-lb-1,14.52%,11.57MiB / 64MiB -2026-10-16T18:04:54Z,mtusi-messenger-lab3-redis-1,0.71%,3.863MiB / 192MiB -2026-10-16T18:04:57Z,mtusi-messenger-lab3-api-2,11.32%,11MiB / 384MiB -2026-10-16T18:04:57Z,mtusi-messenger-lab3-api-1,11.02%,11.1MiB / 384MiB -2026-10-16T18:04:57Z,mtusi-messenger-lab3-postgres-1,39.14%,207.5MiB / 384MiB -2026-10-16T18:04:57Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:04:57Z,mtusi-messenger-lab2-redis-1,0.70%,9.004MiB / 1.913GiB -2026-10-16T18:04:57Z,mtusi-messenger-lab3-lb-1,8.16%,11.52MiB / 64MiB -2026-10-16T18:04:57Z,mtusi-messenger-lab3-redis-1,0.20%,3.863MiB / 192MiB diff --git a/evidence/track1/superseded/run2-host-client/stats-g15.csv b/evidence/track1/superseded/run2-host-client/stats-g15.csv deleted file mode 100644 index 2bd6d5f..0000000 --- a/evidence/track1/superseded/run2-host-client/stats-g15.csv +++ /dev/null @@ -1,141 +0,0 @@ -timestamp,container,cpu_percent,mem_usage -2026-10-16T18:05:16Z,mtusi-messenger-lab3-api-2,18.49%,168MiB / 384MiB -2026-10-16T18:05:16Z,mtusi-messenger-lab3-api-1,18.28%,103.5MiB / 384MiB -2026-10-16T18:05:16Z,mtusi-messenger-lab3-postgres-1,49.31%,191.3MiB / 384MiB -2026-10-16T18:05:16Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:05:16Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:05:16Z,mtusi-messenger-lab3-lb-1,14.57%,11.57MiB / 64MiB -2026-10-16T18:05:16Z,mtusi-messenger-lab3-redis-1,0.22%,3.863MiB / 192MiB -2026-10-16T18:05:19Z,mtusi-messenger-lab3-api-2,19.49%,11.12MiB / 384MiB -2026-10-16T18:05:19Z,mtusi-messenger-lab3-api-1,19.62%,10.96MiB / 384MiB -2026-10-16T18:05:19Z,mtusi-messenger-lab3-postgres-1,49.52%,192.3MiB / 384MiB -2026-10-16T18:05:19Z,mtusi-messenger-lab2-postgres-1,0.79%,240.5MiB / 1.913GiB -2026-10-16T18:05:19Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:05:19Z,mtusi-messenger-lab3-lb-1,13.96%,11.59MiB / 64MiB -2026-10-16T18:05:19Z,mtusi-messenger-lab3-redis-1,0.24%,3.863MiB / 192MiB -2026-10-16T18:05:22Z,mtusi-messenger-lab3-api-2,19.25%,11.14MiB / 384MiB -2026-10-16T18:05:22Z,mtusi-messenger-lab3-api-1,18.85%,11MiB / 384MiB -2026-10-16T18:05:22Z,mtusi-messenger-lab3-postgres-1,50.12%,192.2MiB / 384MiB -2026-10-16T18:05:22Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:05:22Z,mtusi-messenger-lab2-redis-1,0.68%,9.004MiB / 1.913GiB -2026-10-16T18:05:22Z,mtusi-messenger-lab3-lb-1,14.28%,11.59MiB / 64MiB -2026-10-16T18:05:22Z,mtusi-messenger-lab3-redis-1,0.23%,3.863MiB / 192MiB -2026-10-16T18:05:25Z,mtusi-messenger-lab3-api-2,19.31%,10.96MiB / 384MiB -2026-10-16T18:05:25Z,mtusi-messenger-lab3-api-1,19.62%,10.82MiB / 384MiB -2026-10-16T18:05:25Z,mtusi-messenger-lab3-postgres-1,50.26%,192.5MiB / 384MiB -2026-10-16T18:05:25Z,mtusi-messenger-lab2-postgres-1,0.71%,240.5MiB / 1.913GiB -2026-10-16T18:05:25Z,mtusi-messenger-lab2-redis-1,0.24%,9.004MiB / 1.913GiB -2026-10-16T18:05:25Z,mtusi-messenger-lab3-lb-1,14.36%,11.57MiB / 64MiB -2026-10-16T18:05:25Z,mtusi-messenger-lab3-redis-1,0.19%,3.863MiB / 192MiB -2026-10-16T18:05:28Z,mtusi-messenger-lab3-api-2,15.99%,11.09MiB / 384MiB -2026-10-16T18:05:28Z,mtusi-messenger-lab3-api-1,16.11%,10.94MiB / 384MiB -2026-10-16T18:05:28Z,mtusi-messenger-lab3-postgres-1,40.57%,192.7MiB / 384MiB -2026-10-16T18:05:28Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:05:28Z,mtusi-messenger-lab2-redis-1,0.24%,9.004MiB / 1.913GiB -2026-10-16T18:05:28Z,mtusi-messenger-lab3-lb-1,12.21%,11.52MiB / 64MiB -2026-10-16T18:05:28Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB -2026-10-16T18:05:31Z,mtusi-messenger-lab3-api-2,19.42%,11.04MiB / 384MiB -2026-10-16T18:05:31Z,mtusi-messenger-lab3-api-1,19.63%,10.88MiB / 384MiB -2026-10-16T18:05:31Z,mtusi-messenger-lab3-postgres-1,49.72%,193MiB / 384MiB -2026-10-16T18:05:31Z,mtusi-messenger-lab2-postgres-1,0.00%,240.6MiB / 1.913GiB -2026-10-16T18:05:31Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:05:31Z,mtusi-messenger-lab3-lb-1,15.01%,11.57MiB / 64MiB -2026-10-16T18:05:31Z,mtusi-messenger-lab3-redis-1,0.23%,3.863MiB / 192MiB -2026-10-16T18:05:34Z,mtusi-messenger-lab3-api-2,19.30%,11.1MiB / 384MiB -2026-10-16T18:05:34Z,mtusi-messenger-lab3-api-1,20.91%,11.06MiB / 384MiB -2026-10-16T18:05:34Z,mtusi-messenger-lab3-postgres-1,50.90%,193.3MiB / 384MiB -2026-10-16T18:05:34Z,mtusi-messenger-lab2-postgres-1,0.74%,240.5MiB / 1.913GiB -2026-10-16T18:05:34Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:05:34Z,mtusi-messenger-lab3-lb-1,15.15%,11.55MiB / 64MiB -2026-10-16T18:05:34Z,mtusi-messenger-lab3-redis-1,0.22%,3.863MiB / 192MiB -2026-10-16T18:05:38Z,mtusi-messenger-lab3-api-2,19.89%,11.09MiB / 384MiB -2026-10-16T18:05:38Z,mtusi-messenger-lab3-api-1,19.51%,11.32MiB / 384MiB -2026-10-16T18:05:38Z,mtusi-messenger-lab3-postgres-1,49.76%,193.5MiB / 384MiB -2026-10-16T18:05:38Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:05:38Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:05:38Z,mtusi-messenger-lab3-lb-1,15.10%,11.57MiB / 64MiB -2026-10-16T18:05:38Z,mtusi-messenger-lab3-redis-1,0.23%,3.863MiB / 192MiB -2026-10-16T18:05:41Z,mtusi-messenger-lab3-api-2,19.05%,11.04MiB / 384MiB -2026-10-16T18:05:41Z,mtusi-messenger-lab3-api-1,18.38%,10.95MiB / 384MiB -2026-10-16T18:05:41Z,mtusi-messenger-lab3-postgres-1,49.61%,193.9MiB / 384MiB -2026-10-16T18:05:41Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:05:41Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:05:41Z,mtusi-messenger-lab3-lb-1,14.29%,11.58MiB / 64MiB -2026-10-16T18:05:41Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB -2026-10-16T18:05:44Z,mtusi-messenger-lab3-api-2,13.40%,11.05MiB / 384MiB -2026-10-16T18:05:44Z,mtusi-messenger-lab3-api-1,13.86%,11.02MiB / 384MiB -2026-10-16T18:05:44Z,mtusi-messenger-lab3-postgres-1,33.98%,194.2MiB / 384MiB -2026-10-16T18:05:44Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:05:44Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:05:44Z,mtusi-messenger-lab3-lb-1,9.91%,11.56MiB / 64MiB -2026-10-16T18:05:44Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB -2026-10-16T18:05:47Z,mtusi-messenger-lab3-api-2,19.23%,11MiB / 384MiB -2026-10-16T18:05:47Z,mtusi-messenger-lab3-api-1,19.00%,10.95MiB / 384MiB -2026-10-16T18:05:47Z,mtusi-messenger-lab3-postgres-1,50.21%,194.5MiB / 384MiB -2026-10-16T18:05:47Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:05:47Z,mtusi-messenger-lab2-redis-1,0.69%,9.004MiB / 1.913GiB -2026-10-16T18:05:47Z,mtusi-messenger-lab3-lb-1,14.64%,11.57MiB / 64MiB -2026-10-16T18:05:47Z,mtusi-messenger-lab3-redis-1,0.23%,3.863MiB / 192MiB -2026-10-16T18:05:50Z,mtusi-messenger-lab3-api-2,14.06%,10.88MiB / 384MiB -2026-10-16T18:05:50Z,mtusi-messenger-lab3-api-1,13.96%,10.86MiB / 384MiB -2026-10-16T18:05:50Z,mtusi-messenger-lab3-postgres-1,49.22%,202.6MiB / 384MiB -2026-10-16T18:05:50Z,mtusi-messenger-lab2-postgres-1,0.84%,240.5MiB / 1.913GiB -2026-10-16T18:05:50Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:05:50Z,mtusi-messenger-lab3-lb-1,10.07%,11.57MiB / 64MiB -2026-10-16T18:05:50Z,mtusi-messenger-lab3-redis-1,0.85%,3.863MiB / 192MiB -2026-10-16T18:05:53Z,mtusi-messenger-lab3-api-2,18.04%,10.99MiB / 384MiB -2026-10-16T18:05:53Z,mtusi-messenger-lab3-api-1,18.24%,10.95MiB / 384MiB -2026-10-16T18:05:53Z,mtusi-messenger-lab3-postgres-1,48.45%,195.2MiB / 384MiB -2026-10-16T18:05:53Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:05:53Z,mtusi-messenger-lab2-redis-1,0.19%,9.004MiB / 1.913GiB -2026-10-16T18:05:53Z,mtusi-messenger-lab3-lb-1,13.54%,11.56MiB / 64MiB -2026-10-16T18:05:53Z,mtusi-messenger-lab3-redis-1,0.22%,3.863MiB / 192MiB -2026-10-16T18:05:56Z,mtusi-messenger-lab3-api-2,19.10%,10.99MiB / 384MiB -2026-10-16T18:05:56Z,mtusi-messenger-lab3-api-1,19.42%,10.86MiB / 384MiB -2026-10-16T18:05:56Z,mtusi-messenger-lab3-postgres-1,49.58%,195.9MiB / 384MiB -2026-10-16T18:05:56Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:05:56Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:05:56Z,mtusi-messenger-lab3-lb-1,14.43%,11.58MiB / 64MiB -2026-10-16T18:05:56Z,mtusi-messenger-lab3-redis-1,0.22%,3.863MiB / 192MiB -2026-10-16T18:05:59Z,mtusi-messenger-lab3-api-2,19.82%,10.98MiB / 384MiB -2026-10-16T18:05:59Z,mtusi-messenger-lab3-api-1,19.00%,10.85MiB / 384MiB -2026-10-16T18:05:59Z,mtusi-messenger-lab3-postgres-1,50.02%,195.8MiB / 384MiB -2026-10-16T18:05:59Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:05:59Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:05:59Z,mtusi-messenger-lab3-lb-1,14.60%,11.82MiB / 64MiB -2026-10-16T18:05:59Z,mtusi-messenger-lab3-redis-1,0.64%,3.863MiB / 192MiB -2026-10-16T18:06:02Z,mtusi-messenger-lab3-api-2,19.59%,11MiB / 384MiB -2026-10-16T18:06:02Z,mtusi-messenger-lab3-api-1,19.24%,10.87MiB / 384MiB -2026-10-16T18:06:02Z,mtusi-messenger-lab3-postgres-1,50.63%,196.2MiB / 384MiB -2026-10-16T18:06:02Z,mtusi-messenger-lab2-postgres-1,0.22%,240.6MiB / 1.913GiB -2026-10-16T18:06:02Z,mtusi-messenger-lab2-redis-1,0.65%,9.004MiB / 1.913GiB -2026-10-16T18:06:02Z,mtusi-messenger-lab3-lb-1,14.53%,11.57MiB / 64MiB -2026-10-16T18:06:02Z,mtusi-messenger-lab3-redis-1,0.19%,3.863MiB / 192MiB -2026-10-16T18:06:05Z,mtusi-messenger-lab3-api-2,19.83%,11.03MiB / 384MiB -2026-10-16T18:06:05Z,mtusi-messenger-lab3-api-1,19.97%,10.84MiB / 384MiB -2026-10-16T18:06:05Z,mtusi-messenger-lab3-postgres-1,52.01%,196.7MiB / 384MiB -2026-10-16T18:06:05Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:06:05Z,mtusi-messenger-lab2-redis-1,0.24%,9.004MiB / 1.913GiB -2026-10-16T18:06:05Z,mtusi-messenger-lab3-lb-1,15.34%,11.57MiB / 64MiB -2026-10-16T18:06:05Z,mtusi-messenger-lab3-redis-1,0.66%,3.863MiB / 192MiB -2026-10-16T18:06:08Z,mtusi-messenger-lab3-api-2,19.37%,11.02MiB / 384MiB -2026-10-16T18:06:08Z,mtusi-messenger-lab3-api-1,19.61%,11.07MiB / 384MiB -2026-10-16T18:06:08Z,mtusi-messenger-lab3-postgres-1,50.26%,193.7MiB / 384MiB -2026-10-16T18:06:08Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:06:08Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:06:08Z,mtusi-messenger-lab3-lb-1,14.62%,11.58MiB / 64MiB -2026-10-16T18:06:08Z,mtusi-messenger-lab3-redis-1,0.22%,3.863MiB / 192MiB -2026-10-16T18:06:11Z,mtusi-messenger-lab3-api-2,19.75%,10.96MiB / 384MiB -2026-10-16T18:06:11Z,mtusi-messenger-lab3-api-1,19.44%,10.75MiB / 384MiB -2026-10-16T18:06:11Z,mtusi-messenger-lab3-postgres-1,51.10%,194MiB / 384MiB -2026-10-16T18:06:11Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:06:11Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:06:11Z,mtusi-messenger-lab3-lb-1,15.00%,11.82MiB / 64MiB -2026-10-16T18:06:11Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB -2026-10-16T18:06:15Z,mtusi-messenger-lab3-api-2,14.85%,11.04MiB / 384MiB -2026-10-16T18:06:15Z,mtusi-messenger-lab3-api-1,14.65%,10.85MiB / 384MiB -2026-10-16T18:06:15Z,mtusi-messenger-lab3-postgres-1,52.78%,205.6MiB / 384MiB -2026-10-16T18:06:15Z,mtusi-messenger-lab2-postgres-1,0.94%,240.5MiB / 1.913GiB -2026-10-16T18:06:15Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:06:15Z,mtusi-messenger-lab3-lb-1,10.93%,11.52MiB / 64MiB -2026-10-16T18:06:15Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB diff --git a/evidence/track1/superseded/run2-host-client/stats-lb1cpu.csv b/evidence/track1/superseded/run2-host-client/stats-lb1cpu.csv deleted file mode 100644 index 14875f0..0000000 --- a/evidence/track1/superseded/run2-host-client/stats-lb1cpu.csv +++ /dev/null @@ -1,141 +0,0 @@ -timestamp,container,cpu_percent,mem_usage -2026-10-16T18:10:38Z,mtusi-messenger-lab3-lb-1,15.35%,13.64MiB / 64MiB -2026-10-16T18:10:38Z,mtusi-messenger-lab3-postgres-1,50.53%,66.22MiB / 384MiB -2026-10-16T18:10:38Z,mtusi-messenger-lab3-api-1,19.61%,168.2MiB / 384MiB -2026-10-16T18:10:38Z,mtusi-messenger-lab3-api-2,19.66%,168MiB / 384MiB -2026-10-16T18:10:38Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:10:38Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:10:38Z,mtusi-messenger-lab3-redis-1,0.24%,3.863MiB / 192MiB -2026-10-16T18:10:41Z,mtusi-messenger-lab3-lb-1,15.06%,13.86MiB / 64MiB -2026-10-16T18:10:41Z,mtusi-messenger-lab3-postgres-1,49.35%,70.21MiB / 384MiB -2026-10-16T18:10:41Z,mtusi-messenger-lab3-api-1,20.32%,11.48MiB / 384MiB -2026-10-16T18:10:41Z,mtusi-messenger-lab3-api-2,20.48%,11.02MiB / 384MiB -2026-10-16T18:10:41Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:10:41Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:10:41Z,mtusi-messenger-lab3-redis-1,0.24%,3.863MiB / 192MiB -2026-10-16T18:10:44Z,mtusi-messenger-lab3-lb-1,14.88%,13.63MiB / 64MiB -2026-10-16T18:10:44Z,mtusi-messenger-lab3-postgres-1,49.88%,73.32MiB / 384MiB -2026-10-16T18:10:44Z,mtusi-messenger-lab3-api-1,20.41%,11.41MiB / 384MiB -2026-10-16T18:10:44Z,mtusi-messenger-lab3-api-2,20.09%,10.93MiB / 384MiB -2026-10-16T18:10:44Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:10:44Z,mtusi-messenger-lab2-redis-1,0.71%,9.004MiB / 1.913GiB -2026-10-16T18:10:44Z,mtusi-messenger-lab3-redis-1,0.23%,3.863MiB / 192MiB -2026-10-16T18:10:47Z,mtusi-messenger-lab3-lb-1,15.15%,13.6MiB / 64MiB -2026-10-16T18:10:47Z,mtusi-messenger-lab3-postgres-1,51.17%,76.41MiB / 384MiB -2026-10-16T18:10:47Z,mtusi-messenger-lab3-api-1,20.41%,11.36MiB / 384MiB -2026-10-16T18:10:47Z,mtusi-messenger-lab3-api-2,20.17%,10.95MiB / 384MiB -2026-10-16T18:10:47Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:10:47Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:10:47Z,mtusi-messenger-lab3-redis-1,0.76%,3.863MiB / 192MiB -2026-10-16T18:10:50Z,mtusi-messenger-lab3-lb-1,2.68%,13.57MiB / 64MiB -2026-10-16T18:10:50Z,mtusi-messenger-lab3-postgres-1,9.63%,78.66MiB / 384MiB -2026-10-16T18:10:50Z,mtusi-messenger-lab3-api-1,3.77%,10.86MiB / 384MiB -2026-10-16T18:10:50Z,mtusi-messenger-lab3-api-2,19.88%,10.99MiB / 384MiB -2026-10-16T18:10:50Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:10:50Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:10:50Z,mtusi-messenger-lab3-redis-1,0.24%,3.863MiB / 192MiB -2026-10-16T18:10:53Z,mtusi-messenger-lab3-lb-1,4.85%,13.61MiB / 64MiB -2026-10-16T18:10:53Z,mtusi-messenger-lab3-postgres-1,16.27%,79.33MiB / 384MiB -2026-10-16T18:10:53Z,mtusi-messenger-lab3-api-1,6.22%,10.78MiB / 384MiB -2026-10-16T18:10:53Z,mtusi-messenger-lab3-api-2,6.51%,11MiB / 384MiB -2026-10-16T18:10:53Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:10:53Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:10:53Z,mtusi-messenger-lab3-redis-1,0.24%,3.863MiB / 192MiB -2026-10-16T18:10:56Z,mtusi-messenger-lab3-lb-1,14.37%,13.61MiB / 64MiB -2026-10-16T18:10:56Z,mtusi-messenger-lab3-postgres-1,48.63%,82.38MiB / 384MiB -2026-10-16T18:10:56Z,mtusi-messenger-lab3-api-1,19.18%,10.95MiB / 384MiB -2026-10-16T18:10:56Z,mtusi-messenger-lab3-api-2,19.41%,10.99MiB / 384MiB -2026-10-16T18:10:56Z,mtusi-messenger-lab2-postgres-1,0.78%,178.3MiB / 1.913GiB -2026-10-16T18:10:56Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:10:56Z,mtusi-messenger-lab3-redis-1,0.23%,3.863MiB / 192MiB -2026-10-16T18:10:59Z,mtusi-messenger-lab3-lb-1,15.17%,13.61MiB / 64MiB -2026-10-16T18:10:59Z,mtusi-messenger-lab3-postgres-1,51.39%,85.64MiB / 384MiB -2026-10-16T18:10:59Z,mtusi-messenger-lab3-api-1,19.70%,10.92MiB / 384MiB -2026-10-16T18:10:59Z,mtusi-messenger-lab3-api-2,20.50%,11.01MiB / 384MiB -2026-10-16T18:10:59Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:10:59Z,mtusi-messenger-lab2-redis-1,0.68%,9.004MiB / 1.913GiB -2026-10-16T18:10:59Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB -2026-10-16T18:11:02Z,mtusi-messenger-lab3-lb-1,14.52%,13.6MiB / 64MiB -2026-10-16T18:11:02Z,mtusi-messenger-lab3-postgres-1,49.76%,88.94MiB / 384MiB -2026-10-16T18:11:02Z,mtusi-messenger-lab3-api-1,20.07%,10.92MiB / 384MiB -2026-10-16T18:11:02Z,mtusi-messenger-lab3-api-2,20.40%,10.93MiB / 384MiB -2026-10-16T18:11:02Z,mtusi-messenger-lab2-postgres-1,0.25%,178.3MiB / 1.913GiB -2026-10-16T18:11:02Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:11:02Z,mtusi-messenger-lab3-redis-1,0.90%,3.863MiB / 192MiB -2026-10-16T18:11:05Z,mtusi-messenger-lab3-lb-1,14.73%,13.59MiB / 64MiB -2026-10-16T18:11:05Z,mtusi-messenger-lab3-postgres-1,49.78%,91.99MiB / 384MiB -2026-10-16T18:11:05Z,mtusi-messenger-lab3-api-1,19.20%,10.96MiB / 384MiB -2026-10-16T18:11:05Z,mtusi-messenger-lab3-api-2,19.93%,10.95MiB / 384MiB -2026-10-16T18:11:05Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:11:05Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:11:05Z,mtusi-messenger-lab3-redis-1,0.24%,3.863MiB / 192MiB -2026-10-16T18:11:08Z,mtusi-messenger-lab3-lb-1,14.36%,13.61MiB / 64MiB -2026-10-16T18:11:08Z,mtusi-messenger-lab3-postgres-1,49.09%,94.57MiB / 384MiB -2026-10-16T18:11:08Z,mtusi-messenger-lab3-api-1,19.05%,10.96MiB / 384MiB -2026-10-16T18:11:08Z,mtusi-messenger-lab3-api-2,18.56%,10.93MiB / 384MiB -2026-10-16T18:11:08Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:11:08Z,mtusi-messenger-lab2-redis-1,0.66%,9.004MiB / 1.913GiB -2026-10-16T18:11:08Z,mtusi-messenger-lab3-redis-1,0.23%,3.863MiB / 192MiB -2026-10-16T18:11:11Z,mtusi-messenger-lab3-lb-1,14.11%,13.6MiB / 64MiB -2026-10-16T18:11:11Z,mtusi-messenger-lab3-postgres-1,49.63%,97.64MiB / 384MiB -2026-10-16T18:11:11Z,mtusi-messenger-lab3-api-1,19.19%,10.96MiB / 384MiB -2026-10-16T18:11:11Z,mtusi-messenger-lab3-api-2,19.29%,10.78MiB / 384MiB -2026-10-16T18:11:11Z,mtusi-messenger-lab2-postgres-1,0.82%,178.3MiB / 1.913GiB -2026-10-16T18:11:11Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:11:11Z,mtusi-messenger-lab3-redis-1,0.22%,3.863MiB / 192MiB -2026-10-16T18:11:14Z,mtusi-messenger-lab3-lb-1,14.69%,13.61MiB / 64MiB -2026-10-16T18:11:14Z,mtusi-messenger-lab3-postgres-1,50.77%,99.91MiB / 384MiB -2026-10-16T18:11:14Z,mtusi-messenger-lab3-api-1,18.81%,10.9MiB / 384MiB -2026-10-16T18:11:14Z,mtusi-messenger-lab3-api-2,19.43%,10.91MiB / 384MiB -2026-10-16T18:11:14Z,mtusi-messenger-lab2-postgres-1,0.26%,178.3MiB / 1.913GiB -2026-10-16T18:11:14Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:11:14Z,mtusi-messenger-lab3-redis-1,0.24%,3.863MiB / 192MiB -2026-10-16T18:11:18Z,mtusi-messenger-lab3-lb-1,15.49%,13.61MiB / 64MiB -2026-10-16T18:11:18Z,mtusi-messenger-lab3-postgres-1,50.30%,103.9MiB / 384MiB -2026-10-16T18:11:18Z,mtusi-messenger-lab3-api-1,19.87%,10.9MiB / 384MiB -2026-10-16T18:11:18Z,mtusi-messenger-lab3-api-2,20.26%,10.93MiB / 384MiB -2026-10-16T18:11:18Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:11:18Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:11:18Z,mtusi-messenger-lab3-redis-1,0.24%,3.863MiB / 192MiB -2026-10-16T18:11:21Z,mtusi-messenger-lab3-lb-1,15.27%,13.6MiB / 64MiB -2026-10-16T18:11:21Z,mtusi-messenger-lab3-postgres-1,50.49%,108.1MiB / 384MiB -2026-10-16T18:11:21Z,mtusi-messenger-lab3-api-1,20.18%,10.84MiB / 384MiB -2026-10-16T18:11:21Z,mtusi-messenger-lab3-api-2,19.75%,11.02MiB / 384MiB -2026-10-16T18:11:21Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:11:21Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:11:21Z,mtusi-messenger-lab3-redis-1,0.70%,3.863MiB / 192MiB -2026-10-16T18:11:24Z,mtusi-messenger-lab3-lb-1,7.36%,13.62MiB / 64MiB -2026-10-16T18:11:24Z,mtusi-messenger-lab3-postgres-1,24.14%,109.7MiB / 384MiB -2026-10-16T18:11:24Z,mtusi-messenger-lab3-api-1,9.76%,10.86MiB / 384MiB -2026-10-16T18:11:24Z,mtusi-messenger-lab3-api-2,9.91%,11.16MiB / 384MiB -2026-10-16T18:11:24Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:11:24Z,mtusi-messenger-lab2-redis-1,0.70%,9.004MiB / 1.913GiB -2026-10-16T18:11:24Z,mtusi-messenger-lab3-redis-1,0.23%,3.863MiB / 192MiB -2026-10-16T18:11:27Z,mtusi-messenger-lab3-lb-1,15.08%,13.6MiB / 64MiB -2026-10-16T18:11:27Z,mtusi-messenger-lab3-postgres-1,50.21%,111.3MiB / 384MiB -2026-10-16T18:11:27Z,mtusi-messenger-lab3-api-1,20.56%,10.86MiB / 384MiB -2026-10-16T18:11:27Z,mtusi-messenger-lab3-api-2,19.86%,11.02MiB / 384MiB -2026-10-16T18:11:27Z,mtusi-messenger-lab2-postgres-1,0.93%,178.3MiB / 1.913GiB -2026-10-16T18:11:27Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:11:27Z,mtusi-messenger-lab3-redis-1,0.68%,3.863MiB / 192MiB -2026-10-16T18:11:30Z,mtusi-messenger-lab3-lb-1,12.01%,13.87MiB / 64MiB -2026-10-16T18:11:30Z,mtusi-messenger-lab3-postgres-1,39.96%,114MiB / 384MiB -2026-10-16T18:11:30Z,mtusi-messenger-lab3-api-1,16.60%,10.86MiB / 384MiB -2026-10-16T18:11:30Z,mtusi-messenger-lab3-api-2,15.80%,11.3MiB / 384MiB -2026-10-16T18:11:30Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:11:30Z,mtusi-messenger-lab2-redis-1,0.67%,9.004MiB / 1.913GiB -2026-10-16T18:11:30Z,mtusi-messenger-lab3-redis-1,0.22%,3.863MiB / 192MiB -2026-10-16T18:11:33Z,mtusi-messenger-lab3-lb-1,15.18%,13.61MiB / 64MiB -2026-10-16T18:11:33Z,mtusi-messenger-lab3-postgres-1,50.47%,117.3MiB / 384MiB -2026-10-16T18:11:33Z,mtusi-messenger-lab3-api-1,20.23%,10.86MiB / 384MiB -2026-10-16T18:11:33Z,mtusi-messenger-lab3-api-2,19.97%,11.04MiB / 384MiB -2026-10-16T18:11:33Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:11:33Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:11:33Z,mtusi-messenger-lab3-redis-1,0.22%,3.863MiB / 192MiB -2026-10-16T18:11:36Z,mtusi-messenger-lab3-lb-1,12.36%,13.56MiB / 64MiB -2026-10-16T18:11:36Z,mtusi-messenger-lab3-postgres-1,51.73%,128MiB / 384MiB -2026-10-16T18:11:36Z,mtusi-messenger-lab3-api-1,16.83%,10.84MiB / 384MiB -2026-10-16T18:11:36Z,mtusi-messenger-lab3-api-2,16.52%,11.18MiB / 384MiB -2026-10-16T18:11:36Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:11:36Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:11:36Z,mtusi-messenger-lab3-redis-1,0.69%,3.863MiB / 192MiB diff --git a/evidence/track1/superseded/run2-host-client/stats-pool10.csv b/evidence/track1/superseded/run2-host-client/stats-pool10.csv deleted file mode 100644 index 69c9aa8..0000000 --- a/evidence/track1/superseded/run2-host-client/stats-pool10.csv +++ /dev/null @@ -1,181 +0,0 @@ -timestamp,container,cpu_percent,mem_usage -2026-10-16T18:06:34Z,mtusi-messenger-lab3-api-2,7.60%,77.38MiB / 192MiB -2026-10-16T18:06:34Z,mtusi-messenger-lab3-api-1,6.91%,141.8MiB / 192MiB -2026-10-16T18:06:34Z,mtusi-messenger-lab3-api-4,13.44%,141.3MiB / 192MiB -2026-10-16T18:06:34Z,mtusi-messenger-lab3-api-3,14.02%,75.73MiB / 192MiB -2026-10-16T18:06:34Z,mtusi-messenger-lab3-postgres-1,0.51%,197.8MiB / 384MiB -2026-10-16T18:06:34Z,mtusi-messenger-lab2-postgres-1,0.81%,241.2MiB / 1.913GiB -2026-10-16T18:06:34Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:06:34Z,mtusi-messenger-lab3-lb-1,9.46%,11.58MiB / 64MiB -2026-10-16T18:06:34Z,mtusi-messenger-lab3-redis-1,0.77%,3.867MiB / 192MiB -2026-10-16T18:06:38Z,mtusi-messenger-lab3-api-2,11.20%,104.1MiB / 192MiB -2026-10-16T18:06:38Z,mtusi-messenger-lab3-api-1,10.90%,169.1MiB / 192MiB -2026-10-16T18:06:38Z,mtusi-messenger-lab3-api-4,10.90%,168.1MiB / 192MiB -2026-10-16T18:06:38Z,mtusi-messenger-lab3-api-3,10.75%,94.62MiB / 192MiB -2026-10-16T18:06:38Z,mtusi-messenger-lab3-postgres-1,50.28%,199.5MiB / 384MiB -2026-10-16T18:06:38Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:06:38Z,mtusi-messenger-lab2-redis-1,0.66%,9.004MiB / 1.913GiB -2026-10-16T18:06:38Z,mtusi-messenger-lab3-lb-1,14.75%,11.59MiB / 64MiB -2026-10-16T18:06:38Z,mtusi-messenger-lab3-redis-1,0.20%,3.867MiB / 192MiB -2026-10-16T18:06:41Z,mtusi-messenger-lab3-api-2,11.70%,132.6MiB / 192MiB -2026-10-16T18:06:41Z,mtusi-messenger-lab3-api-3,11.24%,132.3MiB / 192MiB -2026-10-16T18:06:41Z,mtusi-messenger-lab3-postgres-1,38.75%,194.8MiB / 384MiB -2026-10-16T18:06:41Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:06:41Z,mtusi-messenger-lab2-redis-1,0.19%,9.004MiB / 1.913GiB -2026-10-16T18:06:41Z,mtusi-messenger-lab3-lb-1,11.96%,11.64MiB / 64MiB -2026-10-16T18:06:41Z,mtusi-messenger-lab3-redis-1,0.69%,3.867MiB / 192MiB -2026-10-16T18:06:41Z,mtusi-messenger-lab3-api-1,5.99%,7.691MiB / 192MiB -2026-10-16T18:06:41Z,mtusi-messenger-lab3-api-4,3.47%,6.445MiB / 192MiB -2026-10-16T18:06:45Z,mtusi-messenger-lab3-api-2,12.06%,10.94MiB / 192MiB -2026-10-16T18:06:45Z,mtusi-messenger-lab3-api-1,10.93%,8.141MiB / 192MiB -2026-10-16T18:06:45Z,mtusi-messenger-lab3-api-4,11.89%,7.922MiB / 192MiB -2026-10-16T18:06:45Z,mtusi-messenger-lab3-api-3,11.44%,10.61MiB / 192MiB -2026-10-16T18:06:45Z,mtusi-messenger-lab3-postgres-1,50.14%,204.5MiB / 384MiB -2026-10-16T18:06:45Z,mtusi-messenger-lab2-postgres-1,0.71%,178.3MiB / 1.913GiB -2026-10-16T18:06:45Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:06:45Z,mtusi-messenger-lab3-lb-1,15.37%,11.66MiB / 64MiB -2026-10-16T18:06:45Z,mtusi-messenger-lab3-redis-1,0.23%,3.867MiB / 192MiB -2026-10-16T18:06:48Z,mtusi-messenger-lab3-api-2,1.48%,10.88MiB / 192MiB -2026-10-16T18:06:48Z,mtusi-messenger-lab3-api-1,1.49%,8.031MiB / 192MiB -2026-10-16T18:06:48Z,mtusi-messenger-lab3-api-4,1.27%,8.121MiB / 192MiB -2026-10-16T18:06:48Z,mtusi-messenger-lab3-api-3,11.29%,10.56MiB / 192MiB -2026-10-16T18:06:48Z,mtusi-messenger-lab3-postgres-1,6.89%,204.6MiB / 384MiB -2026-10-16T18:06:48Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:06:48Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:06:48Z,mtusi-messenger-lab3-lb-1,1.97%,11.61MiB / 64MiB -2026-10-16T18:06:48Z,mtusi-messenger-lab3-redis-1,0.21%,3.867MiB / 192MiB -2026-10-16T18:06:51Z,mtusi-messenger-lab3-api-2,12.24%,10.84MiB / 192MiB -2026-10-16T18:06:51Z,mtusi-messenger-lab3-api-1,11.27%,8.055MiB / 192MiB -2026-10-16T18:06:51Z,mtusi-messenger-lab3-api-4,11.09%,8.086MiB / 192MiB -2026-10-16T18:06:51Z,mtusi-messenger-lab3-api-3,11.05%,10.48MiB / 192MiB -2026-10-16T18:06:51Z,mtusi-messenger-lab3-postgres-1,49.63%,204.9MiB / 384MiB -2026-10-16T18:06:51Z,mtusi-messenger-lab2-postgres-1,0.20%,178.3MiB / 1.913GiB -2026-10-16T18:06:51Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:06:51Z,mtusi-messenger-lab3-lb-1,14.89%,11.64MiB / 64MiB -2026-10-16T18:06:51Z,mtusi-messenger-lab3-redis-1,0.74%,3.867MiB / 192MiB -2026-10-16T18:06:54Z,mtusi-messenger-lab3-api-2,11.02%,10.82MiB / 192MiB -2026-10-16T18:06:54Z,mtusi-messenger-lab3-api-1,11.03%,7.945MiB / 192MiB -2026-10-16T18:06:54Z,mtusi-messenger-lab3-api-4,10.92%,8.086MiB / 192MiB -2026-10-16T18:06:54Z,mtusi-messenger-lab3-api-3,11.53%,10.39MiB / 192MiB -2026-10-16T18:06:54Z,mtusi-messenger-lab3-postgres-1,49.96%,205.3MiB / 384MiB -2026-10-16T18:06:54Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:06:54Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:06:54Z,mtusi-messenger-lab3-lb-1,14.46%,11.64MiB / 64MiB -2026-10-16T18:06:54Z,mtusi-messenger-lab3-redis-1,0.20%,3.867MiB / 192MiB -2026-10-16T18:06:57Z,mtusi-messenger-lab3-api-2,11.75%,10.88MiB / 192MiB -2026-10-16T18:06:57Z,mtusi-messenger-lab3-api-1,11.03%,7.949MiB / 192MiB -2026-10-16T18:06:57Z,mtusi-messenger-lab3-api-4,11.09%,8.094MiB / 192MiB -2026-10-16T18:06:57Z,mtusi-messenger-lab3-api-3,10.89%,10.47MiB / 192MiB -2026-10-16T18:06:57Z,mtusi-messenger-lab3-postgres-1,50.91%,205.7MiB / 384MiB -2026-10-16T18:06:57Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:06:57Z,mtusi-messenger-lab2-redis-1,0.65%,9.004MiB / 1.913GiB -2026-10-16T18:06:57Z,mtusi-messenger-lab3-lb-1,14.81%,11.64MiB / 64MiB -2026-10-16T18:06:57Z,mtusi-messenger-lab3-redis-1,0.22%,3.867MiB / 192MiB -2026-10-16T18:07:00Z,mtusi-messenger-lab3-api-2,11.69%,10.75MiB / 192MiB -2026-10-16T18:07:00Z,mtusi-messenger-lab3-api-1,11.00%,8.066MiB / 192MiB -2026-10-16T18:07:00Z,mtusi-messenger-lab3-api-4,11.17%,8.188MiB / 192MiB -2026-10-16T18:07:00Z,mtusi-messenger-lab3-api-3,11.12%,10.43MiB / 192MiB -2026-10-16T18:07:00Z,mtusi-messenger-lab3-postgres-1,49.69%,206.3MiB / 384MiB -2026-10-16T18:07:00Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:07:00Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:07:00Z,mtusi-messenger-lab3-lb-1,15.04%,11.63MiB / 64MiB -2026-10-16T18:07:00Z,mtusi-messenger-lab3-redis-1,0.22%,3.867MiB / 192MiB -2026-10-16T18:07:03Z,mtusi-messenger-lab3-api-2,11.12%,10.82MiB / 192MiB -2026-10-16T18:07:03Z,mtusi-messenger-lab3-api-1,11.11%,8.074MiB / 192MiB -2026-10-16T18:07:03Z,mtusi-messenger-lab3-api-4,10.90%,8.18MiB / 192MiB -2026-10-16T18:07:03Z,mtusi-messenger-lab3-api-3,10.77%,10.41MiB / 192MiB -2026-10-16T18:07:03Z,mtusi-messenger-lab3-postgres-1,49.10%,206.3MiB / 384MiB -2026-10-16T18:07:03Z,mtusi-messenger-lab2-postgres-1,0.18%,178.3MiB / 1.913GiB -2026-10-16T18:07:03Z,mtusi-messenger-lab2-redis-1,0.19%,9.004MiB / 1.913GiB -2026-10-16T18:07:03Z,mtusi-messenger-lab3-lb-1,14.88%,11.89MiB / 64MiB -2026-10-16T18:07:03Z,mtusi-messenger-lab3-redis-1,0.21%,3.867MiB / 192MiB -2026-10-16T18:07:07Z,mtusi-messenger-lab3-api-2,8.72%,10.83MiB / 192MiB -2026-10-16T18:07:07Z,mtusi-messenger-lab3-api-1,9.99%,8.07MiB / 192MiB -2026-10-16T18:07:07Z,mtusi-messenger-lab3-api-4,9.48%,8.125MiB / 192MiB -2026-10-16T18:07:07Z,mtusi-messenger-lab3-api-3,9.36%,10.41MiB / 192MiB -2026-10-16T18:07:07Z,mtusi-messenger-lab3-postgres-1,41.13%,206.4MiB / 384MiB -2026-10-16T18:07:07Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:07:07Z,mtusi-messenger-lab2-redis-1,0.25%,9.004MiB / 1.913GiB -2026-10-16T18:07:07Z,mtusi-messenger-lab3-lb-1,12.41%,11.64MiB / 64MiB -2026-10-16T18:07:07Z,mtusi-messenger-lab3-redis-1,0.21%,3.867MiB / 192MiB -2026-10-16T18:07:10Z,mtusi-messenger-lab3-api-2,11.21%,10.83MiB / 192MiB -2026-10-16T18:07:10Z,mtusi-messenger-lab3-api-1,10.80%,8.086MiB / 192MiB -2026-10-16T18:07:10Z,mtusi-messenger-lab3-api-4,10.83%,8.121MiB / 192MiB -2026-10-16T18:07:10Z,mtusi-messenger-lab3-api-3,11.23%,10.46MiB / 192MiB -2026-10-16T18:07:10Z,mtusi-messenger-lab3-postgres-1,49.24%,206.4MiB / 384MiB -2026-10-16T18:07:10Z,mtusi-messenger-lab2-postgres-1,0.65%,178.3MiB / 1.913GiB -2026-10-16T18:07:10Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:07:10Z,mtusi-messenger-lab3-lb-1,14.54%,11.66MiB / 64MiB -2026-10-16T18:07:10Z,mtusi-messenger-lab3-redis-1,0.75%,3.867MiB / 192MiB -2026-10-16T18:07:13Z,mtusi-messenger-lab3-api-2,11.79%,10.78MiB / 192MiB -2026-10-16T18:07:13Z,mtusi-messenger-lab3-api-1,11.27%,8.02MiB / 192MiB -2026-10-16T18:07:13Z,mtusi-messenger-lab3-api-4,10.55%,8.184MiB / 192MiB -2026-10-16T18:07:13Z,mtusi-messenger-lab3-api-3,11.22%,10.56MiB / 192MiB -2026-10-16T18:07:13Z,mtusi-messenger-lab3-postgres-1,50.42%,206.4MiB / 384MiB -2026-10-16T18:07:13Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:07:13Z,mtusi-messenger-lab2-redis-1,0.82%,9.004MiB / 1.913GiB -2026-10-16T18:07:13Z,mtusi-messenger-lab3-lb-1,15.18%,11.63MiB / 64MiB -2026-10-16T18:07:13Z,mtusi-messenger-lab3-redis-1,0.22%,3.867MiB / 192MiB -2026-10-16T18:07:16Z,mtusi-messenger-lab3-api-2,11.48%,10.74MiB / 192MiB -2026-10-16T18:07:16Z,mtusi-messenger-lab3-api-1,11.02%,8.086MiB / 192MiB -2026-10-16T18:07:16Z,mtusi-messenger-lab3-api-4,10.68%,8.195MiB / 192MiB -2026-10-16T18:07:16Z,mtusi-messenger-lab3-api-3,11.19%,10.37MiB / 192MiB -2026-10-16T18:07:16Z,mtusi-messenger-lab3-postgres-1,48.93%,206.5MiB / 384MiB -2026-10-16T18:07:16Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:07:16Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:07:16Z,mtusi-messenger-lab3-lb-1,14.74%,11.65MiB / 64MiB -2026-10-16T18:07:16Z,mtusi-messenger-lab3-redis-1,0.75%,3.867MiB / 192MiB -2026-10-16T18:07:19Z,mtusi-messenger-lab3-api-2,11.21%,10.6MiB / 192MiB -2026-10-16T18:07:19Z,mtusi-messenger-lab3-api-1,11.45%,8.082MiB / 192MiB -2026-10-16T18:07:19Z,mtusi-messenger-lab3-api-4,11.86%,8.18MiB / 192MiB -2026-10-16T18:07:19Z,mtusi-messenger-lab3-api-3,11.08%,10.41MiB / 192MiB -2026-10-16T18:07:19Z,mtusi-messenger-lab3-postgres-1,51.21%,206.6MiB / 384MiB -2026-10-16T18:07:19Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:07:19Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:07:19Z,mtusi-messenger-lab3-lb-1,15.33%,11.62MiB / 64MiB -2026-10-16T18:07:19Z,mtusi-messenger-lab3-redis-1,0.22%,3.867MiB / 192MiB -2026-10-16T18:07:22Z,mtusi-messenger-lab3-api-2,12.08%,10.61MiB / 192MiB -2026-10-16T18:07:22Z,mtusi-messenger-lab3-api-1,11.88%,8.148MiB / 192MiB -2026-10-16T18:07:22Z,mtusi-messenger-lab3-api-4,10.72%,8.109MiB / 192MiB -2026-10-16T18:07:22Z,mtusi-messenger-lab3-api-3,12.01%,10.41MiB / 192MiB -2026-10-16T18:07:22Z,mtusi-messenger-lab3-postgres-1,50.29%,206.9MiB / 384MiB -2026-10-16T18:07:22Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:07:22Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:07:22Z,mtusi-messenger-lab3-lb-1,15.36%,11.62MiB / 64MiB -2026-10-16T18:07:22Z,mtusi-messenger-lab3-redis-1,0.23%,3.867MiB / 192MiB -2026-10-16T18:07:25Z,mtusi-messenger-lab3-api-2,11.15%,10.6MiB / 192MiB -2026-10-16T18:07:25Z,mtusi-messenger-lab3-api-1,10.99%,8.023MiB / 192MiB -2026-10-16T18:07:25Z,mtusi-messenger-lab3-api-4,11.57%,8.184MiB / 192MiB -2026-10-16T18:07:25Z,mtusi-messenger-lab3-api-3,11.08%,10.41MiB / 192MiB -2026-10-16T18:07:25Z,mtusi-messenger-lab3-postgres-1,50.30%,206.9MiB / 384MiB -2026-10-16T18:07:25Z,mtusi-messenger-lab2-postgres-1,0.73%,178.3MiB / 1.913GiB -2026-10-16T18:07:25Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:07:25Z,mtusi-messenger-lab3-lb-1,15.18%,11.67MiB / 64MiB -2026-10-16T18:07:25Z,mtusi-messenger-lab3-redis-1,0.22%,3.867MiB / 192MiB -2026-10-16T18:07:28Z,mtusi-messenger-lab3-api-2,9.99%,10.61MiB / 192MiB -2026-10-16T18:07:28Z,mtusi-messenger-lab3-api-1,10.96%,8.02MiB / 192MiB -2026-10-16T18:07:28Z,mtusi-messenger-lab3-api-4,10.04%,8.133MiB / 192MiB -2026-10-16T18:07:28Z,mtusi-messenger-lab3-api-3,10.38%,10.36MiB / 192MiB -2026-10-16T18:07:28Z,mtusi-messenger-lab3-postgres-1,46.74%,206.9MiB / 384MiB -2026-10-16T18:07:28Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:07:28Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:07:28Z,mtusi-messenger-lab3-lb-1,15.22%,11.66MiB / 64MiB -2026-10-16T18:07:28Z,mtusi-messenger-lab3-redis-1,0.21%,3.867MiB / 192MiB -2026-10-16T18:07:31Z,mtusi-messenger-lab3-api-2,12.08%,10.64MiB / 192MiB -2026-10-16T18:07:31Z,mtusi-messenger-lab3-api-1,11.55%,8.023MiB / 192MiB -2026-10-16T18:07:31Z,mtusi-messenger-lab3-api-4,11.41%,8.195MiB / 192MiB -2026-10-16T18:07:31Z,mtusi-messenger-lab3-api-3,11.05%,10.29MiB / 192MiB -2026-10-16T18:07:31Z,mtusi-messenger-lab3-postgres-1,50.41%,206.7MiB / 384MiB -2026-10-16T18:07:31Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:07:31Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:07:31Z,mtusi-messenger-lab3-lb-1,15.24%,11.63MiB / 64MiB -2026-10-16T18:07:31Z,mtusi-messenger-lab3-redis-1,0.21%,3.867MiB / 192MiB -2026-10-16T18:07:34Z,mtusi-messenger-lab3-api-2,4.62%,10.62MiB / 192MiB -2026-10-16T18:07:34Z,mtusi-messenger-lab3-api-1,11.06%,8.047MiB / 192MiB -2026-10-16T18:07:34Z,mtusi-messenger-lab3-api-4,4.84%,8.121MiB / 192MiB -2026-10-16T18:07:34Z,mtusi-messenger-lab3-api-3,4.64%,10.28MiB / 192MiB -2026-10-16T18:07:34Z,mtusi-messenger-lab3-postgres-1,46.24%,216.8MiB / 384MiB -2026-10-16T18:07:34Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:07:34Z,mtusi-messenger-lab2-redis-1,0.26%,9.004MiB / 1.913GiB -2026-10-16T18:07:34Z,mtusi-messenger-lab3-lb-1,6.42%,11.59MiB / 64MiB -2026-10-16T18:07:34Z,mtusi-messenger-lab3-redis-1,0.27%,3.867MiB / 192MiB diff --git a/evidence/track1/superseded/run2-host-client/stats-pool5.csv b/evidence/track1/superseded/run2-host-client/stats-pool5.csv deleted file mode 100644 index 89f4caf..0000000 --- a/evidence/track1/superseded/run2-host-client/stats-pool5.csv +++ /dev/null @@ -1,181 +0,0 @@ -timestamp,container,cpu_percent,mem_usage -2026-10-16T18:07:55Z,mtusi-messenger-lab3-api-2,14.91%,141.5MiB / 192MiB -2026-10-16T18:07:55Z,mtusi-messenger-lab3-api-1,10.62%,141.6MiB / 192MiB -2026-10-16T18:07:55Z,mtusi-messenger-lab3-api-4,7.08%,77.1MiB / 192MiB -2026-10-16T18:07:55Z,mtusi-messenger-lab3-api-3,7.65%,10.7MiB / 192MiB -2026-10-16T18:07:55Z,mtusi-messenger-lab3-postgres-1,32.81%,198MiB / 384MiB -2026-10-16T18:07:55Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:07:55Z,mtusi-messenger-lab2-redis-1,0.27%,9.004MiB / 1.913GiB -2026-10-16T18:07:55Z,mtusi-messenger-lab3-lb-1,9.88%,11.65MiB / 64MiB -2026-10-16T18:07:55Z,mtusi-messenger-lab3-redis-1,0.39%,3.867MiB / 192MiB -2026-10-16T18:07:58Z,mtusi-messenger-lab3-api-2,10.66%,168MiB / 192MiB -2026-10-16T18:07:58Z,mtusi-messenger-lab3-api-1,11.16%,168.7MiB / 192MiB -2026-10-16T18:07:58Z,mtusi-messenger-lab3-api-4,10.28%,103.8MiB / 192MiB -2026-10-16T18:07:58Z,mtusi-messenger-lab3-api-3,10.99%,10.77MiB / 192MiB -2026-10-16T18:07:58Z,mtusi-messenger-lab3-postgres-1,49.15%,199MiB / 384MiB -2026-10-16T18:07:58Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:07:58Z,mtusi-messenger-lab2-redis-1,0.68%,9.004MiB / 1.913GiB -2026-10-16T18:07:58Z,mtusi-messenger-lab3-lb-1,14.80%,11.66MiB / 64MiB -2026-10-16T18:07:58Z,mtusi-messenger-lab3-redis-1,0.20%,3.867MiB / 192MiB -2026-10-16T18:08:01Z,mtusi-messenger-lab3-api-4,10.66%,133.2MiB / 192MiB -2026-10-16T18:08:01Z,mtusi-messenger-lab3-api-3,10.68%,10.55MiB / 192MiB -2026-10-16T18:08:01Z,mtusi-messenger-lab3-postgres-1,38.21%,185.5MiB / 384MiB -2026-10-16T18:08:01Z,mtusi-messenger-lab2-postgres-1,0.70%,178.3MiB / 1.913GiB -2026-10-16T18:08:01Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:08:01Z,mtusi-messenger-lab3-lb-1,12.01%,11.66MiB / 64MiB -2026-10-16T18:08:01Z,mtusi-messenger-lab3-redis-1,0.69%,3.867MiB / 192MiB -2026-10-16T18:08:01Z,mtusi-messenger-lab3-api-1,3.28%,6.367MiB / 192MiB -2026-10-16T18:08:01Z,mtusi-messenger-lab3-api-2,5.83%,7.684MiB / 192MiB -2026-10-16T18:08:05Z,mtusi-messenger-lab3-api-2,11.16%,7.949MiB / 192MiB -2026-10-16T18:08:05Z,mtusi-messenger-lab3-api-1,10.74%,7.957MiB / 192MiB -2026-10-16T18:08:05Z,mtusi-messenger-lab3-api-4,11.76%,11.31MiB / 192MiB -2026-10-16T18:08:05Z,mtusi-messenger-lab3-api-3,11.29%,10.51MiB / 192MiB -2026-10-16T18:08:05Z,mtusi-messenger-lab3-postgres-1,50.95%,200.8MiB / 384MiB -2026-10-16T18:08:05Z,mtusi-messenger-lab2-postgres-1,0.78%,178.3MiB / 1.913GiB -2026-10-16T18:08:05Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:08:05Z,mtusi-messenger-lab3-lb-1,14.65%,11.64MiB / 64MiB -2026-10-16T18:08:05Z,mtusi-messenger-lab3-redis-1,0.68%,3.867MiB / 192MiB -2026-10-16T18:08:08Z,mtusi-messenger-lab3-api-2,10.87%,8.117MiB / 192MiB -2026-10-16T18:08:08Z,mtusi-messenger-lab3-api-1,11.68%,7.918MiB / 192MiB -2026-10-16T18:08:08Z,mtusi-messenger-lab3-api-4,11.18%,11.12MiB / 192MiB -2026-10-16T18:08:08Z,mtusi-messenger-lab3-api-3,10.31%,10.44MiB / 192MiB -2026-10-16T18:08:08Z,mtusi-messenger-lab3-postgres-1,50.09%,202.4MiB / 384MiB -2026-10-16T18:08:08Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:08:08Z,mtusi-messenger-lab2-redis-1,0.73%,9.004MiB / 1.913GiB -2026-10-16T18:08:08Z,mtusi-messenger-lab3-lb-1,15.09%,11.65MiB / 64MiB -2026-10-16T18:08:08Z,mtusi-messenger-lab3-redis-1,0.21%,3.867MiB / 192MiB -2026-10-16T18:08:11Z,mtusi-messenger-lab3-api-2,10.80%,8.125MiB / 192MiB -2026-10-16T18:08:11Z,mtusi-messenger-lab3-api-1,11.04%,8.07MiB / 192MiB -2026-10-16T18:08:11Z,mtusi-messenger-lab3-api-4,12.08%,11.03MiB / 192MiB -2026-10-16T18:08:11Z,mtusi-messenger-lab3-api-3,11.93%,10.5MiB / 192MiB -2026-10-16T18:08:11Z,mtusi-messenger-lab3-postgres-1,49.92%,202.6MiB / 384MiB -2026-10-16T18:08:11Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:08:11Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:08:11Z,mtusi-messenger-lab3-lb-1,15.22%,11.65MiB / 64MiB -2026-10-16T18:08:11Z,mtusi-messenger-lab3-redis-1,0.79%,3.867MiB / 192MiB -2026-10-16T18:08:14Z,mtusi-messenger-lab3-api-2,10.96%,8.141MiB / 192MiB -2026-10-16T18:08:14Z,mtusi-messenger-lab3-api-1,10.62%,8.195MiB / 192MiB -2026-10-16T18:08:14Z,mtusi-messenger-lab3-api-4,11.01%,11.14MiB / 192MiB -2026-10-16T18:08:14Z,mtusi-messenger-lab3-api-3,11.27%,10.46MiB / 192MiB -2026-10-16T18:08:14Z,mtusi-messenger-lab3-postgres-1,49.26%,202.9MiB / 384MiB -2026-10-16T18:08:14Z,mtusi-messenger-lab2-postgres-1,0.24%,178.3MiB / 1.913GiB -2026-10-16T18:08:14Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:08:14Z,mtusi-messenger-lab3-lb-1,15.17%,11.63MiB / 64MiB -2026-10-16T18:08:14Z,mtusi-messenger-lab3-redis-1,0.22%,3.867MiB / 192MiB -2026-10-16T18:08:17Z,mtusi-messenger-lab3-api-2,11.39%,7.898MiB / 192MiB -2026-10-16T18:08:17Z,mtusi-messenger-lab3-api-1,11.25%,8.141MiB / 192MiB -2026-10-16T18:08:17Z,mtusi-messenger-lab3-api-4,11.62%,11.34MiB / 192MiB -2026-10-16T18:08:17Z,mtusi-messenger-lab3-api-3,11.38%,10.5MiB / 192MiB -2026-10-16T18:08:17Z,mtusi-messenger-lab3-postgres-1,50.33%,203.3MiB / 384MiB -2026-10-16T18:08:17Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:08:17Z,mtusi-messenger-lab2-redis-1,0.75%,9.004MiB / 1.913GiB -2026-10-16T18:08:17Z,mtusi-messenger-lab3-lb-1,14.83%,11.65MiB / 64MiB -2026-10-16T18:08:17Z,mtusi-messenger-lab3-redis-1,0.22%,3.867MiB / 192MiB -2026-10-16T18:08:21Z,mtusi-messenger-lab3-api-2,11.86%,7.961MiB / 192MiB -2026-10-16T18:08:21Z,mtusi-messenger-lab3-api-1,11.40%,8.129MiB / 192MiB -2026-10-16T18:08:21Z,mtusi-messenger-lab3-api-4,10.84%,11.09MiB / 192MiB -2026-10-16T18:08:21Z,mtusi-messenger-lab3-api-3,11.03%,10.49MiB / 192MiB -2026-10-16T18:08:21Z,mtusi-messenger-lab3-postgres-1,50.72%,203.7MiB / 384MiB -2026-10-16T18:08:21Z,mtusi-messenger-lab2-postgres-1,0.73%,178.3MiB / 1.913GiB -2026-10-16T18:08:21Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:08:21Z,mtusi-messenger-lab3-lb-1,15.10%,11.66MiB / 64MiB -2026-10-16T18:08:21Z,mtusi-messenger-lab3-redis-1,0.69%,3.867MiB / 192MiB -2026-10-16T18:08:24Z,mtusi-messenger-lab3-api-2,10.53%,8.027MiB / 192MiB -2026-10-16T18:08:24Z,mtusi-messenger-lab3-api-1,10.90%,8.141MiB / 192MiB -2026-10-16T18:08:24Z,mtusi-messenger-lab3-api-4,10.28%,11.14MiB / 192MiB -2026-10-16T18:08:24Z,mtusi-messenger-lab3-api-3,11.17%,10.49MiB / 192MiB -2026-10-16T18:08:24Z,mtusi-messenger-lab3-postgres-1,49.23%,204.3MiB / 384MiB -2026-10-16T18:08:24Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:08:24Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:08:24Z,mtusi-messenger-lab3-lb-1,14.51%,11.65MiB / 64MiB -2026-10-16T18:08:24Z,mtusi-messenger-lab3-redis-1,0.20%,3.867MiB / 192MiB -2026-10-16T18:08:27Z,mtusi-messenger-lab3-api-2,9.35%,7.973MiB / 192MiB -2026-10-16T18:08:27Z,mtusi-messenger-lab3-api-1,9.88%,8.133MiB / 192MiB -2026-10-16T18:08:27Z,mtusi-messenger-lab3-api-4,9.36%,11.11MiB / 192MiB -2026-10-16T18:08:27Z,mtusi-messenger-lab3-api-3,8.77%,10.5MiB / 192MiB -2026-10-16T18:08:27Z,mtusi-messenger-lab3-postgres-1,40.77%,204.3MiB / 384MiB -2026-10-16T18:08:27Z,mtusi-messenger-lab2-postgres-1,0.20%,178.3MiB / 1.913GiB -2026-10-16T18:08:27Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:08:27Z,mtusi-messenger-lab3-lb-1,12.20%,11.67MiB / 64MiB -2026-10-16T18:08:27Z,mtusi-messenger-lab3-redis-1,0.22%,3.867MiB / 192MiB -2026-10-16T18:08:30Z,mtusi-messenger-lab3-api-2,9.13%,8.023MiB / 192MiB -2026-10-16T18:08:30Z,mtusi-messenger-lab3-api-1,9.52%,8.129MiB / 192MiB -2026-10-16T18:08:30Z,mtusi-messenger-lab3-api-4,8.93%,11.04MiB / 192MiB -2026-10-16T18:08:30Z,mtusi-messenger-lab3-api-3,9.47%,10.59MiB / 192MiB -2026-10-16T18:08:30Z,mtusi-messenger-lab3-postgres-1,41.32%,204.3MiB / 384MiB -2026-10-16T18:08:30Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:08:30Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:08:30Z,mtusi-messenger-lab3-lb-1,12.68%,11.62MiB / 64MiB -2026-10-16T18:08:30Z,mtusi-messenger-lab3-redis-1,0.73%,3.867MiB / 192MiB -2026-10-16T18:08:33Z,mtusi-messenger-lab3-api-2,10.80%,8.035MiB / 192MiB -2026-10-16T18:08:33Z,mtusi-messenger-lab3-api-1,11.71%,8.145MiB / 192MiB -2026-10-16T18:08:33Z,mtusi-messenger-lab3-api-4,10.90%,11.05MiB / 192MiB -2026-10-16T18:08:33Z,mtusi-messenger-lab3-api-3,11.65%,10.61MiB / 192MiB -2026-10-16T18:08:33Z,mtusi-messenger-lab3-postgres-1,50.25%,204.3MiB / 384MiB -2026-10-16T18:08:33Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:08:33Z,mtusi-messenger-lab2-redis-1,0.76%,9.004MiB / 1.913GiB -2026-10-16T18:08:33Z,mtusi-messenger-lab3-lb-1,14.80%,11.68MiB / 64MiB -2026-10-16T18:08:33Z,mtusi-messenger-lab3-redis-1,0.21%,3.867MiB / 192MiB -2026-10-16T18:08:36Z,mtusi-messenger-lab3-api-2,10.88%,8.035MiB / 192MiB -2026-10-16T18:08:36Z,mtusi-messenger-lab3-api-1,10.69%,8.156MiB / 192MiB -2026-10-16T18:08:36Z,mtusi-messenger-lab3-api-4,11.22%,11.05MiB / 192MiB -2026-10-16T18:08:36Z,mtusi-messenger-lab3-api-3,10.68%,10.54MiB / 192MiB -2026-10-16T18:08:36Z,mtusi-messenger-lab3-postgres-1,48.84%,204.4MiB / 384MiB -2026-10-16T18:08:36Z,mtusi-messenger-lab2-postgres-1,0.71%,178.3MiB / 1.913GiB -2026-10-16T18:08:36Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:08:36Z,mtusi-messenger-lab3-lb-1,14.51%,11.66MiB / 64MiB -2026-10-16T18:08:36Z,mtusi-messenger-lab3-redis-1,0.20%,3.867MiB / 192MiB -2026-10-16T18:08:39Z,mtusi-messenger-lab3-api-2,11.02%,8.164MiB / 192MiB -2026-10-16T18:08:39Z,mtusi-messenger-lab3-api-1,11.15%,8.207MiB / 192MiB -2026-10-16T18:08:39Z,mtusi-messenger-lab3-api-4,11.03%,10.81MiB / 192MiB -2026-10-16T18:08:39Z,mtusi-messenger-lab3-api-3,11.59%,10.59MiB / 192MiB -2026-10-16T18:08:39Z,mtusi-messenger-lab3-postgres-1,49.74%,204.4MiB / 384MiB -2026-10-16T18:08:39Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:08:39Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:08:39Z,mtusi-messenger-lab3-lb-1,15.01%,11.65MiB / 64MiB -2026-10-16T18:08:39Z,mtusi-messenger-lab3-redis-1,0.21%,3.867MiB / 192MiB -2026-10-16T18:08:42Z,mtusi-messenger-lab3-api-2,0.41%,8.148MiB / 192MiB -2026-10-16T18:08:42Z,mtusi-messenger-lab3-api-1,0.41%,8.117MiB / 192MiB -2026-10-16T18:08:42Z,mtusi-messenger-lab3-api-4,0.30%,10.6MiB / 192MiB -2026-10-16T18:08:42Z,mtusi-messenger-lab3-api-3,0.40%,10.52MiB / 192MiB -2026-10-16T18:08:42Z,mtusi-messenger-lab3-postgres-1,1.30%,204.4MiB / 384MiB -2026-10-16T18:08:42Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:08:42Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:08:42Z,mtusi-messenger-lab3-lb-1,0.49%,11.6MiB / 64MiB -2026-10-16T18:08:42Z,mtusi-messenger-lab3-redis-1,0.22%,3.867MiB / 192MiB -2026-10-16T18:08:45Z,mtusi-messenger-lab3-api-2,10.56%,8.156MiB / 192MiB -2026-10-16T18:08:45Z,mtusi-messenger-lab3-api-1,11.52%,8.148MiB / 192MiB -2026-10-16T18:08:45Z,mtusi-messenger-lab3-api-4,10.93%,10.85MiB / 192MiB -2026-10-16T18:08:45Z,mtusi-messenger-lab3-api-3,11.28%,10.53MiB / 192MiB -2026-10-16T18:08:45Z,mtusi-messenger-lab3-postgres-1,48.72%,204.7MiB / 384MiB -2026-10-16T18:08:45Z,mtusi-messenger-lab2-postgres-1,0.71%,178.3MiB / 1.913GiB -2026-10-16T18:08:45Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:08:45Z,mtusi-messenger-lab3-lb-1,15.05%,11.65MiB / 64MiB -2026-10-16T18:08:45Z,mtusi-messenger-lab3-redis-1,0.21%,3.867MiB / 192MiB -2026-10-16T18:08:48Z,mtusi-messenger-lab3-api-2,10.40%,8.191MiB / 192MiB -2026-10-16T18:08:48Z,mtusi-messenger-lab3-api-1,10.26%,8.078MiB / 192MiB -2026-10-16T18:08:48Z,mtusi-messenger-lab3-api-4,10.25%,10.78MiB / 192MiB -2026-10-16T18:08:48Z,mtusi-messenger-lab3-api-3,10.48%,10.59MiB / 192MiB -2026-10-16T18:08:48Z,mtusi-messenger-lab3-postgres-1,51.50%,205.4MiB / 384MiB -2026-10-16T18:08:48Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:08:48Z,mtusi-messenger-lab2-redis-1,0.71%,9.004MiB / 1.913GiB -2026-10-16T18:08:48Z,mtusi-messenger-lab3-lb-1,14.02%,11.64MiB / 64MiB -2026-10-16T18:08:48Z,mtusi-messenger-lab3-redis-1,0.21%,3.867MiB / 192MiB -2026-10-16T18:08:52Z,mtusi-messenger-lab3-api-2,9.83%,8.121MiB / 192MiB -2026-10-16T18:08:52Z,mtusi-messenger-lab3-api-1,9.89%,8.266MiB / 192MiB -2026-10-16T18:08:52Z,mtusi-messenger-lab3-api-4,10.60%,10.84MiB / 192MiB -2026-10-16T18:08:52Z,mtusi-messenger-lab3-api-3,10.31%,10.59MiB / 192MiB -2026-10-16T18:08:52Z,mtusi-messenger-lab3-postgres-1,50.52%,205.1MiB / 384MiB -2026-10-16T18:08:52Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:08:52Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:08:52Z,mtusi-messenger-lab3-lb-1,13.49%,11.65MiB / 64MiB -2026-10-16T18:08:52Z,mtusi-messenger-lab3-redis-1,0.65%,3.867MiB / 192MiB -2026-10-16T18:08:55Z,mtusi-messenger-lab3-api-2,3.17%,8.18MiB / 192MiB -2026-10-16T18:08:55Z,mtusi-messenger-lab3-api-1,3.50%,8.074MiB / 192MiB -2026-10-16T18:08:55Z,mtusi-messenger-lab3-api-4,3.35%,10.83MiB / 192MiB -2026-10-16T18:08:55Z,mtusi-messenger-lab3-api-3,3.19%,10.57MiB / 192MiB -2026-10-16T18:08:55Z,mtusi-messenger-lab3-postgres-1,50.88%,205.7MiB / 384MiB -2026-10-16T18:08:55Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:08:55Z,mtusi-messenger-lab2-redis-1,0.26%,9.004MiB / 1.913GiB -2026-10-16T18:08:55Z,mtusi-messenger-lab3-lb-1,4.53%,11.61MiB / 64MiB -2026-10-16T18:08:55Z,mtusi-messenger-lab3-redis-1,0.27%,3.867MiB / 192MiB diff --git a/evidence/track1/superseded/run2-host-client/stats-r1.csv b/evidence/track1/superseded/run2-host-client/stats-r1.csv deleted file mode 100644 index 397ce0b..0000000 --- a/evidence/track1/superseded/run2-host-client/stats-r1.csv +++ /dev/null @@ -1,121 +0,0 @@ -timestamp,container,cpu_percent,mem_usage -2026-10-16T17:58:39Z,mtusi-messenger-lab3-api-1,29.66%,197.9MiB / 768MiB -2026-10-16T17:58:39Z,mtusi-messenger-lab3-postgres-1,50.18%,61.14MiB / 384MiB -2026-10-16T17:58:39Z,mtusi-messenger-lab2-postgres-1,0.00%,166.1MiB / 1.913GiB -2026-10-16T17:58:39Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T17:58:39Z,mtusi-messenger-lab3-lb-1,13.20%,11.56MiB / 64MiB -2026-10-16T17:58:39Z,mtusi-messenger-lab3-redis-1,0.70%,3.863MiB / 192MiB -2026-10-16T17:58:42Z,mtusi-messenger-lab3-api-1,31.33%,12.33MiB / 768MiB -2026-10-16T17:58:42Z,mtusi-messenger-lab3-postgres-1,50.69%,63.97MiB / 384MiB -2026-10-16T17:58:42Z,mtusi-messenger-lab2-postgres-1,0.65%,167.4MiB / 1.913GiB -2026-10-16T17:58:42Z,mtusi-messenger-lab2-redis-1,0.25%,9.004MiB / 1.913GiB -2026-10-16T17:58:42Z,mtusi-messenger-lab3-lb-1,13.46%,11.54MiB / 64MiB -2026-10-16T17:58:42Z,mtusi-messenger-lab3-redis-1,0.74%,3.887MiB / 192MiB -2026-10-16T17:58:45Z,mtusi-messenger-lab3-api-1,30.06%,12.39MiB / 768MiB -2026-10-16T17:58:45Z,mtusi-messenger-lab3-postgres-1,49.51%,66.85MiB / 384MiB -2026-10-16T17:58:45Z,mtusi-messenger-lab2-postgres-1,0.00%,166.1MiB / 1.913GiB -2026-10-16T17:58:45Z,mtusi-messenger-lab2-redis-1,0.78%,9.004MiB / 1.913GiB -2026-10-16T17:58:45Z,mtusi-messenger-lab3-lb-1,13.24%,11.56MiB / 64MiB -2026-10-16T17:58:45Z,mtusi-messenger-lab3-redis-1,0.20%,3.863MiB / 192MiB -2026-10-16T17:58:48Z,mtusi-messenger-lab3-api-1,31.54%,12.25MiB / 768MiB -2026-10-16T17:58:48Z,mtusi-messenger-lab3-postgres-1,49.51%,72.35MiB / 384MiB -2026-10-16T17:58:48Z,mtusi-messenger-lab2-postgres-1,0.00%,166.1MiB / 1.913GiB -2026-10-16T17:58:48Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T17:58:48Z,mtusi-messenger-lab3-lb-1,13.41%,11.57MiB / 64MiB -2026-10-16T17:58:48Z,mtusi-messenger-lab3-redis-1,0.23%,3.863MiB / 192MiB -2026-10-16T17:58:51Z,mtusi-messenger-lab3-api-1,31.17%,12.2MiB / 768MiB -2026-10-16T17:58:51Z,mtusi-messenger-lab3-postgres-1,51.27%,76.55MiB / 384MiB -2026-10-16T17:58:51Z,mtusi-messenger-lab2-postgres-1,0.29%,166.1MiB / 1.913GiB -2026-10-16T17:58:51Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T17:58:51Z,mtusi-messenger-lab3-lb-1,13.83%,11.58MiB / 64MiB -2026-10-16T17:58:51Z,mtusi-messenger-lab3-redis-1,0.22%,3.863MiB / 192MiB -2026-10-16T17:58:54Z,mtusi-messenger-lab3-api-1,31.27%,12.54MiB / 768MiB -2026-10-16T17:58:54Z,mtusi-messenger-lab3-postgres-1,50.28%,82.17MiB / 384MiB -2026-10-16T17:58:54Z,mtusi-messenger-lab2-postgres-1,0.00%,166.1MiB / 1.913GiB -2026-10-16T17:58:54Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T17:58:54Z,mtusi-messenger-lab3-lb-1,13.23%,11.58MiB / 64MiB -2026-10-16T17:58:54Z,mtusi-messenger-lab3-redis-1,0.20%,3.863MiB / 192MiB -2026-10-16T17:58:57Z,mtusi-messenger-lab3-api-1,30.65%,12.57MiB / 768MiB -2026-10-16T17:58:57Z,mtusi-messenger-lab3-postgres-1,50.20%,85.07MiB / 384MiB -2026-10-16T17:58:57Z,mtusi-messenger-lab2-postgres-1,0.76%,166.1MiB / 1.913GiB -2026-10-16T17:58:57Z,mtusi-messenger-lab2-redis-1,0.24%,9.004MiB / 1.913GiB -2026-10-16T17:58:57Z,mtusi-messenger-lab3-lb-1,13.46%,11.57MiB / 64MiB -2026-10-16T17:58:57Z,mtusi-messenger-lab3-redis-1,0.75%,3.863MiB / 192MiB -2026-10-16T17:59:00Z,mtusi-messenger-lab3-api-1,29.86%,12.33MiB / 768MiB -2026-10-16T17:59:00Z,mtusi-messenger-lab3-postgres-1,50.29%,87.65MiB / 384MiB -2026-10-16T17:59:00Z,mtusi-messenger-lab2-postgres-1,0.00%,166.1MiB / 1.913GiB -2026-10-16T17:59:00Z,mtusi-messenger-lab2-redis-1,0.67%,9.004MiB / 1.913GiB -2026-10-16T17:59:00Z,mtusi-messenger-lab3-lb-1,12.62%,11.57MiB / 64MiB -2026-10-16T17:59:00Z,mtusi-messenger-lab3-redis-1,0.18%,3.863MiB / 192MiB -2026-10-16T17:59:03Z,mtusi-messenger-lab3-api-1,30.59%,12.54MiB / 768MiB -2026-10-16T17:59:03Z,mtusi-messenger-lab3-postgres-1,50.38%,90.58MiB / 384MiB -2026-10-16T17:59:03Z,mtusi-messenger-lab2-postgres-1,0.00%,166.1MiB / 1.913GiB -2026-10-16T17:59:03Z,mtusi-messenger-lab2-redis-1,0.24%,9.004MiB / 1.913GiB -2026-10-16T17:59:03Z,mtusi-messenger-lab3-lb-1,14.15%,11.56MiB / 64MiB -2026-10-16T17:59:03Z,mtusi-messenger-lab3-redis-1,0.23%,3.863MiB / 192MiB -2026-10-16T17:59:06Z,mtusi-messenger-lab3-api-1,32.47%,12.66MiB / 768MiB -2026-10-16T17:59:06Z,mtusi-messenger-lab3-postgres-1,49.93%,92.53MiB / 384MiB -2026-10-16T17:59:06Z,mtusi-messenger-lab2-postgres-1,0.00%,166.1MiB / 1.913GiB -2026-10-16T17:59:06Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T17:59:06Z,mtusi-messenger-lab3-lb-1,14.85%,11.56MiB / 64MiB -2026-10-16T17:59:06Z,mtusi-messenger-lab3-redis-1,0.19%,3.863MiB / 192MiB -2026-10-16T17:59:09Z,mtusi-messenger-lab3-api-1,30.75%,12.21MiB / 768MiB -2026-10-16T17:59:09Z,mtusi-messenger-lab3-postgres-1,51.03%,97.3MiB / 384MiB -2026-10-16T17:59:09Z,mtusi-messenger-lab2-postgres-1,0.00%,166.1MiB / 1.913GiB -2026-10-16T17:59:09Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T17:59:09Z,mtusi-messenger-lab3-lb-1,13.27%,11.55MiB / 64MiB -2026-10-16T17:59:09Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB -2026-10-16T17:59:13Z,mtusi-messenger-lab3-api-1,30.72%,12.3MiB / 768MiB -2026-10-16T17:59:13Z,mtusi-messenger-lab3-postgres-1,50.00%,100.3MiB / 384MiB -2026-10-16T17:59:13Z,mtusi-messenger-lab2-postgres-1,0.80%,166.1MiB / 1.913GiB -2026-10-16T17:59:13Z,mtusi-messenger-lab2-redis-1,0.24%,9.004MiB / 1.913GiB -2026-10-16T17:59:13Z,mtusi-messenger-lab3-lb-1,13.42%,11.56MiB / 64MiB -2026-10-16T17:59:13Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB -2026-10-16T17:59:16Z,mtusi-messenger-lab3-api-1,31.41%,12.27MiB / 768MiB -2026-10-16T17:59:16Z,mtusi-messenger-lab3-postgres-1,50.85%,103.1MiB / 384MiB -2026-10-16T17:59:16Z,mtusi-messenger-lab2-postgres-1,0.00%,166.1MiB / 1.913GiB -2026-10-16T17:59:16Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T17:59:16Z,mtusi-messenger-lab3-lb-1,13.48%,11.58MiB / 64MiB -2026-10-16T17:59:16Z,mtusi-messenger-lab3-redis-1,0.22%,3.863MiB / 192MiB -2026-10-16T17:59:19Z,mtusi-messenger-lab3-api-1,30.55%,12.33MiB / 768MiB -2026-10-16T17:59:19Z,mtusi-messenger-lab3-postgres-1,50.99%,106MiB / 384MiB -2026-10-16T17:59:19Z,mtusi-messenger-lab2-postgres-1,0.00%,165.9MiB / 1.913GiB -2026-10-16T17:59:19Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T17:59:19Z,mtusi-messenger-lab3-lb-1,13.36%,11.57MiB / 64MiB -2026-10-16T17:59:19Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB -2026-10-16T17:59:22Z,mtusi-messenger-lab3-api-1,31.55%,12.49MiB / 768MiB -2026-10-16T17:59:22Z,mtusi-messenger-lab3-postgres-1,50.55%,108.7MiB / 384MiB -2026-10-16T17:59:22Z,mtusi-messenger-lab2-postgres-1,0.00%,165.9MiB / 1.913GiB -2026-10-16T17:59:22Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T17:59:22Z,mtusi-messenger-lab3-lb-1,13.60%,11.57MiB / 64MiB -2026-10-16T17:59:22Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB -2026-10-16T17:59:25Z,mtusi-messenger-lab3-api-1,31.15%,12.47MiB / 768MiB -2026-10-16T17:59:25Z,mtusi-messenger-lab3-postgres-1,49.63%,111.7MiB / 384MiB -2026-10-16T17:59:25Z,mtusi-messenger-lab2-postgres-1,0.00%,165.9MiB / 1.913GiB -2026-10-16T17:59:25Z,mtusi-messenger-lab2-redis-1,0.65%,9.004MiB / 1.913GiB -2026-10-16T17:59:25Z,mtusi-messenger-lab3-lb-1,13.45%,11.57MiB / 64MiB -2026-10-16T17:59:25Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB -2026-10-16T17:59:28Z,mtusi-messenger-lab3-api-1,31.17%,12.38MiB / 768MiB -2026-10-16T17:59:28Z,mtusi-messenger-lab3-postgres-1,50.44%,114.9MiB / 384MiB -2026-10-16T17:59:28Z,mtusi-messenger-lab2-postgres-1,0.81%,165.9MiB / 1.913GiB -2026-10-16T17:59:28Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T17:59:28Z,mtusi-messenger-lab3-lb-1,13.48%,11.55MiB / 64MiB -2026-10-16T17:59:28Z,mtusi-messenger-lab3-redis-1,0.19%,3.863MiB / 192MiB -2026-10-16T17:59:31Z,mtusi-messenger-lab3-api-1,29.99%,12.48MiB / 768MiB -2026-10-16T17:59:31Z,mtusi-messenger-lab3-postgres-1,50.19%,117.4MiB / 384MiB -2026-10-16T17:59:31Z,mtusi-messenger-lab2-postgres-1,0.00%,165.9MiB / 1.913GiB -2026-10-16T17:59:31Z,mtusi-messenger-lab2-redis-1,0.72%,9.004MiB / 1.913GiB -2026-10-16T17:59:31Z,mtusi-messenger-lab3-lb-1,13.26%,11.57MiB / 64MiB -2026-10-16T17:59:31Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB -2026-10-16T17:59:34Z,mtusi-messenger-lab3-api-1,30.03%,12.28MiB / 768MiB -2026-10-16T17:59:34Z,mtusi-messenger-lab3-postgres-1,50.77%,120.6MiB / 384MiB -2026-10-16T17:59:34Z,mtusi-messenger-lab2-postgres-1,0.00%,165.7MiB / 1.913GiB -2026-10-16T17:59:34Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T17:59:34Z,mtusi-messenger-lab3-lb-1,13.42%,11.57MiB / 64MiB -2026-10-16T17:59:34Z,mtusi-messenger-lab3-redis-1,0.23%,3.863MiB / 192MiB -2026-10-16T17:59:37Z,mtusi-messenger-lab3-api-1,21.59%,12.02MiB / 768MiB -2026-10-16T17:59:37Z,mtusi-messenger-lab3-postgres-1,46.38%,129MiB / 384MiB -2026-10-16T17:59:37Z,mtusi-messenger-lab2-postgres-1,0.77%,165.7MiB / 1.913GiB -2026-10-16T17:59:37Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T17:59:37Z,mtusi-messenger-lab3-lb-1,9.70%,11.51MiB / 64MiB -2026-10-16T17:59:37Z,mtusi-messenger-lab3-redis-1,0.23%,3.863MiB / 192MiB diff --git a/evidence/track1/superseded/run2-host-client/stats-r2.csv b/evidence/track1/superseded/run2-host-client/stats-r2.csv deleted file mode 100644 index 1ff5b5f..0000000 --- a/evidence/track1/superseded/run2-host-client/stats-r2.csv +++ /dev/null @@ -1,141 +0,0 @@ -timestamp,container,cpu_percent,mem_usage -2026-10-16T18:14:53Z,mtusi-messenger-lab3-lb-1,15.34%,11.02MiB / 64MiB -2026-10-16T18:14:53Z,mtusi-messenger-lab3-postgres-1,50.15%,187MiB / 384MiB -2026-10-16T18:14:53Z,mtusi-messenger-lab3-api-1,20.18%,167.2MiB / 384MiB -2026-10-16T18:14:53Z,mtusi-messenger-lab3-api-2,19.97%,166.8MiB / 384MiB -2026-10-16T18:14:53Z,mtusi-messenger-lab2-postgres-1,0.71%,178.3MiB / 1.913GiB -2026-10-16T18:14:53Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:14:53Z,mtusi-messenger-lab3-redis-1,0.73%,3.863MiB / 192MiB -2026-10-16T18:14:56Z,mtusi-messenger-lab3-lb-1,14.34%,11.05MiB / 64MiB -2026-10-16T18:14:56Z,mtusi-messenger-lab3-postgres-1,49.69%,187.1MiB / 384MiB -2026-10-16T18:14:56Z,mtusi-messenger-lab3-api-1,19.64%,11.77MiB / 384MiB -2026-10-16T18:14:56Z,mtusi-messenger-lab3-api-2,19.52%,13.13MiB / 384MiB -2026-10-16T18:14:56Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:14:56Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:14:56Z,mtusi-messenger-lab3-redis-1,0.24%,3.863MiB / 192MiB -2026-10-16T18:14:59Z,mtusi-messenger-lab3-lb-1,14.74%,11.04MiB / 64MiB -2026-10-16T18:14:59Z,mtusi-messenger-lab3-postgres-1,49.98%,187.1MiB / 384MiB -2026-10-16T18:14:59Z,mtusi-messenger-lab3-api-1,19.44%,11.2MiB / 384MiB -2026-10-16T18:14:59Z,mtusi-messenger-lab3-api-2,19.74%,13.06MiB / 384MiB -2026-10-16T18:14:59Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:14:59Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:14:59Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB -2026-10-16T18:15:02Z,mtusi-messenger-lab3-lb-1,10.70%,11.04MiB / 64MiB -2026-10-16T18:15:02Z,mtusi-messenger-lab3-postgres-1,49.47%,199.8MiB / 384MiB -2026-10-16T18:15:02Z,mtusi-messenger-lab3-api-1,15.59%,11.29MiB / 384MiB -2026-10-16T18:15:02Z,mtusi-messenger-lab3-api-2,14.42%,13.13MiB / 384MiB -2026-10-16T18:15:02Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:15:02Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:15:02Z,mtusi-messenger-lab3-redis-1,0.62%,3.863MiB / 192MiB -2026-10-16T18:15:05Z,mtusi-messenger-lab3-lb-1,14.45%,11.06MiB / 64MiB -2026-10-16T18:15:05Z,mtusi-messenger-lab3-postgres-1,50.28%,194.1MiB / 384MiB -2026-10-16T18:15:05Z,mtusi-messenger-lab3-api-1,19.73%,11.27MiB / 384MiB -2026-10-16T18:15:05Z,mtusi-messenger-lab3-api-2,19.31%,13.33MiB / 384MiB -2026-10-16T18:15:05Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:15:05Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:15:05Z,mtusi-messenger-lab3-redis-1,0.23%,3.863MiB / 192MiB -2026-10-16T18:15:08Z,mtusi-messenger-lab3-lb-1,1.87%,11.04MiB / 64MiB -2026-10-16T18:15:08Z,mtusi-messenger-lab3-postgres-1,49.37%,191.4MiB / 384MiB -2026-10-16T18:15:08Z,mtusi-messenger-lab3-api-1,19.85%,11.29MiB / 384MiB -2026-10-16T18:15:08Z,mtusi-messenger-lab3-api-2,19.50%,13.06MiB / 384MiB -2026-10-16T18:15:08Z,mtusi-messenger-lab2-postgres-1,0.77%,178.3MiB / 1.913GiB -2026-10-16T18:15:08Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:15:08Z,mtusi-messenger-lab3-redis-1,0.22%,3.863MiB / 192MiB -2026-10-16T18:15:11Z,mtusi-messenger-lab3-lb-1,14.88%,11.05MiB / 64MiB -2026-10-16T18:15:11Z,mtusi-messenger-lab3-postgres-1,50.51%,191.6MiB / 384MiB -2026-10-16T18:15:11Z,mtusi-messenger-lab3-api-1,19.27%,11.11MiB / 384MiB -2026-10-16T18:15:11Z,mtusi-messenger-lab3-api-2,19.41%,12.97MiB / 384MiB -2026-10-16T18:15:11Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:15:11Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:15:11Z,mtusi-messenger-lab3-redis-1,0.24%,3.863MiB / 192MiB -2026-10-16T18:15:14Z,mtusi-messenger-lab3-lb-1,15.13%,11.05MiB / 64MiB -2026-10-16T18:15:14Z,mtusi-messenger-lab3-postgres-1,50.48%,192.2MiB / 384MiB -2026-10-16T18:15:14Z,mtusi-messenger-lab3-api-1,19.74%,11.11MiB / 384MiB -2026-10-16T18:15:14Z,mtusi-messenger-lab3-api-2,20.09%,12.87MiB / 384MiB -2026-10-16T18:15:14Z,mtusi-messenger-lab2-postgres-1,0.23%,178.3MiB / 1.913GiB -2026-10-16T18:15:14Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:15:14Z,mtusi-messenger-lab3-redis-1,0.22%,3.863MiB / 192MiB -2026-10-16T18:15:18Z,mtusi-messenger-lab3-lb-1,14.84%,11.06MiB / 64MiB -2026-10-16T18:15:18Z,mtusi-messenger-lab3-postgres-1,50.26%,192.2MiB / 384MiB -2026-10-16T18:15:18Z,mtusi-messenger-lab3-api-1,19.38%,11.13MiB / 384MiB -2026-10-16T18:15:18Z,mtusi-messenger-lab3-api-2,19.95%,13.72MiB / 384MiB -2026-10-16T18:15:18Z,mtusi-messenger-lab2-postgres-1,0.68%,178.3MiB / 1.913GiB -2026-10-16T18:15:18Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:15:18Z,mtusi-messenger-lab3-redis-1,0.68%,3.863MiB / 192MiB -2026-10-16T18:15:21Z,mtusi-messenger-lab3-lb-1,14.40%,11.05MiB / 64MiB -2026-10-16T18:15:21Z,mtusi-messenger-lab3-postgres-1,49.06%,193.1MiB / 384MiB -2026-10-16T18:15:21Z,mtusi-messenger-lab3-api-1,18.81%,11.14MiB / 384MiB -2026-10-16T18:15:21Z,mtusi-messenger-lab3-api-2,19.02%,13.4MiB / 384MiB -2026-10-16T18:15:21Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:15:21Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:15:21Z,mtusi-messenger-lab3-redis-1,0.23%,3.863MiB / 192MiB -2026-10-16T18:15:24Z,mtusi-messenger-lab3-lb-1,2.75%,11.04MiB / 64MiB -2026-10-16T18:15:24Z,mtusi-messenger-lab3-postgres-1,9.40%,193.6MiB / 384MiB -2026-10-16T18:15:24Z,mtusi-messenger-lab3-api-1,3.79%,11.26MiB / 384MiB -2026-10-16T18:15:24Z,mtusi-messenger-lab3-api-2,3.82%,13.12MiB / 384MiB -2026-10-16T18:15:24Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:15:24Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:15:24Z,mtusi-messenger-lab3-redis-1,0.73%,3.863MiB / 192MiB -2026-10-16T18:15:27Z,mtusi-messenger-lab3-lb-1,14.63%,11.05MiB / 64MiB -2026-10-16T18:15:27Z,mtusi-messenger-lab3-postgres-1,49.93%,193.5MiB / 384MiB -2026-10-16T18:15:27Z,mtusi-messenger-lab3-api-1,19.81%,11.27MiB / 384MiB -2026-10-16T18:15:27Z,mtusi-messenger-lab3-api-2,19.40%,13.69MiB / 384MiB -2026-10-16T18:15:27Z,mtusi-messenger-lab2-postgres-1,0.20%,178.3MiB / 1.913GiB -2026-10-16T18:15:27Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:15:27Z,mtusi-messenger-lab3-redis-1,0.20%,3.863MiB / 192MiB -2026-10-16T18:15:30Z,mtusi-messenger-lab3-lb-1,15.02%,11.04MiB / 64MiB -2026-10-16T18:15:30Z,mtusi-messenger-lab3-postgres-1,49.49%,193.9MiB / 384MiB -2026-10-16T18:15:30Z,mtusi-messenger-lab3-api-1,20.42%,11.34MiB / 384MiB -2026-10-16T18:15:30Z,mtusi-messenger-lab3-api-2,19.72%,13MiB / 384MiB -2026-10-16T18:15:30Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:15:30Z,mtusi-messenger-lab2-redis-1,0.62%,9.004MiB / 1.913GiB -2026-10-16T18:15:30Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB -2026-10-16T18:15:33Z,mtusi-messenger-lab3-lb-1,14.59%,11.04MiB / 64MiB -2026-10-16T18:15:33Z,mtusi-messenger-lab3-postgres-1,48.99%,194.5MiB / 384MiB -2026-10-16T18:15:33Z,mtusi-messenger-lab3-api-1,19.65%,11.25MiB / 384MiB -2026-10-16T18:15:33Z,mtusi-messenger-lab3-api-2,20.03%,13.14MiB / 384MiB -2026-10-16T18:15:33Z,mtusi-messenger-lab2-postgres-1,0.78%,178.3MiB / 1.913GiB -2026-10-16T18:15:33Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:15:33Z,mtusi-messenger-lab3-redis-1,0.23%,3.863MiB / 192MiB -2026-10-16T18:15:36Z,mtusi-messenger-lab3-lb-1,14.51%,11.05MiB / 64MiB -2026-10-16T18:15:36Z,mtusi-messenger-lab3-postgres-1,49.82%,194.5MiB / 384MiB -2026-10-16T18:15:36Z,mtusi-messenger-lab3-api-1,19.17%,11.26MiB / 384MiB -2026-10-16T18:15:36Z,mtusi-messenger-lab3-api-2,19.28%,12.89MiB / 384MiB -2026-10-16T18:15:36Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:15:36Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:15:36Z,mtusi-messenger-lab3-redis-1,0.24%,3.863MiB / 192MiB -2026-10-16T18:15:39Z,mtusi-messenger-lab3-lb-1,6.21%,11.05MiB / 64MiB -2026-10-16T18:15:39Z,mtusi-messenger-lab3-postgres-1,21.29%,194.8MiB / 384MiB -2026-10-16T18:15:39Z,mtusi-messenger-lab3-api-1,8.16%,11.25MiB / 384MiB -2026-10-16T18:15:39Z,mtusi-messenger-lab3-api-2,8.24%,13.44MiB / 384MiB -2026-10-16T18:15:39Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:15:39Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:15:39Z,mtusi-messenger-lab3-redis-1,0.22%,4.113MiB / 192MiB -2026-10-16T18:15:42Z,mtusi-messenger-lab3-lb-1,14.47%,11.04MiB / 64MiB -2026-10-16T18:15:42Z,mtusi-messenger-lab3-postgres-1,49.21%,195.4MiB / 384MiB -2026-10-16T18:15:42Z,mtusi-messenger-lab3-api-1,19.71%,11.07MiB / 384MiB -2026-10-16T18:15:42Z,mtusi-messenger-lab3-api-2,19.16%,13.6MiB / 384MiB -2026-10-16T18:15:42Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:15:42Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:15:42Z,mtusi-messenger-lab3-redis-1,0.82%,3.863MiB / 192MiB -2026-10-16T18:15:45Z,mtusi-messenger-lab3-lb-1,14.63%,11.04MiB / 64MiB -2026-10-16T18:15:45Z,mtusi-messenger-lab3-postgres-1,49.09%,195.6MiB / 384MiB -2026-10-16T18:15:45Z,mtusi-messenger-lab3-api-1,19.35%,11.11MiB / 384MiB -2026-10-16T18:15:45Z,mtusi-messenger-lab3-api-2,19.18%,13.43MiB / 384MiB -2026-10-16T18:15:45Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:15:45Z,mtusi-messenger-lab2-redis-1,0.72%,9.004MiB / 1.913GiB -2026-10-16T18:15:45Z,mtusi-messenger-lab3-redis-1,0.22%,3.863MiB / 192MiB -2026-10-16T18:15:48Z,mtusi-messenger-lab3-lb-1,15.08%,11.05MiB / 64MiB -2026-10-16T18:15:48Z,mtusi-messenger-lab3-postgres-1,50.44%,196.2MiB / 384MiB -2026-10-16T18:15:48Z,mtusi-messenger-lab3-api-1,19.72%,11.1MiB / 384MiB -2026-10-16T18:15:48Z,mtusi-messenger-lab3-api-2,20.21%,13.05MiB / 384MiB -2026-10-16T18:15:48Z,mtusi-messenger-lab2-postgres-1,0.75%,178.3MiB / 1.913GiB -2026-10-16T18:15:48Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:15:48Z,mtusi-messenger-lab3-redis-1,0.21%,3.863MiB / 192MiB -2026-10-16T18:15:51Z,mtusi-messenger-lab3-lb-1,10.25%,10.99MiB / 64MiB -2026-10-16T18:15:51Z,mtusi-messenger-lab3-postgres-1,49.45%,206.2MiB / 384MiB -2026-10-16T18:15:51Z,mtusi-messenger-lab3-api-1,13.33%,11.08MiB / 384MiB -2026-10-16T18:15:51Z,mtusi-messenger-lab3-api-2,13.26%,13.6MiB / 384MiB -2026-10-16T18:15:51Z,mtusi-messenger-lab2-postgres-1,0.00%,178.3MiB / 1.913GiB -2026-10-16T18:15:51Z,mtusi-messenger-lab2-redis-1,0.70%,9.004MiB / 1.913GiB -2026-10-16T18:15:51Z,mtusi-messenger-lab3-redis-1,0.22%,3.863MiB / 192MiB diff --git a/evidence/track1/superseded/run2-host-client/stats-r4.csv b/evidence/track1/superseded/run2-host-client/stats-r4.csv deleted file mode 100644 index e951b0a..0000000 --- a/evidence/track1/superseded/run2-host-client/stats-r4.csv +++ /dev/null @@ -1,181 +0,0 @@ -timestamp,container,cpu_percent,mem_usage -2026-10-16T18:01:15Z,mtusi-messenger-lab3-api-1,8.59%,142.6MiB / 192MiB -2026-10-16T18:01:15Z,mtusi-messenger-lab3-api-2,9.49%,78.38MiB / 192MiB -2026-10-16T18:01:15Z,mtusi-messenger-lab3-api-4,14.30%,142.2MiB / 192MiB -2026-10-16T18:01:15Z,mtusi-messenger-lab3-api-3,8.42%,10.41MiB / 192MiB -2026-10-16T18:01:15Z,mtusi-messenger-lab3-postgres-1,39.44%,186.3MiB / 384MiB -2026-10-16T18:01:15Z,mtusi-messenger-lab2-postgres-1,0.23%,233.4MiB / 1.913GiB -2026-10-16T18:01:15Z,mtusi-messenger-lab2-redis-1,0.24%,9.004MiB / 1.913GiB -2026-10-16T18:01:15Z,mtusi-messenger-lab3-lb-1,0.33%,11.52MiB / 64MiB -2026-10-16T18:01:15Z,mtusi-messenger-lab3-redis-1,0.22%,3.867MiB / 192MiB -2026-10-16T18:01:18Z,mtusi-messenger-lab3-api-1,10.92%,168.6MiB / 192MiB -2026-10-16T18:01:18Z,mtusi-messenger-lab3-api-2,11.44%,104.8MiB / 192MiB -2026-10-16T18:01:18Z,mtusi-messenger-lab3-api-4,11.17%,169.7MiB / 192MiB -2026-10-16T18:01:18Z,mtusi-messenger-lab3-api-3,11.77%,10.46MiB / 192MiB -2026-10-16T18:01:18Z,mtusi-messenger-lab3-postgres-1,50.77%,186.8MiB / 384MiB -2026-10-16T18:01:18Z,mtusi-messenger-lab2-postgres-1,0.75%,233.4MiB / 1.913GiB -2026-10-16T18:01:18Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:01:18Z,mtusi-messenger-lab3-lb-1,14.42%,11.57MiB / 64MiB -2026-10-16T18:01:18Z,mtusi-messenger-lab3-redis-1,0.73%,3.867MiB / 192MiB -2026-10-16T18:01:21Z,mtusi-messenger-lab3-api-2,11.18%,133.9MiB / 192MiB -2026-10-16T18:01:21Z,mtusi-messenger-lab3-api-3,11.25%,10.43MiB / 192MiB -2026-10-16T18:01:21Z,mtusi-messenger-lab3-postgres-1,38.92%,173.8MiB / 384MiB -2026-10-16T18:01:21Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:01:21Z,mtusi-messenger-lab2-redis-1,0.61%,9.004MiB / 1.913GiB -2026-10-16T18:01:21Z,mtusi-messenger-lab3-lb-1,11.97%,11.58MiB / 64MiB -2026-10-16T18:01:21Z,mtusi-messenger-lab3-redis-1,0.22%,3.867MiB / 192MiB -2026-10-16T18:01:21Z,mtusi-messenger-lab3-api-4,6.30%,7.473MiB / 192MiB -2026-10-16T18:01:21Z,mtusi-messenger-lab3-api-1,4.41%,7.18MiB / 192MiB -2026-10-16T18:01:26Z,mtusi-messenger-lab3-api-1,11.11%,7.996MiB / 192MiB -2026-10-16T18:01:26Z,mtusi-messenger-lab3-api-2,10.49%,13.34MiB / 192MiB -2026-10-16T18:01:26Z,mtusi-messenger-lab3-api-4,10.87%,7.949MiB / 192MiB -2026-10-16T18:01:26Z,mtusi-messenger-lab3-api-3,11.10%,10.44MiB / 192MiB -2026-10-16T18:01:26Z,mtusi-messenger-lab3-postgres-1,49.61%,187.1MiB / 384MiB -2026-10-16T18:01:26Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:01:26Z,mtusi-messenger-lab2-redis-1,0.72%,9.004MiB / 1.913GiB -2026-10-16T18:01:26Z,mtusi-messenger-lab3-lb-1,14.64%,11.59MiB / 64MiB -2026-10-16T18:01:26Z,mtusi-messenger-lab3-redis-1,0.22%,3.867MiB / 192MiB -2026-10-16T18:01:29Z,mtusi-messenger-lab3-api-1,11.71%,7.973MiB / 192MiB -2026-10-16T18:01:29Z,mtusi-messenger-lab3-api-2,10.67%,12.75MiB / 192MiB -2026-10-16T18:01:29Z,mtusi-messenger-lab3-api-4,10.03%,7.973MiB / 192MiB -2026-10-16T18:01:29Z,mtusi-messenger-lab3-api-3,10.04%,10.43MiB / 192MiB -2026-10-16T18:01:29Z,mtusi-messenger-lab3-postgres-1,46.61%,187.5MiB / 384MiB -2026-10-16T18:01:29Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:01:29Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:01:29Z,mtusi-messenger-lab3-lb-1,13.82%,11.54MiB / 64MiB -2026-10-16T18:01:29Z,mtusi-messenger-lab3-redis-1,0.22%,3.867MiB / 192MiB -2026-10-16T18:01:32Z,mtusi-messenger-lab3-api-1,10.60%,8.043MiB / 192MiB -2026-10-16T18:01:32Z,mtusi-messenger-lab3-api-2,11.20%,12.65MiB / 192MiB -2026-10-16T18:01:32Z,mtusi-messenger-lab3-api-4,9.94%,8.008MiB / 192MiB -2026-10-16T18:01:32Z,mtusi-messenger-lab3-api-3,11.32%,10.49MiB / 192MiB -2026-10-16T18:01:32Z,mtusi-messenger-lab3-postgres-1,47.90%,187.9MiB / 384MiB -2026-10-16T18:01:32Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:01:32Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:01:32Z,mtusi-messenger-lab3-lb-1,13.77%,11.86MiB / 64MiB -2026-10-16T18:01:32Z,mtusi-messenger-lab3-redis-1,0.24%,3.867MiB / 192MiB -2026-10-16T18:01:35Z,mtusi-messenger-lab3-api-1,11.04%,7.977MiB / 192MiB -2026-10-16T18:01:35Z,mtusi-messenger-lab3-api-2,10.70%,12.65MiB / 192MiB -2026-10-16T18:01:35Z,mtusi-messenger-lab3-api-4,10.97%,8.133MiB / 192MiB -2026-10-16T18:01:35Z,mtusi-messenger-lab3-api-3,10.40%,10.41MiB / 192MiB -2026-10-16T18:01:35Z,mtusi-messenger-lab3-postgres-1,50.06%,188.4MiB / 384MiB -2026-10-16T18:01:35Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:01:35Z,mtusi-messenger-lab2-redis-1,0.23%,9.004MiB / 1.913GiB -2026-10-16T18:01:35Z,mtusi-messenger-lab3-lb-1,14.22%,11.59MiB / 64MiB -2026-10-16T18:01:35Z,mtusi-messenger-lab3-redis-1,0.20%,3.867MiB / 192MiB -2026-10-16T18:01:38Z,mtusi-messenger-lab3-api-1,11.45%,8.223MiB / 192MiB -2026-10-16T18:01:38Z,mtusi-messenger-lab3-api-2,11.55%,12.65MiB / 192MiB -2026-10-16T18:01:38Z,mtusi-messenger-lab3-api-4,10.71%,8.141MiB / 192MiB -2026-10-16T18:01:38Z,mtusi-messenger-lab3-api-3,10.56%,10.43MiB / 192MiB -2026-10-16T18:01:38Z,mtusi-messenger-lab3-postgres-1,50.07%,188.8MiB / 384MiB -2026-10-16T18:01:38Z,mtusi-messenger-lab2-postgres-1,1.01%,240.5MiB / 1.913GiB -2026-10-16T18:01:38Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:01:38Z,mtusi-messenger-lab3-lb-1,14.72%,11.61MiB / 64MiB -2026-10-16T18:01:38Z,mtusi-messenger-lab3-redis-1,0.69%,3.867MiB / 192MiB -2026-10-16T18:01:41Z,mtusi-messenger-lab3-api-1,10.85%,8.055MiB / 192MiB -2026-10-16T18:01:41Z,mtusi-messenger-lab3-api-2,11.10%,13.17MiB / 192MiB -2026-10-16T18:01:41Z,mtusi-messenger-lab3-api-4,10.41%,8.133MiB / 192MiB -2026-10-16T18:01:41Z,mtusi-messenger-lab3-api-3,11.10%,10.42MiB / 192MiB -2026-10-16T18:01:41Z,mtusi-messenger-lab3-postgres-1,49.62%,189.4MiB / 384MiB -2026-10-16T18:01:41Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:01:41Z,mtusi-messenger-lab2-redis-1,0.65%,9.004MiB / 1.913GiB -2026-10-16T18:01:41Z,mtusi-messenger-lab3-lb-1,14.56%,11.59MiB / 64MiB -2026-10-16T18:01:41Z,mtusi-messenger-lab3-redis-1,0.24%,3.867MiB / 192MiB -2026-10-16T18:01:44Z,mtusi-messenger-lab3-api-1,10.98%,8.109MiB / 192MiB -2026-10-16T18:01:44Z,mtusi-messenger-lab3-api-2,11.32%,12.77MiB / 192MiB -2026-10-16T18:01:44Z,mtusi-messenger-lab3-api-4,10.48%,8.141MiB / 192MiB -2026-10-16T18:01:44Z,mtusi-messenger-lab3-api-3,10.98%,10.36MiB / 192MiB -2026-10-16T18:01:44Z,mtusi-messenger-lab3-postgres-1,50.41%,189.9MiB / 384MiB -2026-10-16T18:01:44Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:01:44Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:01:44Z,mtusi-messenger-lab3-lb-1,14.84%,11.61MiB / 64MiB -2026-10-16T18:01:44Z,mtusi-messenger-lab3-redis-1,0.77%,3.867MiB / 192MiB -2026-10-16T18:01:47Z,mtusi-messenger-lab3-api-1,8.62%,8.059MiB / 192MiB -2026-10-16T18:01:47Z,mtusi-messenger-lab3-api-2,8.69%,12.91MiB / 192MiB -2026-10-16T18:01:47Z,mtusi-messenger-lab3-api-4,9.10%,8.148MiB / 192MiB -2026-10-16T18:01:47Z,mtusi-messenger-lab3-api-3,8.16%,10.37MiB / 192MiB -2026-10-16T18:01:47Z,mtusi-messenger-lab3-postgres-1,37.94%,190.1MiB / 384MiB -2026-10-16T18:01:47Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:01:47Z,mtusi-messenger-lab2-redis-1,0.22%,9.004MiB / 1.913GiB -2026-10-16T18:01:47Z,mtusi-messenger-lab3-lb-1,0.06%,11.54MiB / 64MiB -2026-10-16T18:01:47Z,mtusi-messenger-lab3-redis-1,0.22%,3.867MiB / 192MiB -2026-10-16T18:01:50Z,mtusi-messenger-lab3-api-1,8.06%,7.984MiB / 192MiB -2026-10-16T18:01:50Z,mtusi-messenger-lab3-api-2,7.97%,12.93MiB / 192MiB -2026-10-16T18:01:50Z,mtusi-messenger-lab3-api-4,8.10%,8.09MiB / 192MiB -2026-10-16T18:01:50Z,mtusi-messenger-lab3-api-3,8.09%,10.37MiB / 192MiB -2026-10-16T18:01:50Z,mtusi-messenger-lab3-postgres-1,49.15%,187.2MiB / 384MiB -2026-10-16T18:01:50Z,mtusi-messenger-lab2-postgres-1,0.20%,240.5MiB / 1.913GiB -2026-10-16T18:01:50Z,mtusi-messenger-lab2-redis-1,0.21%,9.004MiB / 1.913GiB -2026-10-16T18:01:50Z,mtusi-messenger-lab3-lb-1,10.58%,11.58MiB / 64MiB -2026-10-16T18:01:50Z,mtusi-messenger-lab3-redis-1,0.23%,3.867MiB / 192MiB -2026-10-16T18:01:53Z,mtusi-messenger-lab3-api-1,10.57%,7.996MiB / 192MiB -2026-10-16T18:01:53Z,mtusi-messenger-lab3-api-2,11.56%,13.09MiB / 192MiB -2026-10-16T18:01:53Z,mtusi-messenger-lab3-api-4,10.78%,8.094MiB / 192MiB -2026-10-16T18:01:53Z,mtusi-messenger-lab3-api-3,10.48%,10.48MiB / 192MiB -2026-10-16T18:01:53Z,mtusi-messenger-lab3-postgres-1,49.61%,187.7MiB / 384MiB -2026-10-16T18:01:53Z,mtusi-messenger-lab2-postgres-1,0.80%,240.5MiB / 1.913GiB -2026-10-16T18:01:53Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:01:53Z,mtusi-messenger-lab3-lb-1,14.58%,11.59MiB / 64MiB -2026-10-16T18:01:53Z,mtusi-messenger-lab3-redis-1,0.72%,3.867MiB / 192MiB -2026-10-16T18:01:57Z,mtusi-messenger-lab3-api-1,10.65%,8.094MiB / 192MiB -2026-10-16T18:01:57Z,mtusi-messenger-lab3-api-2,11.02%,12.71MiB / 192MiB -2026-10-16T18:01:57Z,mtusi-messenger-lab3-api-4,11.74%,8.098MiB / 192MiB -2026-10-16T18:01:57Z,mtusi-messenger-lab3-api-3,11.15%,10.45MiB / 192MiB -2026-10-16T18:01:57Z,mtusi-messenger-lab3-postgres-1,50.24%,188.3MiB / 384MiB -2026-10-16T18:01:57Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:01:57Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:01:57Z,mtusi-messenger-lab3-lb-1,14.89%,11.6MiB / 64MiB -2026-10-16T18:01:57Z,mtusi-messenger-lab3-redis-1,0.21%,3.867MiB / 192MiB -2026-10-16T18:02:00Z,mtusi-messenger-lab3-api-1,10.51%,8.383MiB / 192MiB -2026-10-16T18:02:00Z,mtusi-messenger-lab3-api-2,10.71%,12.96MiB / 192MiB -2026-10-16T18:02:00Z,mtusi-messenger-lab3-api-4,10.41%,8.156MiB / 192MiB -2026-10-16T18:02:00Z,mtusi-messenger-lab3-api-3,11.11%,10.45MiB / 192MiB -2026-10-16T18:02:00Z,mtusi-messenger-lab3-postgres-1,48.78%,188.8MiB / 384MiB -2026-10-16T18:02:00Z,mtusi-messenger-lab2-postgres-1,0.87%,240.5MiB / 1.913GiB -2026-10-16T18:02:00Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:02:00Z,mtusi-messenger-lab3-lb-1,14.51%,11.59MiB / 64MiB -2026-10-16T18:02:00Z,mtusi-messenger-lab3-redis-1,0.20%,3.867MiB / 192MiB -2026-10-16T18:02:03Z,mtusi-messenger-lab3-api-1,0.04%,8.051MiB / 192MiB -2026-10-16T18:02:03Z,mtusi-messenger-lab3-api-2,0.04%,12.73MiB / 192MiB -2026-10-16T18:02:03Z,mtusi-messenger-lab3-api-4,0.03%,8.086MiB / 192MiB -2026-10-16T18:02:03Z,mtusi-messenger-lab3-api-3,0.03%,10.44MiB / 192MiB -2026-10-16T18:02:03Z,mtusi-messenger-lab3-postgres-1,0.18%,189.1MiB / 384MiB -2026-10-16T18:02:03Z,mtusi-messenger-lab2-postgres-1,0.23%,240.5MiB / 1.913GiB -2026-10-16T18:02:03Z,mtusi-messenger-lab2-redis-1,0.24%,9.004MiB / 1.913GiB -2026-10-16T18:02:03Z,mtusi-messenger-lab3-lb-1,0.12%,11.54MiB / 64MiB -2026-10-16T18:02:03Z,mtusi-messenger-lab3-redis-1,0.23%,3.867MiB / 192MiB -2026-10-16T18:02:06Z,mtusi-messenger-lab3-api-1,10.71%,8.109MiB / 192MiB -2026-10-16T18:02:06Z,mtusi-messenger-lab3-api-2,10.63%,12.71MiB / 192MiB -2026-10-16T18:02:06Z,mtusi-messenger-lab3-api-4,11.29%,8.098MiB / 192MiB -2026-10-16T18:02:06Z,mtusi-messenger-lab3-api-3,10.92%,10.38MiB / 192MiB -2026-10-16T18:02:06Z,mtusi-messenger-lab3-postgres-1,49.82%,189.7MiB / 384MiB -2026-10-16T18:02:06Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:02:06Z,mtusi-messenger-lab2-redis-1,0.76%,9.004MiB / 1.913GiB -2026-10-16T18:02:06Z,mtusi-messenger-lab3-lb-1,14.79%,11.59MiB / 64MiB -2026-10-16T18:02:06Z,mtusi-messenger-lab3-redis-1,0.19%,3.867MiB / 192MiB -2026-10-16T18:02:09Z,mtusi-messenger-lab3-api-1,11.20%,8.121MiB / 192MiB -2026-10-16T18:02:09Z,mtusi-messenger-lab3-api-2,11.05%,12.85MiB / 192MiB -2026-10-16T18:02:09Z,mtusi-messenger-lab3-api-4,10.98%,8.102MiB / 192MiB -2026-10-16T18:02:09Z,mtusi-messenger-lab3-api-3,10.48%,10.38MiB / 192MiB -2026-10-16T18:02:09Z,mtusi-messenger-lab3-postgres-1,50.74%,190.2MiB / 384MiB -2026-10-16T18:02:09Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:02:09Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:02:09Z,mtusi-messenger-lab3-lb-1,14.65%,11.59MiB / 64MiB -2026-10-16T18:02:09Z,mtusi-messenger-lab3-redis-1,0.23%,3.867MiB / 192MiB -2026-10-16T18:02:12Z,mtusi-messenger-lab3-api-1,10.56%,8.129MiB / 192MiB -2026-10-16T18:02:12Z,mtusi-messenger-lab3-api-2,11.70%,12.79MiB / 192MiB -2026-10-16T18:02:12Z,mtusi-messenger-lab3-api-4,10.40%,8.102MiB / 192MiB -2026-10-16T18:02:12Z,mtusi-messenger-lab3-api-3,11.18%,10.39MiB / 192MiB -2026-10-16T18:02:12Z,mtusi-messenger-lab3-postgres-1,48.26%,188.2MiB / 384MiB -2026-10-16T18:02:12Z,mtusi-messenger-lab2-postgres-1,0.00%,240.5MiB / 1.913GiB -2026-10-16T18:02:12Z,mtusi-messenger-lab2-redis-1,0.20%,9.004MiB / 1.913GiB -2026-10-16T18:02:12Z,mtusi-messenger-lab3-lb-1,14.18%,11.58MiB / 64MiB -2026-10-16T18:02:12Z,mtusi-messenger-lab3-redis-1,0.21%,3.867MiB / 192MiB -2026-10-16T18:02:15Z,mtusi-messenger-lab3-api-1,1.25%,8.117MiB / 192MiB -2026-10-16T18:02:15Z,mtusi-messenger-lab3-api-2,1.35%,12.95MiB / 192MiB -2026-10-16T18:02:15Z,mtusi-messenger-lab3-api-4,1.28%,8.113MiB / 192MiB -2026-10-16T18:02:15Z,mtusi-messenger-lab3-api-3,1.22%,10.38MiB / 192MiB -2026-10-16T18:02:15Z,mtusi-messenger-lab3-postgres-1,47.75%,190.8MiB / 384MiB -2026-10-16T18:02:15Z,mtusi-messenger-lab2-postgres-1,0.23%,240.5MiB / 1.913GiB -2026-10-16T18:02:15Z,mtusi-messenger-lab2-redis-1,0.28%,9.004MiB / 1.913GiB -2026-10-16T18:02:15Z,mtusi-messenger-lab3-lb-1,1.74%,11.54MiB / 64MiB -2026-10-16T18:02:15Z,mtusi-messenger-lab3-redis-1,0.29%,3.867MiB / 192MiB diff --git a/evidence/track1/superseded/run2-host-client/summary.md b/evidence/track1/superseded/run2-host-client/summary.md deleted file mode 100644 index 5bb33ea..0000000 --- a/evidence/track1/superseded/run2-host-client/summary.md +++ /dev/null @@ -1,14 +0,0 @@ -# Трек 1: цена масштабирования - -| профиль | реплик | бюджет CPU API | CPU/реплика | бюджет PG CPU/RAM | пул | LB CPU (лимит) | успешный RPS | p50 мс | p95 мс | p99 мс | ошибки | API CPU (сумма) | API RAM max (сумма, MiB) | PG CPU | LB CPU | -| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | -| db1cpu | 2 | 1.0 | 0.5 | 1.00/384M | 10 | 0.25 | 1579.722 | 4.033 | 6.236 | 8.668 | 26520 | 34.37 | 340.0 | 46.08 | 13.74 | -| g05 | 2 | 0.5 | 0.25 | 0.50/384M | 10 | 0.25 | 1584.428 | 4.042 | 9.331 | 27.665 | 2845 | 35.23 | 264.6 | 48.11 | 13.01 | -| g10 | 2 | 1.0 | 0.5 | 0.50/384M | 10 | 0.25 | 1597.028 | 3.927 | 7.67 | 21.91 | 13795 | 34.67 | 336.7 | 47.34 | 12.38 | -| g15 | 2 | 1.5 | 0.75 | 0.50/384M | 10 | 0.25 | 1639.884 | 3.963 | 7.721 | 23.6 | 6960 | 36.73 | 271.5 | 48.9 | 13.83 | -| lb1cpu | 2 | 1.0 | 0.5 | 0.50/384M | 10 | 1.00 | 1631.408 | 3.894 | 6.989 | 20.148 | 15652 | 35.82 | 336.2 | 44.66 | 13.13 | -| pool10 | 4 | 1.0 | 0.25 | 0.50/384M | 10 | 0.25 | 1582.872 | 4.156 | 7.798 | 19.723 | 11008 | 41.21 | 535.9 | 44.04 | 13.36 | -| pool5 | 4 | 1.0 | 0.25 | 0.50/384M | 5 | 0.25 | 1551.419 | 4.125 | 7.868 | 21.268 | 13051 | 38.75 | 451.3 | 45.23 | 12.9 | -| r1 | 1 | 1.0 | 1.0 | 0.50/384M | 10 | 0.25 | 1717.626 | 3.85 | 7.538 | 25.045 | 0 | 30.38 | 197.9 | 50.15 | 13.29 | -| r2 | 2 | 1.0 | 0.5 | 0.50/384M | 10 | 0.25 | 1632.545 | 3.959 | 7.508 | 22.12 | 9791 | 35.4 | 334.0 | 46.32 | 12.64 | -| r4 | 4 | 1.0 | 0.25 | 0.50/384M | 10 | 0.25 | 1535.673 | 4.184 | 8.208 | 22.167 | 11454 | 37.84 | 453.6 | 45.29 | 11.37 | diff --git a/evidence/track1/superseded/run2-host-client/summary.txt b/evidence/track1/superseded/run2-host-client/summary.txt deleted file mode 100644 index 54f1349..0000000 --- a/evidence/track1/superseded/run2-host-client/summary.txt +++ /dev/null @@ -1,300 +0,0 @@ -# Track 1: the price of scaling -# generated: 2026-10-16T17:58:18Z -# host: Darwin arm64 -# cpu: Apple M5 Pro -# ram bytes: 51539607552 -# load: tests/load.py closed loop; postgres/lb budgets are recreated and verified per profile -# each profile line below records the budget it was run with -docker engine 29.5.2 -Docker Compose version 5.5.1 - -=== invocation 2026-10-16T17:58:18Z: REPLICAS="1" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=r1 replicas=1 cpu=1.00 mem=768M postgres=0.50/384M lb_cpu=0.25 max_conns=10 === -=== applied label=r1 replicas=1 postgres=0.50/384M lb_cpu=0.25 (снято с контейнеров) -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.011, - "concurrency": 8, - "successful_requests": 103077, - "failed_requests": 0, - "error_ratio": 0.0, - "successful_rps": 1717.626, - "successful_latency_ms": { - "p50": 3.85, - "p95": 7.538, - "p99": 25.045 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=18 -postgres_max_connections=100 -messages_rows=1919638 -idempotency_rows=1919638 - -=== invocation 2026-10-16T17:59:40Z: REPLICAS="2" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=r2 replicas=2 cpu=0.50 mem=384M postgres=0.50/384M lb_cpu=0.25 max_conns=10 === -=== applied label=r2 replicas=2 postgres=0.50/384M lb_cpu=0.25 (снято с контейнеров) -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.014, - "concurrency": 8, - "successful_requests": 100215, - "failed_requests": 4450, - "error_ratio": 0.042517, - "successful_rps": 1669.874, - "successful_latency_ms": { - "p50": 4.01, - "p95": 7.699, - "p99": 22.735 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=19 -postgres_max_connections=100 -messages_rows=2044175 -idempotency_rows=2044175 - -=== invocation 2026-10-16T18:00:57Z: REPLICAS="4" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=r4 replicas=4 cpu=0.25 mem=192M postgres=0.50/384M lb_cpu=0.25 max_conns=10 === -=== applied label=r4 replicas=4 postgres=0.50/384M lb_cpu=0.25 (снято с контейнеров) -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.013, - "concurrency": 8, - "successful_requests": 92161, - "failed_requests": 11454, - "error_ratio": 0.110544, - "successful_rps": 1535.673, - "successful_latency_ms": { - "p50": 4.184, - "p95": 8.208, - "p99": 22.167 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=21 -postgres_max_connections=100 -messages_rows=2161959 -idempotency_rows=2161959 - -=== invocation 2026-10-16T18:02:17Z: REPLICAS="2" TOTAL_CPU=0.5 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=g05 replicas=2 cpu=0.25 mem=384M postgres=0.50/384M lb_cpu=0.25 max_conns=10 === -=== applied label=g05 replicas=2 postgres=0.50/384M lb_cpu=0.25 (снято с контейнеров) -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.013, - "concurrency": 8, - "successful_requests": 95087, - "failed_requests": 2845, - "error_ratio": 0.029051, - "successful_rps": 1584.428, - "successful_latency_ms": { - "p50": 4.042, - "p95": 9.331, - "p99": 27.665 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=19 -postgres_max_connections=100 -messages_rows=2282714 -idempotency_rows=2282714 - -=== invocation 2026-10-16T18:03:42Z: REPLICAS="2" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=g10 replicas=2 cpu=0.50 mem=384M postgres=0.50/384M lb_cpu=0.25 max_conns=10 === -=== applied label=g10 replicas=2 postgres=0.50/384M lb_cpu=0.25 (снято с контейнеров) -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.012, - "concurrency": 8, - "successful_requests": 95841, - "failed_requests": 13795, - "error_ratio": 0.125825, - "successful_rps": 1597.028, - "successful_latency_ms": { - "p50": 3.927, - "p95": 7.67, - "p99": 21.91 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=19 -postgres_max_connections=100 -messages_rows=2404027 -idempotency_rows=2404027 - -=== invocation 2026-10-16T18:05:00Z: REPLICAS="2" TOTAL_CPU=1.5 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=g15 replicas=2 cpu=0.75 mem=384M postgres=0.50/384M lb_cpu=0.25 max_conns=10 === -=== applied label=g15 replicas=2 postgres=0.50/384M lb_cpu=0.25 (снято с контейнеров) -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.011, - "concurrency": 8, - "successful_requests": 98411, - "failed_requests": 6960, - "error_ratio": 0.066052, - "successful_rps": 1639.884, - "successful_latency_ms": { - "p50": 3.963, - "p95": 7.721, - "p99": 23.6 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=19 -postgres_max_connections=100 -messages_rows=2528963 -idempotency_rows=2528963 - -=== invocation 2026-10-16T18:06:17Z: REPLICAS="4" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=pool10 replicas=4 cpu=0.25 mem=192M postgres=0.50/384M lb_cpu=0.25 max_conns=10 === -=== applied label=pool10 replicas=4 postgres=0.50/384M lb_cpu=0.25 (снято с контейнеров) -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.014, - "concurrency": 8, - "successful_requests": 94995, - "failed_requests": 11008, - "error_ratio": 0.103846, - "successful_rps": 1582.872, - "successful_latency_ms": { - "p50": 4.156, - "p95": 7.798, - "p99": 19.723 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=23 -postgres_max_connections=100 -messages_rows=2649923 -idempotency_rows=2649923 - -=== invocation 2026-10-16T18:07:37Z: REPLICAS="4" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=pool5 replicas=4 cpu=0.25 mem=192M postgres=0.50/384M lb_cpu=0.25 max_conns=5 === -=== applied label=pool5 replicas=4 postgres=0.50/384M lb_cpu=0.25 (снято с контейнеров) -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.016, - "concurrency": 8, - "successful_requests": 93110, - "failed_requests": 13051, - "error_ratio": 0.122936, - "successful_rps": 1551.419, - "successful_latency_ms": { - "p50": 4.125, - "p95": 7.868, - "p99": 21.268 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=23 -postgres_max_connections=100 -messages_rows=2767792 -idempotency_rows=2767792 - -=== invocation 2026-10-16T18:08:57Z: REPLICAS="2" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=db1cpu replicas=2 cpu=0.50 mem=384M postgres=1.00/384M lb_cpu=0.25 max_conns=10 === -=== PostgreSQL: бюджет 0.50/384M -> 1.00/384M, пересоздаю контейнер === -=== applied label=db1cpu replicas=2 postgres=1.00/384M lb_cpu=0.25 (снято с контейнеров) -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.83, - "concurrency": 8, - "successful_requests": 96094, - "failed_requests": 26520, - "error_ratio": 0.216289, - "successful_rps": 1579.722, - "successful_latency_ms": { - "p50": 4.033, - "p95": 6.236, - "p99": 8.668 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=19 -postgres_max_connections=100 -messages_rows=2894016 -idempotency_rows=2894016 - -=== возвращаю PostgreSQL к бюджету 0.50/384M === -=== invocation 2026-10-16T18:10:21Z: REPLICAS="2" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=lb1cpu replicas=2 cpu=0.50 mem=384M postgres=0.50/384M lb_cpu=1.00 max_conns=10 === -=== LB: бюджет CPU 0.25 -> 1.00, пересоздаю контейнер === -=== applied label=lb1cpu replicas=2 postgres=0.50/384M lb_cpu=1.00 (снято с контейнеров) -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.01, - "concurrency": 8, - "successful_requests": 97901, - "failed_requests": 15652, - "error_ratio": 0.137839, - "successful_rps": 1631.408, - "successful_latency_ms": { - "p50": 3.894, - "p95": 6.989, - "p99": 20.148 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=19 -postgres_max_connections=100 -messages_rows=3019112 -idempotency_rows=3019112 - -=== возвращаю LB к бюджету CPU 0.25 === -=== invocation 2026-10-16T18:14:37Z: REPLICAS="2" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 === - -=== profile label=r2 replicas=2 cpu=0.50 mem=384M postgres=0.50/384M lb_cpu=0.25 max_conns=10 === -=== applied label=r2 replicas=2 postgres=0.50/384M lb_cpu=0.25 (снято с контейнеров) -{ - "lab": 3, - "workload": "closed-loop POST messages; no automatic retries", - "requested_duration_seconds": 60.0, - "elapsed_seconds": 60.012, - "concurrency": 8, - "successful_requests": 97973, - "failed_requests": 9791, - "error_ratio": 0.090856, - "successful_rps": 1632.545, - "successful_latency_ms": { - "p50": 3.959, - "p95": 7.508, - "p99": 22.12 - }, - "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." -} -postgres_connections=19 -postgres_max_connections=100 -messages_rows=3252832 -idempotency_rows=3252832 - diff --git a/go.mod b/go.mod index 5c21620..9bb1245 100644 --- a/go.mod +++ b/go.mod @@ -7,6 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/credentials v1.20.9 github.com/aws/aws-sdk-go-v2/service/s3 v1.114.4 github.com/aws/smithy-go v1.28.6 + github.com/exaring/otelpgx v0.13.0 github.com/gen2brain/webp v0.6.4 github.com/go-faster/errors v0.8.0 github.com/go-faster/jx v1.2.0 @@ -19,6 +20,16 @@ require ( github.com/redis/go-redis/v9 v9.22.0 github.com/spf13/viper v1.21.0 github.com/stretchr/testify v1.12.1 + go.opentelemetry.io/contrib/bridges/otelslog v0.21.0 + go.opentelemetry.io/otel v1.47.0 + go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp v0.23.0 + go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.47.0 + go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.47.0 + go.opentelemetry.io/otel/metric v1.47.0 + go.opentelemetry.io/otel/sdk v1.47.0 + go.opentelemetry.io/otel/sdk/log v1.47.0 + go.opentelemetry.io/otel/sdk/metric v1.47.0 + go.opentelemetry.io/otel/trace v1.47.0 go.uber.org/zap v1.28.0 go.uber.org/zap/exp v0.3.0 golang.org/x/crypto v0.57.0 @@ -39,6 +50,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.6 // indirect github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.20.6 // indirect github.com/brunoga/deep v1.3.1 // indirect + github.com/cenkalti/backoff/v5 v5.0.3 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/clipperhouse/uax29/v2 v2.2.0 // indirect github.com/coreos/go-semver v0.3.1 // indirect @@ -53,11 +65,14 @@ require ( github.com/gabriel-vasile/mimetype v1.4.15 // indirect github.com/ghodss/yaml v1.0.0 // indirect github.com/go-faster/yaml v0.4.6 // indirect + github.com/go-logr/logr v1.4.4 // indirect + github.com/go-logr/stdr v1.2.2 // indirect github.com/go-playground/locales v0.14.1 // indirect github.com/go-playground/universal-translator v0.18.1 // indirect github.com/go-sql-driver/mysql v1.10.0 // indirect github.com/go-viper/mapstructure/v2 v2.5.0 // indirect github.com/google/cel-go v0.28.0 // indirect + github.com/grpc-ecosystem/grpc-gateway/v2 v2.30.0 // indirect github.com/huandu/xstrings v1.5.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jackc/pgpassfile v1.0.0 // indirect @@ -110,6 +125,10 @@ require ( github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect github.com/xeipuuv/gojsonschema v1.2.0 // indirect github.com/yuin/goldmark v1.8.2 // indirect + go.opentelemetry.io/auto/sdk v1.2.1 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.47.0 // indirect + go.opentelemetry.io/otel/log v1.47.0 // indirect + go.opentelemetry.io/proto/otlp v1.11.0 // indirect go.uber.org/atomic v1.11.0 // indirect go.uber.org/multierr v1.11.0 // indirect go.yaml.in/yaml/v3 v3.0.5 // indirect @@ -120,8 +139,8 @@ require ( golang.org/x/term v0.46.0 // indirect golang.org/x/text v0.43.0 // indirect golang.org/x/tools v0.51.0 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20260526163538-3dc84a4a5aaa // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20260831171406-18b4a7587f8a // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20260928230214-8a89bd6388cc // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20260928230214-8a89bd6388cc // indirect google.golang.org/grpc v1.83.2 // indirect google.golang.org/protobuf v1.36.12 // indirect gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect diff --git a/go.sum b/go.sum index 051cef2..03e2b21 100644 --- a/go.sum +++ b/go.sum @@ -36,6 +36,8 @@ github.com/bsm/ginkgo/v2 v2.12.0 h1:Ny8MWAHyOepLGlLKYmXG4IEkioBysk6GpaRTLC8zwWs= github.com/bsm/ginkgo/v2 v2.12.0/go.mod h1:SwYbGRRDovPVboqFv0tPTcG1sN61LM1Z4ARdbAV9g4c= github.com/bsm/gomega v1.27.10 h1:yeMWxP2pV2fG3FgAODIY8EiRE3dy0aeFYt4l7wh6yKA= github.com/bsm/gomega v1.27.10/go.mod h1:JyEr/xRbxbtgWNi8tIEVPUYZ5Dzef52k01W3YH0H+O0= +github.com/cenkalti/backoff/v5 v5.0.3 h1:ZN+IMa753KfX5hd8vVaMixjnqRZ3y8CuJKRKj1xcsSM= +github.com/cenkalti/backoff/v5 v5.0.3/go.mod h1:rkhZdG3JZukswDf7f0cwqPNk4K0sa+F97BxZthm/crw= github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/clipperhouse/uax29/v2 v2.2.0 h1:ChwIKnQN3kcZteTXMgb1wztSgaU+ZemkgWdohwgs8tY= @@ -56,6 +58,8 @@ github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkp github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= github.com/ebitengine/purego v0.10.1 h1:dewVBCBT2GaMu1SrNTYxQhgQBethzfhiwvZiLGP/qyY= github.com/ebitengine/purego v0.10.1/go.mod h1:iIjxzd6CiRiOG0UyXP+V1+jWqUXVjPKLAI0mRfJZTmQ= +github.com/exaring/otelpgx v0.13.0 h1:Vi0I2GWRS3nnVzgr73L/XbSLqthR0h6A1rm4Wt3W4aA= +github.com/exaring/otelpgx v0.13.0/go.mod h1:3OojrUKhhy3lTbYIMBijP3YjMey/jo14eHAW5cXcUdk= github.com/fatih/color v1.19.0 h1:Zp3PiM21/9Ld6FzSKyL5c/BULoe/ONr9KlbYVOfG8+w= github.com/fatih/color v1.19.0/go.mod h1:zNk67I0ZUT1bEGsSGyCZYZNrHuTkJJB+r6Q9VuMi0LE= github.com/fatih/structs v1.1.0 h1:Q7juDM0QtcnhCpeyLGQKyg4TOIghuNXrkL32pHAUMxo= @@ -78,6 +82,7 @@ github.com/go-faster/jx v1.2.0 h1:T2YHJPrFaYu21fJtUxC9GzmluKu8rVIFDwwGBKTDseI= github.com/go-faster/jx v1.2.0/go.mod h1:UWLOVDmMG597a5tBFPLIWJdUxz5/2emOpfsj9Neg0PE= github.com/go-faster/yaml v0.4.6 h1:lOK/EhI04gCpPgPhgt0bChS6bvw7G3WwI8xxVe0sw9I= github.com/go-faster/yaml v0.4.6/go.mod h1:390dRIvV4zbnO7qC9FGo6YYutc+wyyUSHBgbXL52eXk= +github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.4.4 h1:tG4xh9yMsRCAiodLVTxyrkzSZ9+o0L1Kg/+cPVcbP/8= github.com/go-logr/logr v1.4.4/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= @@ -103,6 +108,8 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.30.0 h1:/Tnpcb2E0Pz/tN9s3bfEY2Q8ePCEX9iuS+cneUwncnw= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.30.0/go.mod h1:zOBXOsUaBSjKgmH4OGzV1esUpR3oUSCPYVd2cUBjKYY= github.com/huandu/xstrings v1.5.0 h1:2ag3IFq9ZDANvthTwTiqSSZLjDc+BedvHPAp5tJy2TI= github.com/huandu/xstrings v1.5.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= @@ -255,16 +262,36 @@ github.com/zeebo/xxh3 v1.1.0 h1:s7DLGDK45Dyfg7++yxI0khrfwq9661w9EN78eP/UZVs= github.com/zeebo/xxh3 v1.1.0/go.mod h1:IisAie1LELR4xhVinxWS5+zf1lA4p0MW4T+w+W07F5s= go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64= go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y= -go.opentelemetry.io/otel v1.46.0 h1:FHt5/CDyVxi/8IM1CH7VE/rRgq3kLHa2mSTVMO8AWyc= -go.opentelemetry.io/otel v1.46.0/go.mod h1:Gj3SEScelsNC45tp4nSxRYlS+f5iez7W8XPMCt905kE= -go.opentelemetry.io/otel/metric v1.46.0 h1:yBnkXvgV7AXFILZc5K6IZe/CBFF3OS7BJ8ov6/lj0K8= -go.opentelemetry.io/otel/metric v1.46.0/go.mod h1:iPmdWqifKUdzziPkvvzIJXITl56fQx2mGM/DHLB3/2o= -go.opentelemetry.io/otel/sdk v1.45.0 h1:4VVSMgQ83dUgW2aoX5f6JgLvHwIvzcuLnF9lUdCSpCw= -go.opentelemetry.io/otel/sdk v1.45.0/go.mod h1:Sr40LgXV7DsKMMJMKOhUWOgMWTfAaqvm2kF0g7ilwuA= -go.opentelemetry.io/otel/sdk/metric v1.45.0 h1:oVFszMfyj1Am6s24Vtc7wBb8BKLcwepJjNEYILuiE3o= -go.opentelemetry.io/otel/sdk/metric v1.45.0/go.mod h1:vUWUxDZvu1WVRj8JA8S0AdhsPrZoDpA2DdZauIh4mDA= -go.opentelemetry.io/otel/trace v1.46.0 h1:OULy7ccdJnZtJ0UDYFOIGaCmiWzJ8Vi2G/Rsu60qs1c= -go.opentelemetry.io/otel/trace v1.46.0/go.mod h1:J7GAXweO77XSFkB/rmAqk9D6ihszhFjLU+d9WuUxDLI= +go.opentelemetry.io/contrib/bridges/otelslog v0.21.0 h1:/CdgE52i1OEPHhsGUqrggYNRaZy4v4YgVenGd52dRBI= +go.opentelemetry.io/contrib/bridges/otelslog v0.21.0/go.mod h1:9pBdbVbuehIDzxN4accnzzxEUPT8Nq7grbZMo+J1VN4= +go.opentelemetry.io/otel v1.47.0 h1:j7ALJ/zgkS7Z6aeJW09p8VC9804bC+PpeTfCD4XPnOM= +go.opentelemetry.io/otel v1.47.0/go.mod h1:8wS9O2qfXrYrzp6hIF/HOYJJf/wIhFPhR2xLuP+iXQU= +go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp v0.23.0 h1:5WVp40k2fJHuc5BtNTgKk+EugKFT8Eg3lywFfCPI/nE= +go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp v0.23.0/go.mod h1:59nH0RYCGHRlwt15WyioeSYINBbuObeBpTowPhEKWHY= +go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.47.0 h1:7kszRN4Ze5GeAkUnBjBSUIunVBMA+mZIG04auueqguM= +go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.47.0/go.mod h1:CLzakYy8jOdkBfcveCWYkeKJxujcF4xPhh2Z7IfE98U= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.47.0 h1:julhjPeUH/q/7hinbSdDdqt5h7Zw9YWmRlWRhI0jd54= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.47.0/go.mod h1:Ao2mz688LH/tFf0yMAenidq6k2YNSx6SIY2q6jDACck= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.47.0 h1:aXZXsZ012wOgVkqaiQv+Z/d8V0xKjmg70F6m4CE94lc= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.47.0/go.mod h1:ziu1gUIJhAaxM3EV1e3Ralk5AAyL1UOYz3lJJ4VSI38= +go.opentelemetry.io/otel/log v1.47.0 h1:cOTS1CcLbSQeZKanGJ+0JpF/+t4PELi3O3bbl2lqCcI= +go.opentelemetry.io/otel/log v1.47.0/go.mod h1:9byitSQ5pLC6PpqwGXjqdMKya6ZTswHRZh2vvXT33nw= +go.opentelemetry.io/otel/metric v1.47.0 h1:4PptaldXx3Eat1XjMZ68pPJEs5wrhlemctZE9a3UdWY= +go.opentelemetry.io/otel/metric v1.47.0/go.mod h1:ADGSXxRrXM6bjbvLo535EstVFlPpPYZm4LBKixjDHwU= +go.opentelemetry.io/otel/metric/x v0.69.0 h1:DjRLr15H83v+hCW7JA9NoJvOkYTtmq5YoDRbe9deYpM= +go.opentelemetry.io/otel/metric/x v0.69.0/go.mod h1:uVvsMPMFFyj/HUQfrUnH3JjnOQ1dwFDorgFLRBasM0k= +go.opentelemetry.io/otel/sdk v1.47.0 h1:zWXEr4j2lFefG87TU6Yg8a7ngfohIKFZHKp0Hf5hC6I= +go.opentelemetry.io/otel/sdk v1.47.0/go.mod h1:VUc24kiOeoGsxG8G9ULx3fWKvB7jMhnGE8Oi607lgR0= +go.opentelemetry.io/otel/sdk/log v1.47.0 h1:W4N/ZfgpkRRnmARnqYoQ6BrWA0mrj8IzVDNLlpmUJZY= +go.opentelemetry.io/otel/sdk/log v1.47.0/go.mod h1:Wu74Z2EmOKXi2FleSNAb0Hyau2G+r5kubSEMJw5aAMs= +go.opentelemetry.io/otel/sdk/log/logtest v0.23.0 h1:j3pm42QCrKYYLLkI6OrV1QHFkUfDA6/4EP+Y1PzggLg= +go.opentelemetry.io/otel/sdk/log/logtest v0.23.0/go.mod h1:zt0gEnuTZgDvqvczHwYswz93eqMaIr6upTTsdV/HUlU= +go.opentelemetry.io/otel/sdk/metric v1.47.0 h1:lfISg2j93VT6yqdk9OfUaZmw/GfcZqCCV3jdXtsPnKw= +go.opentelemetry.io/otel/sdk/metric v1.47.0/go.mod h1:ypLp+mW1Nt2x+Szt3b5/i1syodyts49lMOwxpDI3VGw= +go.opentelemetry.io/otel/trace v1.47.0 h1:JOjX/Oci8K94QHddo+bbfya/Ai/nf6/dt9ZfrFNWSrM= +go.opentelemetry.io/otel/trace v1.47.0/go.mod h1:jNaSLa2PZEYFG6fRjJABAu+bw4FS08uDmPg28lTghu0= +go.opentelemetry.io/proto/otlp v1.11.0 h1:5rrYs0Ykyj50sdU/JU0x8etU+LubXWb+gED6TbEdMIk= +go.opentelemetry.io/proto/otlp v1.11.0/go.mod h1:SmVizdCOAm3XBtG1g1NnOdhW6jtddT72hLMhv8VwA8E= go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= @@ -321,10 +348,10 @@ golang.org/x/tools v0.51.0/go.mod h1:9eEncMayCV6zRMGhR5eZEC2iBx98qWcF1HZ9Z7wJOoA golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gonum.org/v1/gonum v0.17.0 h1:VbpOemQlsSMrYmn7T2OUvQ4dqxQXU+ouZFQsZOx50z4= gonum.org/v1/gonum v0.17.0/go.mod h1:El3tOrEuMpv2UdMrbNlKEh9vd86bmQ6vqIcDwxEOc1E= -google.golang.org/genproto/googleapis/api v0.0.0-20260526163538-3dc84a4a5aaa h1:Kjn0N0tCrDgiAFW+lGO4JZ3ck44CehvJQMAwj9QF0G8= -google.golang.org/genproto/googleapis/api v0.0.0-20260526163538-3dc84a4a5aaa/go.mod h1:q4lMZS6kskjT5HvCPrnnypcDPVJqT/f4nfxmkE7gryY= -google.golang.org/genproto/googleapis/rpc v0.0.0-20260831171406-18b4a7587f8a h1:3Dnd1cDaZlB68lziofO+bJXpjOy8UfRv8Unt+yH8tQ4= -google.golang.org/genproto/googleapis/rpc v0.0.0-20260831171406-18b4a7587f8a/go.mod h1:DjtHYE8FKJLivXcBEjGwndXfIC23G0VpXiXKqG179uA= +google.golang.org/genproto/googleapis/api v0.0.0-20260928230214-8a89bd6388cc h1:rZHRz0ogq4Pid1IKtA/ivHi8XONVF5tqUQXA2TtgpkE= +google.golang.org/genproto/googleapis/api v0.0.0-20260928230214-8a89bd6388cc/go.mod h1:K/n0XLazCJHjD73YuMyNJsN38BPPy1kfFnKxUXaThFU= +google.golang.org/genproto/googleapis/rpc v0.0.0-20260928230214-8a89bd6388cc h1:4bNTbnb44EqGVy9HaQxSY2jnafSUdgV3qHtedvNpDKg= +google.golang.org/genproto/googleapis/rpc v0.0.0-20260928230214-8a89bd6388cc/go.mod h1:OaIUM3+LpYcK2GXM4FTmhWoIq371Owdr+Cc7/BsYHHc= google.golang.org/grpc v1.83.2 h1:EManeRomTObA0BU7I8vXgg/78uE5MJ9M8B39EX2WscU= google.golang.org/grpc v1.83.2/go.mod h1:YPI1hK3kDked6iHvgX3tR0y+nX/qpMFKhPgFsokw1S8= google.golang.org/protobuf v1.36.12 h1:pJOKDDOyeXErUroCihFAd5LQuwXBSpVnKGrj5o/fwxc= diff --git a/infra/README.md b/infra/README.md index 5a39e86..03e303c 100644 --- a/infra/README.md +++ b/infra/README.md @@ -1,7 +1,18 @@ -# Инфраструктура студента +# Инфраструктура lab6 -Здесь разместите конфигурации выбранных сервисов; основную топологию — в корневом compose.yaml/stack.yaml. `compose.example.yaml` — только worksheet ролей и намеренно не запускается. `contracts/infrastructure.json` задаёт минимальные роли, не готовые образы/пароли. - -В REPORT.md сопоставьте роль → service name → версия/digest → health/readiness → volume → сеть/порт → способ передачи credentials. Приведите bootstrap (schema, bucket, broker topology, а с lab6 provisioning) и безопасное повторение этих команд. - -Приложение строится из исходников. Не используйте заранее существующий образ преподавательского сервера вместо своей реализации. Restart hook перезапускает все соответствующие stores с volumes; failover hook останавливает только заданную API-реплику. +- `otel/collector.yaml` — OTLP receivers, memory_limiter (140 MiB), batch, + bounded Loki/Tempo exporter queues (`sizer: bytes`), Prometheus exporter + `:8889`, self-metrics `:8888`, health `:13133`. +- `prometheus/` — scrape config (collector, collector-self, HAProxy, RabbitMQ), + 7d/2GB retention, SLO recording rules and alerts. +- `loki/loki.yaml` — filesystem, schema v13, 168h retention, OTLP mapping with + only `service.name`/`deployment.environment.name` as index labels. +- `tempo/tempo.yaml` — local storage, OTLP, 72h block retention. +- `grafana/` — provisioned datasources (Prometheus/Loki/Tempo), dashboard + provider and JSON dashboards; admin password only in gitignored + `secrets/grafana.env`. +- `rabbitmq/rabbitmq.conf` — per-object Prometheus metrics so `queue` is a + real label for depth/age panels. +- `runbooks/` — DB availability, queue lag, API errors, telemetry backend down. +- cAdvisor не используется: контейнерные CPU/RAM приложения снимаются из + cgroup v2, брокер — из `rabbitmq_prometheus`; Docker socket не монтируется. diff --git a/infra/grafana/dashboards/api-overview.json b/infra/grafana/dashboards/api-overview.json new file mode 100644 index 0000000..eefdddf --- /dev/null +++ b/infra/grafana/dashboards/api-overview.json @@ -0,0 +1,582 @@ +{ + "annotations": { + "list": [] + }, + "editable": false, + "graphTooltip": 1, + "panels": [ + { + "id": 1, + "title": "API RPS", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 0 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum(rate(messenger_http_server_requests_total[5m]))", + "legendFormat": "rps", + "refId": "A", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "reqps" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 2, + "title": "API error ratio (edge SLI)", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 0 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "slo:api_error_ratio:5m", + "legendFormat": "5xx ratio", + "refId": "A", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "slo:api_error_ratio:1h", + "legendFormat": "1h", + "refId": "B", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "percentunit" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 3, + "title": "API latency p50/p95/p99", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 7 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "histogram_quantile(0.50, sum by (le) (rate(http_server_request_duration_seconds_bucket[5m])))", + "legendFormat": "p50", + "refId": "A", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "histogram_quantile(0.95, sum by (le) (rate(http_server_request_duration_seconds_bucket[5m])))", + "legendFormat": "p95", + "refId": "B", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "histogram_quantile(0.99, sum by (le) (rate(http_server_request_duration_seconds_bucket[5m])))", + "legendFormat": "p99", + "refId": "C", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "s" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 4, + "title": "Jobs processed / failed / retried", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 7 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum(rate(messenger_jobs_processed_total{outcome=\"succeeded\"}[5m]))", + "legendFormat": "succeeded", + "refId": "A", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum(rate(messenger_jobs_processed_total{outcome=\"failed\"}[5m]))", + "legendFormat": "failed", + "refId": "B", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum(rate(messenger_jobs_processed_total{outcome=\"retried\"}[5m]))", + "legendFormat": "retried", + "refId": "C", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "ops" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 5, + "title": "Time-to-ready p50/p95/p99", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 14 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "histogram_quantile(0.50, sum by (le) (rate(messenger_job_time_to_ready_seconds_bucket[5m])))", + "legendFormat": "p50", + "refId": "A", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "histogram_quantile(0.95, sum by (le) (rate(messenger_job_time_to_ready_seconds_bucket[5m])))", + "legendFormat": "p95", + "refId": "B", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "histogram_quantile(0.99, sum by (le) (rate(messenger_job_time_to_ready_seconds_bucket[5m])))", + "legendFormat": "p99", + "refId": "C", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "s" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 6, + "title": "TTR bad ratio (1 - within 30s / accepted)", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 14 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "slo:ttr_bad_ratio:5m", + "legendFormat": "5m", + "refId": "A", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "slo:ttr_bad_ratio:1h", + "legendFormat": "1h", + "refId": "B", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "percentunit" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 7, + "title": "Queue depth", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 8, + "x": 0, + "y": 21 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "max(rabbitmq_queue_messages_ready{queue=\"attachment.process.v1\"})", + "legendFormat": "ready", + "refId": "A", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 8, + "title": "Oldest job age", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 8, + "x": 8, + "y": 21 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "max(messenger_queue_oldest_job_age_seconds)", + "legendFormat": "oldest job seconds", + "refId": "A", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "s" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 9, + "title": "Worker saturation", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 8, + "x": 16, + "y": 21 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum(messenger_worker_busy)", + "legendFormat": "busy", + "refId": "A", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum(messenger_worker_capacity)", + "legendFormat": "capacity", + "refId": "B", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 10, + "title": "DB pool used / idle / max", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 28 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum(messenger_db_pool_used)", + "legendFormat": "used", + "refId": "A", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum(messenger_db_pool_idle)", + "legendFormat": "idle", + "refId": "B", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum(messenger_db_pool_max)", + "legendFormat": "max", + "refId": "C", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 11, + "title": "DB empty acquire / wait", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 28 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum(rate(messenger_db_pool_empty_acquire_total[5m]))", + "legendFormat": "empty acquire/s", + "refId": "A", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum(rate(messenger_db_pool_empty_acquire_wait_seconds_total[5m]))", + "legendFormat": "wait seconds/s", + "refId": "B", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 12, + "title": "API logs", + "type": "logs", + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 35 + }, + "datasource": { + "type": "loki", + "uid": "loki" + }, + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "loki" + }, + "expr": "{service_name=\"messenger-api\"}", + "refId": "A", + "queryType": "range" + } + ], + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "options": {} + }, + { + "id": 13, + "title": "Traces: job.process", + "type": "traces", + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 35 + }, + "datasource": { + "type": "tempo", + "uid": "tempo" + }, + "targets": [ + { + "datasource": { + "type": "tempo", + "uid": "tempo" + }, + "query": "{ name = \"job.process\" }", + "refId": "A", + "queryType": "traceql" + } + ], + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "options": {} + } + ], + "refresh": "5s", + "schemaVersion": 39, + "tags": [ + "lab6", + "messenger" + ], + "templating": { + "list": [] + }, + "time": { + "from": "now-30m", + "to": "now" + }, + "timezone": "browser", + "title": "Lab6 — messenger observability", + "uid": "lab6-overview", + "version": 1 +} diff --git a/infra/grafana/dashboards/infra-saturation.json b/infra/grafana/dashboards/infra-saturation.json new file mode 100644 index 0000000..c5b817d --- /dev/null +++ b/infra/grafana/dashboards/infra-saturation.json @@ -0,0 +1,343 @@ +{ + "annotations": { + "list": [] + }, + "editable": false, + "panels": [ + { + "id": 1, + "title": "API RPS", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 0 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum(rate(messenger_http_server_requests_total[5m]))", + "legendFormat": "rps", + "refId": "A", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "reqps" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 3, + "title": "API latency p50/p95/p99", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 7 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "histogram_quantile(0.50, sum by (le) (rate(http_server_request_duration_seconds_bucket[5m])))", + "legendFormat": "p50", + "refId": "A", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "histogram_quantile(0.95, sum by (le) (rate(http_server_request_duration_seconds_bucket[5m])))", + "legendFormat": "p95", + "refId": "B", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "histogram_quantile(0.99, sum by (le) (rate(http_server_request_duration_seconds_bucket[5m])))", + "legendFormat": "p99", + "refId": "C", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "s" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 10, + "title": "DB pool used / idle / max", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 28 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum(messenger_db_pool_used)", + "legendFormat": "used", + "refId": "A", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum(messenger_db_pool_idle)", + "legendFormat": "idle", + "refId": "B", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum(messenger_db_pool_max)", + "legendFormat": "max", + "refId": "C", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 11, + "title": "DB empty acquire / wait", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 28 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum(rate(messenger_db_pool_empty_acquire_total[5m]))", + "legendFormat": "empty acquire/s", + "refId": "A", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum(rate(messenger_db_pool_empty_acquire_wait_seconds_total[5m]))", + "legendFormat": "wait seconds/s", + "refId": "B", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 12, + "title": "API logs", + "type": "logs", + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 35 + }, + "datasource": { + "type": "loki", + "uid": "loki" + }, + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "loki" + }, + "expr": "{service_name=\"messenger-api\"}", + "refId": "A", + "queryType": "range" + } + ], + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "options": {} + }, + { + "id": 30, + "title": "Process memory usage", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 28 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum by (service_name) (messenger_process_memory_usage_bytes)", + "legendFormat": "{{service_name}}", + "refId": "A", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "bytes" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 31, + "title": "Collector exporter queue", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 28 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "max(otelcol_exporter_queue_size)", + "legendFormat": "queue", + "refId": "A", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 32, + "title": "Scrape targets up", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 35 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "up", + "legendFormat": "{{job}}", + "refId": "A", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [] + }, + "options": {} + } + ], + "refresh": "5s", + "schemaVersion": 39, + "tags": [ + "lab6", + "infra" + ], + "templating": { + "list": [] + }, + "time": { + "from": "now-30m", + "to": "now" + }, + "title": "Lab6 — infrastructure saturation", + "uid": "lab6-infra", + "version": 1 +} diff --git a/infra/grafana/dashboards/jobs-pipeline.json b/infra/grafana/dashboards/jobs-pipeline.json new file mode 100644 index 0000000..6be2763 --- /dev/null +++ b/infra/grafana/dashboards/jobs-pipeline.json @@ -0,0 +1,430 @@ +{ + "annotations": { + "list": [] + }, + "editable": false, + "panels": [ + { + "id": 4, + "title": "Jobs processed / failed / retried", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 7 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum(rate(messenger_jobs_processed_total{outcome=\"succeeded\"}[5m]))", + "legendFormat": "succeeded", + "refId": "A", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum(rate(messenger_jobs_processed_total{outcome=\"failed\"}[5m]))", + "legendFormat": "failed", + "refId": "B", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum(rate(messenger_jobs_processed_total{outcome=\"retried\"}[5m]))", + "legendFormat": "retried", + "refId": "C", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "ops" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 5, + "title": "Time-to-ready p50/p95/p99", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 14 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "histogram_quantile(0.50, sum by (le) (rate(messenger_job_time_to_ready_seconds_bucket[5m])))", + "legendFormat": "p50", + "refId": "A", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "histogram_quantile(0.95, sum by (le) (rate(messenger_job_time_to_ready_seconds_bucket[5m])))", + "legendFormat": "p95", + "refId": "B", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "histogram_quantile(0.99, sum by (le) (rate(messenger_job_time_to_ready_seconds_bucket[5m])))", + "legendFormat": "p99", + "refId": "C", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "s" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 6, + "title": "TTR bad ratio (1 - within 30s / accepted)", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 14 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "slo:ttr_bad_ratio:5m", + "legendFormat": "5m", + "refId": "A", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "slo:ttr_bad_ratio:1h", + "legendFormat": "1h", + "refId": "B", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "percentunit" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 7, + "title": "Queue depth", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 8, + "x": 0, + "y": 21 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "max(rabbitmq_queue_messages_ready{queue=\"attachment.process.v1\"})", + "legendFormat": "ready", + "refId": "A", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 8, + "title": "Oldest job age", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 8, + "x": 8, + "y": 21 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "max(messenger_queue_oldest_job_age_seconds)", + "legendFormat": "oldest job seconds", + "refId": "A", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "s" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 9, + "title": "Worker saturation", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 8, + "x": 16, + "y": 21 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum(messenger_worker_busy)", + "legendFormat": "busy", + "refId": "A", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum(messenger_worker_capacity)", + "legendFormat": "capacity", + "refId": "B", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 10, + "title": "DB pool used / idle / max", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 28 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum(messenger_db_pool_used)", + "legendFormat": "used", + "refId": "A", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum(messenger_db_pool_idle)", + "legendFormat": "idle", + "refId": "B", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum(messenger_db_pool_max)", + "legendFormat": "max", + "refId": "C", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 20, + "title": "Job duration p50/p95/p99", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 42 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "histogram_quantile(0.50, sum by (le) (rate(messenger_job_duration_seconds_bucket[5m])))", + "legendFormat": "p50", + "refId": "A", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "histogram_quantile(0.95, sum by (le) (rate(messenger_job_duration_seconds_bucket[5m])))", + "legendFormat": "p95", + "refId": "B", + "range": true + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "histogram_quantile(0.99, sum by (le) (rate(messenger_job_duration_seconds_bucket[5m])))", + "legendFormat": "p99", + "refId": "C", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "s" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 21, + "title": "Overdue jobs (>30s)", + "type": "timeseries", + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 42 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "max(messenger_jobs_overdue)", + "legendFormat": "overdue", + "refId": "A", + "range": true + } + ], + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [] + }, + "options": {} + } + ], + "refresh": "5s", + "schemaVersion": 39, + "tags": [ + "lab6", + "jobs" + ], + "templating": { + "list": [] + }, + "time": { + "from": "now-30m", + "to": "now" + }, + "title": "Lab6 — jobs and queue", + "uid": "lab6-jobs", + "version": 1 +} diff --git a/infra/grafana/provisioning/dashboards/dashboards.yaml b/infra/grafana/provisioning/dashboards/dashboards.yaml new file mode 100644 index 0000000..9701b2a --- /dev/null +++ b/infra/grafana/provisioning/dashboards/dashboards.yaml @@ -0,0 +1,10 @@ +apiVersion: 1 +providers: + - name: lab6 + orgId: 1 + folder: Lab6 + type: file + disableDeletion: false + updateIntervalSeconds: 10 + options: + path: /var/lib/grafana/dashboards diff --git a/infra/grafana/provisioning/datasources/datasources.yaml b/infra/grafana/provisioning/datasources/datasources.yaml new file mode 100644 index 0000000..724876d --- /dev/null +++ b/infra/grafana/provisioning/datasources/datasources.yaml @@ -0,0 +1,36 @@ +apiVersion: 1 +datasources: + - name: Prometheus + uid: prometheus + type: prometheus + access: proxy + url: http://prometheus:9090 + isDefault: true + editable: false + - name: Loki + uid: loki + type: loki + access: proxy + url: http://loki:3100 + editable: false + jsonData: + derivedFields: + - datasourceUid: tempo + matcherType: label + matcherRegex: trace_id + url: "$${__value.raw}" + urlDisplayLabel: Open trace + - name: Tempo + uid: tempo + type: tempo + access: proxy + url: http://tempo:3200 + editable: false + jsonData: + tracesToLogs: + datasourceUid: loki + tags: + - key: service.name + value: service_name + - key: trace_id + value: trace_id diff --git a/infra/lb/haproxy.cfg b/infra/lb/haproxy.cfg index 597f09d..a345c9a 100644 --- a/infra/lb/haproxy.cfg +++ b/infra/lb/haproxy.cfg @@ -18,7 +18,7 @@ global defaults mode http log global - option httplog + log-format "%ST %Tt %b" option dontlognull timeout connect 1s timeout client 70s @@ -70,7 +70,11 @@ frontend http_front frontend stats_front # Только для оператора и доказательств: видно, какие реплики UP/DOWN и почему. bind *:8404 + # Built-in Prometheus exporter (HAProxy built with USE_PROMEX). The edge SLI + # uses frontend response codes; health checks are not counted here. + http-request use-service prometheus-exporter if { path /metrics } stats enable stats uri /stats stats refresh 2s monitor-uri /healthz + no log diff --git a/infra/loki/loki.yaml b/infra/loki/loki.yaml new file mode 100644 index 0000000..bbbe9d2 --- /dev/null +++ b/infra/loki/loki.yaml @@ -0,0 +1,65 @@ +auth_enabled: false + +server: + http_listen_port: 3100 + grpc_listen_port: 9096 + +common: + path_prefix: /loki + storage: + filesystem: + chunks_directory: /loki/chunks + rules_directory: /loki/rules + replication_factor: 1 + ring: + kvstore: + store: inmemory + +schema_config: + configs: + - from: 2024-01-01 + store: tsdb + object_store: filesystem + schema: v13 + index: + prefix: index_ + period: 24h + +storage_config: + filesystem: + directory: /loki/storage + tsdb_shipper: + active_index_directory: /loki/tsdb-index + cache_location: /loki/tsdb-cache + +limits_config: + retention_period: 168h + allow_structured_metadata: true + max_line_size: 32KB + max_line_size_truncate: true + otlp_config: + resource_attributes: + ignore_defaults: true + attributes_config: + - action: index_label + attributes: + - service.name + - deployment.environment.name + - action: structured_metadata + attributes: + - service.instance.id + - service.version + log_attributes: + - action: structured_metadata + regex: .* + +compactor: + working_directory: /loki/compactor + retention_enabled: true + delete_request_store: filesystem + +ruler: + storage: + type: local + local: + directory: /loki/rules diff --git a/infra/otel/README.md b/infra/otel/README.md index c46fe89..c636429 100644 --- a/infra/otel/README.md +++ b/infra/otel/README.md @@ -1,7 +1,13 @@ -# Конфигурация наблюдаемости — реализовать +# OTel Collector -Добавьте `collector.yaml` с OTLP receivers, processors и exporters выбранной версии Collector. Укажите явные bind endpoints, внутренние сети, memory limits/batch и поведение при backpressure по уровню. Сопоставьте все три pipeline с реально развёрнутыми backend. +`collector.yaml` — единственный OTLP-приёмник стенда. API/worker/relay шлют +traces/metrics/logs по HTTP `:4318`; Collector экспортирует: +- метрики — pull-exporter Prometheus `:8889` (Prometheus scrape); +- логи — OTLP HTTP в Loki `/otlp`; +- трассы — OTLP gRPC в Tempo `:4317`. -Добавьте конфигурации storage, Grafana provisioning/datasources, provisioning/dashboards и импортируемые dashboard JSON. На 4 — alert rules и runbooks. Пустой dashboard или debug exporter, который только печатает данные в stdout, не заменяют хранилища/доказательства из `contracts/observability.md`. - -Не публикуйте OTLP/metrics/административные ports в общую сеть без необходимости. В lab7 реализуйте TLS/mTLS по trust matrix; экспорт Authorization и message bodies запрещён. +`memory_limiter` ограничивает 140 MiB, batch — 5 с/1024, очереди Loki/Tempo +ограничены 10 MiB (`sizer: bytes`) и retry не дольше 30 с. Self-metrics +Collector отдаются на `:8888` отдельным scrape-job. OTLP-порты не публикуются +на host; Collector подключён к `default` и `observability`, backend'ы — только +к `observability`. TLS/auth относятся к lab7. diff --git a/infra/otel/collector.yaml b/infra/otel/collector.yaml new file mode 100644 index 0000000..c670256 --- /dev/null +++ b/infra/otel/collector.yaml @@ -0,0 +1,86 @@ +receivers: + otlp: + protocols: + grpc: + endpoint: 0.0.0.0:4317 + http: + endpoint: 0.0.0.0:4318 + +processors: + memory_limiter: + check_interval: 1s + # limit_mib, not limit_percentage: Docker Desktop cgroup limits are easy to + # misread and a percentage would fall back to the VM total. + limit_mib: 140 + spike_limit_mib: 40 + batch: + timeout: 5s + send_batch_size: 1024 + +exporters: + # Pull-based: no sending_queue/retry for this exporter. + prometheus: + endpoint: 0.0.0.0:8889 + translation_strategy: UnderscoreEscapingWithSuffixes + resource_constant_labels: + included: + - service.name + - service.instance.id + - deployment.environment.name + - service.version + otlp_http/loki: + endpoint: http://loki:3100/otlp + sending_queue: + enabled: true + sizer: bytes + queue_size: 10485760 + num_consumers: 2 + retry_on_failure: + enabled: true + initial_interval: 1s + max_interval: 5s + max_elapsed_time: 30s + timeout: 5s + otlp_grpc/tempo: + endpoint: tempo:4317 + tls: + insecure: true + sending_queue: + enabled: true + sizer: bytes + queue_size: 10485760 + num_consumers: 2 + retry_on_failure: + enabled: true + initial_interval: 1s + max_interval: 5s + max_elapsed_time: 30s + timeout: 5s + +extensions: + health_check: + endpoint: 0.0.0.0:13133 + +service: + extensions: [health_check] + telemetry: + metrics: + readers: + - pull: + exporter: + prometheus: + host: 0.0.0.0 + port: 8888 + pipelines: + traces: + receivers: [otlp] + processors: [memory_limiter, batch] + exporters: [otlp_grpc/tempo] + metrics: + receivers: [otlp] + processors: [memory_limiter, batch] + exporters: [prometheus] + logs: + receivers: [otlp] + processors: [memory_limiter, batch] + exporters: [otlp_http/loki] diff --git a/infra/prometheus/prometheus.yml b/infra/prometheus/prometheus.yml new file mode 100644 index 0000000..d4c830c --- /dev/null +++ b/infra/prometheus/prometheus.yml @@ -0,0 +1,24 @@ +global: + scrape_interval: 5s + evaluation_interval: 5s + +rule_files: + - /etc/prometheus/rules/*.yml + +scrape_configs: + - job_name: otel-collector + static_configs: + - targets: ["otel-collector:8889"] + - job_name: otel-collector-self + static_configs: + - targets: ["otel-collector:8888"] + - job_name: haproxy + metrics_path: /metrics + static_configs: + - targets: ["lb:8404"] + - job_name: rabbitmq + static_configs: + - targets: ["broker:15692"] + - job_name: loki + static_configs: + - targets: ["loki:3100"] diff --git a/infra/prometheus/rules/alerts.yml b/infra/prometheus/rules/alerts.yml new file mode 100644 index 0000000..2d9a06e --- /dev/null +++ b/infra/prometheus/rules/alerts.yml @@ -0,0 +1,142 @@ +groups: + - name: lab6-alerts + interval: 5s + rules: + - alert: APIErrorBudgetFastBurn + expr: slo:api_error_ratio:1h > 0.072 and slo:api_error_ratio:5m > 0.072 and on() sum(increase(haproxy_frontend_http_responses_total{proxy="http_front"}[5m])) >= 20 + for: 0s + labels: + severity: page + slo: api-availability + annotations: + summary: API 5xx burn rate is above 14.4x + runbook: infra/runbooks/slo-burn.md + - alert: APIErrorBudgetSlowBurn + expr: slo:api_error_ratio:6h > 0.03 and slo:api_error_ratio:30m > 0.03 and on() sum(increase(haproxy_frontend_http_responses_total{proxy="http_front"}[30m])) >= 100 + for: 0s + labels: + severity: ticket + slo: api-availability + annotations: + summary: API 5xx burn rate is above 6x + runbook: infra/runbooks/slo-burn.md + - alert: TTRErrorBudgetFastBurn + expr: slo:ttr_bad_ratio:1h > 0.144 and slo:ttr_bad_ratio:5m > 0.144 and on() sum(increase(messenger_jobs_accepted_total[5m])) >= 2 + for: 0s + labels: + severity: page + slo: time-to-ready + annotations: + summary: Jobs are missing the 30s time-to-ready objective + runbook: infra/runbooks/queue-lag.md + - alert: TTRErrorBudgetSlowBurn + expr: slo:ttr_bad_ratio:6h > 0.06 and slo:ttr_bad_ratio:30m > 0.06 and on() sum(increase(messenger_jobs_accepted_total[30m])) >= 10 + for: 0s + labels: + severity: ticket + slo: time-to-ready + annotations: + summary: Time-to-ready budget is burning slowly + runbook: infra/runbooks/queue-lag.md + - alert: QueueOldestJobAgeHigh + expr: max(messenger_queue_oldest_job_age_seconds) > 120 + for: 10m + labels: + severity: warning + annotations: + summary: The oldest queued/processing job is older than 2 minutes + runbook: infra/runbooks/queue-lag.md + - alert: QueueOldestJobAgeCritical + expr: max(messenger_queue_oldest_job_age_seconds) > 600 + for: 5m + labels: + severity: page + annotations: + summary: The oldest queued/processing job is older than 10 minutes + runbook: infra/runbooks/queue-lag.md + - alert: QueueDepthGrowing + expr: | + max(rabbitmq_queue_messages_ready{queue="attachment.process.v1"}) > 20 + and on() max(deriv(rabbitmq_queue_messages_ready{queue="attachment.process.v1"}[10m])) > 0 + for: 10m + labels: + severity: warning + annotations: + summary: RabbitMQ ready depth is growing + runbook: infra/runbooks/queue-lag.md + - alert: JobsOverdue + expr: max(messenger_jobs_overdue) > 0 + for: 2m + labels: + severity: warning + slo: time-to-ready + annotations: + summary: Jobs have been queued/processing for more than 30 seconds + runbook: infra/runbooks/queue-lag.md + - alert: WorkerSaturated + expr: | + (sum(messenger_worker_busy) / clamp_min(sum(messenger_worker_capacity), 1) > 0.8) + and (max(messenger_queue_oldest_job_age_seconds) > 120) + for: 10m + labels: + severity: warning + annotations: + summary: Worker slots are saturated while the queue is aging + runbook: infra/runbooks/queue-lag.md + - alert: DBPoolSaturated + expr: | + (sum(rate(messenger_db_pool_empty_acquire_total[5m])) > 0) + or (sum(messenger_db_pool_used) / clamp_min(sum(messenger_db_pool_max), 1) > 0.8) + for: 5m + labels: + severity: warning + annotations: + summary: PostgreSQL pool is waiting or nearly exhausted + runbook: infra/runbooks/db-availability.md + - alert: CollectorDroppedTelemetry + expr: | + sum(rate(otelcol_exporter_send_failed_spans[5m])) > 0 + or sum(rate(otelcol_processor_refused_spans[5m])) > 0 + or sum(rate(otelcol_exporter_send_failed_log_records[5m])) > 0 + for: 5m + labels: + severity: warning + annotations: + summary: Collector is dropping or refusing telemetry + runbook: infra/runbooks/telemetry-backend-down.md + - alert: TelemetryStorageDown + expr: up{job="loki"} == 0 + for: 2m + labels: + severity: warning + component: telemetry + annotations: + summary: Loki or Tempo is unavailable; Collector queues are bounded + runbook: infra/runbooks/telemetry-backend-down.md + - alert: TelemetryCollectorDown + expr: up{job="otel-collector"} == 0 + for: 2m + labels: + severity: warning + component: telemetry + annotations: + summary: OTel Collector is unavailable; application keeps running + runbook: infra/runbooks/telemetry-backend-down.md + - alert: APISLIMissing + expr: absent(slo:api_error_ratio:5m) or up{job="haproxy"} == 0 + for: 2m + labels: + severity: page + annotations: + summary: Edge availability data is missing + runbook: infra/runbooks/api-errors.md + - alert: QueueMetricsStale + expr: | + (absent(messenger_queue_oldest_job_age_seconds) or absent(messenger_jobs_accepted_total)) + and on() (up{job="otel-collector"} == 1) + for: 2m + labels: + severity: warning + annotations: + summary: Queue/backlog metrics are missing + runbook: infra/runbooks/queue-lag.md diff --git a/infra/prometheus/rules/slo.yml b/infra/prometheus/rules/slo.yml new file mode 100644 index 0000000..226b6dd --- /dev/null +++ b/infra/prometheus/rules/slo.yml @@ -0,0 +1,68 @@ +groups: + - name: slo + interval: 5s + rules: + - record: slo:api_error_ratio:5m + expr: | + sum(rate(haproxy_frontend_http_responses_total{proxy="http_front",code=~"5.."}[5m])) + / + clamp_min(sum(rate(haproxy_frontend_http_responses_total{proxy="http_front"}[5m])), 0.001) + - record: slo:api_error_ratio:1h + expr: | + sum(rate(haproxy_frontend_http_responses_total{proxy="http_front",code=~"5.."}[1h])) + / + clamp_min(sum(rate(haproxy_frontend_http_responses_total{proxy="http_front"}[1h])), 0.001) + - record: slo:api_error_ratio:6h + expr: | + sum(rate(haproxy_frontend_http_responses_total{proxy="http_front",code=~"5.."}[6h])) + / + clamp_min(sum(rate(haproxy_frontend_http_responses_total{proxy="http_front"}[6h])), 0.001) + - record: slo:api_error_ratio:30m + expr: | + sum(rate(haproxy_frontend_http_responses_total{proxy="http_front",code=~"5.."}[30m])) + / + clamp_min(sum(rate(haproxy_frontend_http_responses_total{proxy="http_front"}[30m])), 0.001) + - record: slo:ttr_bad_ratio:5m + expr: | + clamp( + 1 - ( + sum(rate(messenger_jobs_ready_within_budget_total[5m])) + / + clamp_min(sum(rate(messenger_jobs_accepted_total[5m])), 0.001) + ), + 0, 1 + ) + and (sum(rate(messenger_jobs_accepted_total[5m])) > 0) + - record: slo:ttr_bad_ratio:1h + expr: | + clamp( + 1 - ( + sum(rate(messenger_jobs_ready_within_budget_total[1h])) + / + clamp_min(sum(rate(messenger_jobs_accepted_total[1h])), 0.001) + ), + 0, 1 + ) + and (sum(rate(messenger_jobs_accepted_total[1h])) > 0) + - record: slo:ttr_bad_ratio:6h + expr: | + clamp( + 1 - ( + sum(rate(messenger_jobs_ready_within_budget_total[6h])) + / + clamp_min(sum(rate(messenger_jobs_accepted_total[6h])), 0.001) + ), + 0, 1 + ) + and (sum(rate(messenger_jobs_accepted_total[6h])) > 0) + - record: slo:ttr_bad_ratio:30m + expr: | + clamp( + 1 - ( + sum(rate(messenger_jobs_ready_within_budget_total[30m])) + / + clamp_min(sum(rate(messenger_jobs_accepted_total[30m])), 0.001) + ), + 0, 1 + ) + and (sum(rate(messenger_jobs_accepted_total[30m])) > 0) diff --git a/infra/rabbitmq/rabbitmq.conf b/infra/rabbitmq/rabbitmq.conf new file mode 100644 index 0000000..72289d0 --- /dev/null +++ b/infra/rabbitmq/rabbitmq.conf @@ -0,0 +1,3 @@ +# Per-queue Prometheus series: the default exporter aggregates queues, but the +# lab dashboard and oldest/queue-depth alert need the queue label. +prometheus.return_per_object_metrics = true diff --git a/infra/runbooks/api-errors.md b/infra/runbooks/api-errors.md new file mode 100644 index 0000000..982b7a0 --- /dev/null +++ b/infra/runbooks/api-errors.md @@ -0,0 +1,8 @@ +# API error / availability SLI + +1. Grafana → Lab6 → API overview. Check `slo:api_error_ratio:5m` and the edge panel; 5xx at HAProxy is the SLI, API-side 5xx is diagnostic. +2. Prometheus → Status → Targets: `haproxy`, `otel-collector`, `rabbitmq` must be UP. If HAProxy is DOWN, no edge SLI exists; inspect `docker compose ps lb`. +3. HAProxy stats `http://127.0.0.1:8404/stats`: look for DOWN replicas and `check` errors. A stale `X-Instance-Id` is the stopped replica. +4. If all replicas are DOWN, check `/health/ready` of one replica (5xx means DB/S3 dependency) and PostgreSQL logs. +5. For a slow handler, open a Tempo trace from the error panel; DB child span (`SELECT`/`INSERT`/`UPDATE`/`BEGIN`/`COMMIT`) duration vs HTTP span shows whether PostgreSQL or the handler is slow. Correlate `trace_id` in Loki. +6. Recover DB/S3, wait for HAProxy `rise 2`, then verify a 2xx through the LB and resolved alert. diff --git a/infra/runbooks/db-availability.md b/infra/runbooks/db-availability.md new file mode 100644 index 0000000..69f7edf --- /dev/null +++ b/infra/runbooks/db-availability.md @@ -0,0 +1,8 @@ +# PostgreSQL slow/unavailable + +1. Edge SLI first: HAProxy may return 503/504 while API replicas are removed by `/health/ready`; API-side 5xx can therefore be near zero. Use the HAProxy panel and `up{job="haproxy"}`. +2. `docker compose ps postgres`; `docker compose logs --tail=100 postgres`; `pg_isready` from a replica. +3. Prometheus: `messenger_db_pool_used/idle/max`, `messenger_db_pool_empty_acquire_total`, `rate(...wait_seconds)`; API/worker DB spans in Tempo (`SELECT`/`INSERT`/`UPDATE`/`BEGIN`/`COMMIT`, `pool.acquire`) show failures/latency. +4. Loki: `{service_name=~"messenger-api|messenger-worker"} | severity_text="error" | trace_id=""`. A handler span with a long DB child span is a DB problem; a long handler without a DB child is an application problem. +5. If PostgreSQL was stopped, start it, wait for health, then let the pool reconnect. Worker deliveries are requeued; verify no accepted job is lost (jobs accepted/ready/failed counts). +6. Confirm the alert resolved; record injection/restore and first successful request timestamps. diff --git a/infra/runbooks/queue-lag.md b/infra/runbooks/queue-lag.md new file mode 100644 index 0000000..bb08eac --- /dev/null +++ b/infra/runbooks/queue-lag.md @@ -0,0 +1,8 @@ +# Queue lag / time-to-ready + +1. Grafana → Lab6 → Jobs and queue: `messenger_queue_oldest_job_age_seconds`, `rabbitmq_queue_messages_ready`, `messenger_worker_busy/capacity`, TTR p95. +2. If oldest age grows and `worker_busy == capacity`, the worker is saturated: inspect `worker` logs (`job claimed`, `job retry scheduled`) and `WORKER_CONCURRENCY`. +3. If queue depth grows but `worker_busy == 0`, the worker is stopped or cannot connect to the broker: `docker compose ps worker`, worker `/health/ready`, broker `rabbitmqctl list_queues`. +4. If retries grow, filter Loki `{service_name="messenger-worker"} | severity_text="error"` and trace `job.process` attempts; check `error_code`. +5. For a lost delivery, relay logs `outbox publish cycle` / `lost queued jobs reconciled` and `jobctl failed`. +6. Restore worker/broker, verify queue depth < 5 and oldest age < 5s for two scrapes, then confirm the alert resolved. diff --git a/infra/runbooks/slo-burn.md b/infra/runbooks/slo-burn.md new file mode 100644 index 0000000..64f0356 --- /dev/null +++ b/infra/runbooks/slo-burn.md @@ -0,0 +1,15 @@ +# SLO burn-rate + +1. Open Grafana → Lab6 → API overview and Jobs and queue. +2. Check `slo:api_error_ratio:1h` + `5m` for fast burn, `6h` + `30m` + for slow burn; TTR uses `slo:ttr_bad_ratio:*`. +3. Fast page means the current hour is consuming the 7-day error budget at + ≥14.4×. Confirm edge traffic in HAProxy (`proxy="http_front"`), then inspect + API traces for 5xx and DB spans (`SELECT`/`INSERT`/`UPDATE`/`BEGIN`/`COMMIT`) + or missing worker `job.process` spans. +4. Slow ticket means a sustained 6-hour burn. It can fire with a low current + rate; do not suppress it until the 30m window is below 3% (API) or 6% (TTR). +5. Resolve only after the SLO ratio stays below the fast/slow thresholds and + the underlying dependency (worker, PostgreSQL, broker) is healthy. +6. Record injection/restore UTC and the first firing/resolved timestamps in + `evidence/lab6/track2/`. diff --git a/infra/runbooks/telemetry-backend-down.md b/infra/runbooks/telemetry-backend-down.md new file mode 100644 index 0000000..dfd2f9b --- /dev/null +++ b/infra/runbooks/telemetry-backend-down.md @@ -0,0 +1,8 @@ +# Telemetry backend down + +1. This is an observability incident, not a business outage. First verify API: `curl -fsS http://127.0.0.1:8080/health/ready` and a smoke request. +2. `docker compose ps otel-collector prometheus loki tempo grafana`. +3. If Tempo/Loki is down, Collector exporter queues fill; inspect `otelcol_exporter_queue_size`, `otelcol_exporter_send_failed_*`, `otelcol_processor_refused_*`. Queues are bounded by `sizer: bytes`; the Collector does not grow without limit. +4. If the Collector is down, Prometheus `up{job="otel-collector"}=0`; the application continues to accept work. Application OTLP export failures are best-effort and do not affect `/health/ready`. +5. Restart the failed backend/collector; confirm `up`, queue drains, and no new refused records. Lost telemetry is bounded and documented; business data in PostgreSQL/S3 is unaffected. +6. Do not stop Prometheus while diagnosing another alert: without Prometheus there is no rule evaluation. Use HAProxy stats and container logs as fallback. diff --git a/infra/tempo/tempo.yaml b/infra/tempo/tempo.yaml new file mode 100644 index 0000000..71301d3 --- /dev/null +++ b/infra/tempo/tempo.yaml @@ -0,0 +1,27 @@ +server: + http_listen_port: 3200 + grpc_listen_port: 9095 + +distributor: + receivers: + otlp: + protocols: + grpc: + endpoint: 0.0.0.0:4317 + http: + endpoint: 0.0.0.0:4318 + +storage: + trace: + backend: local + local: + path: /var/tempo/traces + wal: + path: /var/tempo/wal + +compactor: + compaction: + block_retention: 72h + +usage_report: + reporting_enabled: false diff --git a/internal/domain/job.go b/internal/domain/job.go index 9ec6c65..7dd18b5 100644 --- a/internal/domain/job.go +++ b/internal/domain/job.go @@ -4,6 +4,7 @@ import ( "encoding/json" "errors" "fmt" + "regexp" "time" "github.com/google/uuid" @@ -120,9 +121,18 @@ func (m JobMessage) Validate() error { return errors.New("created_at is required") } + if m.Traceparent != "" && !traceparentPattern.MatchString(m.Traceparent) { + return errors.New("traceparent does not match W3C format") + } + if len(m.Tracestate) > 512 { + return errors.New("tracestate is too long") + } + return nil } +var traceparentPattern = regexp.MustCompile(`^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$`) + func (m JobMessage) MarshalPayload() ([]byte, error) { return json.Marshal(m) } diff --git a/internal/outbox/relay.go b/internal/outbox/relay.go index 4df7423..2b72b0a 100644 --- a/internal/outbox/relay.go +++ b/internal/outbox/relay.go @@ -4,11 +4,15 @@ package outbox import ( "context" + "errors" "log/slog" "time" + "go.opentelemetry.io/otel/codes" + "mtusi-messenger/internal/domain" "mtusi-messenger/internal/failpoint" + "mtusi-messenger/internal/telemetry" ) type Repository interface { @@ -17,7 +21,9 @@ type Repository interface { ReleaseOutbox(ctx context.Context, id int64, reason string) error ReapOutboxClaims(ctx context.Context) error ReapExpiredLeases(ctx context.Context, limit int) (int, error) - ReconcileQueuedJobs(ctx context.Context, olderThan time.Duration, limit int) (int, error) + ReconcileQueuedJobs(ctx context.Context, olderThan time.Duration, limit int, traceparent, tracestate string) (int, error) + OldestActiveJobAge(ctx context.Context) (float64, error) + CountOverdueJobs(ctx context.Context, olderThan time.Duration) (int64, error) PruneOutbox(ctx context.Context, retention time.Duration) error OldestUnpublished(ctx context.Context) (time.Time, error) } @@ -103,7 +109,15 @@ func (r *Relay) RunOnce(ctx context.Context) (int, error) { failpoint.Check("OUTBOX_AFTER_COMMIT", job.JobID) - if err := r.publisher.PublishConfirmed(ctx, message.RoutingKey, job); err != nil { + publishCtx, span := telemetry.StartPublishSpan(ctx, job) + job.Traceparent, job.Tracestate = telemetry.Inject(publishCtx) + err = r.publisher.PublishConfirmed(publishCtx, message.RoutingKey, job) + if err != nil { + span.RecordError(errors.New(telemetry.Redact(err.Error()))) + span.SetStatus(codes.Error, telemetry.Redact(err.Error())) + } + span.End() + if err != nil { _ = r.repo.ReleaseOutbox(ctx, message.ID, err.Error()) continue @@ -121,6 +135,9 @@ func (r *Relay) RunOnce(ctx context.Context) (int, error) { } func (r *Relay) reap(ctx context.Context) { + ctx, span := telemetry.StartRequeueSpan(ctx, "requeue") + defer span.End() + if err := r.repo.ReapOutboxClaims(ctx); err != nil { r.log.WarnContext(ctx, "outbox claim reaper failed", slog.Any("error", err)) } @@ -135,7 +152,8 @@ func (r *Relay) reap(ctx context.Context) { // The broker is not the source of truth. If a delivery was dead-lettered // or lost, the queued job has no unpublished outbox row; republish it. if r.config.ReconcileAfter > 0 { - reconciled, err := r.repo.ReconcileQueuedJobs(ctx, r.config.ReconcileAfter, 100) + traceparent, tracestate := telemetry.Inject(ctx) + reconciled, err := r.repo.ReconcileQueuedJobs(ctx, r.config.ReconcileAfter, 100, traceparent, tracestate) if err != nil { r.log.WarnContext(ctx, "queued-job reconciliation failed", slog.Any("error", err)) } else if reconciled > 0 { diff --git a/internal/platform/instanceid/instanceid.go b/internal/platform/instanceid/instanceid.go new file mode 100644 index 0000000..679398e --- /dev/null +++ b/internal/platform/instanceid/instanceid.go @@ -0,0 +1,18 @@ +// Package instanceid returns the stable identifier this process reports in +// X-Instance-Id and in the telemetry resource. INSTANCE_ID wins; otherwise the +// container hostname (short container id) is used. +package instanceid + +import "os" + +func FromEnvOrHostname() string { + if id := os.Getenv("INSTANCE_ID"); id != "" { + return id + } + + if host, err := os.Hostname(); err == nil && host != "" { + return host + } + + return "unknown" +} diff --git a/internal/service/attachment/service.go b/internal/service/attachment/service.go index a4d39b4..50e8290 100644 --- a/internal/service/attachment/service.go +++ b/internal/service/attachment/service.go @@ -22,6 +22,7 @@ import ( "mtusi-messenger/internal/domain" "mtusi-messenger/internal/imagecheck" "mtusi-messenger/internal/platform/objectstore" + "mtusi-messenger/internal/telemetry" ) const ( @@ -239,6 +240,7 @@ func (s *Service) Upload(ctx context.Context, input UploadInput) (domain.Attachm } created.Variants = []domain.Variant{} + telemetry.RecordJobAccepted(ctx, created.PipelineVersion) return created, nil } @@ -562,6 +564,7 @@ func (s *Service) Complete( } queued.Variants = []domain.Variant{} + telemetry.RecordJobAccepted(ctx, queued.PipelineVersion) return queued, nil } diff --git a/internal/service/attachment/sweeper.go b/internal/service/attachment/sweeper.go index 5526df0..c6bd879 100644 --- a/internal/service/attachment/sweeper.go +++ b/internal/service/attachment/sweeper.go @@ -228,7 +228,6 @@ func (s *Sweeper) deleteObject(ctx context.Context, key string) bool { if !errors.Is(err, domain.ErrNotFound) { s.log.WarnContext(ctx, "sweep delete failed", - slog.String("object_key", key), slog.Any("error", err), ) } diff --git a/internal/storage/postgres/pipeline_repository.go b/internal/storage/postgres/pipeline_repository.go index 98da895..ebcd900 100644 --- a/internal/storage/postgres/pipeline_repository.go +++ b/internal/storage/postgres/pipeline_repository.go @@ -11,6 +11,7 @@ import ( "github.com/jackc/pgx/v5/pgtype" "mtusi-messenger/internal/domain" + "mtusi-messenger/internal/telemetry" ) // PipelineRepository owns the durable job/outbox/variant state. Queries that @@ -357,13 +358,15 @@ func insertOutboxTx( kind string, availableAt time.Time, ) error { - payload, err := domain.NewJobMessage(domain.Job{ + message := domain.NewJobMessage(domain.Job{ ID: job.ID, AttachmentID: job.AttachmentID, PipelineVersion: job.PipelineVersion, Attempt: attempt, CreatedAt: job.CreatedAt, - }).MarshalPayload() + }) + message.Traceparent, message.Tracestate = telemetry.Inject(ctx) + payload, err := message.MarshalPayload() if err != nil { return fmt.Errorf("marshal job message: %w", err) } @@ -1158,6 +1161,37 @@ func (r *PipelineRepository) ReapExpiredLeases( return reaped, nil } +// CountOverdueJobs returns queued/processing jobs older than the TTR objective. +func (r *PipelineRepository) CountOverdueJobs(ctx context.Context, olderThan time.Duration) (int64, error) { + ctx, cancel := r.store.timeout(ctx) + defer cancel() + + var count int64 + if err := r.store.pool.QueryRow(ctx, ` + SELECT count(*) FROM attachment_jobs + WHERE status IN ('queued', 'processing') + AND created_at < now() - $1::interval`, intervalString(olderThan)).Scan(&count); err != nil { + return 0, fmt.Errorf("count overdue jobs: %w", mapError(err)) + } + return count, nil +} + +// OldestActiveJobAge returns the age of the oldest queued/processing job. +// It is intentionally a small read-only query with the standard query timeout. +func (r *PipelineRepository) OldestActiveJobAge(ctx context.Context) (float64, error) { + ctx, cancel := r.store.timeout(ctx) + defer cancel() + + var seconds float64 + if err := r.store.pool.QueryRow(ctx, ` + SELECT COALESCE(EXTRACT(EPOCH FROM (now() - min(created_at))), 0) + FROM attachment_jobs + WHERE status IN ('queued', 'processing')`).Scan(&seconds); err != nil { + return 0, fmt.Errorf("oldest active job age: %w", mapError(err)) + } + return seconds, nil +} + func (r *PipelineRepository) ClaimOutbox( ctx context.Context, owner string, @@ -2022,6 +2056,7 @@ func (r *PipelineRepository) ReconcileQueuedJobs( ctx context.Context, olderThan time.Duration, limit int, + traceparent, tracestate string, ) (int, error) { ctx, cancel := r.store.timeout(ctx) defer cancel() @@ -2031,7 +2066,7 @@ func (r *PipelineRepository) ReconcileQueuedJobs( SELECT j.job_id, j.attachment_id, j.pipeline_version, j.attempt, j.created_at FROM attachment_jobs j WHERE j.status = 'queued' - AND j.available_at < now() - $1::interval + AND j.available_at <= now() - $1::interval AND NOT EXISTS ( SELECT 1 FROM outbox_messages o WHERE o.job_id = j.job_id AND o.published_at IS NULL @@ -2049,10 +2084,15 @@ func (r *PipelineRepository) ReconcileQueuedJobs( 'attachment_id', attachment_id, 'pipeline_version', pipeline_version, 'attempt', attempt, - 'created_at', created_at), + 'created_at', created_at) + || CASE + WHEN $4::text = '' THEN '{}'::jsonb + WHEN COALESCE($5::text, '') = '' THEN jsonb_build_object('traceparent', $4::text) + ELSE jsonb_build_object('traceparent', $4::text, 'tracestate', $5::text) + END, now() FROM lost`, - intervalString(olderThan), limit, defaultRoutingKey) + intervalString(olderThan), limit, defaultRoutingKey, traceparent, tracestate) if err != nil { return 0, fmt.Errorf("reconcile queued jobs: %w", mapError(err)) } diff --git a/internal/storage/postgres/pipeline_repository_test.go b/internal/storage/postgres/pipeline_repository_test.go index 59994d9..10e2954 100644 --- a/internal/storage/postgres/pipeline_repository_test.go +++ b/internal/storage/postgres/pipeline_repository_test.go @@ -518,7 +518,7 @@ func (s *PipelineSuite) TestReconcileQueuedJobsRepublishesLostIntent() { s.Require().Len(claimed, 1) s.Require().NoError(repo.MarkPublished(s.T().Context(), []int64{claimed[0].ID})) - reconciled, err := repo.ReconcileQueuedJobs(s.T().Context(), 0, 10) + reconciled, err := repo.ReconcileQueuedJobs(s.T().Context(), 0, 10, "", "") s.Require().NoError(err) s.Equal(1, reconciled) diff --git a/internal/storage/postgres/session_repository.go b/internal/storage/postgres/session_repository.go index e695b6a..1a20cea 100644 --- a/internal/storage/postgres/session_repository.go +++ b/internal/storage/postgres/session_repository.go @@ -23,7 +23,7 @@ func (r *SessionRepository) Credentials(ctx context.Context, username string) (d row, err := r.store.queries.GetUserByUsername(ctx, username) if err != nil { if errors.Is(err, pgx.ErrNoRows) { - return domain.UserCredentials{}, fmt.Errorf("%w: username %q", domain.ErrUnauthenticated, username) + return domain.UserCredentials{}, fmt.Errorf("%w", domain.ErrUnauthenticated) } return domain.UserCredentials{}, fmt.Errorf("load credentials: %w", mapError(err)) diff --git a/internal/storage/postgres/store.go b/internal/storage/postgres/store.go index 0229083..1c2d23c 100644 --- a/internal/storage/postgres/store.go +++ b/internal/storage/postgres/store.go @@ -5,6 +5,7 @@ import ( "fmt" "time" + "github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5/pgxpool" "mtusi-messenger/internal/config" @@ -24,7 +25,25 @@ type Store struct { pipeline *PipelineRepository } -func New(ctx context.Context, cfg config.Postgres, idempotencyTTL time.Duration) (*Store, error) { +type options struct { + queryTracer pgx.QueryTracer +} + +// Option customizes the PostgreSQL store without leaking telemetry into the +// storage package's public API. +type Option func(*options) + +// WithQueryTracer installs a pgx tracer (nil means no tracing). +func WithQueryTracer(tracer pgx.QueryTracer) Option { + return func(o *options) { o.queryTracer = tracer } +} + +func New(ctx context.Context, cfg config.Postgres, idempotencyTTL time.Duration, opts ...Option) (*Store, error) { + options := options{} + for _, opt := range opts { + opt(&options) + } + cfg, err := normalize(cfg) if err != nil { return nil, fmt.Errorf("normalize database config: %w", err) @@ -40,6 +59,9 @@ func New(ctx context.Context, cfg config.Postgres, idempotencyTTL time.Duration) poolCfg.MaxConnLifetime = cfg.MaxConnLifetime poolCfg.MaxConnIdleTime = cfg.MaxConnIdleTime poolCfg.ConnConfig.ConnectTimeout = cfg.ConnectTimeout + if options.queryTracer != nil { + poolCfg.ConnConfig.Tracer = options.queryTracer + } pool, err := pgxpool.NewWithConfig(ctx, poolCfg) if err != nil { @@ -82,13 +104,19 @@ func (s *Store) Sessions() *SessionRepository { return s.sessions } func (s *Store) Pipeline() *PipelineRepository { return s.pipeline } func (s *Store) Ping(ctx context.Context) error { - if err := s.pool.Ping(ctx); err != nil { + pingCtx, cancel := context.WithTimeout(ctx, 2*time.Second) + defer cancel() + + if err := s.pool.Ping(pingCtx); err != nil { return fmt.Errorf("ping database: %w", err) } return nil } +// PoolStats exposes a point-in-time pgxpool snapshot for telemetry callbacks. +func (s *Store) PoolStats() *pgxpool.Stat { return s.pool.Stat() } + func (s *Store) Close() { s.pool.Close() } // sweepLockKey is a process-independent constant: every replica contends for the diff --git a/internal/telemetry/db.go b/internal/telemetry/db.go new file mode 100644 index 0000000..4cff941 --- /dev/null +++ b/internal/telemetry/db.go @@ -0,0 +1,40 @@ +package telemetry + +import ( + "context" + + "github.com/exaring/otelpgx" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgxpool" + "go.opentelemetry.io/otel" + "go.opentelemetry.io/otel/metric" +) + +// NewPGXTracer returns a pgx tracer that records database spans without SQL +// text or connection details (those can contain identifiers and DSNs). +func NewPGXTracer() pgx.QueryTracer { + return otelpgx.NewTracer( + otelpgx.WithTracerProvider(otel.GetTracerProvider()), + otelpgx.WithDisableSQLStatementInAttributes(), + otelpgx.WithDisableConnectionDetailsInAttributes(), + ) +} + +// RegisterDBPool exposes pgxpool gauges. pgxpool has no current "waiting" +// counter; EmptyAcquireCount/WaitTime are the observable contention signal. +func RegisterDBPool(stats func() *pgxpool.Stat) error { + initMetrics() + _, err := otel.Meter("messenger").RegisterCallback(func(_ context.Context, o metric.Observer) error { + s := stats() + if s == nil { + return nil + } + o.ObserveInt64(dbUsed, int64(s.AcquiredConns())) + o.ObserveInt64(dbIdle, int64(s.IdleConns())) + o.ObserveInt64(dbMax, int64(s.MaxConns())) + o.ObserveInt64(dbEmptyAcquire, s.EmptyAcquireCount()) + o.ObserveFloat64(dbEmptyWait, s.EmptyAcquireWaitTime().Seconds()) + return nil + }, dbUsed, dbIdle, dbMax, dbEmptyAcquire, dbEmptyWait) + return err +} diff --git a/internal/telemetry/job.go b/internal/telemetry/job.go new file mode 100644 index 0000000..abb04a4 --- /dev/null +++ b/internal/telemetry/job.go @@ -0,0 +1,86 @@ +package telemetry + +import ( + "context" + "regexp" + + "go.opentelemetry.io/otel" + "go.opentelemetry.io/otel/attribute" + "go.opentelemetry.io/otel/propagation" + "go.opentelemetry.io/otel/trace" + + "mtusi-messenger/internal/domain" +) + +var traceparentPattern = regexp.MustCompile(`^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$`) + +// ValidTraceparent reports whether a broker-carried traceparent matches the +// closed schema before it is trusted as a parent context. +func ValidTraceparent(value string) bool { + return value == "" || (len(value) <= 512 && traceparentPattern.MatchString(value)) +} + +// Inject serializes the current span context for a durable outbox payload. +func Inject(ctx context.Context) (traceparent, tracestate string) { + carrier := propagation.MapCarrier{} + otel.GetTextMapPropagator().Inject(ctx, carrier) + tracestate = carrier["tracestate"] + if len(tracestate) > 512 { + tracestate = "" + } + return carrier["traceparent"], tracestate +} + +// Extract restores a parent context from a broker payload. Invalid values are +// ignored; the caller still gets a usable context. +func Extract(ctx context.Context, traceparent, tracestate string) context.Context { + if !ValidTraceparent(traceparent) || len(tracestate) > 512 { + return ctx + } + carrier := propagation.MapCarrier{"traceparent": traceparent} + if tracestate != "" { + carrier["tracestate"] = tracestate + } + return otel.GetTextMapPropagator().Extract(ctx, carrier) +} + +// StartPublishSpan starts the producer span for an outbox publication. The +// returned context carries the span that must be injected into the message. +func StartPublishSpan(ctx context.Context, message domain.JobMessage) (context.Context, trace.Span) { + parent := Extract(ctx, message.Traceparent, message.Tracestate) + return otel.Tracer("messenger/queue").Start(parent, "job.publish", + trace.WithSpanKind(trace.SpanKindProducer), + trace.WithAttributes( + attribute.String("messaging.system", "rabbitmq"), + attribute.String("messaging.operation", "publish"), + attribute.String("messaging.destination.name", message.Type), + attribute.String("job.id", message.JobID.String()), + attribute.String("job.type", message.Type), + attribute.Int("job.attempt", message.Attempt), + ), + ) +} + +// StartConsumerSpan starts the worker span as a child of the publish span. +func StartConsumerSpan(ctx context.Context, message domain.JobMessage) (context.Context, trace.Span) { + parent := Extract(ctx, message.Traceparent, message.Tracestate) + return otel.Tracer("messenger/worker").Start(parent, "job.process", + trace.WithSpanKind(trace.SpanKindConsumer), + trace.WithAttributes( + attribute.String("messaging.system", "rabbitmq"), + attribute.String("messaging.operation", "process"), + attribute.String("messaging.destination.name", message.Type), + attribute.String("job.id", message.JobID.String()), + attribute.String("job.type", message.Type), + attribute.Int("job.attempt", message.Attempt), + attribute.Int("pipeline.version", message.PipelineVersion), + ), + ) +} + +// StartRequeueSpan covers the relay's lease reaper / reconciliation path. +func StartRequeueSpan(ctx context.Context, operation string) (context.Context, trace.Span) { + return otel.Tracer("messenger/relay").Start(ctx, "job."+operation, + trace.WithAttributes(attribute.String("job.operation", operation)), + ) +} diff --git a/internal/telemetry/log.go b/internal/telemetry/log.go new file mode 100644 index 0000000..a92768f --- /dev/null +++ b/internal/telemetry/log.go @@ -0,0 +1,211 @@ +package telemetry + +import ( + "context" + "log/slog" + "regexp" + + "go.opentelemetry.io/contrib/bridges/otelslog" + "go.opentelemetry.io/otel/trace" + + "mtusi-messenger/internal/platform/instanceid" +) + +var ( + allowKeys = map[string]struct{}{ + "event": {}, "operation": {}, "route": {}, "method": {}, "status": {}, + "status_class": {}, "duration": {}, "error_code": {}, "job_type": {}, + "outcome": {}, "attempt": {}, "pipeline_version": {}, "queue": {}, + "count": {}, "bytes": {}, "size": {}, "job_id": {}, + "service.name": {}, "service.instance.id": {}, + "deployment.environment.name": {}, "trace_id": {}, "span_id": {}, + "request_id": {}, "error": {}, + } + requestIDPattern = regexp.MustCompile(`^[A-Za-z0-9._:-]{1,64}$`) + redactPatterns = []*regexp.Regexp{ + regexp.MustCompile(`(?i)(X-Amz-(?:Signature|Credential|Security-Token)=)[^&\s"]+`), + regexp.MustCompile(`(?i)(password|passwd|secret|token|authorization)=([^&\s"]+)`), + regexp.MustCompile(`://[^/\s:@]+:[^@\s]+@`), + regexp.MustCompile(`(?i)\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b`), + regexp.MustCompile(`\b(?:attachments|staging|variants)/[^\s"']+`), + } +) + +// WrapLogger returns a logger that writes sanitized JSON to stdout and, when +// configured, also emits OTLP log records. The sanitizer is the boundary that +// prevents raw paths, filenames, user ids and credentials from reaching any +// telemetry backend. +func WrapLogger(base *slog.Logger, serviceName string, minLevel slog.Level) *slog.Logger { + if base == nil { + base = slog.Default() + } + + var otelHandler slog.Handler + if provider := GlobalLoggerProvider(); provider != nil { + otelHandler = otelslog.NewHandler("messenger", otelslog.WithLoggerProvider(provider)) + } + + return slog.New(&sanitizeHandler{ + inner: &fanoutHandler{handlers: []slog.Handler{base.Handler(), otelHandler}}, + service: serviceName, + instance: instanceid.FromEnvOrHostname(), + minLevel: minLevel, + }) +} + +type fanoutHandler struct { + handlers []slog.Handler +} + +func (h *fanoutHandler) Enabled(ctx context.Context, level slog.Level) bool { + for _, handler := range h.handlers { + if handler != nil && handler.Enabled(ctx, level) { + return true + } + } + return false +} + +func (h *fanoutHandler) Handle(ctx context.Context, record slog.Record) error { + for _, handler := range h.handlers { + if handler == nil { + continue + } + if err := handler.Handle(ctx, record.Clone()); err != nil { + return err + } + } + return nil +} + +func (h *fanoutHandler) WithAttrs(attrs []slog.Attr) slog.Handler { + next := &fanoutHandler{handlers: make([]slog.Handler, 0, len(h.handlers))} + for _, handler := range h.handlers { + if handler == nil { + next.handlers = append(next.handlers, nil) + continue + } + next.handlers = append(next.handlers, handler.WithAttrs(attrs)) + } + return next +} + +func (h *fanoutHandler) WithGroup(name string) slog.Handler { + next := &fanoutHandler{handlers: make([]slog.Handler, 0, len(h.handlers))} + for _, handler := range h.handlers { + if handler == nil { + next.handlers = append(next.handlers, nil) + continue + } + next.handlers = append(next.handlers, handler.WithGroup(name)) + } + return next +} + +type sanitizeHandler struct { + inner slog.Handler + service string + instance string + minLevel slog.Level +} + +func (h *sanitizeHandler) Enabled(ctx context.Context, level slog.Level) bool { + return level >= h.minLevel && h.inner.Enabled(ctx, level) +} + +func (h *sanitizeHandler) Handle(ctx context.Context, record slog.Record) error { + sanitized := slog.NewRecord(record.Time, record.Level, sanitizeText(record.Message), record.PC) + + seenEvent := false + record.Attrs(func(attr slog.Attr) bool { + if attr.Key == "event" { + seenEvent = true + } + if clean, ok := sanitizeAttr(attr); ok { + sanitized.AddAttrs(clean) + } + return true + }) + + if !seenEvent { + event := sanitizeText(record.Message) + if event == "" { + event = "log" + } + sanitized.AddAttrs(slog.String("event", event)) + } + if h.service != "" { + sanitized.AddAttrs(slog.String("service.name", h.service)) + } + if h.instance != "" { + sanitized.AddAttrs(slog.String("service.instance.id", h.instance)) + } + if spanContext := trace.SpanContextFromContext(ctx); spanContext.IsValid() { + sanitized.AddAttrs( + slog.String("trace_id", spanContext.TraceID().String()), + slog.String("span_id", spanContext.SpanID().String()), + ) + } + + return h.inner.Handle(ctx, sanitized) +} + +func (h *sanitizeHandler) WithAttrs(attrs []slog.Attr) slog.Handler { + clean := make([]slog.Attr, 0, len(attrs)) + for _, attr := range attrs { + if value, ok := sanitizeAttr(attr); ok { + clean = append(clean, value) + } + } + return &sanitizeHandler{inner: h.inner.WithAttrs(clean), service: h.service, instance: h.instance, minLevel: h.minLevel} +} + +func (h *sanitizeHandler) WithGroup(name string) slog.Handler { + return &sanitizeHandler{inner: h.inner.WithGroup(name), service: h.service, instance: h.instance, minLevel: h.minLevel} +} + +func sanitizeAttr(attr slog.Attr) (slog.Attr, bool) { + if _, ok := allowKeys[attr.Key]; !ok { + return slog.Attr{}, false + } + + value := attr.Value.Resolve() + switch attr.Key { + case "error": + return slog.String("error", Redact(value.String())), true + case "request_id": + id := value.String() + if !requestIDPattern.MatchString(id) { + id = "invalid" + } + return slog.String("request_id", id), true + } + + if value.Kind() == slog.KindGroup { + return slog.Attr{}, false + } + if value.Kind() == slog.KindString { + return slog.String(attr.Key, sanitizeText(value.String())), true + } + return slog.Attr{Key: attr.Key, Value: value}, true +} + +func sanitizeText(value string) string { + return truncate(Redact(value), 1024) +} + +// Redact removes credentials, signed-URL parameters, UUIDs and object keys from +// free-form error text before it reaches stdout, logs or trace exception events. +func Redact(value string) string { + for _, pattern := range redactPatterns { + value = pattern.ReplaceAllString(value, "$1***") + } + return truncate(value, 1024) +} + +func truncate(value string, limit int) string { + if len(value) <= limit { + return value + } + return value[:limit] + "..." +} diff --git a/internal/telemetry/log_test.go b/internal/telemetry/log_test.go new file mode 100644 index 0000000..2c65f96 --- /dev/null +++ b/internal/telemetry/log_test.go @@ -0,0 +1,117 @@ +package telemetry + +import ( + "context" + "log/slog" + "strings" + "testing" + "time" + + "go.opentelemetry.io/otel" + "go.opentelemetry.io/otel/propagation" + "go.opentelemetry.io/otel/trace" +) + +type captureHandler struct { + attrs []slog.Attr +} + +func (h *captureHandler) Enabled(context.Context, slog.Level) bool { return true } +func (h *captureHandler) Handle(_ context.Context, record slog.Record) error { + record.Attrs(func(attr slog.Attr) bool { + h.attrs = append(h.attrs, attr) + return true + }) + return nil +} + +func (h *captureHandler) WithAttrs(attrs []slog.Attr) slog.Handler { + return &captureHandler{attrs: append(h.attrs, attrs...)} +} +func (h *captureHandler) WithGroup(string) slog.Handler { return h } + +func TestSanitizerDropsIdentifiersAndRedactsErrors(t *testing.T) { + capture := &captureHandler{} + handler := &sanitizeHandler{inner: capture, service: "messenger-api", instance: "instance-1", minLevel: slog.LevelDebug} + record := slog.NewRecord(time.Now(), slog.LevelInfo, "request handled", 0) + record.AddAttrs( + slog.String("event", "http.request.completed"), + slog.String("path", "/api/v1/chats/33333333-3333-4333-8333-333333333333/messages"), + slog.String("query", "filename=secret.png"), + slog.String("user_id", "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa"), + slog.String("object_key", "attachments/chat/attachment/original"), + slog.String("error", `parse "postgres://user:pass@db:5432/x": X-Amz-Signature=abc attachments/33333333-3333-4333-8333-333333333333/44444444-4444-4444-8444-444444444444/original`), + slog.String("request_id", "bad request id with spaces"), + ) + if err := handler.Handle(context.Background(), record); err != nil { + t.Fatal(err) + } + + seen := map[string]string{} + for _, attr := range capture.attrs { + seen[attr.Key] = attr.Value.String() + } + for _, forbidden := range []string{"path", "query", "user_id", "object_key"} { + if _, ok := seen[forbidden]; ok { + t.Fatalf("forbidden attribute %q was exported", forbidden) + } + } + if strings.Contains(seen["error"], "pass") || strings.Contains(seen["error"], "abc") { + t.Fatalf("error was not redacted: %q", seen["error"]) + } + if strings.Contains(seen["error"], "33333333") || strings.Contains(seen["error"], "attachments/") { + t.Fatalf("object key/uuid was not redacted: %q", seen["error"]) + } + if seen["request_id"] != "invalid" { + t.Fatalf("request_id was not normalized: %q", seen["request_id"]) + } + if seen["service.name"] != "messenger-api" || seen["service.instance.id"] != "instance-1" { + t.Fatalf("service attributes missing: %#v", seen) + } +} + +func TestValidTraceparent(t *testing.T) { + if !ValidTraceparent("00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01") { + t.Fatal("valid traceparent rejected") + } + if ValidTraceparent("not-a-traceparent") || ValidTraceparent("00-X") { + t.Fatal("invalid traceparent accepted") + } +} + +func TestInjectDropsOversizedTracestate(t *testing.T) { + otel.SetTextMapPropagator(propagation.TraceContext{}) + ts, err := trace.ParseTraceState("a=" + strings.Repeat("a", 180) + ",b=" + strings.Repeat("b", 180) + ",c=" + strings.Repeat("c", 180)) + if err != nil { + t.Fatal(err) + } + sc := trace.NewSpanContext(trace.SpanContextConfig{ + TraceID: trace.TraceID{1}, + SpanID: trace.SpanID{1}, + TraceState: ts, + }) + traceparent, tracestate := Inject(trace.ContextWithSpanContext(context.Background(), sc)) + if traceparent == "" { + t.Fatal("traceparent missing") + } + if tracestate != "" { + t.Fatalf("oversized tracestate was persisted: %d bytes", len(tracestate)) + } +} + +func TestInjectPreservesValidTracestate(t *testing.T) { + otel.SetTextMapPropagator(propagation.TraceContext{}) + small, err := trace.ParseTraceState("vendor=abc123") + if err != nil { + t.Fatal(err) + } + sc := trace.NewSpanContext(trace.SpanContextConfig{ + TraceID: trace.TraceID{1}, + SpanID: trace.SpanID{1}, + TraceState: small, + }) + _, kept := Inject(trace.ContextWithSpanContext(context.Background(), sc)) + if kept != "vendor=abc123" { + t.Fatalf("valid tracestate dropped: %q", kept) + } +} diff --git a/internal/telemetry/metrics.go b/internal/telemetry/metrics.go new file mode 100644 index 0000000..44c5940 --- /dev/null +++ b/internal/telemetry/metrics.go @@ -0,0 +1,177 @@ +package telemetry + +import ( + "context" + "strconv" + "sync" + "time" + + "go.opentelemetry.io/otel" + "go.opentelemetry.io/otel/attribute" + "go.opentelemetry.io/otel/metric" +) + +var ( + metricsOnce sync.Once + + httpRequests metric.Int64Counter + httpDuration metric.Float64Histogram + jobsProcessed metric.Int64Counter + jobDuration metric.Float64Histogram + jobsAccepted metric.Int64Counter + timeToReady metric.Float64Histogram + jobsReadyInBudget metric.Int64Counter + workerBusy metric.Int64ObservableGauge + workerCapacity metric.Int64ObservableGauge + dbUsed metric.Int64ObservableGauge + dbIdle metric.Int64ObservableGauge + dbMax metric.Int64ObservableGauge + dbEmptyAcquire metric.Int64ObservableCounter + dbEmptyWait metric.Float64ObservableCounter + processCPU metric.Float64ObservableCounter + processMemory metric.Int64ObservableGauge + processMemLimit metric.Int64ObservableGauge + oldestJobAge metric.Float64ObservableGauge + oldestOutboxAge metric.Float64ObservableGauge + jobsOverdue metric.Int64ObservableGauge +) + +func initMetrics() { + metricsOnce.Do(func() { + meter := otel.Meter("messenger") + + httpRequests, _ = meter.Int64Counter("messenger.http.server.requests", + metric.WithDescription("HTTP requests by method, route template and status class")) + httpDuration, _ = meter.Float64Histogram("http.server.request.duration", + metric.WithDescription("HTTP server request duration"), + metric.WithUnit("s"), + metric.WithExplicitBucketBoundaries(0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10)) + jobsProcessed, _ = meter.Int64Counter("messenger.jobs.processed", + metric.WithDescription("Attachment job attempts by outcome")) + jobDuration, _ = meter.Float64Histogram("messenger.job.duration", + metric.WithDescription("Attachment job processing duration"), + metric.WithUnit("s"), + metric.WithExplicitBucketBoundaries(0.1, 0.25, 0.5, 1, 2.5, 5, 10, 30, 60, 120)) + jobsAccepted, _ = meter.Int64Counter("messenger.jobs.accepted", + metric.WithDescription("Durable attachment jobs accepted with 202")) + timeToReady, _ = meter.Float64Histogram("messenger.job.time_to_ready", + metric.WithDescription("Time from durable acceptance to ready"), + metric.WithUnit("s"), + metric.WithExplicitBucketBoundaries(1, 2.5, 5, 10, 20, 30, 60, 120, 300)) + jobsReadyInBudget, _ = meter.Int64Counter("messenger.jobs.ready_within_budget", + metric.WithDescription("Jobs ready within the 30s TTR objective")) + workerBusy, _ = meter.Int64ObservableGauge("messenger.worker.busy", + metric.WithDescription("Worker slots currently processing a job")) + workerCapacity, _ = meter.Int64ObservableGauge("messenger.worker.capacity", + metric.WithDescription("Configured worker concurrency")) + dbUsed, _ = meter.Int64ObservableGauge("messenger.db.pool.used") + dbIdle, _ = meter.Int64ObservableGauge("messenger.db.pool.idle") + dbMax, _ = meter.Int64ObservableGauge("messenger.db.pool.max") + dbEmptyAcquire, _ = meter.Int64ObservableCounter("messenger.db.pool.empty_acquire", + metric.WithDescription("Acquisitions that had to wait for a free connection")) + dbEmptyWait, _ = meter.Float64ObservableCounter("messenger.db.pool.empty_acquire_wait_seconds", + metric.WithDescription("Cumulative wait time for empty pool acquisitions"), + metric.WithUnit("s")) + processCPU, _ = meter.Float64ObservableCounter("messenger.process.cpu_seconds", + metric.WithDescription("Cumulative process CPU time from cgroup or /proc"), + metric.WithUnit("s")) + processMemory, _ = meter.Int64ObservableGauge("messenger.process.memory_usage_bytes", + metric.WithDescription("Resident/current memory of this container"), + metric.WithUnit("By")) + processMemLimit, _ = meter.Int64ObservableGauge("messenger.process.memory_limit_bytes", + metric.WithDescription("Container memory limit, 0 when unknown"), + metric.WithUnit("By")) + oldestJobAge, _ = meter.Float64ObservableGauge("messenger.queue.oldest_job_age", + metric.WithDescription("Age of the oldest queued or processing job"), + metric.WithUnit("s")) + oldestOutboxAge, _ = meter.Float64ObservableGauge("messenger.outbox.oldest_unpublished_age", + metric.WithDescription("Age of the oldest unpublished outbox intent"), + metric.WithUnit("s")) + jobsOverdue, _ = meter.Int64ObservableGauge("messenger.jobs.overdue", + metric.WithDescription("Queued/processing jobs older than the 30s TTR objective")) + }) +} + +// RecordHTTP records one completed server request. route must be an OpenAPI +// template, never a raw path. +func RecordHTTP(ctx context.Context, method, route string, status int, duration time.Duration) { + initMetrics() + class := statusClass(status) + attrs := metric.WithAttributes( + attribute.String("http.request.method", method), + attribute.String("http.route", route), + attribute.Int("http.response.status_code", status), + attribute.String("http.response.status_class", class), + ) + httpRequests.Add(ctx, 1, attrs) + httpDuration.Record(ctx, duration.Seconds(), attrs) +} + +// RecordJobAccepted counts a durable 202 acceptance. +func RecordJobAccepted(ctx context.Context, pipelineVersion int) { + initMetrics() + jobsAccepted.Add(ctx, 1, metric.WithAttributes(attribute.Int("pipeline.version", pipelineVersion))) +} + +// RecordJobAttempt records one processing attempt. +func RecordJobAttempt(ctx context.Context, jobType, outcome string, duration time.Duration) { + initMetrics() + attrs := metric.WithAttributes( + attribute.String("job.type", jobType), + attribute.String("outcome", outcome), + ) + jobsProcessed.Add(ctx, 1, attrs) + jobDuration.Record(ctx, duration.Seconds(), attrs) +} + +// RecordJobReady records a terminal ready result and its time-to-ready. +func RecordJobReady(ctx context.Context, pipelineVersion int, duration time.Duration) { + initMetrics() + attrs := metric.WithAttributes(attribute.Int("pipeline.version", pipelineVersion)) + timeToReady.Record(ctx, duration.Seconds(), attrs) + if duration <= 30*time.Second { + jobsReadyInBudget.Add(ctx, 1, attrs) + } +} + +// RegisterWorkerMetrics exposes the worker's in-flight slots and capacity. +// RegisterRelayMetrics exposes durable backlog age gauges computed in the relay. +func RegisterRelayMetrics(oldestJob func(context.Context) (float64, error), oldestOutbox func(context.Context) (time.Duration, error), overdue func(context.Context) (int64, error)) error { + initMetrics() + _, err := otel.Meter("messenger").RegisterCallback(func(ctx context.Context, o metric.Observer) error { + if oldestJob != nil { + if seconds, err := oldestJob(ctx); err == nil { + o.ObserveFloat64(oldestJobAge, seconds) + } + } + if oldestOutbox != nil { + if age, err := oldestOutbox(ctx); err == nil { + o.ObserveFloat64(oldestOutboxAge, age.Seconds()) + } + } + if overdue != nil { + if count, err := overdue(ctx); err == nil { + o.ObserveInt64(jobsOverdue, count) + } + } + return nil + }, oldestJobAge, oldestOutboxAge, jobsOverdue) + return err +} + +func RegisterWorkerMetrics(busy func() int64, capacity int64) error { + initMetrics() + _, err := otel.Meter("messenger").RegisterCallback(func(_ context.Context, o metric.Observer) error { + o.ObserveInt64(workerBusy, busy()) + o.ObserveInt64(workerCapacity, capacity) + return nil + }, workerBusy, workerCapacity) + return err +} + +func statusClass(status int) string { + if status < 100 || status > 599 { + return "unknown" + } + return strconv.Itoa(status/100) + "xx" +} diff --git a/internal/telemetry/objectstore.go b/internal/telemetry/objectstore.go new file mode 100644 index 0000000..0a70e89 --- /dev/null +++ b/internal/telemetry/objectstore.go @@ -0,0 +1,107 @@ +package telemetry + +import ( + "context" + "errors" + "io" + "time" + + "go.opentelemetry.io/otel" + "go.opentelemetry.io/otel/attribute" + "go.opentelemetry.io/otel/trace" + + "mtusi-messenger/internal/platform/objectstore" +) + +type tracedStore struct { + inner objectstore.Store +} + +// WrapStore adds S3 client spans without recording object keys (keys contain +// chat_id) or presigned URLs. +func WrapStore(inner objectstore.Store) objectstore.Store { + if inner == nil { + return nil + } + return &tracedStore{inner: inner} +} + +func (s *tracedStore) start(ctx context.Context, operation string) (context.Context, trace.Span) { + return otel.Tracer("messenger/s3").Start(ctx, "S3."+operation, + trace.WithSpanKind(trace.SpanKindClient), + trace.WithAttributes( + attribute.String("rpc.system", "aws.s3"), + attribute.String("rpc.service", "S3"), + attribute.String("rpc.method", operation), + attribute.String("aws.s3.operation", operation), + ), + ) +} + +func (s *tracedStore) Ping(ctx context.Context) error { + ctx, span := s.start(ctx, "Ping") + defer span.End() + return s.inner.Ping(ctx) +} + +func (s *tracedStore) Put(ctx context.Context, key string, body io.ReadSeeker, size int64, contentType string, metadata map[string]string) error { + ctx, span := s.start(ctx, "PutObject") + defer span.End() + span.SetAttributes(attribute.Int64("aws.s3.object.size", size)) + return s.inner.Put(ctx, key, body, size, contentType, metadata) +} + +type spanReadCloser struct { + inner io.ReadCloser + span trace.Span +} + +func (r *spanReadCloser) Read(p []byte) (int, error) { return r.inner.Read(p) } +func (r *spanReadCloser) Close() error { + err := r.inner.Close() + r.span.End() + return err +} + +func (s *tracedStore) Open(ctx context.Context, key string) (io.ReadCloser, objectstore.Object, error) { + ctx, span := s.start(ctx, "GetObject") + body, object, err := s.inner.Open(ctx, key) + if err != nil { + span.RecordError(errors.New(Redact(err.Error()))) + span.End() + return nil, object, err + } + span.SetAttributes(attribute.Int64("aws.s3.object.size", object.Size)) + return &spanReadCloser{inner: body, span: span}, object, nil +} + +func (s *tracedStore) Head(ctx context.Context, key string) (objectstore.Object, error) { + ctx, span := s.start(ctx, "HeadObject") + defer span.End() + return s.inner.Head(ctx, key) +} + +func (s *tracedStore) Copy(ctx context.Context, src, dst, contentType string, metadata map[string]string) error { + ctx, span := s.start(ctx, "CopyObject") + defer span.End() + return s.inner.Copy(ctx, src, dst, contentType, metadata) +} + +func (s *tracedStore) Delete(ctx context.Context, key string) error { + ctx, span := s.start(ctx, "DeleteObject") + defer span.End() + return s.inner.Delete(ctx, key) +} + +func (s *tracedStore) List(ctx context.Context, prefix string) ([]objectstore.Object, error) { + ctx, span := s.start(ctx, "ListObjects") + defer span.End() + return s.inner.List(ctx, prefix) +} + +func (s *tracedStore) PresignPut(ctx context.Context, key string, size int64, ttl time.Duration) (string, time.Time, error) { + ctx, span := s.start(ctx, "PresignPut") + defer span.End() + span.SetAttributes(attribute.Int64("aws.s3.object.size", size), attribute.String("aws.s3.presign.ttl", ttl.String())) + return s.inner.PresignPut(ctx, key, size, ttl) +} diff --git a/internal/telemetry/process.go b/internal/telemetry/process.go new file mode 100644 index 0000000..a73b716 --- /dev/null +++ b/internal/telemetry/process.go @@ -0,0 +1,124 @@ +package telemetry + +import ( + "bufio" + "context" + "os" + "strconv" + "strings" + + "go.opentelemetry.io/otel" + "go.opentelemetry.io/otel/metric" +) + +// RegisterProcessMetrics exposes this process/container CPU and memory. It +// uses cgroup v2 when available and /proc as a fallback. The metrics are +// intentionally process-scoped: no Docker socket or host root is required. +func RegisterProcessMetrics() error { + initMetrics() + _, err := otel.Meter("messenger").RegisterCallback(func(_ context.Context, o metric.Observer) error { + cpu, memory, limit := readProcessStats() + o.ObserveFloat64(processCPU, cpu) + o.ObserveInt64(processMemory, memory) + o.ObserveInt64(processMemLimit, limit) + return nil + }, processCPU, processMemory, processMemLimit) + return err +} + +func readProcessStats() (cpuSeconds float64, memoryBytes, memoryLimit int64) { + if value, ok := readCgroupCPU(); ok { + cpuSeconds = value + } else { + cpuSeconds = readProcCPU() + } + memoryBytes = readCgroupMemory() + if memoryBytes == 0 { + memoryBytes = readProcRSS() + } + memoryLimit = readCgroupMemoryLimit() + return cpuSeconds, memoryBytes, memoryLimit +} + +func readCgroupCPU() (float64, bool) { + raw, err := os.ReadFile("/sys/fs/cgroup/cpu.stat") + if err != nil { + return 0, false + } + for _, line := range strings.Split(string(raw), "\n") { + fields := strings.Fields(line) + if len(fields) == 2 && fields[0] == "usage_usec" { + usec, err := strconv.ParseFloat(fields[1], 64) + if err == nil { + return usec / 1e6, true + } + } + } + return 0, false +} + +func readProcCPU() float64 { + raw, err := os.ReadFile("/proc/self/stat") + if err != nil { + return 0 + } + // comm may contain spaces; fields after the closing parenthesis are stable. + end := strings.LastIndexByte(string(raw), ')') + if end < 0 { + return 0 + } + fields := strings.Fields(string(raw)[end+1:]) + if len(fields) < 15 { + return 0 + } + utime, _ := strconv.ParseFloat(fields[11], 64) + stime, _ := strconv.ParseFloat(fields[12], 64) + return (utime + stime) / 100 // USER_HZ on Linux is 100 in the images used. +} + +func readCgroupMemory() int64 { + for _, path := range []string{"/sys/fs/cgroup/memory.current", "/sys/fs/cgroup/memory/memory.usage_in_bytes"} { + if raw, err := os.ReadFile(path); err == nil { + if value, err := strconv.ParseInt(strings.TrimSpace(string(raw)), 10, 64); err == nil { + return value + } + } + } + return 0 +} + +func readCgroupMemoryLimit() int64 { + for _, path := range []string{"/sys/fs/cgroup/memory.max", "/sys/fs/cgroup/memory/memory.limit_in_bytes"} { + raw, err := os.ReadFile(path) + if err != nil { + continue + } + value := strings.TrimSpace(string(raw)) + if value == "max" { + return 0 + } + if parsed, err := strconv.ParseInt(value, 10, 64); err == nil { + return parsed + } + } + return 0 +} + +func readProcRSS() int64 { + file, err := os.Open("/proc/self/status") + if err != nil { + return 0 + } + defer file.Close() + + scanner := bufio.NewScanner(file) + for scanner.Scan() { + fields := strings.Fields(scanner.Text()) + if len(fields) >= 2 && fields[0] == "VmRSS:" { + if kb, err := strconv.ParseInt(fields[1], 10, 64); err == nil { + return kb * 1024 + } + } + } + return 0 +} diff --git a/internal/telemetry/setup.go b/internal/telemetry/setup.go new file mode 100644 index 0000000..e1b5090 --- /dev/null +++ b/internal/telemetry/setup.go @@ -0,0 +1,185 @@ +// Package telemetry wires OpenTelemetry traces, metrics and logs to OTLP and +// provides the small set of instruments used by the application. Telemetry is +// best-effort: a missing Collector must never fail startup or readiness. +package telemetry + +import ( + "context" + "errors" + "fmt" + "os" + "strconv" + "strings" + "sync" + "time" + + "go.opentelemetry.io/otel" + "go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp" + "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp" + "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp" + "go.opentelemetry.io/otel/propagation" + sdklog "go.opentelemetry.io/otel/sdk/log" + sdkmetric "go.opentelemetry.io/otel/sdk/metric" + "go.opentelemetry.io/otel/sdk/resource" + sdktrace "go.opentelemetry.io/otel/sdk/trace" + semconv "go.opentelemetry.io/otel/semconv/v1.37.0" + + "mtusi-messenger/internal/platform/instanceid" +) + +// Shutdown flushes and closes providers. It is safe to call once. +type Shutdown func(context.Context) error + +var ( + globalLogProvider *sdklog.LoggerProvider + shutdownOnce sync.Once +) + +// Enabled reports whether TELEMETRY_ENABLED is not explicitly disabled. +func Enabled() bool { + return strings.ToLower(strings.TrimSpace(os.Getenv("TELEMETRY_ENABLED"))) != "0" +} + +// Setup configures global OTel providers. Exporters are asynchronous and do +// not connect synchronously; an unreachable Collector only produces bounded +// background export failures. +func Setup(ctx context.Context, serviceName, version string) (Shutdown, error) { + if !Enabled() { + return func(context.Context) error { return nil }, nil + } + + // resource.Default carries the SDK's schema URL (currently 1.43.0); using a + // different semconv schema in NewWithAttributes conflicts. The code resource + // is schemaless, while the SDK still provides telemetry.sdk.* attributes. + res, err := resource.Merge( + resource.Default(), + resource.NewSchemaless( + semconv.ServiceName(serviceName), + semconv.ServiceVersion(defaultVersion(version)), + semconv.ServiceInstanceID(instanceid.FromEnvOrHostname()), + semconv.DeploymentEnvironmentName("lab"), + ), + ) + if err != nil { + return nil, fmt.Errorf("build telemetry resource: %w", err) + } + + traceExporter, err := otlptracehttp.New(ctx) + if err != nil { + return nil, fmt.Errorf("create trace exporter: %w", err) + } + metricExporter, err := otlpmetrichttp.New(ctx) + if err != nil { + return nil, fmt.Errorf("create metric exporter: %w", err) + } + logExporter, err := otlploghttp.New(ctx) + if err != nil { + return nil, fmt.Errorf("create log exporter: %w", err) + } + + tracerProvider := sdktrace.NewTracerProvider( + sdktrace.WithResource(res), + sdktrace.WithSampler(samplerFromEnv()), + sdktrace.WithBatcher(traceExporter, + sdktrace.WithMaxQueueSize(2048), + sdktrace.WithMaxExportBatchSize(512), + sdktrace.WithBatchTimeout(5*time.Second), + sdktrace.WithExportTimeout(5*time.Second), + ), + ) + + meterProvider := sdkmetric.NewMeterProvider( + sdkmetric.WithResource(res), + sdkmetric.WithReader(sdkmetric.NewPeriodicReader( + metricExporter, + sdkmetric.WithInterval(metricInterval()), + sdkmetric.WithTimeout(5*time.Second), + )), + ) + + loggerProvider := sdklog.NewLoggerProvider( + sdklog.WithResource(res), + sdklog.WithProcessor(sdklog.NewBatchProcessor( + logExporter, + sdklog.WithExportInterval(5*time.Second), + sdklog.WithExportTimeout(5*time.Second), + sdklog.WithMaxQueueSize(2048), + sdklog.WithExportMaxBatchSize(512), + )), + ) + + otel.SetTracerProvider(tracerProvider) + otel.SetMeterProvider(meterProvider) + otel.SetLoggerProvider(loggerProvider) + otel.SetTextMapPropagator(propagation.NewCompositeTextMapPropagator( + propagation.TraceContext{}, + propagation.Baggage{}, + )) + + globalLogProvider = loggerProvider + initMetrics() + + return func(shutdownCtx context.Context) error { + var errs []error + shutdownOnce.Do(func() { + // Each provider gets its own bounded budget. Sharing one short context + // lets a slow trace flush starve the metric/log flush on shutdown. + flush := func(fn func(context.Context) error) error { + ctx, cancel := context.WithTimeout(context.WithoutCancel(shutdownCtx), 2*time.Second) + defer cancel() + return fn(ctx) + } + errs = append(errs, + flush(tracerProvider.Shutdown), + flush(meterProvider.Shutdown), + flush(loggerProvider.Shutdown), + ) + }) + return errors.Join(errs...) + }, nil +} + +// GlobalLoggerProvider exposes the configured log provider for the slog fanout. +func GlobalLoggerProvider() *sdklog.LoggerProvider { + return globalLogProvider +} + +func defaultVersion(version string) string { + if strings.TrimSpace(version) == "" { + return "dev" + } + return version +} + +func metricInterval() time.Duration { + raw := strings.TrimSpace(os.Getenv("OTEL_METRIC_EXPORT_INTERVAL")) + if raw == "" { + return 15 * time.Second + } + ms, err := strconv.Atoi(raw) + if err != nil || ms <= 0 { + return 15 * time.Second + } + return time.Duration(ms) * time.Millisecond +} + +func samplerFromEnv() sdktrace.Sampler { + name := strings.ToLower(strings.TrimSpace(os.Getenv("OTEL_TRACES_SAMPLER"))) + ratio := 1.0 + if raw := strings.TrimSpace(os.Getenv("OTEL_TRACES_SAMPLER_ARG")); raw != "" { + if parsed, err := strconv.ParseFloat(raw, 64); err == nil { + ratio = parsed + } + } + switch name { + case "always_off": + return sdktrace.NeverSample() + case "traceidratio": + return sdktrace.TraceIDRatioBased(ratio) + case "parentbased_traceidratio": + return sdktrace.ParentBased(sdktrace.TraceIDRatioBased(ratio)) + default: + // The lab needs complete traces to prove the upload -> worker chain. + return sdktrace.ParentBased(sdktrace.AlwaysSample()) + } +} diff --git a/internal/transport/rest/extensions.go b/internal/transport/rest/extensions.go index 84484eb..7441e97 100644 --- a/internal/transport/rest/extensions.go +++ b/internal/transport/rest/extensions.go @@ -81,8 +81,6 @@ func (e *Extensions) route(method, operation string, handler extensionHandler) h slog.String("request_id", requestIDFromContext(r.Context())), slog.String("operation", operation), slog.String("method", r.Method), - slog.String("path", r.URL.Path), - slog.String("user_id", userID.String()), slog.Int("status", writer.statusCode()), slog.Duration("duration", time.Since(started)), ) @@ -205,7 +203,6 @@ func (e *Extensions) fail(w http.ResponseWriter, r *http.Request, err error) { e.log.ErrorContext(r.Context(), "extension request failed", slog.String("request_id", requestIDFromContext(r.Context())), slog.String("method", r.Method), - slog.String("path", r.URL.Path), slog.Any("error", err), ) } diff --git a/internal/transport/rest/logging.go b/internal/transport/rest/logging.go index cf40069..05f53b1 100644 --- a/internal/transport/rest/logging.go +++ b/internal/transport/rest/logging.go @@ -75,7 +75,6 @@ func logRejected(ctx context.Context, log *slog.Logger, r *http.Request, status attrs := []any{ slog.String("request_id", requestIDFromContext(ctx)), slog.String("method", r.Method), - slog.String("path", r.URL.Path), slog.Int("status", status), } diff --git a/internal/transport/rest/requestid.go b/internal/transport/rest/requestid.go index 05bec60..350e5f8 100644 --- a/internal/transport/rest/requestid.go +++ b/internal/transport/rest/requestid.go @@ -3,12 +3,15 @@ package rest import ( "context" "net/http" + "regexp" "github.com/google/uuid" ) const requestIDHeader = "X-Request-ID" +var requestIDPattern = regexp.MustCompile(`^[A-Za-z0-9._:-]{1,64}$`) + type requestIDKey struct{} func requestIDFromContext(ctx context.Context) string { @@ -24,7 +27,7 @@ func withRequestID(ctx context.Context, id string) context.Context { func requestIDMiddleware(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { id := r.Header.Get(requestIDHeader) - if id == "" { + if !requestIDPattern.MatchString(id) { id = uuid.NewString() } diff --git a/internal/transport/rest/router.go b/internal/transport/rest/router.go index 406368f..680aa9e 100644 --- a/internal/transport/rest/router.go +++ b/internal/transport/rest/router.go @@ -20,7 +20,6 @@ func NewRouter( oas.WithErrorHandler(newErrorHandler(log)), oas.WithNotFound(newNotFoundHandler(log)), oas.WithMethodNotAllowed(newMethodNotAllowedHandler(log)), - oas.WithMiddleware(loggingMiddleware(log)), ) if err != nil { return nil, err @@ -38,7 +37,9 @@ func NewRouter( mux.Handle("/", server) + limited := bodyLimitMiddleware(maxBodyBytes, maxUploadBytes, log, mux) + return requestIDMiddleware( - instanceIDMiddleware(InstanceID(), bodyLimitMiddleware(maxBodyBytes, maxUploadBytes, log, mux)), + instanceIDMiddleware(InstanceID(), telemetryMiddleware(log, server, mux, limited)), ), nil } diff --git a/internal/transport/rest/telemetry.go b/internal/transport/rest/telemetry.go new file mode 100644 index 0000000..e4dfa7e --- /dev/null +++ b/internal/transport/rest/telemetry.go @@ -0,0 +1,90 @@ +package rest + +import ( + "log/slog" + "net/http" + "strings" + "time" + + "go.opentelemetry.io/otel" + "go.opentelemetry.io/otel/attribute" + "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/propagation" + "go.opentelemetry.io/otel/trace" + + "mtusi-messenger/internal/telemetry" + "mtusi-messenger/internal/transport/rest/internal/oas" +) + +// telemetryMiddleware is the single source of HTTP spans, metrics and access +// logs. It resolves the OpenAPI template before the span is started: the +// generated ogen router does not set http.Request.Pattern for its routes. +func telemetryMiddleware(log *slog.Logger, server *oas.Server, mux *http.ServeMux, next http.Handler) http.Handler { + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + route, operation := resolveRoute(server, mux, r) + if strings.HasPrefix(route, "/health/") { + next.ServeHTTP(w, r) + return + } + + ctx := otel.GetTextMapPropagator().Extract(r.Context(), propagation.HeaderCarrier(r.Header)) + method := normalizeMethod(r.Method) + started := time.Now() + ctx, span := otel.Tracer("messenger/http").Start(ctx, method+" "+route, + trace.WithSpanKind(trace.SpanKindServer), + trace.WithAttributes( + attribute.String("http.request.method", method), + attribute.String("http.route", route), + ), + ) + defer span.End() + + writer := &statusWriter{ResponseWriter: w} + next.ServeHTTP(writer, r.WithContext(ctx)) + + status := writer.statusCode() + span.SetAttributes(attribute.Int("http.response.status_code", status)) + if status >= http.StatusInternalServerError { + span.SetStatus(codes.Error, http.StatusText(status)) + } + telemetry.RecordHTTP(ctx, method, route, status, time.Since(started)) + + attrs := []any{ + slog.String("event", "http.request.completed"), + slog.String("operation", operation), + slog.String("route", route), + slog.String("method", method), + slog.Int("status", status), + slog.Duration("duration", time.Since(started)), + slog.String("request_id", requestIDFromContext(ctx)), + } + level := slog.LevelInfo + if status >= http.StatusInternalServerError { + level = slog.LevelError + } else if status >= http.StatusBadRequest { + level = slog.LevelWarn + } + log.Log(ctx, level, "http.request.completed", attrs...) + }) +} + +// normalizeMethod keeps the metric/span label set low-cardinality. Any method +// outside the standard set is deliberately collapsed to OTHER. +func normalizeMethod(method string) string { + switch method { + case http.MethodGet, http.MethodPost, http.MethodPut, http.MethodPatch, http.MethodDelete, http.MethodHead, http.MethodOptions: + return method + default: + return "OTHER" + } +} + +func resolveRoute(server *oas.Server, mux *http.ServeMux, r *http.Request) (route, operation string) { + if route, ok := server.FindPath(r.Method, r.URL); ok { + return route.PathPattern(), route.OperationID() + } + if _, pattern := mux.Handler(r); pattern != "" && pattern != "/" { + return pattern, "" + } + return "unmatched", "" +} diff --git a/internal/worker/worker.go b/internal/worker/worker.go index 67dbd05..e7ebfd0 100644 --- a/internal/worker/worker.go +++ b/internal/worker/worker.go @@ -16,6 +16,7 @@ import ( "os" "strings" "sync" + "sync/atomic" "time" "github.com/google/uuid" @@ -27,6 +28,7 @@ import ( "mtusi-messenger/internal/imagecheck" "mtusi-messenger/internal/imageproc" "mtusi-messenger/internal/platform/objectstore" + "mtusi-messenger/internal/telemetry" ) type Repository interface { @@ -83,6 +85,7 @@ type Worker struct { mu sync.RWMutex running bool + busy atomic.Int64 } func New(repo Repository, store Store, config Config, log *slog.Logger) *Worker { @@ -140,6 +143,12 @@ func (w *Worker) setRunning(value bool) { w.running = value } +// Busy returns the number of worker slots currently processing a job. +func (w *Worker) Busy() int64 { return w.busy.Load() } + +// Capacity returns the configured worker concurrency. +func (w *Worker) Capacity() int { return w.config.Concurrency } + func (w *Worker) Ready() (consumerRunning, brokerConnected bool) { w.mu.RLock() running := w.running @@ -160,6 +169,10 @@ func (w *Worker) handle(ctx context.Context, delivery amqp.Delivery) broker.Outc return broker.Drop } + ctx, span := telemetry.StartConsumerSpan(ctx, message) + defer span.End() + started := time.Now() + result, err := w.repo.ClaimJob(ctx, message, w.config.Owner, w.config.LeaseTTL) if err != nil { w.log.WarnContext(ctx, "claim job failed", slog.String("job_id", message.JobID.String()), slog.Any("error", err)) @@ -188,14 +201,19 @@ func (w *Worker) handle(ctx context.Context, delivery amqp.Delivery) broker.Outc return broker.Ack } - return w.process(ctx, result) + outcome, label := w.process(ctx, result) + telemetry.RecordJobAttempt(ctx, message.Type, label, time.Since(started)) + + return outcome } func (w *Worker) process( ctx context.Context, result domain.ClaimResult, -) broker.Outcome { +) (broker.Outcome, string) { job := result.Job + w.busy.Add(1) + defer w.busy.Add(-1) attachment := result.Attachment failpoint.Check("WORKER_AFTER_CLAIM", job.ID) @@ -264,13 +282,18 @@ func (w *Worker) process( slog.String("job_id", job.ID.String()), ) - return broker.Ack + return broker.Ack, "superseded" + } + + if errors.Is(err, errCompletionCASLost) { + return broker.Ack, "superseded" } if err == nil { failpoint.Check("WORKER_AFTER_COMMIT", job.ID) + telemetry.RecordJobReady(ctx, job.PipelineVersion, time.Since(job.CreatedAt)) - return broker.Ack + return broker.Ack, "succeeded" } return w.fail(ctx, job, err) @@ -384,7 +407,7 @@ func (w *Worker) runJob( if !completed { w.log.WarnContext(ctx, "completion CAS lost", slog.String("job_id", job.ID.String())) - return nil + return errCompletionCASLost } w.log.InfoContext(ctx, "attachment ready", @@ -451,7 +474,7 @@ func (w *Worker) spoolSource(ctx context.Context, key string) (*os.File, int64, return file, size, hex.EncodeToString(hasher.Sum(nil)), nil } -func (w *Worker) fail(ctx context.Context, job domain.Job, err error) broker.Outcome { +func (w *Worker) fail(ctx context.Context, job domain.Job, err error) (broker.Outcome, string) { if ctx.Err() != nil { // Parent cancellation means graceful shutdown. Keep the attempt number: // an operator restart must not consume the processing budget. The job @@ -465,12 +488,12 @@ func (w *Worker) fail(ctx context.Context, job domain.Job, err error) broker.Out time.Now().Add(time.Second), true, "shutdown", ) if retryErr != nil { - return broker.Requeue + return broker.Requeue, "failed" } _ = failed - return broker.Ack + return broker.Ack, "shutdown" } code := "processing_failed" @@ -504,13 +527,13 @@ func (w *Worker) fail(ctx context.Context, job domain.Job, err error) broker.Out ok, failErr := w.repo.FailJob(ctx, job.ID, job.Attempt, w.config.Owner, code) if failErr != nil { - return broker.Requeue + return broker.Requeue, "failed" } if !ok { - return broker.Ack + return broker.Ack, "failed" } - return broker.Drop + return broker.Drop, "failed" } next := time.Now().Add(w.backoff(job.Attempt)) @@ -525,14 +548,14 @@ func (w *Worker) fail(ctx context.Context, job domain.Job, err error) broker.Out ctx, job.ID, job.Attempt, w.config.Owner, code, next, false, "retry", ) if retryErr != nil { - return broker.Requeue + return broker.Requeue, "retried" } if failed { - return broker.Drop + return broker.Drop, "failed" } - return broker.Ack + return broker.Ack, "retried" } func (w *Worker) backoff(attempt int) time.Duration { @@ -559,6 +582,8 @@ func (w *Worker) backoff(attempt int) time.Duration { return time.Duration(rand.Int64N(int64(base))) + time.Millisecond } +var errCompletionCASLost = errors.New("completion CAS lost") + type permanentError struct { code string err error diff --git a/s3/README.md b/s3/README.md deleted file mode 100644 index bf9216c..0000000 --- a/s3/README.md +++ /dev/null @@ -1,27 +0,0 @@ -# SeaweedFS identities - -`infra/s3/s3.json` is mounted read-only into the `seaweedfs` container and is -the single source of truth for S3 credentials and permissions. - -- `admin` is used only by the one-shot `s3-init` service (bucket creation and - probing). It is never given to the API and must not be placed in `.env`: - the API service loads `.env` as an environment file. Compose supplies the - synthetic admin values to `s3-init` directly. -- `app` is used by the API and by presigned uploads. It can read/write only - `messenger-attachments/attachments/*` and `messenger-attachments/staging/*`, - and list the bucket for the orphan sweeper. - -The credentials are synthetic values for the local stand. `.env.example` -carries the same values for the API and `scripts/check_s3_creds.py` fails the -offline check if they drift. Replace them in `.env` for any non-local run. - -Verify manually: - -```sh -# anonymous requests are denied -docker compose exec -T seaweedfs \ - wget -qO- http://127.0.0.1:8333/messenger-attachments/attachments/missing - -# the app identity cannot write outside its prefixes -docker compose run --rm s3-init # probes this and exits non-zero on violation -``` diff --git a/s3/s3.json b/s3/s3.json deleted file mode 100644 index 773f3bf..0000000 --- a/s3/s3.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "identities": [ - { - "name": "admin", - "credentials": [ - {"accessKey": "lab4admin", "secretKey": "lab4admin-secret"} - ], - "actions": ["Admin", "Read", "Write", "List", "Tagging"] - }, - { - "name": "app", - "credentials": [ - {"accessKey": "lab4app", "secretKey": "lab4app-secret"} - ], - "actions": [ - "Read:messenger-attachments/attachments/*", - "Write:messenger-attachments/attachments/*", - "Read:messenger-attachments/staging/*", - "Write:messenger-attachments/staging/*", - "List:messenger-attachments" - ] - } - ] -} diff --git a/scripts/check_evidence.py b/scripts/check_evidence.py new file mode 100755 index 0000000..31b24cd --- /dev/null +++ b/scripts/check_evidence.py @@ -0,0 +1,46 @@ +#!/usr/bin/env python3 +"""Scan committed evidence for credentials, signed URLs and raw identifiers.""" +import re +import sys +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[1] +PATTERNS = { + 'aws signature': re.compile(r'X-Amz-(?:Signature|Credential|Security-Token)='), + 'inline password': re.compile(r'(?i)(password|passwd|secret|token)\s*[=:]\s*["\']?[^\s"\']{6,}'), + 'url credentials': re.compile(r'://[^/\s:@]+:[^@\s]+@'), + 'private key': re.compile(r'BEGIN (?:RSA |EC |OPENSSH )?PRIVATE KEY'), + 'bearer token': re.compile(r'Bearer\s+[A-Za-z0-9._-]{20,}'), +} +ALLOW = { + 'PASSWORD=messenger', + 'PASSWORD=messenger', + 'password: messenger', + 'POSTGRES_PASSWORD: messenger', +} + +def main(): + failures = [] + for path in (ROOT / 'evidence').rglob('*'): + if not path.is_file() or path.suffix in {'.png', '.jpg', '.jpeg', '.webp'}: + continue + try: + text = path.read_text(errors='replace') + except OSError: + continue + for name, pattern in PATTERNS.items(): + for match in pattern.finditer(text): + line = text[text.rfind('\n', 0, match.start()) + 1:text.find('\n', match.end())].strip() + if any(allowed in line for allowed in ALLOW): + continue + failures.append(f'{path.relative_to(ROOT)}: {name}: {line[:160]}') + if failures: + print('FAIL: evidence scanner found possible secrets/signatures') + for item in failures: + print(' ', item) + return 1 + print('PASS: evidence has no obvious secrets, signed URLs or bearer tokens') + return 0 + +if __name__ == '__main__': + raise SystemExit(main()) diff --git a/scripts/init-secrets.sh b/scripts/init-secrets.sh new file mode 100755 index 0000000..fb6a699 --- /dev/null +++ b/scripts/init-secrets.sh @@ -0,0 +1,8 @@ +#!/bin/sh +set -eu +ROOT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) +mkdir -p "$ROOT_DIR/secrets" +if [ ! -s "$ROOT_DIR/secrets/grafana.env" ]; then + (umask 077; printf 'GF_SECURITY_ADMIN_PASSWORD=%s\n' "$(openssl rand -hex 16)" > "$ROOT_DIR/secrets/grafana.env") + echo "created secrets/grafana.env" +fi diff --git a/scripts/lab6_alerts.py b/scripts/lab6_alerts.py new file mode 100755 index 0000000..7dd0a70 --- /dev/null +++ b/scripts/lab6_alerts.py @@ -0,0 +1,72 @@ +#!/usr/bin/env python3 +"""Poll Prometheus alert state and write a firing/resolved timeline.""" +import argparse +import os +import csv +import json +import time +import urllib.parse +import urllib.request +from pathlib import Path + + +# The lab tools always target loopback; ignore ambient corporate proxies. +for _proxy_key in ('HTTP_PROXY', 'HTTPS_PROXY', 'ALL_PROXY', 'http_proxy', 'https_proxy', 'all_proxy'): + os.environ.pop(_proxy_key, None) +os.environ['NO_PROXY'] = 'localhost,127.0.0.1,::1' +os.environ['no_proxy'] = 'localhost,127.0.0.1,::1' +urllib.request.getproxies = lambda: {} + + +def get(url): + with urllib.request.urlopen(url, timeout=5) as response: + return json.loads(response.read()) + + +def main(): + parser = argparse.ArgumentParser(description='Poll Prometheus alerts') + parser.add_argument('--prometheus', default='http://localhost:9090') + parser.add_argument('--duration', type=float, default=600) + parser.add_argument('--interval', type=float, default=5) + parser.add_argument('--output', default='evidence/lab6/alerts.csv') + parser.add_argument('--injection-utc', default='') + args = parser.parse_args() + path = Path(args.output) + path.parent.mkdir(parents=True, exist_ok=True) + started = time.time() + active = set() + had_error = False + with path.open('w', newline='') as handle: + writer = csv.writer(handle) + writer.writerow(['observed_utc', 'alert', 'state', 'active_at', 'value', 'injection_utc']) + while time.time() - started < args.duration: + try: + payload = get(args.prometheus.rstrip('/') + '/api/v1/alerts') + current = set() + for alert in payload.get('data', {}).get('alerts', []): + name = alert.get('labels', {}).get('alertname', '') + state = alert.get('state', '') + current.add((name, state)) + if (name, state) not in active: + writer.writerow([ + time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime()), + name, state, alert.get('activeAt', ''), + json.dumps(alert.get('value', ''), separators=(',', ':')), args.injection_utc, + ]) + for name, state in sorted(active - current): + writer.writerow([ + time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime()), + name, 'resolved', '', '', args.injection_utc, + ]) + active = current + handle.flush() + except Exception as exc: + had_error = True + print('WARN: alert poll failed:', exc) + time.sleep(args.interval) + print('alert timeline:', path) + return 1 if had_error else 0 + + +if __name__ == '__main__': + raise SystemExit(main()) diff --git a/scripts/lab6_load.py b/scripts/lab6_load.py new file mode 100755 index 0000000..dbb127e --- /dev/null +++ b/scripts/lab6_load.py @@ -0,0 +1,169 @@ +#!/usr/bin/env python3 +"""Open-loop lab6 load: fixed arrival rate, messages and attachment uploads. + +Unlike tests/load.py this schedules arrivals instead of running a closed loop, +so a degraded server cannot reduce the offered rate. It is intentionally small +and standard-library only; use k6/wrk2 for capacity claims. +""" +import argparse +import base64 +import os +import json +import math +import sys +import threading +import time +import urllib.request +import uuid +from pathlib import Path + +# The lab tools always target loopback; ignore ambient corporate proxies. +for _proxy_key in ('HTTP_PROXY', 'HTTPS_PROXY', 'ALL_PROXY', 'http_proxy', 'https_proxy', 'all_proxy'): + os.environ.pop(_proxy_key, None) +os.environ['NO_PROXY'] = 'localhost,127.0.0.1,::1' +os.environ['no_proxy'] = 'localhost,127.0.0.1,::1' +urllib.request.getproxies = lambda: {} + +ROOT = Path(__file__).resolve().parents[1] +sys.path.insert(0, str(ROOT / 'tests')) + + +def percentile(values, p): + if not values: + return None + values = sorted(values) + rank = max(0, min(len(values) - 1, int(math.ceil(p / 100.0 * len(values))) - 1)) + return values[rank] + + +def main(): + parser = argparse.ArgumentParser(description='Open-loop lab6 load') + parser.add_argument('--base-url', default='http://localhost:8080') + parser.add_argument('--rate', type=float, default=1.0, help='arrivals per second') + parser.add_argument('--duration', type=float, default=60.0, help='seconds') + parser.add_argument('--upload-ratio', type=float, default=0.25) + parser.add_argument('--deadline', type=float, default=10.0) + parser.add_argument('--workers', type=int, default=32) + parser.add_argument('--output', default=None) + parser.add_argument('--token-refresh-seconds', type=float, default=3000.0) + args = parser.parse_args() + + from client import Client, Failure + bootstrap = Client(args.base_url, timeout=args.deadline) + alice, _, _, chat = bootstrap.bootstrap() + + lock = threading.Lock() + token_lock = threading.Lock() + last_refresh = [time.monotonic()] + + def refresh_session(): + # Sessions live one hour; refresh well before expiry so a 70m warmup + # does not turn into 401s halfway through. + if time.monotonic() - last_refresh[0] < args.token_refresh_seconds: + return + with token_lock: + if time.monotonic() - last_refresh[0] < args.token_refresh_seconds: + return + registration = alice['registration'] + credential = base64.b64encode( + (registration['username'] + ':' + registration['password']).encode()).decode() + refresher = Client(args.base_url, timeout=args.deadline) + session = refresher.call( + 'POST', '/api/v1/auth/sessions', 201, + headers={'Authorization': 'Basic ' + credential}, schema='Session')['json'] + alice['token'] = session['token'] + last_refresh[0] = time.monotonic() + latencies, ttr, failures = [], [], [] + counters = {'accepted': 0, 'ready': 0, 'failed': 0, 'messages': 0, 'uploads': 0, 'dropped': 0} + sem = threading.Semaphore(args.workers) + + def record(kind, elapsed, ok, detail=''): + with lock: + if kind == 'message': + counters['messages'] += 1 + if ok: + latencies.append(elapsed) + else: + counters['failed'] += 1 + failures.append(detail) + else: + if ok: + counters['ready'] += 1 + ttr.append(elapsed) + else: + counters['failed'] += 1 + failures.append(detail) + + def run_one(kind, index): + client = Client(args.base_url, timeout=args.deadline) + started = time.monotonic() + try: + refresh_session() + if kind == 'message': + client.message(alice, chat, 'lab6 load %d %s' % (index, uuid.uuid4().hex[:8])) + record(kind, time.monotonic() - started, True) + else: + att, _ = client.attachment(alice, chat) + with lock: + counters['uploads'] += 1 + counters['accepted'] += 1 + try: + client.wait_ready(alice, att, wait_seconds=args.deadline) + record(kind, time.monotonic() - started, True) + except Exception as exc: + with lock: + counters['failed'] += 1 + failures.append('ready: ' + type(exc).__name__ + ': ' + str(exc)[:120]) + except Exception as exc: + record(kind, time.monotonic() - started, False, type(exc).__name__ + ': ' + str(exc)[:120]) + finally: + sem.release() + + total = max(0, int(args.rate * args.duration)) + started = time.monotonic() + threads = [] + for index in range(total): + target = started + index / max(args.rate, 0.001) + delay = target - time.monotonic() + if delay > 0: + time.sleep(delay) + if not sem.acquire(blocking=False): + with lock: + counters['dropped'] += 1 + continue + kind = 'upload' if ((index * 37) % 100) < int(args.upload_ratio * 100) else 'message' + thread = threading.Thread(target=run_one, args=(kind, index), daemon=True) + threads.append(thread) + thread.start() + + for thread in threads: + thread.join() + + summary = { + 'base_url': args.base_url, + 'rate': args.rate, + 'duration_s': round(time.monotonic() - started, 2), + 'scheduled': total, + 'counters': counters, + 'failures': len(failures), + 'failure_samples': failures[:10], + 'latency_ms': { + 'p50': round(percentile(latencies, 50) * 1000, 1) if latencies else None, + 'p95': round(percentile(latencies, 95) * 1000, 1) if latencies else None, + 'p99': round(percentile(latencies, 99) * 1000, 1) if latencies else None, + }, + 'ttr_ms': { + 'p50': round(percentile(ttr, 50) * 1000, 1) if ttr else None, + 'p95': round(percentile(ttr, 95) * 1000, 1) if ttr else None, + 'p99': round(percentile(ttr, 99) * 1000, 1) if ttr else None, + }, + } + if args.output: + Path(args.output).parent.mkdir(parents=True, exist_ok=True) + Path(args.output).write_text(json.dumps(summary, indent=2) + '\n') + print(json.dumps(summary, indent=2)) + return 0 if not failures else 1 + + +if __name__ == '__main__': + raise SystemExit(main()) diff --git a/scripts/lab6_track2.py b/scripts/lab6_track2.py new file mode 100755 index 0000000..9966b51 --- /dev/null +++ b/scripts/lab6_track2.py @@ -0,0 +1,91 @@ +#!/usr/bin/env python3 +"""Lab6 track 2 scenario driver: burst, sustained outage and false-positive phases. + +It starts the open-loop load, injects a PostgreSQL fault, records alert state and +restores the stand. Use --quick for a short evidence run; the full 15-minute +sustained phase is the graded scenario. +""" +import argparse +import os +import json +import subprocess +import sys +import time +from pathlib import Path + +# The lab tools always target loopback; ignore ambient corporate proxies. +for _proxy_key in ('HTTP_PROXY', 'HTTPS_PROXY', 'ALL_PROXY', 'http_proxy', 'https_proxy', 'all_proxy'): + os.environ.pop(_proxy_key, None) +os.environ['NO_PROXY'] = 'localhost,127.0.0.1,::1' +os.environ['no_proxy'] = 'localhost,127.0.0.1,::1' + +ROOT = Path(__file__).resolve().parents[1] + + +def compose(*args, check=True): + command = ['docker', 'compose', '--env-file', '.env', '-f', 'compose.yaml', *args] + return subprocess.run(command, cwd=ROOT, check=check) + + +def stamp(): + return time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime()) + + +def main(): + parser = argparse.ArgumentParser(description='Lab6 track 2 scenarios') + parser.add_argument('--scenario', choices=['burst', 'sustained', 'false-positive'], default='burst') + parser.add_argument('--quick', action='store_true', help='short 20s phases') + parser.add_argument('--base-url', default='http://localhost:8080') + parser.add_argument('--load-rate', type=float, default=0.5) + parser.add_argument('--output-dir', default='evidence/lab6/track2') + args = parser.parse_args() + out = ROOT / args.output_dir + out.mkdir(parents=True, exist_ok=True) + duration = 20 if args.quick else (120 if args.scenario == 'burst' else 900) + if args.scenario == 'false-positive': + duration = 20 if args.quick else 300 + + load = subprocess.Popen([ + sys.executable, str(ROOT / 'scripts/lab6_load.py'), + '--base-url', args.base_url, '--rate', str(args.load_rate), + '--duration', str(duration + 20), '--upload-ratio', '0.2', + '--output', str(out / (args.scenario + '-load.json')), + ], cwd=ROOT) + alerts = subprocess.Popen([ + sys.executable, str(ROOT / 'scripts/lab6_alerts.py'), + '--duration', str(duration + 20), '--output', str(out / (args.scenario + '-alerts.csv')), + ], cwd=ROOT) + + time.sleep(5) + injection = stamp() + try: + if args.scenario == 'burst': + compose('pause', 'postgres') + elif args.scenario == 'sustained': + compose('stop', 'worker') + compose('stop', 'postgres') + time.sleep(duration) + finally: + if args.scenario == 'burst': + compose('unpause', 'postgres', check=False) + elif args.scenario == 'sustained': + compose('start', 'postgres', check=False) + time.sleep(5) + compose('up', '-d', '--no-deps', 'worker', check=False) + restore = stamp() + Path(out / (args.scenario + '-phases.json')).write_text(json.dumps({ + 'scenario': args.scenario, + 'injection_utc': injection, + 'restore_utc': restore, + 'duration_seconds': duration, + }, indent=2) + '\n') + time.sleep(10) + + load_rc = load.wait(timeout=duration + 60) + alerts_rc = alerts.wait(timeout=duration + 60) + print('track2 evidence:', out, 'load_rc=', load_rc, 'alerts_rc=', alerts_rc) + return 1 if alerts_rc != 0 else 0 + + +if __name__ == '__main__': + raise SystemExit(main()) diff --git a/scripts/lab6_track2_full.py b/scripts/lab6_track2_full.py new file mode 100755 index 0000000..9313693 --- /dev/null +++ b/scripts/lab6_track2_full.py @@ -0,0 +1,388 @@ +#!/usr/bin/env python3 +"""Full Track 2 timeline with fail-fast, preflight and guaranteed restore. + +Warmup >= 70m, baseline, 2m burst, 15m sustained outage, resolution, TTR and +false-positive phases. The script records injection/restore timestamps, alert +transitions and Prometheus snapshots before and after each fault. +""" +import argparse +import csv +import json +import os +import signal +import subprocess +import sys +import threading +import time +import urllib.parse +import urllib.request +from pathlib import Path + +for _key in ('HTTP_PROXY', 'HTTPS_PROXY', 'ALL_PROXY', 'http_proxy', 'https_proxy', 'all_proxy'): + os.environ.pop(_key, None) +os.environ['NO_PROXY'] = 'localhost,127.0.0.1,::1' +os.environ['no_proxy'] = 'localhost,127.0.0.1,::1' +# tests/client.py builds its own opener; make it ignore macOS system proxies too. +urllib.request.getproxies = lambda: {} +OPENER = urllib.request.build_opener(urllib.request.ProxyHandler({})) + +ROOT = Path(__file__).resolve().parents[1] +ACTIVE_LOAD = [None] + + +def utc(ts=None): + return time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime(ts if ts is not None else time.time())) + + +def http_json(url, timeout=15): + with OPENER.open(url, timeout=timeout) as response: + return json.loads(response.read()) + + +def prom(expr): + url = 'http://localhost:9090/api/v1/query?' + urllib.parse.urlencode({'query': expr}) + return http_json(url).get('data', {}).get('result', []) + + +def alerts(): + return http_json('http://localhost:9090/api/v1/alerts').get('data', {}).get('alerts', []) + + +def compose(*args, check=True): + result = subprocess.run( + ['docker', 'compose', '--env-file', '.env', '-f', 'compose.yaml', *args], + cwd=ROOT, capture_output=True, text=True, check=False, + ) + (ROOT / 'evidence/lab6/track2').mkdir(parents=True, exist_ok=True) + with (ROOT / 'evidence/lab6/track2/full-compose.log').open('a') as log: + log.write(utc() + ' docker compose ' + ' '.join(args) + ' rc=' + str(result.returncode) + '\n') + if result.stderr: + log.write(result.stderr[-2000:] + '\n') + if check and result.returncode != 0: + raise RuntimeError('docker compose %s failed rc=%d: %s' % (' '.join(args), result.returncode, result.stderr[-500:])) + return result + + +def wait_ready(timeout=120): + deadline = time.time() + timeout + while time.time() < deadline: + try: + with OPENER.open('http://localhost:8080/health/ready', timeout=5) as response: + if response.status == 200: + return True + except Exception: + pass + time.sleep(2) + return False + + +class AlertTimeline: + def __init__(self, path): + self.path = path + self.stop = threading.Event() + self.active = set() + self.changes = [] + self.injection = '' + self.lock = threading.Lock() + path.parent.mkdir(parents=True, exist_ok=True) + self.handle = path.open('w', newline='') + self.writer = csv.writer(self.handle) + self.writer.writerow(['observed_utc', 'alert', 'state', 'active_at', 'value', 'injection_utc']) + self.thread = threading.Thread(target=self.run, daemon=True) + + def start(self): + self.thread.start() + + def run(self): + while not self.stop.is_set(): + try: + current = set() + for alert in alerts(): + name = alert.get('labels', {}).get('alertname', '') + state = alert.get('state', '') + current.add((name, state)) + if (name, state) not in self.active: + row = [utc(), name, state, alert.get('activeAt', ''), alert.get('value', ''), self.injection] + with self.lock: + self.changes.append(row) + self.writer.writerow(row) + self.handle.flush() + for name, state in sorted(self.active - current): + row = [utc(), name, 'resolved', '', '', self.injection] + with self.lock: + self.changes.append(row) + self.writer.writerow(row) + self.handle.flush() + self.active = current + except Exception as exc: + with self.lock: + self.writer.writerow([utc(), 'POLL_ERROR', str(exc)[:160], '', '', self.injection]) + self.handle.flush() + self.stop.wait(10) + + def finish(self): + self.stop.set() + self.thread.join(timeout=20) + self.handle.close() + return self.changes + + +def snapshot(out, label): + values = {} + errors = [] + for name, expr in { + 'api_error_5m': 'slo:api_error_ratio:5m', + 'api_error_1h': 'slo:api_error_ratio:1h', + 'api_error_30m': 'slo:api_error_ratio:30m', + 'api_error_6h': 'slo:api_error_ratio:6h', + 'ttr_bad_5m': 'slo:ttr_bad_ratio:5m', + 'ttr_bad_1h': 'slo:ttr_bad_ratio:1h', + 'queue_oldest': 'max(messenger_queue_oldest_job_age_seconds)', + 'queue_depth': 'max(rabbitmq_queue_messages_ready{queue="attachment.process.v1"})', + 'jobs_overdue': 'max(messenger_jobs_overdue)', + 'worker_busy': 'max(messenger_worker_busy)', + }.items(): + try: + result = prom(expr) + values[name] = result[0]['value'][1] if result else None + except Exception as exc: + values[name] = None + errors.append(name + ': ' + str(exc)[:100]) + (out / 'snapshots').mkdir(parents=True, exist_ok=True) + (out / 'snapshots' / (label + '-' + utc().replace(':', '-') + '.json')).write_text(json.dumps(values, indent=2) + '\n') + if errors: + raise RuntimeError('Prometheus snapshot failed: ' + '; '.join(errors)) + return values + + +def run_load(out, label, duration, ratio=0.2, rate=0.2): + log_path = out / (label + '-load.log') + output_path = out / (label + '-load.json') + cmd = [sys.executable, str(ROOT / 'scripts/lab6_load.py'), + '--base-url', 'http://localhost:8080', '--rate', str(rate), + '--duration', str(duration), '--upload-ratio', str(ratio), + '--deadline', '10', '--output', str(output_path)] + log = log_path.open('w') + process = subprocess.Popen(cmd, cwd=ROOT, stdout=log, stderr=subprocess.STDOUT) + ACTIVE_LOAD[0] = (process, log, output_path) + return process, log, output_path + + +def finish_load(process, log, output_path, label, expected_s, allow_failures=False): + try: + rc = process.wait(timeout=expected_s + 300) + except subprocess.TimeoutExpired: + process.kill() + rc = process.wait() + log.close() + ACTIVE_LOAD[0] = None + if not output_path.exists(): + raise RuntimeError(label + ': load produced no JSON (rc=' + str(rc) + ')') + summary = json.loads(output_path.read_text()) + minimum = 0.85 * expected_s if expected_s >= 30 else 0.5 * expected_s + if summary.get('duration_s', 0) < minimum: + raise RuntimeError(label + ': load ran only ' + str(summary.get('duration_s')) + 's, expected ~' + str(expected_s)) + if not allow_failures and (rc != 0 or summary.get('failures', 0)): + raise RuntimeError(label + ': load failed rc=' + str(rc) + ' failures=' + str(summary.get('failures'))) + return summary + + +def restore_stand(): + compose('unpause', 'postgres', check=False) + compose('start', 'postgres', check=False) + compose('up', '-d', '--wait', '--no-deps', 'worker', check=False) + return wait_ready(120) + + +def phase(out, phases, name, started, injection='', restore=''): + value = { + 'phase': name, + 'started_utc': utc(started), + 'finished_utc': utc(), + 'duration_s': round(time.time() - started, 1), + 'injection_utc': injection, + 'restore_utc': restore, + } + phases.append(value) + (out / 'phases.json').write_text(json.dumps(phases, indent=2) + '\n') + + +def main(): + parser = argparse.ArgumentParser(description='Full lab6 Track 2 timeline') + parser.add_argument('--warmup', type=int, default=4200) + parser.add_argument('--baseline', type=int, default=1200) + parser.add_argument('--burst', type=int, default=120) + parser.add_argument('--settle', type=int, default=600) + parser.add_argument('--sustained', type=int, default=900) + parser.add_argument('--resolution', type=int, default=3600) + parser.add_argument('--ttr', type=int, default=900) + parser.add_argument('--false-positive', type=int, default=1200) + parser.add_argument('--out', default='evidence/lab6/track2/full') + args = parser.parse_args() + out = ROOT / args.out + out.mkdir(parents=True, exist_ok=True) + phases = [] + timeline = AlertTimeline(out / 'alerts.csv') + timeline.start() + interrupted = False + exit_code = 0 + try: + def on_signal(signum, _frame): + raise KeyboardInterrupt('signal %d' % signum) + signal.signal(signal.SIGINT, on_signal) + signal.signal(signal.SIGTERM, on_signal) + + if not wait_ready(120): + raise RuntimeError('preflight: /health/ready is not ready') + preflight = run_load(out, 'preflight', 3, ratio=0.5, rate=1.0) + finish_load(*preflight, 'preflight', 3, allow_failures=False) + print(utc(), 'preflight OK; start full track', flush=True) + + t = time.time() + load = run_load(out, 'warmup', args.warmup) + print(utc(), 'warmup started', flush=True) + finish_load(*load, 'warmup', args.warmup) + phase(out, phases, 'warmup', t) + snapshot(out, 'warmup') + + t = time.time() + load = run_load(out, 'baseline', args.baseline) + print(utc(), 'baseline started', flush=True) + finish_load(*load, 'baseline', args.baseline) + phase(out, phases, 'baseline', t) + (out / 'baseline.json').write_text(json.dumps(snapshot(out, 'baseline'), indent=2) + '\n') + + t = time.time() + load = run_load(out, 'burst', args.burst + args.settle) + time.sleep(10) + injection = utc() + timeline.injection = injection + print(utc(), 'burst: pause postgres', flush=True) + compose('pause', 'postgres') + time.sleep(min(30, args.burst)) + burst_active = snapshot(out, 'burst-active') + if args.burst > 30: + time.sleep(args.burst - 30) + compose('unpause', 'postgres') + restore = utc() + print(utc(), 'burst: unpause postgres', flush=True) + finish_load(*load, 'burst', args.burst + args.settle, allow_failures=True) + phase(out, phases, 'burst', t, injection, restore) + burst_after = snapshot(out, 'burst-after') + (out / 'burst.json').write_text(json.dumps({'active': burst_active, 'after': burst_after}, indent=2) + '\n') + + t = time.time() + compose('stop', 'worker') + load = run_load(out, 'sustained', args.sustained + 300) + time.sleep(10) + injection = utc() + timeline.injection = injection + print(utc(), 'sustained: stop postgres', flush=True) + compose('stop', 'postgres') + time.sleep(min(30, args.sustained)) + sustained_active = snapshot(out, 'sustained-active') + if args.sustained > 30: + time.sleep(args.sustained - 30) + compose('start', 'postgres') + if not wait_ready(180): + raise RuntimeError('sustained: readiness did not recover') + compose('up', '-d', '--no-deps', 'worker') + restore = utc() + print(utc(), 'sustained: postgres and worker restored', flush=True) + finish_load(*load, 'sustained', args.sustained + 300, allow_failures=True) + drained = wait_queue_drain(300) + phase(out, phases, 'sustained', t, injection, restore) + sustained_after = snapshot(out, 'sustained-after') + (out / 'sustained.json').write_text(json.dumps({'active': sustained_active, 'after': sustained_after, 'queue_drained': drained}, indent=2) + '\n') + + print(utc(), 'resolution under normal load', flush=True) + t = time.time() + load = run_load(out, 'resolution', args.resolution) + finish_load(*load, 'resolution', args.resolution) + phase(out, phases, 'resolution_wait', t) + snapshot(out, 'resolution') + + t = time.time() + compose('stop', 'worker') + load = run_load(out, 'ttr', args.ttr, ratio=1.0) + time.sleep(10) + injection = utc() + timeline.injection = injection + print(utc(), 'ttr: worker stopped and uploads started', flush=True) + time.sleep(args.ttr) + compose('up', '-d', '--no-deps', 'worker') + restore = utc() + finish_load(*load, 'ttr', args.ttr, allow_failures=True) + wait_queue_drain(300) + phase(out, phases, 'ttr', t, injection, restore) + snapshot(out, 'ttr-after') + + t = time.time() + load = run_load(out, 'false-positive', args.false_positive) + print(utc(), 'false-positive phase started', flush=True) + finish_load(*load, 'false-positive', args.false_positive) + phase(out, phases, 'false-positive', t) + final = snapshot(out, 'final') + (out / 'final.json').write_text(json.dumps(final, indent=2) + '\n') + + except BaseException as exc: + interrupted = True + (out / 'aborted.json').write_text(json.dumps({'aborted_utc': utc(), 'error': repr(exc)}, indent=2) + '\n') + print(utc(), 'ABORT', repr(exc), flush=True) + raise + finally: + if ACTIVE_LOAD[0] is not None: + process, log, _ = ACTIVE_LOAD[0] + if process.poll() is None: + process.terminate() + try: + process.wait(timeout=10) + except subprocess.TimeoutExpired: + process.kill() + process.wait() + log.close() + ACTIVE_LOAD[0] = None + restored = restore_stand() + if not restored and not interrupted: + exit_code = 1 + changes = timeline.finish() + (out / 'alerts.json').write_text(json.dumps(changes, indent=2) + '\n') + try: + final_summary = snapshot(out, 'final-summary') + except Exception as exc: + final_summary = {'error': str(exc)[:200]} + (out / 'summary.md').write_text( + '# Full Track 2 run\n\nPhases:\n```json\n' + json.dumps(phases, indent=2) + + '\n```\n\nFinal snapshot:\n```json\n' + json.dumps(final_summary, indent=2) + + '\n```\n\nAborted: ' + str(interrupted) + '\nRestored: ' + str(restored) + '\n') + print(utc(), 'done; evidence', out, flush=True) + return exit_code + + +def wait_queue_drain(timeout=300): + deadline = time.time() + timeout + good = 0 + while time.time() < deadline: + try: + oldest = prom('max(messenger_queue_oldest_job_age_seconds)') + depth = prom('max(rabbitmq_queue_messages_ready{queue="attachment.process.v1"})') + if not oldest or not depth: + good = 0 + time.sleep(10) + continue + oldest_v = float(oldest[0]['value'][1]) + depth_v = float(depth[0]['value'][1]) + if oldest_v < 5 and depth_v < 5: + good += 1 + if good >= 2: + return True + else: + good = 0 + except Exception: + good = 0 + time.sleep(10) + return False + + +if __name__ == '__main__': + raise SystemExit(main()) diff --git a/scripts/lab6_verify.py b/scripts/lab6_verify.py new file mode 100755 index 0000000..19257bb --- /dev/null +++ b/scripts/lab6_verify.py @@ -0,0 +1,270 @@ +#!/usr/bin/env python3 +"""Strict lab6 observability gate. + +It creates a fresh message and attachment, waits for all three signals, checks +route/template cardinality, Grafana provisioning and rules, and verifies that +user content and credentials never reached Loki. A missing signal is a failure, +not a warning. +""" +import argparse +import os +import base64 +import json +import re +import sys +import time +import urllib.error +import urllib.parse +import urllib.request +import uuid +from pathlib import Path + +# The lab tools always target loopback; ignore ambient corporate proxies. +for _proxy_key in ('HTTP_PROXY', 'HTTPS_PROXY', 'ALL_PROXY', 'http_proxy', 'https_proxy', 'all_proxy'): + os.environ.pop(_proxy_key, None) +os.environ['NO_PROXY'] = 'localhost,127.0.0.1,::1' +os.environ['no_proxy'] = 'localhost,127.0.0.1,::1' +urllib.request.getproxies = lambda: {} + +ROOT = Path(__file__).resolve().parents[1] +UUID_RE = re.compile(r'[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', re.I) +FORBIDDEN_LABELS = {'user_id', 'chat_id', 'message_id', 'attachment_id', 'filename', 'request_id', 'object_key', 'path', 'query'} + + +def request(url, auth=None, timeout=10): + headers = {'Accept': 'application/json'} + if auth: + headers['Authorization'] = 'Basic ' + base64.b64encode(auth.encode()).decode() + req = urllib.request.Request(url, headers=headers) + with urllib.request.urlopen(req, timeout=timeout) as response: + return response.status, response.read() + + +def prom(base, expr): + url = base.rstrip('/') + '/api/v1/query?' + urllib.parse.urlencode({'query': expr}) + _, raw = request(url) + return json.loads(raw).get('data', {}).get('result', []) + + +def prom_series(base, match): + url = base.rstrip('/') + '/api/v1/series?' + urllib.parse.urlencode({'match[]': match}) + _, raw = request(url) + return json.loads(raw).get('data', []) + + +def loki_query(base, query, start_ns, end_ns, limit=20): + params = urllib.parse.urlencode({'query': query, 'start': start_ns, 'end': end_ns, 'limit': limit}) + _, raw = request(base.rstrip('/') + '/loki/api/v1/query_range?' + params) + return json.loads(raw).get('data', {}).get('result', []) + + +def grafana_password(): + path = ROOT / 'secrets/grafana.env' + if not path.exists(): + return None + for line in path.read_text().splitlines(): + if '=' in line and line.split('=', 1)[0].strip() == 'GF_SECURITY_ADMIN_PASSWORD': + return line.split('=', 1)[1].strip() + return None + + +def wait_for(fn, attempts=30, delay=2): + last = None + for _ in range(attempts): + try: + value = fn() + if value: + return value + except Exception as exc: # noqa: BLE001 - retry the external endpoint + last = exc + time.sleep(delay) + if last: + raise last + return None + + +def main(): + parser = argparse.ArgumentParser(description='Strict lab6 telemetry gate') + parser.add_argument('--base-url', default='http://localhost:8080') + parser.add_argument('--prometheus', default='http://localhost:9090') + parser.add_argument('--loki', default='http://localhost:3100') + parser.add_argument('--tempo', default='http://localhost:3200') + parser.add_argument('--grafana', default='http://localhost:3000') + parser.add_argument('--wait-seconds', type=int, default=60) + args = parser.parse_args() + failures = [] + notes = [] + + # 1. Generate a controlled request, a message and a job. + sys.path.insert(0, str(ROOT / 'tests')) + from client import Client + client = Client(args.base_url, timeout=15) + alice, _, _, chat = client.bootstrap() + request_id = 'lab6-verify-' + uuid.uuid4().hex + sentinel = 'SENTINEL-TELEMETRY-' + uuid.uuid4().hex + client.call('POST', '/api/v1/chats/' + chat['id'] + '/messages', 201, actor=alice, + body={'text': sentinel}, headers={'Idempotency-Key': uuid.uuid4().hex, 'X-Request-ID': request_id}) + att, content = client.attachment(alice, chat) + client.wait_ready(alice, att, wait_seconds=60) + filename = 'sentinel-' + uuid.uuid4().hex + '.png' + from urllib.parse import quote + client.call('POST', '/api/v1/chats/' + chat['id'] + '/attachments?filename=' + quote(filename), 202, + actor=alice, raw=content, headers={'Content-Type': 'image/png'}, schema='Attachment') + token = alice.get('token', '') + notes.append('created request_id=' + request_id) + + # 2. Required metric series. Counter/histogram series can take one export + # and one scrape interval to appear. + required = [ + ('messenger_http_server_requests_total', 'API request counter'), + ('http_server_request_duration_seconds_bucket', 'HTTP duration histogram'), + ('messenger_jobs_processed_total', 'job attempt counter'), + ('messenger_jobs_accepted_total', 'accepted jobs'), + ('messenger_jobs_ready_within_budget_total', 'ready-within-budget'), + ('messenger_job_duration_seconds_bucket', 'job duration histogram'), + ('messenger_job_time_to_ready_seconds_bucket', 'time-to-ready histogram'), + ('messenger_jobs_overdue', 'overdue jobs'), + ('messenger_worker_busy', 'worker saturation'), + ('messenger_db_pool_used', 'DB pool'), + ('messenger_queue_oldest_job_age_seconds', 'oldest job age'), + ('messenger_outbox_oldest_unpublished_age_seconds', 'outbox age'), + ('messenger_process_cpu_seconds_total', 'process CPU'), + ('rabbitmq_queue_messages_ready', 'RabbitMQ queue depth'), + ('otelcol_exporter_queue_size', 'collector queue self-metric'), + ] + for metric, label in required: + try: + found = wait_for(lambda m=metric: prom(args.prometheus, 'count(' + m + ')'), attempts=max(1, args.wait_seconds // 3), delay=3) + if not found: + failures.append(label + ': no samples (' + metric + ')') + except Exception as exc: + failures.append(label + ': ' + str(exc)) + + try: + up = prom(args.prometheus, 'up{job=~"otel-collector|haproxy|rabbitmq"} == 1') + jobs = {item.get('metric', {}).get('job') for item in up} + for job in ('otel-collector', 'haproxy', 'rabbitmq'): + if job not in jobs: + failures.append('Prometheus target is not up: ' + job) + except Exception as exc: + failures.append('Prometheus targets: ' + str(exc)) + + try: + series = prom_series(args.prometheus, 'messenger_http_server_requests_total') + routes = [item.get('http_route', '') for item in series] + if not series: + failures.append('HTTP metric has no series') + for route in routes: + if not route: + failures.append('HTTP metric has an empty http_route label') + if UUID_RE.search(route): + failures.append('HTTP route label contains a UUID: ' + route) + labels = {key for item in series for key in item} + forbidden = labels & FORBIDDEN_LABELS + if forbidden: + failures.append('HTTP metric has forbidden labels: ' + ', '.join(sorted(forbidden))) + methods = {item.get('http_request_method', '') for item in series} + if len(methods) > 7: + failures.append('HTTP method label cardinality is too high: ' + str(len(methods))) + for method in methods: + if method not in {'GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS', 'OTHER'}: + failures.append('HTTP method is not normalized: ' + method) + except Exception as exc: + failures.append('HTTP label check: ' + str(exc)) + + # 3. Loki must contain the access log for the controlled request and must + # not contain the message text, session token or file bytes. + end = int(time.time() * 1e9) + start = end - 15 * 60 * int(1e9) + try: + found = wait_for(lambda: loki_query(args.loki, '{service_name=~"messenger-api|messenger-worker|messenger-relay"} | request_id="' + request_id + '"', start, end), attempts=20, delay=2) + if not found: + failures.append('Loki: no log with the generated request_id (trace/log correlation)') + for needle, label in ((sentinel, 'message text'), (token, 'session token'), (filename, 'filename')): + if needle and loki_query(args.loki, '{service_name=~"messenger-api|messenger-worker|messenger-relay"} |= "' + needle + '"', start, end): + failures.append('Loki contains forbidden ' + label) + except Exception as exc: + failures.append('Loki query: ' + str(exc)) + + # 4. Tempo must contain real application traces, including the worker span. + # Tempo's search `name=` matches root spans only. job.process is a child of + # the controlled API trace, so resolve its trace_id from the worker log and + # fetch that trace directly. + try: + def tempo_search(tag): + q = urllib.parse.quote(tag) + _, raw = request(args.tempo.rstrip('/') + '/api/search?tags=' + q + '&limit=20') + return json.loads(raw).get('traces', []) + + def worker_job_trace(): + result = loki_query( + args.loki, + '{service_name="messenger-worker"} | event="attachment ready"', + start, end, limit=50, + ) + for stream in result: + for _, line in stream.get('values', []): + try: + entry = json.loads(line) + except json.JSONDecodeError: + entry = {} + trace_id = entry.get('trace_id') or stream.get('stream', {}).get('trace_id', '') + if not re.fullmatch(r'[0-9a-f]{32}', trace_id): + continue + try: + _, raw = request(args.tempo.rstrip('/') + '/api/traces/' + trace_id) + except Exception: + continue + if 'job.process' in raw.decode('utf-8', 'replace'): + return trace_id + return None + + if not wait_for(lambda: tempo_search('service.name=messenger-api'), attempts=15, delay=2): + failures.append('Tempo: no messenger-api traces') + if not wait_for(worker_job_trace, attempts=20, delay=2): + failures.append('Tempo: no worker job.process trace linked to worker log') + except Exception as exc: + failures.append('Tempo query: ' + str(exc)) + + # 5. Grafana provisioning and rules. + try: + password = grafana_password() + if not password: + failures.append('Grafana admin secret is missing (secrets/grafana.env)') + else: + _, raw = request(args.grafana.rstrip('/') + '/api/health') + if json.loads(raw).get('database') != 'ok': + failures.append('Grafana health is not ok') + _, raw = request(args.grafana.rstrip('/') + '/api/datasources', auth='admin:' + password) + names = {item.get('name') for item in json.loads(raw)} + for required_name in ('Prometheus', 'Loki', 'Tempo'): + if required_name not in names: + failures.append('Grafana datasource missing: ' + required_name) + for uid in ('lab6-overview', 'lab6-jobs', 'lab6-infra'): + _, raw = request(args.grafana.rstrip('/') + '/api/dashboards/uid/' + uid, auth='admin:' + password) + if json.loads(raw).get('dashboard', {}).get('uid') != uid: + failures.append('Grafana dashboard missing: ' + uid) + except Exception as exc: + failures.append('Grafana: ' + str(exc)) + + try: + _, raw = request(args.prometheus.rstrip('/') + '/api/v1/rules') + rule_names = {r.get('name') for g in json.loads(raw).get('data', {}).get('groups', []) for r in g.get('rules', [])} + for name in ('APIErrorBudgetFastBurn', 'APIErrorBudgetSlowBurn', 'QueueOldestJobAgeHigh', 'TTRErrorBudgetFastBurn'): + if name not in rule_names: + failures.append('Prometheus rule missing: ' + name) + except Exception as exc: + failures.append('Prometheus rules: ' + str(exc)) + + for note in notes: + print('NOTE:', note) + if failures: + for item in failures: + print('FAIL:', item) + return 1 + print('PASS: lab6 strict telemetry gate (signals, trace/log correlation, labels, Grafana, rules, privacy sentinels)') + return 0 + + +if __name__ == '__main__': + raise SystemExit(main()) diff --git a/scripts/lb_readiness_check.sh b/scripts/lb_readiness_check.sh index dbe40e5..a69697f 100755 --- a/scripts/lb_readiness_check.sh +++ b/scripts/lb_readiness_check.sh @@ -24,11 +24,11 @@ if [ -f .env ]; then fi OUT=${OUT:-evidence/lab5/lb-readiness-detail.txt} -PROJECT=${COMPOSE_PROJECT_NAME:-mtusi-messenger-lab5} +PROJECT=${COMPOSE_PROJECT_NAME:-mtusi-messenger-lab6} NET=${PROJECT}_default -IMAGE=${IMAGE:-mtusi-messenger:lab5} -STATS=${STATS:-http://127.0.0.1:8404/stats;csv} -BASE_URL=${BASE_URL:-http://localhost:8080} +IMAGE=${IMAGE:-mtusi-messenger:lab6} +STATS=${STATS:-http://127.0.0.1:${LB_STATS_PORT:-8404}/stats;csv} +BASE_URL=${BASE_URL:-http://localhost:${SERVER_PORT:-8080}} CANDIDATE=lb-readiness-candidate PROXY=lb-readiness-pgproxy REQUESTS=${REQUESTS:-40} diff --git a/scripts/stop-one.sh b/scripts/stop-one.sh index fbb8ede..4a7f71e 100755 --- a/scripts/stop-one.sh +++ b/scripts/stop-one.sh @@ -13,7 +13,7 @@ set -eu # No credentials are printed. : "${TARGET_INSTANCE_ID:?test provides target API instance alias}" -PROJECT=${COMPOSE_PROJECT_NAME:-mtusi-messenger-lab5} +PROJECT=${COMPOSE_PROJECT_NAME:-mtusi-messenger-lab6} candidates=$(docker ps -q \ --filter "label=com.docker.compose.project=${PROJECT}" \ diff --git a/student-tests/lab5_faults.py b/student-tests/lab5_faults.py index 0df3283..adcc7d1 100755 --- a/student-tests/lab5_faults.py +++ b/student-tests/lab5_faults.py @@ -19,8 +19,8 @@ from client import Client, Failure, arguments, check, run # noqa: E402 from tests_helpers import compose, jobctl, psql # noqa: E402 FIXTURE = Path(__file__).resolve().parents[1] / 'tests/fixtures/sample.png' -WORKER = 'mtusi-messenger-lab5-worker-1' -RELAY = 'mtusi-messenger-lab5-relay-1' +WORKER = 'mtusi-messenger-lab6-worker-1' +RELAY = 'mtusi-messenger-lab6-relay-1' def worker_with(**env): @@ -61,7 +61,7 @@ def wait_db(attachment_id, predicate, timeout=120, description=''): def queue_messages(name): - project = 'mtusi-messenger-lab5' + project = 'mtusi-messenger-lab6' result = subprocess.run( ['docker', 'exec', project + '-broker-1', 'rabbitmqctl', '-p', 'messenger', 'list_queues', 'name', 'messages'], capture_output=True, text=True, check=True, diff --git a/student-tests/tests_helpers.py b/student-tests/tests_helpers.py index 5821b98..23a3fa6 100644 --- a/student-tests/tests_helpers.py +++ b/student-tests/tests_helpers.py @@ -24,7 +24,7 @@ def jobctl(*args, check=True): def psql(sql): """Read a scalar/list from the stand database (operator evidence only).""" - project = os.environ.get('COMPOSE_PROJECT_NAME', 'mtusi-messenger-lab5') + project = os.environ.get('COMPOSE_PROJECT_NAME', 'mtusi-messenger-lab6') result = subprocess.run( ['docker', 'exec', project + '-postgres-1', 'psql', '-U', 'messenger', '-d', 'messenger', '-Atc', sql], cwd=ROOT, capture_output=True, text=True, check=True, @@ -35,7 +35,7 @@ def psql(sql): def containers_by_hostname(service='api'): """{hostname: {id, name, status}} для контейнеров сервиса.""" - project = os.environ.get('COMPOSE_PROJECT_NAME', 'mtusi-messenger-lab5') + project = os.environ.get('COMPOSE_PROJECT_NAME', 'mtusi-messenger-lab6') listed = subprocess.run( [ 'docker', 'ps', '-q',