ЛР 6 — БВТ2301 — Иванов — на 5 #31
@@ -0,0 +1,16 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.{java,py}]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
max_line_length = 100
|
||||
|
||||
[*.java]
|
||||
ij_java_class_count_to_use_import_on_demand = 999
|
||||
ij_java_names_count_to_use_import_on_demand = 999
|
||||
@@ -0,0 +1,2 @@
|
||||
gradlew text eol=lf
|
||||
*.sh text eol=lf
|
||||
@@ -1,18 +1,32 @@
|
||||
## Лабораторная 6
|
||||
|
||||
Автор / группа: TODO
|
||||
Целевая оценка (3/4/5): TODO
|
||||
Трек 5, если заявлен: TODO
|
||||
**Автор и группа** — Иванов Данил, БВТ2301
|
||||
**Целевая оценка** — 5
|
||||
**Трек** — 2, SLO и обнаружение инцидентов
|
||||
|
||||
Что реализовано и что перенесено: TODO
|
||||
Команды запуска из чистого clone: TODO
|
||||
Результаты проверок и ссылка на REPORT.md: TODO
|
||||
Ограничения / известные ошибки: TODO
|
||||
Источники и использование ИИ: TODO
|
||||
Перенёс API и защищённую фоновую обработку вложений из своей ЛР5. Две API и два worker передают телеметрию через OpenTelemetry Collector в Prometheus, Loki и Tempo. Grafana загружает dashboard и три источника данных из provisioning. W3C trace context проходит через outbox и Redis Streams, поэтому в Tempo видны запрос, dispatcher, попытки worker, S3 и PostgreSQL. Правила Prometheus проверяют 5xx, queue age и burn rate двух SLO.
|
||||
|
||||
- [ ] Весь обязательный минимум текущей и предыдущих работ сохранён с объявленными переходами.
|
||||
- [ ] Контракт и публичные тесты не ослаблены.
|
||||
- [ ] make check и make test выполнены; приложен реальный вывод.
|
||||
- [ ] Сценарии отказов/безопасности своего уровня воспроизведены.
|
||||
- [ ] Все секреты и приватные ключи находятся вне Git; отчёт не содержит tokens.
|
||||
- [ ] README задания сохранён, REPORT.md содержит инструкцию именно моего решения.
|
||||
Запуск из чистого клона на Windows при работающем Docker Desktop.
|
||||
|
||||
```powershell
|
||||
pwsh -File scripts/bootstrap.ps1
|
||||
docker compose -f docker-compose.yml -f compose.local.yaml up -d --build
|
||||
$env:BASE_URL='http://127.0.0.1:18085'
|
||||
py scripts/check_contract.py
|
||||
py tests/smoke.py
|
||||
```
|
||||
|
||||
Запускать smoke после готовности двух API. Grafana открывается на `http://127.0.0.1:13006/d/messenger-lab6`. Полный набор проверок запускается через `pwsh -File scripts/run_tests.ps1`, зависимости описаны в отчёте.
|
||||
|
||||
В опыте с БД единичный 503 не вызвал алерты. Продолжительная блокировка вызвала обычный 5xx и оба API burn rate, причина подтверждена дочерним span PostgreSQL. Остановка воркеров накопила 16 задач. После восстановления все дошли до READY, queue lag и оба READY burn rate вернулись в inactive. Во время остановки Loki 30 сообщений подтвердились и были прочитаны обратно. Collector зарегистрировал потери части логов, после старта Loki получен свежий лог. Детальные команды, результаты, замеры и ограничения находятся в [REPORT.md](../REPORT.md).
|
||||
|
||||
Ограничения — один Docker-хост, отдельные одиночные хранилища, ускоренные окна оповещений. При длительной недоступности backend возможна потеря телеметрии. Результаты SLI относятся к наблюдённым событиям.
|
||||
|
||||
Источники — собственная ЛР5 `ef7e8c3`, контракт курса, официальная документация OpenTelemetry, Grafana, Prometheus и Google SRE Workbook. Codex использован для переноса, инструментирования, экспериментов и подготовки отчёта.
|
||||
|
||||
- [x] Обязательный минимум текущей и предыдущих работ сохранён с объявленными переходами.
|
||||
- [x] Контракт и публичные тесты не ослаблены.
|
||||
- [x] Python-команды из make check и make test выполнены, вывод приложен.
|
||||
- [x] Сценарии отказов уровня и трека воспроизведены.
|
||||
- [x] Секреты и приватные ключи вне Git, отчёт не содержит токены.
|
||||
- [x] README задания сохранён, REPORT.md описывает запуск и проверки решения.
|
||||
|
||||
@@ -30,3 +30,4 @@ coverage/
|
||||
.vscode/
|
||||
# Keep small, sanitized evidence summaries in evidence/ under version control.
|
||||
# Inspect git diff --cached: ignore rules are not a secret scanner.
|
||||
.gradle/
|
||||
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
FROM eclipse-temurin:21-jdk-jammy@sha256:432e54724c3e57d1846aeb886f4d339f3b0522931c4e64119c2797013b7cfc3c AS builder
|
||||
WORKDIR /build
|
||||
COPY gradle gradle
|
||||
COPY gradlew settings.gradle build.gradle ./
|
||||
COPY contracts contracts
|
||||
COPY src src
|
||||
RUN --mount=type=cache,target=/root/.gradle,sharing=locked chmod +x gradlew && ./gradlew bootJar -x test --no-daemon
|
||||
|
||||
FROM eclipse-temurin:21-jre-jammy@sha256:dff6eb46527bd293a3c06bbbe9e64e8c9f91f01905b5abbdad31761c03059d2c AS runner
|
||||
WORKDIR /app
|
||||
RUN groupadd --system spring && useradd --system --gid spring --no-create-home spring
|
||||
COPY --from=builder /build/build/libs/*.jar app.jar
|
||||
RUN chown spring:spring app.jar
|
||||
USER spring
|
||||
EXPOSE 8080
|
||||
HEALTHCHECK --interval=10s --timeout=3s --start-period=20s --retries=3 \
|
||||
CMD wget -qO- http://127.0.0.1:8080/actuator/health/readiness | grep -q UP || exit 1
|
||||
ENV JAVA_OPTS="-XX:MaxRAMPercentage=75 -Xss512k"
|
||||
ENTRYPOINT ["sh", "-c", "exec java -Dfile.encoding=UTF-8 $JAVA_OPTS -jar app.jar"]
|
||||
@@ -1,37 +1,110 @@
|
||||
# Отчёт — лабораторная 6
|
||||
|
||||
- Автор, группа: TODO
|
||||
- Целевая оценка; выбранный трек 5, если нужен: TODO
|
||||
- Commit/PR: TODO после публикации
|
||||
- Использованные источники, библиотеки и помощь ИИ: TODO
|
||||
- Автор и группа: Иванов Данил, БВТ2301.
|
||||
- Целевая оценка: **5**, трек 2 «SLO и обнаружение инцидентов».
|
||||
- База: skeleton ЛР6 `470d9d6`. Перенос из собственной ЛР5 `ef7e8c3`, исходники и одна миграция V1. Ветка решения `solution/bvt2301-ivanov`.
|
||||
- Проверенная реализация: `8a96df4`. [MR №31 в main репозитория преподавателя](https://gitea.privcloud.tech/mtusi2026/mtusi2026lab6/pulls/31).
|
||||
- Источники: контракт [наблюдаемости](contracts/observability.md), [W3C Trace Context](https://www.w3.org/TR/trace-context/), [OTel Collector](https://opentelemetry.io/docs/collector/configuration/), [Loki OTLP](https://grafana.com/docs/loki/latest/send-data/otel/), [Prometheus histograms](https://prometheus.io/docs/practices/histograms/), [Google SRE Workbook](https://sre.google/workbook/alerting-on-slos/). Codex использован при переносе, инструментировании, тестировании и подготовке отчёта.
|
||||
|
||||
## Запуск из чистого clone
|
||||
|
||||
TODO: версии runtime/образов, prerequisites, команды создания локальных secrets/.env, build, миграций, запуска, ожидания готовности, тестов и остановки. Указать необходимые действия оператора. Не вставлять секреты. Отдельно указать безопасную остановку и команду намеренного удаления учебных данных.
|
||||
Docker Desktop с Linux containers и Compose v2, PowerShell 7, Python 3.10+ и JDK 21 для локальной сборки и проверки стиля. Docker собирает Java через Gradle Wrapper 9.3.0 и Python через pip. Поддерживаемый профиль эксперимента один локальный Docker-хост.
|
||||
|
||||
## Архитектура и решения
|
||||
```powershell
|
||||
pwsh -File scripts/bootstrap.ps1
|
||||
docker compose config --quiet
|
||||
docker compose -f docker-compose.yml -f compose.local.yaml up -d --build
|
||||
$env:BASE_URL='http://127.0.0.1:18085'
|
||||
docker compose ps
|
||||
py scripts/check_contract.py
|
||||
py tests/smoke.py
|
||||
```
|
||||
|
||||
TODO: схема процессов/хранилищ, источник истины, транзакционные границы, ограничения. Что перенесено из lab5, что изменено в этой работе. Соответствие переменных из .env.example реальной конфигурации.
|
||||
Дождаться двух healthy API, `GET /health/ready`, Grafana `/api/health` и готовности хранилищ. Grafana открывается на http://127.0.0.1:13006/d/messenger-lab6. Обычная публикация API составляет 8080. В локальном override публикуется 18085. В Grafana доступен локальный Viewer, внутренние OTLP и порты хранилищ доступны сервисам Compose. Локальные пароли генерирует bootstrap в `secrets/`. Flyway применяет V1 на новой PostgreSQL и координирует миграцию между API. MinIO bootstrap создаёт приватный бакет и ограниченную учётную запись.
|
||||
|
||||
```powershell
|
||||
py -m pip install -r requirements-tools.txt
|
||||
pwsh -File scripts/run_tests.ps1
|
||||
```
|
||||
|
||||
Python-команды выше эквивалентны `make check` и `make test`. Полный runner запускает Java, OpenAPI, style, перенесённые регрессии ЛР5, проверку сигналов, инциденты, нагрузку, persistence и failover. Запускать его последовательно на учебном стенде. Он временно включает профили инъекций ЛР5, останавливает нужные контейнеры и восстанавливает обычный профиль в `finally`. Методика диагностики находится в [runbook](infra/otel/runbook.md). Остановить с сохранением данных можно через `docker compose down`. `docker compose down -v` намеренно удаляет данные этого учебного стенда.
|
||||
|
||||
## Архитектура
|
||||
|
||||
```text
|
||||
HTTP → nginx → Java API ×2 → PostgreSQL и приватный MinIO staging
|
||||
COMMIT вложение + job + outbox → 202
|
||||
↓
|
||||
dispatcher → Redis Streams → Python worker ×2
|
||||
worker: read S3 → variants → COMMIT READY → ACK
|
||||
|
||||
API / dispatcher / worker → OTLP HTTP protobuf → Collector
|
||||
metrics → Prometheus exporter :8889 → Prometheus TSDB
|
||||
logs → Loki native OTLP
|
||||
traces → Tempo OTLP gRPC
|
||||
Prometheus / Loki / Tempo ← запросы Grafana
|
||||
```
|
||||
|
||||
Из ЛР5 перенесены контракты поведения, PostgreSQL как источник истины для сессий, сообщений и заданий, лимиты очереди, bounded decode, S3 variant manifest, leases и версии. Публичные файлы контракта и тестов ЛР6 сохранены. Транзакция upload фиксирует вложение, задание и outbox. В её W3C carrier записывается контекст запроса. Dispatcher создаёт producer span с родителем HTTP span и передаёт его контекст с сообщением. Consumer получает producer как родителя. Дочерний image process получает контекст consumer. Retry публикуется с исходным контекстом из outbox и виден в той же трассе. PostgreSQL fencing по версии, lease token и deadline защищает COMMIT результата. Metrics/logs/traces обслуживают диагностику и не участвуют в подтверждении записи.
|
||||
|
||||
Компоненты и версии закреплены в [Compose](docker-compose.yml), [Dockerfile](Dockerfile) и [worker Dockerfile](worker/Dockerfile). API использует Java 21, Spring Boot 4.1.1 и OTel Java 1.62.0. Worker использует Python 3.12.12, Pillow 12.0.0 и OTel Python 1.34.1. Collector contrib 0.128.0, Prometheus 3.4.1, Loki 3.5.1, Tempo 2.8.1, Grafana 12.0.2. Business volumes pgdata, redisdata, brokerdata, minio-data. Отдельные volumes Prometheus, Loki, Tempo и Grafana сохраняют историю и настройки. Хранилища телеметрии имеют окно хранения 24 часа, Prometheus также ограничен 512 MB. Внешними точками входа на хосте служат loopback LB и Grafana.
|
||||
|
||||
`.env.example` задаёт логические настройки. PostgreSQL и S3 получают локальные credentials из Compose secret files, Redis broker доступен по имени `broker`. API и worker задают отдельные `service.name`, версию 6.0.0, instance ID из контейнера и окружение lab. Compose задаёт внутренний `OTEL_EXPORTER_OTLP_ENDPOINT` и HTTP/protobuf. Лимиты job и retention задаются в Compose. Для Java Hikari отражает оперативные gauge значений used/waiting/capacity. Во время недоступности аутентификационной БД возвращается контрактный JSON 503 с X-Request-Id.
|
||||
|
||||
Collector применяет memory_limiter и batch. OTLP exporters к Loki и Tempo имеют по 32 элемента очереди, один consumer, 2 с timeout и до 10 с retry. Java SDK имеет ограниченные очереди логов и трасс по 256. Python SDK использует очереди по 128, короткий timeout и ограниченный flush в дочернем процессе. Приложение передаёт технические имена операций, outcome и безопасный UUID запроса. Экспорт произвольных application logs, payload, SQL-параметров и HTTP-заголовков выключен. Логи имеют timestamp, severity, service, event и активные trace/span ID. Лейблы метрик HTTP ограничены методом, шаблоном маршрута и классом статуса.
|
||||
|
||||
## SLI, SLO и запросы
|
||||
|
||||
| Сигнал | Метрика и смысл |
|
||||
| --- | --- |
|
||||
| API RPS / ошибки | `lab_http_requests_total`, sum(rate) по репликам. Ошибки — 5xx на запросах под /api/v1/. Health исключён, клиентские 4xx входят только в знаменатель |
|
||||
| API p50/p95/p99 | `histogram_quantile(p, sum by(le)(rate(lab_http_duration_seconds_bucket[1m])))`. Суммируются бакеты, единица — секунды |
|
||||
| Worker outcomes и время | `lab_jobs_total` по outcome, `lab_job_duration_seconds_bucket` в секундах. Метрика относится к доставке, включая retry, timeout, crash и duplicate |
|
||||
| Queue depth / age | `lab_queue_depth` и `lab_queue_oldest_seconds` из PostgreSQL по QUEUED/PROCESSING. Возраст считается от создания старейшей работы |
|
||||
| Pool и saturation | Hikari `lab_db_pool_connections`, `sum(lab_worker_busy)/sum(lab_worker_capacity)`, RSS bytes и CPU seconds по процессам. Worker process RSS относится к родительскому процессу. Container RSS включает дочерний декодер и измеряется отдельно через docker stats |
|
||||
| Acceptance → READY | `lab_ready_duration_seconds_bucket`, завершение публикации минус время создания durable job в транзакции. Точность timestamps ограничена границей COMMIT |
|
||||
|
||||
Гипотеза трека — совместная проверка двух окон и минимального объёма наблюдений подавит одиночный сбой, а длительный сбой БД и задержка обработки дадут локальные алерты с диагностируемой причиной.
|
||||
|
||||
- API SLO **99%** ответов без 5xx за 30 минут учебного трафика. Бюджет ошибок 1%. Это цель для бизнес-запросов, дошедших до Java API. Ответы, сформированные балансировщиком до попадания в приложение, измеряются отдельно проверкой failover.
|
||||
- READY SLO **95%** наблюдённых завершений за 30 минут публикуются в течение **5 с** от принятия. Бюджет 5%. `lab_ready_sli_total` учитывает успешные в пределах 5 с, поздние READY и терминальные ошибки, наблюдённые worker. Незавершённая работа до выхода в terminal видна в отдельном сигнале queue age. Если процесс завершился после COMMIT и до отправки наблюдения либо telemetry backend недоступен, измерение SLI может потеряться, о чём судят по счётчикам Collector и реестру jobs. Метрика ориентирована на учебную диагностику.
|
||||
- Burn rate = наблюдаемая доля плохих событий / бюджет. Fast правила требуют **5×** и превышение в обоих окнах **1m / 15s**, минимум 6 наблюдений в длинном окне, `for: 9s`. Slow правила требуют **2×** в **3m / 45s**, минимум 12, `for: 18s`. Учебные окна сокращены для воспроизведения, scrape и evaluation по 3 с. Базовые алерты API 5xx >10% за 30 с и age >8 с с ненулевым backlog заданы отдельно. Источник вычислений — [alerts.yaml](infra/otel/alerts.yaml). Локальные Grafana panels берут правила и метрики из Prometheus.
|
||||
|
||||
## Доказательства критериев
|
||||
|
||||
| Критерий README | Команда/сценарий | Наблюдаемый результат | Файл доказательства |
|
||||
| --- | --- | --- | --- |
|
||||
| Публичный smoke | make test | TODO | TODO |
|
||||
| Остальные пункты уровня 3 | TODO | TODO | TODO |
|
||||
| Все пункты уровня 4, если заявлен | TODO | TODO | TODO |
|
||||
| Выбранный трек 5, если заявлен | TODO | TODO | TODO |
|
||||
Проверки сохраняют небольшие JSON и вывод команд. Секреты, реальные сообщения, картинки и сырые дампы исключены. Скрипты лежат в `student-tests/`, публичные — в `tests/`.
|
||||
|
||||
TODO: добавить отдельную строку для каждого заявленного критерия. PASS без команды и наблюдения не является доказательством. Проверка инфраструктурного hook требует подтверждения, какие реальные процессы/хранилища перезапущены.
|
||||
| Критерий | Команда и наблюдение | Доказательство |
|
||||
| --- | --- | --- |
|
||||
| Скелет и контракт | Python check и валидация OpenAPI | [check](evidence/contract-check.txt), [validate](evidence/openapi-validation.txt) |
|
||||
| Сквозной бизнес-API | Публичный smoke с включённой телеметрией | [smoke](evidence/smoke.txt) |
|
||||
| Компиляция Java и стиль | Gradle test, style.py | [Java](evidence/java-build.txt), [style](evidence/style.txt) |
|
||||
| Импортируемые Grafana и три сигнала | observe.py запрашивает реальные данные через три provisioned datasource и проверяет перечень метрик | [observe](evidence/observe.txt), [metrics](evidence/metric-inventory.json), [dashboard](infra/otel/grafana/dashboards/messenger.json) |
|
||||
| W3C, retry, логи и приватность | Один upload, принудительный transient retry, серверный span → producer → два consumer, S3 и PostgreSQL; marker отсутствует | [trace и события](evidence/signal-link.json), [runtime payload schema](evidence/job-schema.json) |
|
||||
| Правила и runbook | Promtool проверяет 6 правил, runbook связывает панели, Loki и Tempo | [rules](evidence/alert-rules.txt), [runbook](infra/otel/runbook.md) |
|
||||
| Краткий и длительный отказ БД | Один отменённый запрос, затем ограниченная блокировка sessions. 503 и длительный span lookup отличают зависимость от handler | [замеры](evidence/database-incident.json), [вывод](evidence/incident-db.txt) |
|
||||
| Worker stop, queue age, READY SLO | 16 принятых jobs, рост возраста, оба burn rate, все READY после запуска | [замеры](evidence/queue-incident.json), [вывод](evidence/incident-queue.txt) |
|
||||
| Отказ Loki и ограничение очереди | Все записи сообщений сохранены. Зарегистрированы ошибки экспорта, после старта найден новый лог | [замеры](evidence/backend-incident.json), [вывод](evidence/incident-backend.txt) |
|
||||
| Нагрузка API | 4 клиента, 30 с. 1 794 подтверждения, 0 ошибок, 59,61 RPS, p50/p95/p99 — 62/141/219 мс | [нагрузка](evidence/load.json) |
|
||||
| Регрессии ЛР5 и конкуренция | Проверки форматов, ACL, EXIF/PNG/WebP, защиты Message и скачивания, истёкшего lease и лимита истории | [core](evidence/pipeline-core.txt), [retention](evidence/pipeline-retention.txt), [блокировки](evidence/pipeline-boundaries.txt), [ACK](evidence/pipeline-ack_guard.txt), [имена](evidence/pipeline-filename.txt), [SIGKILL](evidence/pipeline-upload_crash.txt), [лимит истории](evidence/pipeline-history_capacity.txt) |
|
||||
| Сбои и повтор pipeline | 13 сценариев с действительными остановками процессов, перезапуском Redis и проверкой версий. 19 подтверждённых ID, 0 пропавших или незавершённых | [faults](evidence/pipeline-faults.txt), [реестр](evidence/accepted-jobs.json), [backpressure](evidence/backpressure.json) |
|
||||
| Persistence и история telemetry | Перезапуск business и telemetry сервисов. Прежняя сессия и подтверждённые данные сохранились. Loki нашёл исходный лог, Tempo вернул 14 spans | [persistence](evidence/persistence.txt), [до](evidence/restart-before.txt), [после](evidence/restart-after.txt), [история сигналов](evidence/telemetry-persistence.json) |
|
||||
| Failover | Остановка обслуживающей API, 94 успешных записи, 0 ошибок, первое восстановление через 2,5 с | [failover](evidence/failover.txt), [до](evidence/stop-one-before.txt), [после](evidence/stop-one-after.txt) |
|
||||
| Среда и артефакты | Повторное состояние двух healthy API, версии и лимиты контейнеров, SHA-256 исходников, выборка docker stats | [environment](evidence/environment.json), [resources](evidence/resources.json), [исходники](evidence/source-sha256.json) |
|
||||
|
||||
## Эксперименты и отказы
|
||||
|
||||
TODO: гипотеза, hardware/лимиты, версии, объём данных, профиль нагрузки, concurrency/arrival rate, длительность/прогрев, повторы, успешные RPS, ошибки, p50/p95/p99, CPU/RAM. Сохранить raw summary без tokens и объяснить ограничения измерения.
|
||||
Эксперименты выполнены 16.11.2026 на синтетических данных. Docker VM — 8 CPU и около 7,65 GiB RAM. CPU/RAM зафиксированы дискретным снимком docker stats и в опыте с backpressure. Замеры одного стенда не определяют потолок пропускной способности. Быстрый fault profile ЛР5 для повторной выдачи использует lease 8 с, timeout 25 с и 3 попытки. Длительные инциденты SLO запускаются на обычном профиле. При сравнении времени учитываются дискретность scrape/evaluation и период экспортёра SDK. Нагрузочный тест closed loop даёт наблюдаемые latency/RPS клиента и включает только успешные ответы в квантилях.
|
||||
|
||||
| Воздействие | Что ожидаем | Что наблюдали | Время восстановления / потеря данных |
|
||||
| --- | --- | --- | --- |
|
||||
| TODO | TODO | TODO | TODO |
|
||||
| Воздействие | Что наблюдалось | Восстановление |
|
||||
| --- | --- | --- |
|
||||
| Короткая блокировка БД и отмена одного ожидающего чтения | Один ответ 503, ни одного firing в наблюдаемом интервале. Ноль ложных срабатываний в одном контролируемом опыте | Трафик продолжился с прежней сессией |
|
||||
| Длительная блокировка sessions | При 6 клиентах за весь опыт 1 887 ответов 200 и 55 ответов 503. HighError загорелся через 34,74 с, API Fast через 50,08 с, API Slow через 46,99 с от захвата lock. Span postgres.session.lookup длился 5,003 с и завершился ошибкой | Снимки inactive через 17,47 / 11,31 / 35,89 с от снятия lock соответственно |
|
||||
| Остановка обоих workers | 16 принятых задач. QueueLag firing через 27,50 с от начала фазы, снимок age 19,78 с, backlog 16, экспонированная capacity 0. После запуска Ready Fast firing через 26,47 с, Slow через 35,75 с | Все 16 дошли до READY за 10,08 с после запуска. QueueLag проверен inactive на 35,75 с. READY Fast и Slow проверены inactive на 35,75 и 60,34 с |
|
||||
| Остановка Loki | 30 сообщений подтверждены и прочитаны, 5 записей в счётчике ошибок экспорта дополнительно. Наблюдавшаяся очередь до 18 при capacity 32. Максимум process RSS Collector по дискретным пробам 215,03 MiB, включает отображённые страницы процесса | Loki восстановился, свежий лог записи коррелирует с новым trace ID. Другие telemetry pipelines продолжили работу |
|
||||
|
||||
## Ограничения и следующие шаги
|
||||
Замеры обнаружения и восстановления соответствуют первой наблюдённой пробе скрипта и включают задержки экспорта, scrape и evaluation. В первом опыте проверка ошибочно требовала одновременный firing независимых правил fast и slow. Проверка исправлена, каждое правило отслеживается отдельно. Конфликт служебного поля Python logging `created` устранялся до успешного эксперимента очереди. Исходный код приложения и подтверждения финальных прогонов приведены выше.
|
||||
|
||||
TODO: какие отказы выдерживаются и какие нет; что не реализовано; где учебное упрощение; какое улучшение подтверждено, а какое пока гипотеза.
|
||||
## Ограничения
|
||||
|
||||
Локальный учебный стенд с одной БД, одним S3, одним брокером и одним экземпляром каждого telemetry backend. Сценарии показывают восстановление бизнес-операций в проверенных отказах и возможность потерять телеметрию при заполнении очереди или истечении retry. Burn rate измеряет наблюдаемый трафик и зависит от наличия свежих samples. Процентиль оценочный, его разрешение определяется границами бакетов. Всплеск нагрузки измеряется на одном Docker-хосте и не устанавливает предел производительности. Версионирование pipeline и идемпотентность эффекта сохраняются при повторной доставке.
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '4.1.1'
|
||||
id 'io.spring.dependency-management' version '1.1.7'
|
||||
}
|
||||
|
||||
group = 'ru.mtusi'
|
||||
version = '0.0.1-SNAPSHOT'
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(21)
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'io.opentelemetry:opentelemetry-sdk-extension-autoconfigure:1.62.0'
|
||||
implementation 'io.opentelemetry:opentelemetry-exporter-otlp:1.62.0'
|
||||
|
||||
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-webmvc'
|
||||
|
||||
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:3.1.0'
|
||||
implementation 'com.bucket4j:bucket4j-core:8.10.1'
|
||||
implementation 'org.mapstruct:mapstruct:1.6.3'
|
||||
implementation 'org.postgresql:postgresql:42.7.13'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-flyway'
|
||||
runtimeOnly 'org.flywaydb:flyway-database-postgresql'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-data-jpa:4.1.1'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-data-redis:4.1.1'
|
||||
implementation 'org.springframework.security:spring-security-crypto'
|
||||
implementation 'org.bouncycastle:bcprov-jdk18on:1.78.1'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-security'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-cache'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-aspectj'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-jackson'
|
||||
implementation 'io.minio:minio:9.0.3'
|
||||
|
||||
|
||||
runtimeOnly 'io.netty:netty-transport-native-epoll::linux-x86_64'
|
||||
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-test:4.1.1'
|
||||
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-restclient-test'
|
||||
testImplementation 'org.springframework.boot:spring-boot-resttestclient'
|
||||
|
||||
compileOnly 'org.projectlombok:lombok'
|
||||
annotationProcessor 'org.mapstruct:mapstruct-processor:1.6.3'
|
||||
annotationProcessor 'org.projectlombok:lombok-mapstruct-binding:0.2.0'
|
||||
annotationProcessor 'org.projectlombok:lombok'
|
||||
testCompileOnly 'org.projectlombok:lombok'
|
||||
testAnnotationProcessor 'org.projectlombok:lombok'
|
||||
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-actuator-test'
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-validation-test'
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-webmvc-test'
|
||||
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
options.compilerArgs << '-parameters'
|
||||
}
|
||||
|
||||
tasks.named('test') {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
services:
|
||||
lb:
|
||||
ports: !override
|
||||
- "127.0.0.1:18085:80"
|
||||
@@ -0,0 +1,17 @@
|
||||
services:
|
||||
api:
|
||||
environment:
|
||||
JOB_MAX_ATTEMPTS: 3
|
||||
MAX_PENDING_JOBS: 6
|
||||
worker:
|
||||
environment:
|
||||
FAULT_INJECTION_ENABLED: "true"
|
||||
JOB_MAX_ATTEMPTS: 3
|
||||
JOB_LEASE_SECONDS: 8
|
||||
JOB_TIMEOUT_SECONDS: 25
|
||||
dispatcher:
|
||||
environment:
|
||||
FAULT_INJECTION_ENABLED: "true"
|
||||
JOB_MAX_ATTEMPTS: 3
|
||||
JOB_LEASE_SECONDS: 8
|
||||
JOB_TIMEOUT_SECONDS: 25
|
||||
@@ -0,0 +1,374 @@
|
||||
services:
|
||||
db:
|
||||
image: postgres:16-alpine@sha256:0cefaabd882e42bcb2a2f3dc56d3ce4770560ba62fd7f197f1a2e008fd5731ab
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB_FILE: /run/secrets/postgres_db
|
||||
POSTGRES_USER_FILE: /run/secrets/postgres_user
|
||||
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
secrets:
|
||||
- postgres_db
|
||||
- postgres_user
|
||||
- postgres_password
|
||||
networks:
|
||||
- messenger-net
|
||||
healthcheck:
|
||||
# Добавлена очистка от \n и \r для надежности на Windows
|
||||
test: ["CMD-SHELL", "pg_isready -U $$(cat /run/secrets/postgres_user | tr -d '\\n\\r') -d $$(cat /run/secrets/postgres_db | tr -d '\\n\\r')"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
start_period: 10s
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '1.0'
|
||||
memory: 1G
|
||||
|
||||
redis:
|
||||
image: redis:7.4-alpine@sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f
|
||||
restart: unless-stopped
|
||||
command: redis-server --appendonly yes --appendfsync everysec --save ""
|
||||
volumes:
|
||||
- redisdata:/data
|
||||
networks:
|
||||
- messenger-net
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 10
|
||||
|
||||
broker:
|
||||
image: redis:7.4-alpine@sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f
|
||||
restart: unless-stopped
|
||||
command: redis-server --appendonly yes --appendfsync always --save ""
|
||||
volumes:
|
||||
- brokerdata:/data
|
||||
networks:
|
||||
- messenger-net
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 10
|
||||
|
||||
worker: &pipeline-worker
|
||||
build:
|
||||
context: .
|
||||
dockerfile: worker/Dockerfile
|
||||
restart: unless-stopped
|
||||
environment: &pipeline-environment
|
||||
ROLE: worker
|
||||
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
|
||||
DB_HOST: db
|
||||
BROKER_HOST: broker
|
||||
S3_ENDPOINT: http://minio:9000
|
||||
S3_BUCKET: messenger-attachments
|
||||
JOB_MAX_ATTEMPTS: ${JOB_MAX_ATTEMPTS:-5}
|
||||
JOB_TIMEOUT_SECONDS: ${JOB_TIMEOUT_SECONDS:-60}
|
||||
JOB_LEASE_SECONDS: ${JOB_LEASE_SECONDS:-75}
|
||||
STAGING_RETENTION_SECONDS: ${STAGING_RETENTION_SECONDS:-86400}
|
||||
FAULT_INJECTION_ENABLED: ${FAULT_INJECTION_ENABLED:-false}
|
||||
secrets:
|
||||
- postgres_db
|
||||
- postgres_user
|
||||
- postgres_password
|
||||
- s3_access_key_id
|
||||
- s3_secret_access_key
|
||||
networks:
|
||||
- messenger-net
|
||||
depends_on:
|
||||
api:
|
||||
condition: service_healthy
|
||||
broker:
|
||||
condition: service_healthy
|
||||
deploy:
|
||||
replicas: ${WORKER_CONCURRENCY:-2}
|
||||
resources:
|
||||
limits:
|
||||
cpus: '1.0'
|
||||
memory: 1G
|
||||
|
||||
dispatcher:
|
||||
<<: *pipeline-worker
|
||||
environment:
|
||||
<<: *pipeline-environment
|
||||
ROLE: dispatcher
|
||||
deploy:
|
||||
replicas: 1
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.5'
|
||||
memory: 256M
|
||||
|
||||
migrate:
|
||||
profiles: [migration]
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
entrypoint:
|
||||
- "sh"
|
||||
- "-c"
|
||||
- |
|
||||
export SPRING_DATASOURCE_USERNAME="$$(cat /run/secrets/postgres_user)";
|
||||
export SPRING_DATASOURCE_PASSWORD="$$(cat /run/secrets/postgres_password)";
|
||||
export S3_ACCESS_KEY_ID="$$(cat /run/secrets/s3_access_key_id)";
|
||||
export S3_SECRET_ACCESS_KEY="$$(cat /run/secrets/s3_secret_access_key)";
|
||||
exec java -Dfile.encoding=UTF-8 -Dspring.main.web-application-type=none -Dspring.main.keep-alive=false -jar app.jar
|
||||
environment:
|
||||
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/messenger
|
||||
SPRING_FLYWAY_ENABLED: "true"
|
||||
RECONCILER_ENABLED: "false"
|
||||
SPRING_TASK_SCHEDULING_ENABLED: "false" # Отключает фоновые задачи, чтобы контейнер успешно завершился
|
||||
secrets:
|
||||
- postgres_user
|
||||
- postgres_password
|
||||
- s3_access_key_id
|
||||
- s3_secret_access_key
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
restart: "no"
|
||||
networks:
|
||||
- messenger-net
|
||||
healthcheck:
|
||||
disable: true
|
||||
|
||||
api:
|
||||
stop_grace_period: 40s
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
minio-init:
|
||||
condition: service_completed_successfully
|
||||
entrypoint:
|
||||
- "sh"
|
||||
- "-c"
|
||||
- |
|
||||
export INSTANCE_ID="$$(cat /etc/hostname)";
|
||||
export OTEL_RESOURCE_ATTRIBUTES="deployment.environment.name=lab,service.version=6.0.0,service.instance.id=$$INSTANCE_ID";
|
||||
export SPRING_DATASOURCE_USERNAME="$$(cat /run/secrets/postgres_user)";
|
||||
export SPRING_DATASOURCE_PASSWORD="$$(cat /run/secrets/postgres_password)";
|
||||
export S3_ACCESS_KEY_ID="$$(cat /run/secrets/s3_access_key_id)";
|
||||
export S3_SECRET_ACCESS_KEY="$$(cat /run/secrets/s3_secret_access_key)";
|
||||
exec java -Dfile.encoding=UTF-8 $$JAVA_OPTS -jar app.jar
|
||||
environment:
|
||||
RECONCILER_INTERVAL_MS: ${RECONCILER_INTERVAL_MS:-3600000}
|
||||
RECONCILER_DRY_RUN: ${RECONCILER_DRY_RUN:-false}
|
||||
RECONCILER_GRACE_PERIOD_MINUTES: ${RECONCILER_GRACE_PERIOD_MINUTES:-15}
|
||||
JAVA_OPTS: -Xmx320m -Xss512k
|
||||
OTEL_SERVICE_NAME: messenger-api
|
||||
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
|
||||
OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf
|
||||
OTEL_EXPORTER_OTLP_TIMEOUT: 1500
|
||||
OTEL_METRIC_EXPORT_INTERVAL: 5000
|
||||
OTEL_BSP_MAX_QUEUE_SIZE: 256
|
||||
OTEL_BSP_MAX_EXPORT_BATCH_SIZE: 64
|
||||
OTEL_BLRP_MAX_QUEUE_SIZE: 256
|
||||
OTEL_BLRP_MAX_EXPORT_BATCH_SIZE: 64
|
||||
OTEL_PROPAGATORS: tracecontext
|
||||
JOB_MAX_ATTEMPTS: ${JOB_MAX_ATTEMPTS:-5}
|
||||
MAX_PENDING_JOBS: ${MAX_PENDING_JOBS:-100}
|
||||
RATE_PER_MINUTE: ${RATE_PER_MINUTE:-100000}
|
||||
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/messenger
|
||||
SPRING_PROFILES_ACTIVE: ${APP_ENV:-lab}
|
||||
SPRING_FLYWAY_ENABLED: "true"
|
||||
SESSION_TTL_SECONDS: ${SESSION_TTL_SECONDS:-400}
|
||||
SESSION_STORE: ${SESSION_STORE:-postgres}
|
||||
SPRING_DATA_REDIS_HOST: redis
|
||||
SPRING_DATA_REDIS_PORT: 6379
|
||||
MAX_MESSAGES_PER_CHAT: ${MAX_MESSAGES_PER_CHAT:-10000}
|
||||
S3_ENDPOINT: http://minio:9000
|
||||
S3_BUCKET: messenger-attachments
|
||||
S3_REGION: us-east-1
|
||||
secrets:
|
||||
- postgres_user
|
||||
- postgres_password
|
||||
- s3_access_key_id
|
||||
- s3_secret_access_key
|
||||
networks:
|
||||
- messenger-net
|
||||
deploy:
|
||||
replicas: 2
|
||||
resources:
|
||||
limits:
|
||||
cpus: '1.0'
|
||||
memory: 512M
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:8080/health/ready | grep -q '\"status\":\"ok\"'"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 20
|
||||
start_period: 40s
|
||||
|
||||
lb:
|
||||
image: nginx:1.27-alpine@sha256:65645c7bb6a0661892a8b03b89d0743208a18dd2f3f17a54ef4b76fb8e2f2a10
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "127.0.0.1:8080:80"
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
depends_on:
|
||||
api:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- messenger-net
|
||||
|
||||
minio:
|
||||
image: pgsty/silo@sha256:7bb2aff6b89efe1cb1303c10fc21d579447434ed06649ac9ec05a5e2dbf30ad7
|
||||
command: server /data --console-address ":9001"
|
||||
environment:
|
||||
MINIO_ROOT_USER_FILE: /run/secrets/minio_root_user
|
||||
MINIO_ROOT_PASSWORD_FILE: /run/secrets/minio_root_password
|
||||
MINIO_BROWSER: "off"
|
||||
volumes:
|
||||
- minio-data:/data
|
||||
secrets:
|
||||
- minio_root_user
|
||||
- minio_root_password
|
||||
networks:
|
||||
- messenger-net
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -f http://localhost:9000/minio/health/ready || exit 1"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
start_period: 10s
|
||||
|
||||
minio-init:
|
||||
image: pgsty/mc@sha256:ce62c9053c69ce12a527a322345b5ad9f44b5f8a7b8189f82e516f2e3f30f1d8
|
||||
depends_on:
|
||||
minio:
|
||||
condition: service_healthy
|
||||
entrypoint: >
|
||||
/bin/sh -ec "
|
||||
export MINIO_ROOT_USER=$$(cat /run/secrets/minio_root_user);
|
||||
export MINIO_ROOT_PASSWORD=$$(cat /run/secrets/minio_root_password);
|
||||
export S3_ACCESS_KEY_ID=$$(cat /run/secrets/s3_access_key_id);
|
||||
export S3_SECRET_ACCESS_KEY=$$(cat /run/secrets/s3_secret_access_key);
|
||||
until mc alias set local http://minio:9000 $$MINIO_ROOT_USER $$MINIO_ROOT_PASSWORD; do
|
||||
echo 'Waiting for MinIO...' && sleep 2;
|
||||
done;
|
||||
mc mb --ignore-existing local/messenger-attachments;
|
||||
mc anonymous set none local/messenger-attachments;
|
||||
mc admin user add local $$S3_ACCESS_KEY_ID $$S3_SECRET_ACCESS_KEY;
|
||||
mc admin policy create local app-uploads-policy /tmp/policy.json;
|
||||
mc admin policy attach local app-uploads-policy --user $$S3_ACCESS_KEY_ID;
|
||||
echo 'MinIO initialization completed (bucket: messenger-attachments)';
|
||||
"
|
||||
volumes:
|
||||
- ./policy.json:/tmp/policy.json:ro
|
||||
secrets:
|
||||
- minio_root_user
|
||||
- minio_root_password
|
||||
- s3_access_key_id
|
||||
- s3_secret_access_key
|
||||
networks:
|
||||
- messenger-net
|
||||
restart: "no"
|
||||
|
||||
otel-collector:
|
||||
image: otel/opentelemetry-collector-contrib:0.128.0@sha256:1ab0baba0ee3695d823c46653d8a6e8894896e668ce8bd7ebe002e948d827bc7
|
||||
command: ["--config=/etc/otelcol/collector.yaml"]
|
||||
volumes:
|
||||
- ./infra/otel/collector.yaml:/etc/otelcol/collector.yaml:ro
|
||||
networks: [messenger-net]
|
||||
mem_limit: 192m
|
||||
restart: unless-stopped
|
||||
|
||||
prometheus:
|
||||
image: prom/prometheus:v3.4.1@sha256:9abc6cf6aea7710d163dbb28d8eeb7dc5baef01e38fa4cd146a406dd9f07f70d
|
||||
command:
|
||||
- --config.file=/etc/prometheus/prometheus.yaml
|
||||
- --storage.tsdb.path=/prometheus
|
||||
- --storage.tsdb.retention.time=24h
|
||||
- --storage.tsdb.retention.size=512MB
|
||||
volumes:
|
||||
- ./infra/otel/prometheus.yaml:/etc/prometheus/prometheus.yaml:ro
|
||||
- ./infra/otel/alerts.yaml:/etc/prometheus/alerts.yaml:ro
|
||||
- prometheus-data:/prometheus
|
||||
networks: [messenger-net]
|
||||
mem_limit: 256m
|
||||
restart: unless-stopped
|
||||
|
||||
loki:
|
||||
image: grafana/loki:3.5.1@sha256:a74594532eec4cc313401beedc4dd2708c43674c032084b1aeb87c14a5be1745
|
||||
command: ["-config.file=/etc/loki/loki.yaml"]
|
||||
volumes:
|
||||
- ./infra/otel/loki.yaml:/etc/loki/loki.yaml:ro
|
||||
- loki-data:/loki
|
||||
networks: [messenger-net]
|
||||
mem_limit: 384m
|
||||
restart: unless-stopped
|
||||
|
||||
tempo:
|
||||
image: grafana/tempo:2.8.1@sha256:bc9245fe3da4e63dc4c6862d9c2dad9bcd8be13d0ba4f7705fa6acda4c904d0e
|
||||
command: ["-config.file=/etc/tempo/tempo.yaml"]
|
||||
volumes:
|
||||
- ./infra/otel/tempo.yaml:/etc/tempo/tempo.yaml:ro
|
||||
- tempo-data:/var/tempo
|
||||
networks: [messenger-net]
|
||||
mem_limit: 256m
|
||||
restart: unless-stopped
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana:12.0.2@sha256:b5b59bfc7561634c2d7b136c4543d702ebcc94a3da477f21ff26f89ffd4214fa
|
||||
environment:
|
||||
GF_AUTH_ANONYMOUS_ENABLED: "true"
|
||||
GF_AUTH_ANONYMOUS_ORG_ROLE: Viewer
|
||||
GF_AUTH_DISABLE_LOGIN_FORM: "true"
|
||||
GF_SECURITY_ADMIN_PASSWORD__FILE: /run/secrets/grafana_admin_password
|
||||
GF_ANALYTICS_REPORTING_ENABLED: "false"
|
||||
GF_ANALYTICS_CHECK_FOR_UPDATES: "false"
|
||||
GF_ANALYTICS_CHECK_FOR_PLUGIN_UPDATES: "false"
|
||||
GF_PLUGINS_PREINSTALL_DISABLED: "true"
|
||||
secrets: [grafana_admin_password]
|
||||
ports: ["127.0.0.1:${GRAFANA_PORT:-13006}:3000"]
|
||||
volumes:
|
||||
- ./infra/otel/grafana/provisioning:/etc/grafana/provisioning:ro
|
||||
- ./infra/otel/grafana/dashboards:/var/lib/grafana/dashboards:ro
|
||||
- grafana-data:/var/lib/grafana
|
||||
networks: [messenger-net]
|
||||
mem_limit: 256m
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
prometheus-data:
|
||||
loki-data:
|
||||
tempo-data:
|
||||
grafana-data:
|
||||
pgdata:
|
||||
redisdata:
|
||||
minio-data:
|
||||
brokerdata:
|
||||
|
||||
networks:
|
||||
messenger-net:
|
||||
driver: bridge
|
||||
|
||||
secrets:
|
||||
grafana_admin_password:
|
||||
file: ./secrets/grafana_admin_password.txt
|
||||
postgres_db:
|
||||
file: ./secrets/postgres_db.txt
|
||||
postgres_user:
|
||||
file: ./secrets/postgres_user.txt
|
||||
postgres_password:
|
||||
file: ./secrets/postgres_password.txt
|
||||
minio_root_user:
|
||||
file: ./secrets/minio_root_user.txt
|
||||
minio_root_password:
|
||||
file: ./secrets/minio_root_password.txt
|
||||
s3_access_key_id:
|
||||
file: ./secrets/s3_access_key_id.txt
|
||||
s3_secret_access_key:
|
||||
file: ./secrets/s3_secret_access_key.txt
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"accepted_ids": [
|
||||
"4ae0038c-40e8-4876-97d8-a0f60c4a96f3",
|
||||
"55553045-1282-4d81-9554-f2d03432084d",
|
||||
"ad3dbb4f-f786-489a-914f-770ff02108ee",
|
||||
"7c01327e-cc02-4efd-9ead-c92b79bb8de0",
|
||||
"e3d6ce50-0213-41ad-bb43-2ba44b018350",
|
||||
"909f33db-3d27-4b2f-9245-512d024c3be8",
|
||||
"3e9602ff-ae12-4c24-a187-9ea817cf3c16",
|
||||
"2d9064b5-b6ed-43b2-b13d-504c354a6927",
|
||||
"05d0a7f9-d3c4-4684-863c-0c19ebfb5c08",
|
||||
"23827744-c11f-4d4a-910c-9f07a9bf155c",
|
||||
"fe912003-c052-4dd1-9910-ee9f28d38dd7",
|
||||
"5b556b69-95de-402a-bd57-28cc57d65c38",
|
||||
"1bf4404d-ee92-471f-800e-d055a49352d1",
|
||||
"72754073-c039-4797-ac0d-b86b3feb0a79",
|
||||
"13022e75-3f97-46ff-a12d-315cec7b2113",
|
||||
"3ee1ce6e-c59d-40cc-a5fa-19998f8bd230",
|
||||
"61288e7d-dbdb-450f-bfeb-02441f02c18c",
|
||||
"b5d77aef-8a6e-429f-9e65-58112adb2382",
|
||||
"8ddf9bf1-69c9-4e59-91f7-48f7d08adb5d"
|
||||
],
|
||||
"count": 19,
|
||||
"missing_or_nonterminal": 0
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
Checking /etc/prometheus/alerts.yaml
|
||||
SUCCESS: 6 rules found
|
||||
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"confirmed_and_read": 30,
|
||||
"seconds": 35.7,
|
||||
"collector_before": {
|
||||
"send_failed_logs": 3.0,
|
||||
"queue_size": 0.0,
|
||||
"queue_capacity": 32.0,
|
||||
"rss_bytes": 225472512.0
|
||||
},
|
||||
"collector_samples": [
|
||||
{
|
||||
"send_failed_logs": 3.0,
|
||||
"queue_size": 0.0,
|
||||
"queue_capacity": 32.0,
|
||||
"rss_bytes": 225472512.0
|
||||
},
|
||||
{
|
||||
"send_failed_logs": 3.0,
|
||||
"queue_size": 0.0,
|
||||
"queue_capacity": 32.0,
|
||||
"rss_bytes": 225472512.0
|
||||
},
|
||||
{
|
||||
"send_failed_logs": 3.0,
|
||||
"queue_size": 2.0,
|
||||
"queue_capacity": 32.0,
|
||||
"rss_bytes": 225472512.0
|
||||
},
|
||||
{
|
||||
"send_failed_logs": 3.0,
|
||||
"queue_size": 5.0,
|
||||
"queue_capacity": 32.0,
|
||||
"rss_bytes": 225472512.0
|
||||
},
|
||||
{
|
||||
"send_failed_logs": 3.0,
|
||||
"queue_size": 8.0,
|
||||
"queue_capacity": 32.0,
|
||||
"rss_bytes": 225472512.0
|
||||
},
|
||||
{
|
||||
"send_failed_logs": 3.0,
|
||||
"queue_size": 8.0,
|
||||
"queue_capacity": 32.0,
|
||||
"rss_bytes": 225472512.0
|
||||
},
|
||||
{
|
||||
"send_failed_logs": 6.0,
|
||||
"queue_size": 10.0,
|
||||
"queue_capacity": 32.0,
|
||||
"rss_bytes": 225472512.0
|
||||
},
|
||||
{
|
||||
"send_failed_logs": 6.0,
|
||||
"queue_size": 13.0,
|
||||
"queue_capacity": 32.0,
|
||||
"rss_bytes": 225472512.0
|
||||
},
|
||||
{
|
||||
"send_failed_logs": 6.0,
|
||||
"queue_size": 16.0,
|
||||
"queue_capacity": 32.0,
|
||||
"rss_bytes": 225472512.0
|
||||
},
|
||||
{
|
||||
"send_failed_logs": 6.0,
|
||||
"queue_size": 16.0,
|
||||
"queue_capacity": 32.0,
|
||||
"rss_bytes": 225472512.0
|
||||
},
|
||||
{
|
||||
"send_failed_logs": 8.0,
|
||||
"queue_size": 18.0,
|
||||
"queue_capacity": 32.0,
|
||||
"rss_bytes": 225472512.0
|
||||
}
|
||||
],
|
||||
"collector_after": {
|
||||
"send_failed_logs": 8.0,
|
||||
"queue_size": 18.0,
|
||||
"queue_capacity": 32.0,
|
||||
"rss_bytes": 225472512.0
|
||||
},
|
||||
"failed_export_log_records_delta": 5.0,
|
||||
"restored_trace_id": "859117fe4d9cee32f70a40cff400b8b1"
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"accepted": 6,
|
||||
"rejected": 4,
|
||||
"concurrency": 10,
|
||||
"image_bytes": 1442638,
|
||||
"seconds_to_observed_ready": [
|
||||
6.57799999999952,
|
||||
6.625,
|
||||
8.342999999999847,
|
||||
8.389999999999418,
|
||||
10.405999999999949,
|
||||
10.436999999999898
|
||||
],
|
||||
"stats_samples": [
|
||||
"mtusi2026lab6-lb-1 8.266MiB / 7.649GiB 0.02%\nmtusi2026lab6-api-2 392.4MiB / 512MiB 47.49%\nmtusi2026lab6-api-1 403.2MiB / 512MiB 0.68%\nmtusi2026lab6-db-1 50.62MiB / 1GiB 0.05%\nmtusi2026lab6-grafana-1 78.57MiB / 256MiB 0.30%\nmtusi2026lab6-prometheus-1 37.57MiB / 256MiB 0.29%\nmtusi2026lab6-loki-1 90.53MiB / 384MiB 1.58%\nmtusi2026lab6-redis-1 3.512MiB / 7.649GiB 0.54%\nmtusi2026lab6-tempo-1 108.4MiB / 256MiB 0.35%\nmtusi2026lab6-broker-1 4.148MiB / 7.649GiB 0.58%\nmtusi2026lab6-otel-collector-1 73.34MiB / 192MiB 0.35%\nmtusi2026lab6-minio-1 461.9MiB / 7.649GiB 12.22%",
|
||||
"mtusi2026lab6-worker-2 60.76MiB / 1GiB 8.68%\nmtusi2026lab6-lb-1 8.262MiB / 7.649GiB 0.13%\nmtusi2026lab6-api-2 392.7MiB / 512MiB 2.95%\nmtusi2026lab6-api-1 403.5MiB / 512MiB 4.59%\nmtusi2026lab6-db-1 50.62MiB / 1GiB 4.39%\nmtusi2026lab6-grafana-1 78.57MiB / 256MiB 0.24%\nmtusi2026lab6-prometheus-1 37.58MiB / 256MiB 0.32%\nmtusi2026lab6-loki-1 90.54MiB / 384MiB 0.72%\nmtusi2026lab6-redis-1 3.512MiB / 7.649GiB 0.44%\nmtusi2026lab6-tempo-1 236MiB / 256MiB 14.22%\nmtusi2026lab6-broker-1 4.152MiB / 7.649GiB 3.40%\nmtusi2026lab6-otel-collector-1 73.34MiB / 192MiB 0.14%\nmtusi2026lab6-minio-1 460.2MiB / 7.649GiB 2.62%\nmtusi2026lab6-dispatcher-1 60.66MiB / 256MiB 48.16%\nmtusi2026lab6-worker-1 114.7MiB / 1GiB 82.36%",
|
||||
"mtusi2026lab6-worker-2 117.8MiB / 1GiB 79.86%\nmtusi2026lab6-worker-1 121MiB / 1GiB 78.85%\nmtusi2026lab6-dispatcher-1 61.84MiB / 256MiB 3.97%\nmtusi2026lab6-lb-1 8.703MiB / 7.649GiB 0.38%\nmtusi2026lab6-api-2 393.2MiB / 512MiB 10.11%\nmtusi2026lab6-api-1 404.2MiB / 512MiB 11.28%\nmtusi2026lab6-db-1 51.31MiB / 1GiB 25.77%\nmtusi2026lab6-grafana-1 78.57MiB / 256MiB 0.67%\nmtusi2026lab6-prometheus-1 37.59MiB / 256MiB 0.34%\nmtusi2026lab6-loki-1 90.54MiB / 384MiB 1.08%\nmtusi2026lab6-redis-1 4.098MiB / 7.649GiB 0.46%\nmtusi2026lab6-tempo-1 236MiB / 256MiB 0.60%\nmtusi2026lab6-broker-1 4.152MiB / 7.649GiB 0.56%\nmtusi2026lab6-otel-collector-1 73.95MiB / 192MiB 1.26%\nmtusi2026lab6-minio-1 462.9MiB / 7.649GiB 0.41%",
|
||||
"mtusi2026lab6-worker-2 121.7MiB / 1GiB 89.58%\nmtusi2026lab6-worker-1 123MiB / 1GiB 91.74%\nmtusi2026lab6-dispatcher-1 62.14MiB / 256MiB 5.08%\nmtusi2026lab6-lb-1 8.457MiB / 7.649GiB 0.23%\nmtusi2026lab6-api-2 393.4MiB / 512MiB 3.86%\nmtusi2026lab6-api-1 404.5MiB / 512MiB 5.50%\nmtusi2026lab6-db-1 54.63MiB / 1GiB 21.49%\nmtusi2026lab6-grafana-1 78.57MiB / 256MiB 0.47%\nmtusi2026lab6-prometheus-1 37.59MiB / 256MiB 0.17%\nmtusi2026lab6-loki-1 90.55MiB / 384MiB 1.07%\nmtusi2026lab6-redis-1 4.098MiB / 7.649GiB 0.46%\nmtusi2026lab6-tempo-1 236.3MiB / 256MiB 0.59%\nmtusi2026lab6-broker-1 4.969MiB / 7.649GiB 3.87%\nmtusi2026lab6-otel-collector-1 73.97MiB / 192MiB 1.04%\nmtusi2026lab6-minio-1 462.8MiB / 7.649GiB 0.06%",
|
||||
"mtusi2026lab6-worker-2 66.96MiB / 1GiB 0.08%\nmtusi2026lab6-worker-1 67.96MiB / 1GiB 0.09%\nmtusi2026lab6-dispatcher-1 62.13MiB / 256MiB 4.01%\nmtusi2026lab6-lb-1 8.457MiB / 7.649GiB 0.00%\nmtusi2026lab6-api-2 393.4MiB / 512MiB 0.52%\nmtusi2026lab6-api-1 404.6MiB / 512MiB 0.70%\nmtusi2026lab6-db-1 51.46MiB / 1GiB 8.45%\nmtusi2026lab6-grafana-1 78.57MiB / 256MiB 0.20%\nmtusi2026lab6-prometheus-1 37.59MiB / 256MiB 0.16%\nmtusi2026lab6-loki-1 90.56MiB / 384MiB 1.55%\nmtusi2026lab6-redis-1 4.098MiB / 7.649GiB 0.42%\nmtusi2026lab6-tempo-1 236.3MiB / 256MiB 0.72%\nmtusi2026lab6-broker-1 4.719MiB / 7.649GiB 0.51%\nmtusi2026lab6-otel-collector-1 73.98MiB / 192MiB 0.89%\nmtusi2026lab6-minio-1 463MiB / 7.649GiB 0.06%"
|
||||
],
|
||||
"method": "closed loop; sequential polls overestimate early completions"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
@@ -0,0 +1,904 @@
|
||||
{
|
||||
"traffic_clients": 6,
|
||||
"short": {
|
||||
"503_count": 1,
|
||||
"samples": [
|
||||
{
|
||||
"seconds": 1.0,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"AttachmentQueueLag": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive",
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 2.03,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"AttachmentQueueLag": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive",
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 3.05,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"AttachmentQueueLag": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive",
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 4.08,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"AttachmentQueueLag": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive",
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 5.09,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"AttachmentQueueLag": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive",
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 6.11,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"AttachmentQueueLag": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive",
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 7.24,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"AttachmentQueueLag": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive",
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 8.25,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"AttachmentQueueLag": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive",
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 9.33,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"AttachmentQueueLag": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive",
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 10.34,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"AttachmentQueueLag": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive",
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 11.34,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"AttachmentQueueLag": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive",
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 12.38,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"AttachmentQueueLag": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive",
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 13.38,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"AttachmentQueueLag": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive",
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 14.39,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"AttachmentQueueLag": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive",
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 15.42,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"AttachmentQueueLag": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive",
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 16.45,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"AttachmentQueueLag": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive",
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 17.49,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"AttachmentQueueLag": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive",
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
}
|
||||
],
|
||||
"alert_firings": 0
|
||||
},
|
||||
"sustained": {
|
||||
"firing": [
|
||||
{
|
||||
"seconds": 0.03,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 1.03,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 2.06,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 3.09,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 4.12,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 5.14,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 6.17,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 7.19,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 8.19,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 9.22,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 10.24,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 11.27,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 12.28,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 13.3,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 14.33,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 15.34,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 16.36,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 17.38,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 18.41,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 19.42,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 20.44,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 21.45,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 22.45,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 23.49,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 24.52,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 25.53,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 26.56,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 27.58,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 28.59,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 29.61,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "pending",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 30.62,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "pending",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 31.66,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "pending",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 32.67,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "pending",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 33.72,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "pending",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 34.74,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 35.77,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 36.8,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 37.8,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 38.81,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 39.83,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 40.86,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "pending",
|
||||
"ApiBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 41.88,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "pending",
|
||||
"ApiBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 42.89,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "pending",
|
||||
"ApiBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 43.92,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "pending",
|
||||
"ApiBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 44.94,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "pending",
|
||||
"ApiBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 45.97,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "pending",
|
||||
"ApiBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 46.99,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "pending",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 48.02,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "pending",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 49.05,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "pending",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 50.08,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "firing",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
}
|
||||
],
|
||||
"resolved": [
|
||||
{
|
||||
"seconds": 0.03,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "firing",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 1.05,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "firing",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 2.06,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "firing",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 3.09,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "firing",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 4.12,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "firing",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 5.19,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "firing",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 6.2,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "firing",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 7.23,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "firing",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 8.25,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "firing",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 9.28,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "firing",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 10.3,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "firing",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 11.31,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 12.34,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 13.38,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 14.39,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 15.42,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 16.44,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 17.47,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 18.48,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 19.52,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 20.55,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 21.56,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 22.59,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 23.61,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 24.62,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 25.66,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 26.67,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 27.7,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 28.73,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 29.75,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 30.78,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 31.8,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 32.81,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 33.86,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 34.88,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 35.89,
|
||||
"states": {
|
||||
"ApiHighErrorRate": "inactive",
|
||||
"ApiBurnFast": "inactive",
|
||||
"ApiBurnSlow": "inactive"
|
||||
}
|
||||
}
|
||||
],
|
||||
"bounded_lock_seconds": 85,
|
||||
"traffic_statuses": {
|
||||
"200": 1887,
|
||||
"503": 55
|
||||
},
|
||||
"cause": {
|
||||
"trace_id": "fa511ccfa2322516828045fbcbf4506c",
|
||||
"request_id": "981f1cb0-11a3-4cd2-ba5e-52bbfa826978",
|
||||
"dependency": "postgres.session.lookup",
|
||||
"duration_seconds": 5.003010099,
|
||||
"status": {
|
||||
"code": "STATUS_CODE_ERROR"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
Image mtusi2026lab6-worker Building
|
||||
Image mtusi2026lab6-dispatcher Building
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 1.39kB 0.3s done
|
||||
#1 DONE 0.3s
|
||||
|
||||
#2 [dispatcher internal] load build definition from Dockerfile
|
||||
#2 transferring dockerfile: 384B 0.0s done
|
||||
#2 DONE 0.1s
|
||||
|
||||
#3 [dispatcher internal] load metadata for docker.io/library/python:3.12.12-slim@sha256:f3fa41d74a768c2fce8016b98c191ae8c1bacd8f1152870a3f9f87d350920b7c
|
||||
#3 DONE 0.2s
|
||||
|
||||
#4 [dispatcher internal] load .dockerignore
|
||||
#4 transferring context: 216B 0.0s done
|
||||
#4 DONE 0.1s
|
||||
|
||||
#4 [worker internal] load .dockerignore
|
||||
#4 DONE 0.1s
|
||||
|
||||
#5 [worker internal] load build context
|
||||
#5 transferring context: 72.99kB 0.2s done
|
||||
#5 DONE 0.4s
|
||||
|
||||
#6 [worker 1/5] FROM docker.io/library/python:3.12.12-slim@sha256:f3fa41d74a768c2fce8016b98c191ae8c1bacd8f1152870a3f9f87d350920b7c
|
||||
#6 resolve docker.io/library/python:3.12.12-slim@sha256:f3fa41d74a768c2fce8016b98c191ae8c1bacd8f1152870a3f9f87d350920b7c 0.3s done
|
||||
#6 DONE 0.3s
|
||||
|
||||
#7 [dispatcher 2/5] WORKDIR /app
|
||||
#7 CACHED
|
||||
|
||||
#8 [dispatcher 3/5] COPY worker/requirements.txt ./
|
||||
#8 CACHED
|
||||
|
||||
#9 [dispatcher 4/5] RUN pip install --no-cache-dir -r requirements.txt && useradd --system --uid 10001 worker
|
||||
#9 CACHED
|
||||
|
||||
#10 [dispatcher 5/5] COPY worker/pipeline ./pipeline
|
||||
#10 DONE 0.4s
|
||||
|
||||
#10 [dispatcher 5/5] COPY worker/pipeline ./pipeline
|
||||
#10 DONE 0.4s
|
||||
|
||||
#11 [dispatcher] exporting to image
|
||||
#11 exporting layers
|
||||
#11 exporting layers 0.7s done
|
||||
#11 exporting manifest sha256:ff23c89faa8e5239c8aa7953211c3b286680fa7a59e62463fb4d41276302d605
|
||||
#11 exporting manifest sha256:ff23c89faa8e5239c8aa7953211c3b286680fa7a59e62463fb4d41276302d605 0.3s done
|
||||
#11 exporting config sha256:bcb3d560d893db14cee78d977d0a501f52732890a7a1305a871ddf9ac7ef900e
|
||||
#11 exporting config sha256:bcb3d560d893db14cee78d977d0a501f52732890a7a1305a871ddf9ac7ef900e 0.2s done
|
||||
#11 exporting attestation manifest sha256:ef2068b4f85da50ea8299f541d65d20059ca1190c3b79a4ccdc17841e4761797
|
||||
#11 exporting attestation manifest sha256:ef2068b4f85da50ea8299f541d65d20059ca1190c3b79a4ccdc17841e4761797 0.3s done
|
||||
#11 exporting manifest list sha256:9d7ab5df52a1163bf28d4e48db9baacdba5dcd9b89c4f83322fa32d7858f75fd
|
||||
#11 exporting manifest list sha256:9d7ab5df52a1163bf28d4e48db9baacdba5dcd9b89c4f83322fa32d7858f75fd 0.2s done
|
||||
#11 naming to docker.io/library/mtusi2026lab6-dispatcher:latest 0.1s done
|
||||
#11 unpacking to docker.io/library/mtusi2026lab6-dispatcher:latest
|
||||
#11 unpacking to docker.io/library/mtusi2026lab6-dispatcher:latest 0.3s done
|
||||
#11 DONE 2.4s
|
||||
|
||||
#12 [worker] exporting to image
|
||||
#12 exporting layers 0.7s done
|
||||
#12 exporting manifest sha256:40c456f7c8637c80873f5a793a693fd0d063ac4312b00077d36f700d072da8b2 0.2s done
|
||||
#12 exporting config sha256:3495e4350553e2b0f38adc911ede04f1fd62c7fa96511650e3b74bcdb2ae8b29 0.2s done
|
||||
#12 exporting attestation manifest sha256:4c47c3fc9f601e9edfbf2498b5be1d32a56c351b61809f0155815646a377a3b5 0.3s done
|
||||
#12 exporting manifest list sha256:0d6faad5fef10fb0bf6695e49148bc90c27dca671ac6c3c42b644c505c03119a 0.2s done
|
||||
#12 naming to docker.io/library/mtusi2026lab6-worker:latest 0.0s done
|
||||
#12 unpacking to docker.io/library/mtusi2026lab6-worker:latest 0.3s done
|
||||
#12 DONE 2.4s
|
||||
|
||||
#13 [worker] resolving provenance for metadata file
|
||||
#13 DONE 0.2s
|
||||
|
||||
#14 [dispatcher] resolving provenance for metadata file
|
||||
#14 DONE 0.1s
|
||||
Image mtusi2026lab6-dispatcher Built
|
||||
Image mtusi2026lab6-worker Built
|
||||
@@ -0,0 +1,223 @@
|
||||
Image mtusi2026lab6-api Building
|
||||
Image mtusi2026lab6-worker Building
|
||||
Image mtusi2026lab6-dispatcher Building
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 1.40kB 0.0s done
|
||||
#1 DONE 0.1s
|
||||
|
||||
#2 [api internal] load build definition from Dockerfile
|
||||
#2 DONE 0.0s
|
||||
|
||||
#3 [dispatcher internal] load build definition from Dockerfile
|
||||
#3 ...
|
||||
|
||||
#2 [api internal] load build definition from Dockerfile
|
||||
#2 transferring dockerfile: 1.02kB 0.0s done
|
||||
#2 DONE 0.5s
|
||||
|
||||
#3 [worker internal] load build definition from Dockerfile
|
||||
#3 transferring dockerfile: 384B 0.0s done
|
||||
#3 DONE 1.5s
|
||||
|
||||
#4 [api internal] load metadata for docker.io/library/eclipse-temurin:21-jre-jammy@sha256:dff6eb46527bd293a3c06bbbe9e64e8c9f91f01905b5abbdad31761c03059d2c
|
||||
#4 ...
|
||||
|
||||
#3 [dispatcher internal] load build definition from Dockerfile
|
||||
#3 DONE 1.5s
|
||||
|
||||
#5 [worker internal] load metadata for docker.io/library/python:3.12.12-slim@sha256:f3fa41d74a768c2fce8016b98c191ae8c1bacd8f1152870a3f9f87d350920b7c
|
||||
#5 ...
|
||||
|
||||
#4 [api internal] load metadata for docker.io/library/eclipse-temurin:21-jre-jammy@sha256:dff6eb46527bd293a3c06bbbe9e64e8c9f91f01905b5abbdad31761c03059d2c
|
||||
#4 DONE 1.9s
|
||||
|
||||
#6 [api internal] load metadata for docker.io/library/eclipse-temurin:21-jdk-jammy@sha256:432e54724c3e57d1846aeb886f4d339f3b0522931c4e64119c2797013b7cfc3c
|
||||
#6 DONE 2.1s
|
||||
|
||||
#5 [dispatcher internal] load metadata for docker.io/library/python:3.12.12-slim@sha256:f3fa41d74a768c2fce8016b98c191ae8c1bacd8f1152870a3f9f87d350920b7c
|
||||
#5 DONE 1.6s
|
||||
|
||||
#7 [dispatcher internal] load .dockerignore
|
||||
#7 transferring context: 216B 0.0s done
|
||||
#7 DONE 0.5s
|
||||
|
||||
#8 [api builder 1/8] FROM docker.io/library/eclipse-temurin:21-jdk-jammy@sha256:432e54724c3e57d1846aeb886f4d339f3b0522931c4e64119c2797013b7cfc3c
|
||||
#8 resolve docker.io/library/eclipse-temurin:21-jdk-jammy@sha256:432e54724c3e57d1846aeb886f4d339f3b0522931c4e64119c2797013b7cfc3c 0.3s done
|
||||
#8 extracting sha256:02163de04dd1fb14a97b06804be3fbc51b564fa8744b8f97153744e0cba5de4c 1.2s done
|
||||
#8 extracting sha256:686d6b6bf302bb2c5d3c7fae03c2b9b9b48035005d1722429c794f50b0038e5d 1.5s done
|
||||
#8 extracting sha256:900892cecaef198d90c4e27bfdba600947a23a33a336863dbd86267ffe566526 3.7s done
|
||||
#8 extracting sha256:f60943985375bfbdaee941c029587e147f52f20d87fba1157ac3235a4be53c15 0.3s done
|
||||
#8 extracting sha256:5c3cc5dbd0a9b59a8786543b3feebae2af7c76bec381661de9f1417b12dd1e2e 0.2s done
|
||||
#8 DONE 164.1s
|
||||
|
||||
#9 [api builder 2/8] WORKDIR /build
|
||||
#9 DONE 19.0s
|
||||
|
||||
#10 [api runner 1/5] FROM docker.io/library/eclipse-temurin:21-jre-jammy@sha256:dff6eb46527bd293a3c06bbbe9e64e8c9f91f01905b5abbdad31761c03059d2c
|
||||
#10 resolve docker.io/library/eclipse-temurin:21-jre-jammy@sha256:dff6eb46527bd293a3c06bbbe9e64e8c9f91f01905b5abbdad31761c03059d2c 0.3s done
|
||||
#10 extracting sha256:64c669fcec3e030edf6d2c12142164764d763f5ab9b4bf374598bc70d4f5ea6a 1.1s done
|
||||
#10 extracting sha256:e67f4804db649285e2894079cc70663ad503ced9ccf52dd7a6cd756e54eb14d9 2.1s done
|
||||
#10 extracting sha256:f258e5941cb21baf92f8436ef2b3297324c4d121261f0984db53b857a104dfce 0.1s done
|
||||
#10 extracting sha256:6792de25975b4075fe4065cfaa458b54391deeb904dcd73ca17668e4fd078e51 0.6s done
|
||||
#10 DONE 426.0s
|
||||
|
||||
#11 [api runner 2/5] WORKDIR /app
|
||||
#11 DONE 10.7s
|
||||
|
||||
#12 [api runner 3/5] RUN groupadd --system spring && useradd --system --gid spring --no-create-home spring
|
||||
#12 DONE 2.0s
|
||||
|
||||
#13 [dispatcher internal] load build context
|
||||
#13 transferring context: 72.98kB 0.1s done
|
||||
#13 transferring context: 72.98kB 0.1s done
|
||||
#13 DONE 1.7s
|
||||
|
||||
#14 [dispatcher 1/5] FROM docker.io/library/python:3.12.12-slim@sha256:f3fa41d74a768c2fce8016b98c191ae8c1bacd8f1152870a3f9f87d350920b7c
|
||||
#14 resolve docker.io/library/python:3.12.12-slim@sha256:f3fa41d74a768c2fce8016b98c191ae8c1bacd8f1152870a3f9f87d350920b7c
|
||||
#14 ...
|
||||
|
||||
#13 [worker internal] load build context
|
||||
#13 DONE 1.7s
|
||||
|
||||
#15 [api internal] load build context
|
||||
#15 ...
|
||||
|
||||
#14 [worker 1/5] FROM docker.io/library/python:3.12.12-slim@sha256:f3fa41d74a768c2fce8016b98c191ae8c1bacd8f1152870a3f9f87d350920b7c
|
||||
#14 resolve docker.io/library/python:3.12.12-slim@sha256:f3fa41d74a768c2fce8016b98c191ae8c1bacd8f1152870a3f9f87d350920b7c 2.4s done
|
||||
#14 DONE 2.6s
|
||||
|
||||
#15 [api internal] load build context
|
||||
#15 ...
|
||||
|
||||
#16 [worker 2/5] WORKDIR /app
|
||||
#16 CACHED
|
||||
|
||||
#17 [worker 3/5] COPY worker/requirements.txt ./
|
||||
#17 CACHED
|
||||
|
||||
#18 [worker 4/5] RUN pip install --no-cache-dir -r requirements.txt && useradd --system --uid 10001 worker
|
||||
#18 CACHED
|
||||
|
||||
#15 [api internal] load build context
|
||||
#15 ...
|
||||
|
||||
#16 [dispatcher 2/5] WORKDIR /app
|
||||
#16 CACHED
|
||||
|
||||
#17 [dispatcher 3/5] COPY worker/requirements.txt ./
|
||||
#17 CACHED
|
||||
|
||||
#18 [dispatcher 4/5] RUN pip install --no-cache-dir -r requirements.txt && useradd --system --uid 10001 worker
|
||||
#18 CACHED
|
||||
|
||||
#19 [dispatcher 5/5] COPY worker/pipeline ./pipeline
|
||||
#19 CACHED
|
||||
|
||||
#15 [api internal] load build context
|
||||
#15 transferring context: 511.65kB 0.4s done
|
||||
#15 DONE 4.8s
|
||||
|
||||
#20 [worker] exporting to image
|
||||
#20 exporting layers done
|
||||
#20 exporting manifest sha256:9b874acf0137febbcf16fa37596797b10824e44e8e36943d97857542776de374 0.3s done
|
||||
#20 exporting config sha256:a3714fe0b589cff4059d13ff351c98e3445775a819b882dab7d20e2a878bf412
|
||||
#20 exporting config sha256:a3714fe0b589cff4059d13ff351c98e3445775a819b882dab7d20e2a878bf412 0.3s done
|
||||
#20 ...
|
||||
|
||||
#21 [api builder 3/8] COPY gradle gradle
|
||||
#21 DONE 0.5s
|
||||
|
||||
#22 [api builder 3/7] COPY gradle gradle
|
||||
#22 CACHED
|
||||
|
||||
#23 [api builder 4/7] COPY gradlew settings.gradle build.gradle ./
|
||||
#23 CACHED
|
||||
|
||||
#24 [api builder 5/7] COPY contracts contracts
|
||||
#24 DONE 5.4s
|
||||
|
||||
#25 [dispatcher] exporting to image
|
||||
#25 exporting layers done
|
||||
#25 exporting manifest sha256:aa58e5fb8ffef90d7260386c33ec11f7b01f965adc70ced048837a29dd5d72c4 0.3s done
|
||||
#25 exporting config sha256:ee034451127f62a0f3c3ccb9b03a1b0d73b91936d83d7dc0ca9cebb5354c84bb 0.1s done
|
||||
#25 exporting attestation manifest sha256:5a7bed04c671e68161654e4f8e38ef72cf3fa17807f1bfd4a096275f0a29f2de 2.0s done
|
||||
#25 exporting manifest list sha256:fd06987f7a452b5d06ed6bcd626578eaa264664ee921a4ce819f6ac1cbd0e05e
|
||||
#25 exporting manifest list sha256:fd06987f7a452b5d06ed6bcd626578eaa264664ee921a4ce819f6ac1cbd0e05e 3.3s done
|
||||
#25 naming to docker.io/library/mtusi2026lab6-dispatcher:latest
|
||||
#25 ...
|
||||
|
||||
#26 [api builder 6/7] COPY src src
|
||||
#26 ...
|
||||
|
||||
#25 [dispatcher] exporting to image
|
||||
#25 naming to docker.io/library/mtusi2026lab6-dispatcher:latest 0.2s done
|
||||
#25 unpacking to docker.io/library/mtusi2026lab6-dispatcher:latest 0.2s done
|
||||
#25 DONE 7.3s
|
||||
|
||||
#20 [worker] exporting to image
|
||||
#20 exporting attestation manifest sha256:a76351b2d57bd9eb25f36fbfe752f68900a8fb4d726f2dc6945d9e1ace0dffd0 1.9s done
|
||||
#20 exporting manifest list sha256:cad61213e510f0e7c2ffa0c66d135c339b9af27bbfc8aa698d1852b33929a5d9 3.4s done
|
||||
#20 naming to docker.io/library/mtusi2026lab6-worker:latest 0.1s done
|
||||
#20 unpacking to docker.io/library/mtusi2026lab6-worker:latest 0.2s done
|
||||
#20 DONE 7.4s
|
||||
|
||||
#26 [api builder 6/7] COPY src src
|
||||
#26 DONE 1.9s
|
||||
|
||||
#27 [api builder 7/7] RUN --mount=type=cache,target=/root/.gradle,sharing=locked chmod +x gradlew && ./gradlew bootJar -x test --no-daemon
|
||||
#27 ...
|
||||
|
||||
#28 [dispatcher] resolving provenance for metadata file
|
||||
#28 DONE 0.2s
|
||||
|
||||
#29 [worker] resolving provenance for metadata file
|
||||
#29 DONE 0.1s
|
||||
|
||||
#27 [api builder 7/7] RUN --mount=type=cache,target=/root/.gradle,sharing=locked chmod +x gradlew && ./gradlew bootJar -x test --no-daemon
|
||||
#27 3.606 To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.3.0/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
|
||||
#27 8.404 Daemon will be stopped at the end of the build
|
||||
#27 58.00
|
||||
#27 58.00 > Task :compileJava
|
||||
#27 58.00 Note: /build/src/main/java/ru/mtusi/messenger/controller/controllerAdvice/GlobalExceptionHandler.java uses or overrides a deprecated API.
|
||||
#27 58.00 Note: Recompile with -Xlint:deprecation for details.
|
||||
#27 59.60
|
||||
#27 59.60 > Task :processResources
|
||||
#27 59.60 > Task :classes
|
||||
#27 59.60 > Task :resolveMainClassName
|
||||
#27 60.90 > Task :bootJar
|
||||
#27 60.97
|
||||
#27 60.97 [Incubating] Problems report is available at: file:///build/build/reports/problems/problems-report.html
|
||||
#27 60.97
|
||||
#27 60.97 BUILD SUCCESSFUL in 58s
|
||||
#27 60.97 4 actionable tasks: 4 executed
|
||||
#27 60.97 Consider enabling configuration cache to speed up this build: https://docs.gradle.org/9.3.0/userguide/configuration_cache_enabling.html
|
||||
#27 DONE 63.4s
|
||||
|
||||
#30 [api runner 4/5] COPY --from=builder /build/build/libs/*.jar app.jar
|
||||
#30 DONE 2.8s
|
||||
|
||||
#31 [api runner 5/5] RUN chown spring:spring app.jar
|
||||
#31 DONE 3.9s
|
||||
|
||||
#32 [api] exporting to image
|
||||
#32 exporting layers
|
||||
#32 exporting layers 12.2s done
|
||||
#32 exporting manifest sha256:36907c93c682c19d0752269c9b558154a87f75e7d0c17f63435ba669f5d86ce7
|
||||
#32 exporting manifest sha256:36907c93c682c19d0752269c9b558154a87f75e7d0c17f63435ba669f5d86ce7 0.3s done
|
||||
#32 exporting config sha256:821d105d27c4b8153d7c90f70d9bb45425e0fd3569123b0f45e549a1994c1d96
|
||||
#32 exporting config sha256:821d105d27c4b8153d7c90f70d9bb45425e0fd3569123b0f45e549a1994c1d96 0.2s done
|
||||
#32 exporting attestation manifest sha256:2131a93db84b8535cad610d781b329cfb67f3b8c9c4976a4515c0f163872b1ad
|
||||
#32 exporting attestation manifest sha256:2131a93db84b8535cad610d781b329cfb67f3b8c9c4976a4515c0f163872b1ad 0.4s done
|
||||
#32 exporting manifest list sha256:4c3433f0afb65d077d64e577815de8e2f8c1d135287adeccc17f3602f56f3299
|
||||
#32 exporting manifest list sha256:4c3433f0afb65d077d64e577815de8e2f8c1d135287adeccc17f3602f56f3299 0.2s done
|
||||
#32 naming to docker.io/library/mtusi2026lab6-api:latest
|
||||
#32 naming to docker.io/library/mtusi2026lab6-api:latest 0.0s done
|
||||
#32 unpacking to docker.io/library/mtusi2026lab6-api:latest
|
||||
#32 unpacking to docker.io/library/mtusi2026lab6-api:latest 1.9s done
|
||||
#32 DONE 15.4s
|
||||
|
||||
#33 [api] resolving provenance for metadata file
|
||||
#33 DONE 0.1s
|
||||
Image mtusi2026lab6-worker Built
|
||||
Image mtusi2026lab6-dispatcher Built
|
||||
Image mtusi2026lab6-api Built
|
||||
@@ -0,0 +1,174 @@
|
||||
{
|
||||
"timestamp": "2026-11-16T21:06:36.187407+03:00",
|
||||
"skeleton": "470d9d6",
|
||||
"transfer_source": "ef7e8c3",
|
||||
"engine": "version=29.9.2 cpus=8 memory_bytes=8212676608",
|
||||
"services": [
|
||||
{
|
||||
"service": "api",
|
||||
"image": "mtusi2026lab6-api",
|
||||
"image_id": "sha256:4c3433f0afb65d077d64e577815de8e2f8c1d135287adeccc17f3602f56f3299",
|
||||
"started_at": "2026-11-16T18:04:37.603181695Z",
|
||||
"health": "healthy",
|
||||
"memory_limit_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"service": "api",
|
||||
"image": "mtusi2026lab6-api",
|
||||
"image_id": "sha256:4c3433f0afb65d077d64e577815de8e2f8c1d135287adeccc17f3602f56f3299",
|
||||
"started_at": "2026-11-16T18:05:46.59241268Z",
|
||||
"health": "healthy",
|
||||
"memory_limit_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"service": "broker",
|
||||
"image": "redis:7.4-alpine@sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f",
|
||||
"image_id": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f",
|
||||
"started_at": "2026-11-16T18:04:31.966805543Z",
|
||||
"health": "healthy",
|
||||
"memory_limit_bytes": 0,
|
||||
"nano_cpus": 0,
|
||||
"volumes": [
|
||||
"mtusi2026lab6_brokerdata"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "db",
|
||||
"image": "postgres:16-alpine@sha256:0cefaabd882e42bcb2a2f3dc56d3ce4770560ba62fd7f197f1a2e008fd5731ab",
|
||||
"image_id": "sha256:0cefaabd882e42bcb2a2f3dc56d3ce4770560ba62fd7f197f1a2e008fd5731ab",
|
||||
"started_at": "2026-11-16T18:04:33.227463421Z",
|
||||
"health": "healthy",
|
||||
"memory_limit_bytes": 1073741824,
|
||||
"nano_cpus": 1000000000,
|
||||
"volumes": [
|
||||
"mtusi2026lab6_pgdata"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "dispatcher",
|
||||
"image": "mtusi2026lab6-dispatcher",
|
||||
"image_id": "sha256:9d7ab5df52a1163bf28d4e48db9baacdba5dcd9b89c4f83322fa32d7858f75fd",
|
||||
"started_at": "2026-11-16T18:04:34.842754932Z",
|
||||
"health": "running",
|
||||
"memory_limit_bytes": 268435456,
|
||||
"nano_cpus": 500000000,
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"service": "grafana",
|
||||
"image": "grafana/grafana:12.0.2@sha256:b5b59bfc7561634c2d7b136c4543d702ebcc94a3da477f21ff26f89ffd4214fa",
|
||||
"image_id": "sha256:b5b59bfc7561634c2d7b136c4543d702ebcc94a3da477f21ff26f89ffd4214fa",
|
||||
"started_at": "2026-11-16T18:04:32.27534289Z",
|
||||
"health": "running",
|
||||
"memory_limit_bytes": 268435456,
|
||||
"nano_cpus": 0,
|
||||
"volumes": [
|
||||
"mtusi2026lab6_grafana-data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "lb",
|
||||
"image": "nginx:1.27-alpine@sha256:65645c7bb6a0661892a8b03b89d0743208a18dd2f3f17a54ef4b76fb8e2f2a10",
|
||||
"image_id": "sha256:65645c7bb6a0661892a8b03b89d0743208a18dd2f3f17a54ef4b76fb8e2f2a10",
|
||||
"started_at": "2026-11-16T18:04:32.751031805Z",
|
||||
"health": "running",
|
||||
"memory_limit_bytes": 0,
|
||||
"nano_cpus": 0,
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"service": "loki",
|
||||
"image": "grafana/loki:3.5.1@sha256:a74594532eec4cc313401beedc4dd2708c43674c032084b1aeb87c14a5be1745",
|
||||
"image_id": "sha256:a74594532eec4cc313401beedc4dd2708c43674c032084b1aeb87c14a5be1745",
|
||||
"started_at": "2026-11-16T18:04:32.918094644Z",
|
||||
"health": "running",
|
||||
"memory_limit_bytes": 402653184,
|
||||
"nano_cpus": 0,
|
||||
"volumes": [
|
||||
"mtusi2026lab6_loki-data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "minio",
|
||||
"image": "pgsty/silo@sha256:7bb2aff6b89efe1cb1303c10fc21d579447434ed06649ac9ec05a5e2dbf30ad7",
|
||||
"image_id": "sha256:7bb2aff6b89efe1cb1303c10fc21d579447434ed06649ac9ec05a5e2dbf30ad7",
|
||||
"started_at": "2026-11-16T18:04:32.058002577Z",
|
||||
"health": "healthy",
|
||||
"memory_limit_bytes": 0,
|
||||
"nano_cpus": 0,
|
||||
"volumes": [
|
||||
"mtusi2026lab6_minio-data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "otel-collector",
|
||||
"image": "otel/opentelemetry-collector-contrib:0.128.0@sha256:1ab0baba0ee3695d823c46653d8a6e8894896e668ce8bd7ebe002e948d827bc7",
|
||||
"image_id": "sha256:1ab0baba0ee3695d823c46653d8a6e8894896e668ce8bd7ebe002e948d827bc7",
|
||||
"started_at": "2026-11-16T18:04:31.686604058Z",
|
||||
"health": "running",
|
||||
"memory_limit_bytes": 201326592,
|
||||
"nano_cpus": 0,
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"service": "prometheus",
|
||||
"image": "prom/prometheus:v3.4.1@sha256:9abc6cf6aea7710d163dbb28d8eeb7dc5baef01e38fa4cd146a406dd9f07f70d",
|
||||
"image_id": "sha256:9abc6cf6aea7710d163dbb28d8eeb7dc5baef01e38fa4cd146a406dd9f07f70d",
|
||||
"started_at": "2026-11-16T18:04:32.56102027Z",
|
||||
"health": "running",
|
||||
"memory_limit_bytes": 268435456,
|
||||
"nano_cpus": 0,
|
||||
"volumes": [
|
||||
"mtusi2026lab6_prometheus-data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "redis",
|
||||
"image": "redis:7.4-alpine@sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f",
|
||||
"image_id": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f",
|
||||
"started_at": "2026-11-16T18:04:32.370360741Z",
|
||||
"health": "healthy",
|
||||
"memory_limit_bytes": 0,
|
||||
"nano_cpus": 0,
|
||||
"volumes": [
|
||||
"mtusi2026lab6_redisdata"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "tempo",
|
||||
"image": "grafana/tempo:2.8.1@sha256:bc9245fe3da4e63dc4c6862d9c2dad9bcd8be13d0ba4f7705fa6acda4c904d0e",
|
||||
"image_id": "sha256:bc9245fe3da4e63dc4c6862d9c2dad9bcd8be13d0ba4f7705fa6acda4c904d0e",
|
||||
"started_at": "2026-11-16T18:04:32.993632697Z",
|
||||
"health": "running",
|
||||
"memory_limit_bytes": 268435456,
|
||||
"nano_cpus": 0,
|
||||
"volumes": [
|
||||
"mtusi2026lab6_tempo-data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "worker",
|
||||
"image": "mtusi2026lab6-worker",
|
||||
"image_id": "sha256:0d6faad5fef10fb0bf6695e49148bc90c27dca671ac6c3c42b644c505c03119a",
|
||||
"started_at": "2026-11-16T18:04:35.257045333Z",
|
||||
"health": "running",
|
||||
"memory_limit_bytes": 1073741824,
|
||||
"nano_cpus": 1000000000,
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"service": "worker",
|
||||
"image": "mtusi2026lab6-worker",
|
||||
"image_id": "sha256:0d6faad5fef10fb0bf6695e49148bc90c27dca671ac6c3c42b644c505c03119a",
|
||||
"started_at": "2026-11-16T18:04:35.099706108Z",
|
||||
"health": "running",
|
||||
"memory_limit_bytes": 1073741824,
|
||||
"nano_cpus": 1000000000,
|
||||
"volumes": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 94, "failed_attempts": 0, "first_recovery_seconds": 2.5}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"attachment_id": "85844943-a35b-41de-bbbb-c94eca68e7f7",
|
||||
"unfinished_delivery_retained": true,
|
||||
"recovered_attempt": 2,
|
||||
"one_manifest": true,
|
||||
"s3_objects": 4
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
PASS stopped Loki: bounded telemetry failure and saved business writes
|
||||
@@ -0,0 +1,3 @@
|
||||
ERROR: canceling statement due to user request
|
||||
ERROR: canceling statement due to user request
|
||||
PASS short DB burst and sustained slowdown: real alerts and DB trace
|
||||
@@ -0,0 +1 @@
|
||||
PASS stopped worker: backlog, firing/resolved and slow READY burn
|
||||
@@ -0,0 +1 @@
|
||||
PASS public starter/contract intact, generated secrets absent from Git-visible files
|
||||
@@ -0,0 +1,15 @@
|
||||
To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.3.0/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
|
||||
Daemon will be stopped at the end of the build
|
||||
> Task :compileJava
|
||||
> Task :processResources UP-TO-DATE
|
||||
> Task :classes
|
||||
> Task :resolveMainClassName UP-TO-DATE
|
||||
> Task :bootJar
|
||||
> Task :compileTestJava UP-TO-DATE
|
||||
> Task :processTestResources NO-SOURCE
|
||||
> Task :testClasses UP-TO-DATE
|
||||
> Task :test
|
||||
|
||||
BUILD SUCCESSFUL in 28s
|
||||
6 actionable tasks: 3 executed, 3 up-to-date
|
||||
Consider enabling configuration cache to speed up this build: https://docs.gradle.org/9.3.0/userguide/configuration_cache_enabling.html
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"durable_templates_validated": 65,
|
||||
"with_w3c_traceparent": 64,
|
||||
"valid": true
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"lab": 6,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 30.0,
|
||||
"elapsed_seconds": 30.094,
|
||||
"concurrency": 4,
|
||||
"successful_requests": 1794,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 59.613,
|
||||
"successful_latency_ms": {
|
||||
"p50": 62.0,
|
||||
"p95": 141.0,
|
||||
"p99": 219.0
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"lab": 6,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 30.0,
|
||||
"elapsed_seconds": 30.094,
|
||||
"concurrency": 4,
|
||||
"successful_requests": 1794,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 59.613,
|
||||
"successful_latency_ms": {
|
||||
"p50": 62.0,
|
||||
"p95": 141.0,
|
||||
"p99": 219.0
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
{
|
||||
"lab_http_requests_total": {
|
||||
"series": 41,
|
||||
"label_keys": [
|
||||
"__name__",
|
||||
"instance",
|
||||
"job",
|
||||
"method",
|
||||
"otel_scope_name",
|
||||
"route",
|
||||
"status_class"
|
||||
]
|
||||
},
|
||||
"lab_http_duration_seconds_bucket": {
|
||||
"series": 533,
|
||||
"label_keys": [
|
||||
"__name__",
|
||||
"instance",
|
||||
"job",
|
||||
"le",
|
||||
"method",
|
||||
"otel_scope_name",
|
||||
"route",
|
||||
"status_class"
|
||||
]
|
||||
},
|
||||
"lab_jobs_total": {
|
||||
"series": 42,
|
||||
"label_keys": [
|
||||
"__name__",
|
||||
"instance",
|
||||
"job",
|
||||
"job_type",
|
||||
"otel_scope_name",
|
||||
"outcome"
|
||||
]
|
||||
},
|
||||
"lab_job_duration_seconds_bucket": {
|
||||
"series": 60,
|
||||
"label_keys": [
|
||||
"__name__",
|
||||
"instance",
|
||||
"job",
|
||||
"job_type",
|
||||
"le",
|
||||
"otel_scope_name",
|
||||
"outcome"
|
||||
]
|
||||
},
|
||||
"lab_ready_duration_seconds_bucket": {
|
||||
"series": 45,
|
||||
"label_keys": [
|
||||
"__name__",
|
||||
"instance",
|
||||
"job",
|
||||
"job_type",
|
||||
"le",
|
||||
"otel_scope_name"
|
||||
]
|
||||
},
|
||||
"lab_queue_depth": {
|
||||
"series": 2,
|
||||
"label_keys": [
|
||||
"__name__",
|
||||
"instance",
|
||||
"job",
|
||||
"otel_scope_name",
|
||||
"queue"
|
||||
]
|
||||
},
|
||||
"lab_queue_oldest_seconds": {
|
||||
"series": 2,
|
||||
"label_keys": [
|
||||
"__name__",
|
||||
"instance",
|
||||
"job",
|
||||
"otel_scope_name",
|
||||
"queue"
|
||||
]
|
||||
},
|
||||
"lab_db_pool_connections": {
|
||||
"series": 12,
|
||||
"label_keys": [
|
||||
"__name__",
|
||||
"instance",
|
||||
"job",
|
||||
"otel_scope_name",
|
||||
"state"
|
||||
]
|
||||
},
|
||||
"lab_worker_busy": {
|
||||
"series": 4,
|
||||
"label_keys": [
|
||||
"__name__",
|
||||
"instance",
|
||||
"job",
|
||||
"otel_scope_name"
|
||||
]
|
||||
},
|
||||
"lab_worker_capacity": {
|
||||
"series": 4,
|
||||
"label_keys": [
|
||||
"__name__",
|
||||
"instance",
|
||||
"job",
|
||||
"otel_scope_name"
|
||||
]
|
||||
},
|
||||
"lab_process_cpu_seconds_total": {
|
||||
"series": 10,
|
||||
"label_keys": [
|
||||
"__name__",
|
||||
"instance",
|
||||
"job",
|
||||
"otel_scope_name"
|
||||
]
|
||||
},
|
||||
"lab_process_rss_bytes": {
|
||||
"series": 10,
|
||||
"label_keys": [
|
||||
"__name__",
|
||||
"instance",
|
||||
"job",
|
||||
"otel_scope_name"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
PASS real upload -> publish -> consumer retry -> S3/DB; Loki/Tempo/Prometheus via Grafana
|
||||
@@ -0,0 +1 @@
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
@@ -0,0 +1,2 @@
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1 @@
|
||||
PASS expired worker without dispatcher: no premature ACK; pending/index retained; recovery publishes exactly one result on attempt 2
|
||||
@@ -0,0 +1,2 @@
|
||||
PASS message eligibility: status UPDATE blocked until Message COMMIT; subsequent FAILED attachment rejected with 409
|
||||
PASS download/cleanup barrier: content waits for exclusive cleanup, returns identical bytes, releases shared fence
|
||||
@@ -0,0 +1,5 @@
|
||||
PASS queued snapshot, link before ready, 409 before worker; original + 3 variants
|
||||
PASS bytes/corruption/MIME/filename/ACL/cross-chat negatives
|
||||
PASS alpha white, no small-image enlargement, EXIF rotation, crop and WebP
|
||||
PASS 24 concurrent requests across 2 API replicas; single message effect
|
||||
PASS core pipeline contract
|
||||
@@ -0,0 +1,67 @@
|
||||
[
|
||||
{
|
||||
"scenario": "commit_publish_api_broker_restart",
|
||||
"result": "PASS",
|
||||
"seconds": 83.344
|
||||
},
|
||||
{
|
||||
"scenario": "publish_confirm_db_mark_crash",
|
||||
"result": "PASS",
|
||||
"seconds": 20.297
|
||||
},
|
||||
{
|
||||
"scenario": "24_concurrent_duplicate_deliveries",
|
||||
"result": "PASS",
|
||||
"seconds": 20.875
|
||||
},
|
||||
{
|
||||
"scenario": "crash_before_effects",
|
||||
"result": "PASS",
|
||||
"seconds": 23.968
|
||||
},
|
||||
{
|
||||
"scenario": "crash_after_effects",
|
||||
"result": "PASS",
|
||||
"seconds": 23.016
|
||||
},
|
||||
{
|
||||
"scenario": "crash_after_commit",
|
||||
"result": "PASS",
|
||||
"seconds": 14.187
|
||||
},
|
||||
{
|
||||
"scenario": "crash_before_ack",
|
||||
"result": "PASS",
|
||||
"seconds": 21.516
|
||||
},
|
||||
{
|
||||
"scenario": "expired_lease_fences_old_worker",
|
||||
"result": "PASS",
|
||||
"seconds": 24.891
|
||||
},
|
||||
{
|
||||
"scenario": "hard_process_timeout_recovery",
|
||||
"result": "PASS",
|
||||
"seconds": 36.281
|
||||
},
|
||||
{
|
||||
"scenario": "new_version_then_stale_reordered_jobs",
|
||||
"result": "PASS",
|
||||
"seconds": 27.64
|
||||
},
|
||||
{
|
||||
"scenario": "permanent_failure_explicit_replay",
|
||||
"result": "PASS",
|
||||
"seconds": 15.344
|
||||
},
|
||||
{
|
||||
"scenario": "bounded_retry_explicit_replay",
|
||||
"result": "PASS",
|
||||
"seconds": 24.594
|
||||
},
|
||||
{
|
||||
"scenario": "two_replica_atomic_backpressure_recovery",
|
||||
"result": "PASS",
|
||||
"seconds": 17.547
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,16 @@
|
||||
durability: 202 -> outbox COMMIT without publisher; API restart; publish; broker restart while worker stopped; same jobs ready
|
||||
{"scenario": "commit_publish_api_broker_restart", "result": "PASS", "seconds": 83.344}
|
||||
{"scenario": "publish_confirm_db_mark_crash", "result": "PASS", "seconds": 20.297}
|
||||
{"scenario": "24_concurrent_duplicate_deliveries", "result": "PASS", "seconds": 20.875}
|
||||
{"scenario": "crash_before_effects", "result": "PASS", "seconds": 23.968}
|
||||
{"scenario": "crash_after_effects", "result": "PASS", "seconds": 23.016}
|
||||
{"scenario": "crash_after_commit", "result": "PASS", "seconds": 14.187}
|
||||
{"scenario": "crash_before_ack", "result": "PASS", "seconds": 21.516}
|
||||
{"scenario": "expired_lease_fences_old_worker", "result": "PASS", "seconds": 24.891}
|
||||
{"scenario": "hard_process_timeout_recovery", "result": "PASS", "seconds": 36.281}
|
||||
{"scenario": "new_version_then_stale_reordered_jobs", "result": "PASS", "seconds": 27.64}
|
||||
{"scenario": "permanent_failure_explicit_replay", "result": "PASS", "seconds": 15.344}
|
||||
{"scenario": "bounded_retry_explicit_replay", "result": "PASS", "seconds": 24.594}
|
||||
backpressure: 6 accepted, 4 rejected with 503, accepted jobs drained after recovery
|
||||
{"scenario": "two_replica_atomic_backpressure_recovery", "result": "PASS", "seconds": 17.547}
|
||||
PASS staging cleaned after safe result publication; no confirmed job lost; all pipeline fault invariants
|
||||
@@ -0,0 +1 @@
|
||||
PASS filename code-point limits: 255 ASCII and 255 emoji -> 202 and download 200; 256 emoji -> 400; long Content-Disposition accepted by LB
|
||||
@@ -0,0 +1 @@
|
||||
PASS history last-slot race: 10 simultaneous unique POSTs, exactly 1 committed and 9 rejected with 413; DB count equals configured limit
|
||||
@@ -0,0 +1,5 @@
|
||||
PASS anonymous direct S3 GET of existing original returns 403
|
||||
injected 49-million-pixel complete PNG into trusted staging with matching metadata
|
||||
PASS worker independently rejects >40 million pixels before full decode; FAILED on first attempt
|
||||
fresh orphan retained by grace
|
||||
PASS expired failed staging cleaned; unsafe replay refused; referenced ready bytes retained
|
||||
@@ -0,0 +1 @@
|
||||
PASS SIGKILL after S3 PUT before DB COMMIT: no confirmed response, DB rolled back, staged orphan unreferenced; same session uploads after recovery
|
||||
@@ -0,0 +1,543 @@
|
||||
{
|
||||
"accepted": 16,
|
||||
"queue_firing": [
|
||||
{
|
||||
"seconds": 0.81,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 1.84,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 2.86,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 3.88,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 4.92,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 5.95,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 6.97,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 8.0,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 9.03,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 10.05,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 11.08,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 12.11,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 13.16,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 14.19,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 15.2,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 16.24,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 17.27,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 18.3,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 19.33,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 20.34,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 21.36,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 22.39,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 23.41,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 24.44,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 25.45,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 26.49,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 27.5,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "firing"
|
||||
}
|
||||
}
|
||||
],
|
||||
"peak": {
|
||||
"age_seconds": 19.775276,
|
||||
"backlog": 16.0,
|
||||
"reported_capacity": 0.0
|
||||
},
|
||||
"drained_seconds": 10.08,
|
||||
"ready_burn_firing": [
|
||||
{
|
||||
"seconds": 10.09,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 11.11,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 12.12,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 13.16,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 14.19,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 15.2,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 16.22,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 17.25,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 18.31,
|
||||
"states": {
|
||||
"ReadyBurnFast": "pending",
|
||||
"ReadyBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 19.33,
|
||||
"states": {
|
||||
"ReadyBurnFast": "pending",
|
||||
"ReadyBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 20.34,
|
||||
"states": {
|
||||
"ReadyBurnFast": "pending",
|
||||
"ReadyBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 21.36,
|
||||
"states": {
|
||||
"ReadyBurnFast": "pending",
|
||||
"ReadyBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 22.39,
|
||||
"states": {
|
||||
"ReadyBurnFast": "pending",
|
||||
"ReadyBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 23.41,
|
||||
"states": {
|
||||
"ReadyBurnFast": "pending",
|
||||
"ReadyBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 24.42,
|
||||
"states": {
|
||||
"ReadyBurnFast": "pending",
|
||||
"ReadyBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 25.44,
|
||||
"states": {
|
||||
"ReadyBurnFast": "pending",
|
||||
"ReadyBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 26.47,
|
||||
"states": {
|
||||
"ReadyBurnFast": "firing",
|
||||
"ReadyBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 27.5,
|
||||
"states": {
|
||||
"ReadyBurnFast": "firing",
|
||||
"ReadyBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 28.55,
|
||||
"states": {
|
||||
"ReadyBurnFast": "firing",
|
||||
"ReadyBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 29.58,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 30.59,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 31.62,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 32.66,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 33.69,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 34.72,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "pending"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 35.75,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "firing"
|
||||
}
|
||||
}
|
||||
],
|
||||
"queue_resolved": [
|
||||
{
|
||||
"seconds": 35.75,
|
||||
"states": {
|
||||
"AttachmentQueueLag": "inactive"
|
||||
}
|
||||
}
|
||||
],
|
||||
"ready_burn_resolved": [
|
||||
{
|
||||
"seconds": 35.75,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 36.78,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 37.81,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 38.83,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 39.84,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 40.88,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 41.89,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 42.92,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 43.94,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 44.95,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 45.98,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 47.01,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 48.03,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 49.06,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 50.08,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 51.09,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 52.11,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 53.12,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 54.16,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 55.2,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 56.23,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 57.26,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 58.3,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 59.31,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "firing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"seconds": 60.34,
|
||||
"states": {
|
||||
"ReadyBurnFast": "inactive",
|
||||
"ReadyBurnSlow": "inactive"
|
||||
}
|
||||
}
|
||||
],
|
||||
"all_ready": true
|
||||
}
|
||||
@@ -0,0 +1,167 @@
|
||||
[
|
||||
{
|
||||
"BlockIO": "0B / 225kB",
|
||||
"CPUPerc": "4.37%",
|
||||
"Container": "ca125bc1ab260f066b6cd7fa547fb63df8f791ed06ed45fb5a945ff7c91f0c0e",
|
||||
"ID": "ca125bc1ab26",
|
||||
"MemPerc": "85.26%",
|
||||
"MemUsage": "436.5MiB / 512MiB",
|
||||
"Name": "mtusi2026lab6-api-1",
|
||||
"NetIO": "783kB / 1.01MB",
|
||||
"PIDs": "45"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 168kB",
|
||||
"CPUPerc": "0.60%",
|
||||
"Container": "05f31aaf15dade65b0313165a791e9eae523b97fe27a1f589c061e2f8941f6d7",
|
||||
"ID": "05f31aaf15da",
|
||||
"MemPerc": "78.47%",
|
||||
"MemUsage": "401.8MiB / 512MiB",
|
||||
"Name": "mtusi2026lab6-api-2",
|
||||
"NetIO": "205kB / 238kB",
|
||||
"PIDs": "44"
|
||||
},
|
||||
{
|
||||
"BlockIO": "1.17MB / 0B",
|
||||
"CPUPerc": "3.43%",
|
||||
"Container": "64111f70300ebe28bd795eb9fae98b908aabfa8bbc15a100cbb1205ccd8b5f6d",
|
||||
"ID": "64111f70300e",
|
||||
"MemPerc": "0.06%",
|
||||
"MemUsage": "4.578MiB / 7.649GiB",
|
||||
"Name": "mtusi2026lab6-broker-1",
|
||||
"NetIO": "211kB / 124kB",
|
||||
"PIDs": "6"
|
||||
},
|
||||
{
|
||||
"BlockIO": "53.2kB / 618kB",
|
||||
"CPUPerc": "8.35%",
|
||||
"Container": "3eb05c0c3be8dc3209f96d29766c753f2886d82e8eb2914a27ccead0e17ff6c6",
|
||||
"ID": "3eb05c0c3be8",
|
||||
"MemPerc": "4.26%",
|
||||
"MemUsage": "43.59MiB / 1GiB",
|
||||
"Name": "mtusi2026lab6-db-1",
|
||||
"NetIO": "1.36MB / 1.49MB",
|
||||
"PIDs": "16"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "7.03%",
|
||||
"Container": "ef1edef5f865d086f570b3fe4753ed9949656a9bc7b31f115698523c741e48ae",
|
||||
"ID": "ef1edef5f865",
|
||||
"MemPerc": "22.85%",
|
||||
"MemUsage": "58.51MiB / 256MiB",
|
||||
"Name": "mtusi2026lab6-dispatcher-1",
|
||||
"NetIO": "1.31MB / 959kB",
|
||||
"PIDs": "4"
|
||||
},
|
||||
{
|
||||
"BlockIO": "3.67MB / 217kB",
|
||||
"CPUPerc": "0.24%",
|
||||
"Container": "5cfa7717b7a7ab3c14890490f4a6b1340507df674cf8eb4c1c69a43fd480a631",
|
||||
"ID": "5cfa7717b7a7",
|
||||
"MemPerc": "31.45%",
|
||||
"MemUsage": "80.52MiB / 256MiB",
|
||||
"Name": "mtusi2026lab6-grafana-1",
|
||||
"NetIO": "21.5kB / 15.3kB",
|
||||
"PIDs": "22"
|
||||
},
|
||||
{
|
||||
"BlockIO": "1.13MB / 4.1kB",
|
||||
"CPUPerc": "0.00%",
|
||||
"Container": "df656f660d6da9188636bdfea949b211ef67dfaf74e50791483ee488257aba80",
|
||||
"ID": "df656f660d6d",
|
||||
"MemPerc": "0.10%",
|
||||
"MemUsage": "8.09MiB / 7.649GiB",
|
||||
"Name": "mtusi2026lab6-lb-1",
|
||||
"NetIO": "940kB / 990kB",
|
||||
"PIDs": "9"
|
||||
},
|
||||
{
|
||||
"BlockIO": "3.19MB / 111kB",
|
||||
"CPUPerc": "1.21%",
|
||||
"Container": "4a0e6eb9fbc6c174bbf8592da5f294742595e7d3f68793dcfe7a0d77b0704d36",
|
||||
"ID": "4a0e6eb9fbc6",
|
||||
"MemPerc": "16.40%",
|
||||
"MemUsage": "62.99MiB / 384MiB",
|
||||
"Name": "mtusi2026lab6-loki-1",
|
||||
"NetIO": "45.8kB / 9.36kB",
|
||||
"PIDs": "13"
|
||||
},
|
||||
{
|
||||
"BlockIO": "9.04MB / 623kB",
|
||||
"CPUPerc": "1.40%",
|
||||
"Container": "4c69cf0985be420aeaeac5aba974f8b00fb4b41feefa53ed63b20fff22756830",
|
||||
"ID": "4c69cf0985be",
|
||||
"MemPerc": "2.48%",
|
||||
"MemUsage": "194.2MiB / 7.649GiB",
|
||||
"Name": "mtusi2026lab6-minio-1",
|
||||
"NetIO": "536kB / 890kB",
|
||||
"PIDs": "13"
|
||||
},
|
||||
{
|
||||
"BlockIO": "1.45MB / 0B",
|
||||
"CPUPerc": "0.45%",
|
||||
"Container": "e3b44951e44d4259758d6433d9343b3e1c5361dcd2ff398ebd1a4b88946d2b7b",
|
||||
"ID": "e3b44951e44d",
|
||||
"MemPerc": "28.22%",
|
||||
"MemUsage": "54.19MiB / 192MiB",
|
||||
"Name": "mtusi2026lab6-otel-collector-1",
|
||||
"NetIO": "487kB / 281kB",
|
||||
"PIDs": "12"
|
||||
},
|
||||
{
|
||||
"BlockIO": "2.08MB / 98.3kB",
|
||||
"CPUPerc": "0.29%",
|
||||
"Container": "97fd117dc63b8a2dbbb071139ffd8881a8e403e5405ecc290214ff7bd23ab8d7",
|
||||
"ID": "97fd117dc63b",
|
||||
"MemPerc": "14.24%",
|
||||
"MemUsage": "36.46MiB / 256MiB",
|
||||
"Name": "mtusi2026lab6-prometheus-1",
|
||||
"NetIO": "171kB / 40.4kB",
|
||||
"PIDs": "13"
|
||||
},
|
||||
{
|
||||
"BlockIO": "4.1kB / 0B",
|
||||
"CPUPerc": "0.72%",
|
||||
"Container": "bbf844ba619b0bea8aa50bace9db4d966527cf880e9f13d1dc0470eb4f03dac3",
|
||||
"ID": "bbf844ba619b",
|
||||
"MemPerc": "0.04%",
|
||||
"MemUsage": "3.5MiB / 7.649GiB",
|
||||
"Name": "mtusi2026lab6-redis-1",
|
||||
"NetIO": "5.82kB / 937B",
|
||||
"PIDs": "6"
|
||||
},
|
||||
{
|
||||
"BlockIO": "3.13MB / 504kB",
|
||||
"CPUPerc": "0.38%",
|
||||
"Container": "a66f26b3045359ab3e71d12e3899420721be615cbce713366f0b69d12ca1d08f",
|
||||
"ID": "a66f26b30453",
|
||||
"MemPerc": "52.48%",
|
||||
"MemUsage": "134.3MiB / 256MiB",
|
||||
"Name": "mtusi2026lab6-tempo-1",
|
||||
"NetIO": "35.8kB / 14.7kB",
|
||||
"PIDs": "14"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "0.18%",
|
||||
"Container": "d7f3abb5618a77a1a51800da051b5518049868344387fa436735d5f5c78f3366",
|
||||
"ID": "d7f3abb5618a",
|
||||
"MemPerc": "5.64%",
|
||||
"MemUsage": "57.72MiB / 1GiB",
|
||||
"Name": "mtusi2026lab6-worker-1",
|
||||
"NetIO": "70.9kB / 140kB",
|
||||
"PIDs": "4"
|
||||
},
|
||||
{
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "0.14%",
|
||||
"Container": "9158f772815a31ce40f2ee3e9ac959c7a9b8784a7a4bc1b603b30a710b6da4ba",
|
||||
"ID": "9158f772815a",
|
||||
"MemPerc": "5.67%",
|
||||
"MemUsage": "58.05MiB / 1GiB",
|
||||
"Name": "mtusi2026lab6-worker-2",
|
||||
"NetIO": "330kB / 444kB",
|
||||
"PIDs": "4"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,15 @@
|
||||
/mtusi2026lab6-api-1 2026-11-16T18:04:37.603181695Z
|
||||
/mtusi2026lab6-api-2 2026-11-16T18:04:37.253020096Z
|
||||
/mtusi2026lab6-broker-1 2026-11-16T18:04:31.966805543Z
|
||||
/mtusi2026lab6-db-1 2026-11-16T18:04:33.227463421Z
|
||||
/mtusi2026lab6-dispatcher-1 2026-11-16T18:04:34.842754932Z
|
||||
/mtusi2026lab6-grafana-1 2026-11-16T18:04:32.27534289Z
|
||||
/mtusi2026lab6-lb-1 2026-11-16T18:04:32.751031805Z
|
||||
/mtusi2026lab6-loki-1 2026-11-16T18:04:32.918094644Z
|
||||
/mtusi2026lab6-minio-1 2026-11-16T18:04:32.058002577Z
|
||||
/mtusi2026lab6-otel-collector-1 2026-11-16T18:04:31.686604058Z
|
||||
/mtusi2026lab6-prometheus-1 2026-11-16T18:04:32.56102027Z
|
||||
/mtusi2026lab6-redis-1 2026-11-16T18:04:32.370360741Z
|
||||
/mtusi2026lab6-tempo-1 2026-11-16T18:04:32.993632697Z
|
||||
/mtusi2026lab6-worker-1 2026-11-16T18:04:35.257045333Z
|
||||
/mtusi2026lab6-worker-2 2026-11-16T18:04:35.099706108Z
|
||||
@@ -0,0 +1,15 @@
|
||||
/mtusi2026lab6-api-1 2026-11-16T18:03:22.799944493Z
|
||||
/mtusi2026lab6-api-2 2026-11-16T18:03:22.473205918Z
|
||||
/mtusi2026lab6-broker-1 2026-11-16T17:58:30.668320823Z
|
||||
/mtusi2026lab6-db-1 2026-11-16T17:52:46.060859992Z
|
||||
/mtusi2026lab6-dispatcher-1 2026-11-16T18:04:20.075887125Z
|
||||
/mtusi2026lab6-grafana-1 2026-11-16T17:52:44.857859824Z
|
||||
/mtusi2026lab6-lb-1 2026-11-16T17:53:43.675823414Z
|
||||
/mtusi2026lab6-loki-1 2026-11-16T17:52:45.648452157Z
|
||||
/mtusi2026lab6-minio-1 2026-11-16T17:28:01.072461454Z
|
||||
/mtusi2026lab6-otel-collector-1 2026-11-16T17:52:44.430157283Z
|
||||
/mtusi2026lab6-prometheus-1 2026-11-16T17:52:45.274536244Z
|
||||
/mtusi2026lab6-redis-1 2026-11-16T17:52:43.608879149Z
|
||||
/mtusi2026lab6-tempo-1 2026-11-16T17:52:43.224860803Z
|
||||
/mtusi2026lab6-worker-1 2026-11-16T18:04:20.653472809Z
|
||||
/mtusi2026lab6-worker-2 2026-11-16T18:04:19.680572096Z
|
||||
@@ -0,0 +1,126 @@
|
||||
{
|
||||
"trace_id": "a08035a4bdd0efa15ee8dfcc0814a041",
|
||||
"request_id": "059de23d-0922-4795-84bd-dd7166543a2e",
|
||||
"spans": [
|
||||
{
|
||||
"name": "POST /api/v1/chats/{chat_id}/attachments",
|
||||
"service": "messenger-api",
|
||||
"spanId": "ySzQ7cp0lhc=",
|
||||
"parentSpanId": null,
|
||||
"kind": "SPAN_KIND_SERVER",
|
||||
"status": {}
|
||||
},
|
||||
{
|
||||
"name": "postgres.session.lookup",
|
||||
"service": "messenger-api",
|
||||
"spanId": "S5ua9uX3Hz8=",
|
||||
"parentSpanId": "ySzQ7cp0lhc=",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": {}
|
||||
},
|
||||
{
|
||||
"name": "s3.staging.put",
|
||||
"service": "messenger-api",
|
||||
"spanId": "W65j5eorpic=",
|
||||
"parentSpanId": "ySzQ7cp0lhc=",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"status": {}
|
||||
},
|
||||
{
|
||||
"name": "attachments publish",
|
||||
"service": "messenger-dispatcher",
|
||||
"spanId": "1Pz7sSsC46Y=",
|
||||
"parentSpanId": "ySzQ7cp0lhc=",
|
||||
"kind": "SPAN_KIND_PRODUCER",
|
||||
"status": {}
|
||||
},
|
||||
{
|
||||
"name": "attachments consume",
|
||||
"service": "messenger-worker",
|
||||
"spanId": "69iyCQQd/Ck=",
|
||||
"parentSpanId": "1Pz7sSsC46Y=",
|
||||
"kind": "SPAN_KIND_CONSUMER",
|
||||
"status": {
|
||||
"code": "STATUS_CODE_ERROR"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "attachment.process",
|
||||
"service": "messenger-worker",
|
||||
"spanId": "Rqg7ibEx3xo=",
|
||||
"parentSpanId": "69iyCQQd/Ck=",
|
||||
"kind": "SPAN_KIND_INTERNAL",
|
||||
"status": {}
|
||||
},
|
||||
{
|
||||
"name": "postgres.claim",
|
||||
"service": "messenger-worker",
|
||||
"spanId": "NSfKu4KeKm8=",
|
||||
"parentSpanId": "Rqg7ibEx3xo=",
|
||||
"kind": "SPAN_KIND_INTERNAL",
|
||||
"status": {}
|
||||
},
|
||||
{
|
||||
"name": "attachments publish",
|
||||
"service": "messenger-dispatcher",
|
||||
"spanId": "J+nVboJFSAk=",
|
||||
"parentSpanId": "ySzQ7cp0lhc=",
|
||||
"kind": "SPAN_KIND_PRODUCER",
|
||||
"status": {}
|
||||
},
|
||||
{
|
||||
"name": "attachments consume",
|
||||
"service": "messenger-worker",
|
||||
"spanId": "AqkcWGF6mBI=",
|
||||
"parentSpanId": "J+nVboJFSAk=",
|
||||
"kind": "SPAN_KIND_CONSUMER",
|
||||
"status": {}
|
||||
},
|
||||
{
|
||||
"name": "attachment.process",
|
||||
"service": "messenger-worker",
|
||||
"spanId": "NzYfVgeqm3Q=",
|
||||
"parentSpanId": "AqkcWGF6mBI=",
|
||||
"kind": "SPAN_KIND_INTERNAL",
|
||||
"status": {}
|
||||
},
|
||||
{
|
||||
"name": "postgres.claim",
|
||||
"service": "messenger-worker",
|
||||
"spanId": "i+oqIAPzLhA=",
|
||||
"parentSpanId": "NzYfVgeqm3Q=",
|
||||
"kind": "SPAN_KIND_INTERNAL",
|
||||
"status": {}
|
||||
},
|
||||
{
|
||||
"name": "s3.staging.read",
|
||||
"service": "messenger-worker",
|
||||
"spanId": "VYZ47B4qInA=",
|
||||
"parentSpanId": "NzYfVgeqm3Q=",
|
||||
"kind": "SPAN_KIND_INTERNAL",
|
||||
"status": {}
|
||||
},
|
||||
{
|
||||
"name": "image.render_and_write",
|
||||
"service": "messenger-worker",
|
||||
"spanId": "vv1qEQ5DvKM=",
|
||||
"parentSpanId": "NzYfVgeqm3Q=",
|
||||
"kind": "SPAN_KIND_INTERNAL",
|
||||
"status": {}
|
||||
},
|
||||
{
|
||||
"name": "postgres.publish_result",
|
||||
"service": "messenger-worker",
|
||||
"spanId": "h8VyMOuu2J4=",
|
||||
"parentSpanId": "NzYfVgeqm3Q=",
|
||||
"kind": "SPAN_KIND_INTERNAL",
|
||||
"status": {}
|
||||
}
|
||||
],
|
||||
"worker_events": [
|
||||
"worker.delivery",
|
||||
"worker.ready",
|
||||
"worker.retry"
|
||||
],
|
||||
"marker_absent": true
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
PASS: lab6 public API scenario; infrastructure and grading evidence remain separate.
|
||||
@@ -0,0 +1,163 @@
|
||||
{
|
||||
"Dockerfile": "df1d8c5e1c81074d4fead2dc32b04ad884547e4cc840b0703731caba17856199",
|
||||
"build.gradle": "36dbf09d9968ada1d2545f94e9bb8f502994da3fa9afb4b4f8c3f5aaa1016d54",
|
||||
"compose.local.yaml": "ac71af616f79b7143146519c17f38f75ecd96d16fadf842824dd3e9141180632",
|
||||
"compose.test.yaml": "6682c8f1f6fe539cea111cf0c3b0dce08a167144137f01a342a15c2d8b2c7cab",
|
||||
"docker-compose.yml": "90ed9f03ed1c1f110c10230070450c0c28731943f5bb09aac1af0bb32860ca43",
|
||||
"infra/otel/README.md": "709332a3e910f9d42cb2a44c8d24b13aff6ce0ac7b671840e3cc273ddb82d3d6",
|
||||
"infra/otel/alerts.yaml": "d8a2d0441d67d783e1480dc9638deb3e1d234990e7c6456a8952882d797b9cdc",
|
||||
"infra/otel/collector.yaml": "c364f62c46c9b521f38111ec0b37d7a44e0a7f62558922b2317130fef35a0cd9",
|
||||
"infra/otel/grafana/dashboards/messenger.json": "aa087a7c3b4b52f168cd7376775cfed83538a263792d52a5774ceaa348f33901",
|
||||
"infra/otel/grafana/provisioning/dashboards/provider.yaml": "8c697d182ee7d236c0969baca01197a9f781dfa8e3476e27d50e34923c99df6d",
|
||||
"infra/otel/grafana/provisioning/datasources/datasources.yaml": "499a03f6bd8d60478ea2950ae5906dfdc1429647a0cc9e464bd9e929afb34fc2",
|
||||
"infra/otel/loki.yaml": "6973cafcbdf83c2c8d1cda726ee1369120ea570f15f22c88c310fc3317c97b33",
|
||||
"infra/otel/prometheus.yaml": "826a001023f4c7c45c3564d7bfbd4895a296b2a01a24e40e32d2d7da72d41b0a",
|
||||
"infra/otel/runbook.md": "55364c44a0914a0a87d1330a4b0cd194b9b921da08447f44a97b9e9d9be97738",
|
||||
"infra/otel/tempo.yaml": "5eff13657c42d66517407ea1b02cb9756204309ed2c94d9a2f726dc6701709bb",
|
||||
"scripts/bootstrap.ps1": "f3f6e9ca42bdc1f778aa8f7e7e5d0c61bcf16bf3f35eb1a36b2d48274c60e22c",
|
||||
"scripts/capture_evidence.py": "72abbab258d61c766f7751fe198496ea800391c2347b9722b049e39796eed5ad",
|
||||
"scripts/check_contract.py": "61e300fe5c1074360418e24b4653b12f96808247a2beaf2a64859aa360f81493",
|
||||
"scripts/restart.cmd": "a8b170bd67efd9fd2cbd0db837984f826cf0f09c9b73754798b79ff481b1d589",
|
||||
"scripts/restart.example.sh": "7cbfc7f518b975ee3ca37a645359ff734ab0686789b795a9ac845789eb46fbd9",
|
||||
"scripts/restart.ps1": "b78883af6d19424c401d8681a9beef3f6d8e1d015faf7bc02b1001ce2c621d29",
|
||||
"scripts/restart.sh": "4b6969335a52eb8fed1a4864a740989b64a4df10fbf4997c25583525867fc4ca",
|
||||
"scripts/run_tests.ps1": "64b719f178f74877c5f515a1a8c4126525f62699412708dc630f68c62478459d",
|
||||
"scripts/stop-one.cmd": "b636287c36f4c8f52e7840513506565bab0a1d480bb9187fdb40d1c0101616fa",
|
||||
"scripts/stop-one.example.sh": "6467c6e1515dee72982f85bced3f3862601ae0dbfafd4fd4818ef420f1dea040",
|
||||
"scripts/stop-one.ps1": "c60f70430dbea3916c68011ad5ccbaf329a44a43f1e2d55f33597e4a495cc0b6",
|
||||
"scripts/stop-one.sh": "fec1a774f4387676b8b6adf2398a41e7b0108a0bc745103a3079b23acfe6f668",
|
||||
"scripts/style.py": "db987b555315d9eda5ffbe60a5472d76fc8df7a668e6c9db2223865fb9beee47",
|
||||
"scripts/validate_openapi.py": "cd7a33221b1860c5d2330e52afa6cb222d375db671ae9ab379ba51a0d3a77946",
|
||||
"src/main/java/ru/mtusi/messenger/MessengerLab1Application.java": "88c6dc51a1541bfb60067a346460ce03c54b38fbd2a948991800fed3cace3c36",
|
||||
"src/main/java/ru/mtusi/messenger/cache/CacheHealthTracker.java": "3f061f664b84ea0492e2bb61e154a595e7b3c6d18cc673fa95da6d69944ef737",
|
||||
"src/main/java/ru/mtusi/messenger/config/JacksonConfig.java": "39b987cd4529a9d34744bf55efc825b6cfb2bae93d77cc4330b73ed3475cc993",
|
||||
"src/main/java/ru/mtusi/messenger/config/MinioConfig.java": "f83fa7eb639d3bb3a69a25396b5956a7ae7fd14086dce095d1555523fa4f82af",
|
||||
"src/main/java/ru/mtusi/messenger/config/OpenApiConfig.java": "2abe3c50fcb7405743f7f75dde186961d8c6641f3afbfb5a5167f89245dc6155",
|
||||
"src/main/java/ru/mtusi/messenger/config/RateLimitConfig.java": "61c0979d9198e02ae93e1d88b220f36fb9e40cb6014047dc01c6a4808143057e",
|
||||
"src/main/java/ru/mtusi/messenger/config/RedisConfig.java": "38e4ab26af31cad16ad4c4d989948f2e7a4e4aff6774abe0d2659f407d129c88",
|
||||
"src/main/java/ru/mtusi/messenger/config/SecurityConfig.java": "92ea3a1ab3d4a81badadef388b367e1a14a1216b27d595aa6dc751c465f7ae23",
|
||||
"src/main/java/ru/mtusi/messenger/config/properties/AppProperties.java": "351ecfb59fb0c88fec25deaa0abd82c772b1496eb70d03f54e55c254b3b6816c",
|
||||
"src/main/java/ru/mtusi/messenger/config/properties/IdempotencyProperties.java": "065ed8206d932c43a32568d60c6ba3f210073d27aa50322c3230a0f149cdd822",
|
||||
"src/main/java/ru/mtusi/messenger/config/properties/InstanceProperties.java": "0ec19bb2d242f6831ca113d25b0183aac98b6dad67b7a535226f3a54053ba65d",
|
||||
"src/main/java/ru/mtusi/messenger/config/properties/RateLimitProperties.java": "7fec3f5cf685f8381a7787b49f998a0c406f1aa83d15312607a115f8d98cba47",
|
||||
"src/main/java/ru/mtusi/messenger/config/properties/RedisProperties.java": "a9e0b2c81b83f490935d40c81c0b48b8de044deb6ef1c7a35d08b665f88ada4a",
|
||||
"src/main/java/ru/mtusi/messenger/config/properties/S3Properties.java": "9c53f5235bb5faad050a3e46b5ea3bbc3022b3ee644dd72816fe449aeb686df5",
|
||||
"src/main/java/ru/mtusi/messenger/config/properties/SessionProperties.java": "fcd1a5d72655ad35dcd24101a6b68a49e1ea60b14498cd34a5090e2893141d90",
|
||||
"src/main/java/ru/mtusi/messenger/config/properties/UploadProperties.java": "0af77902ba3345e8eb60dbbf3ee8e81b90e996647ed8ebff1d1102e04026eaba",
|
||||
"src/main/java/ru/mtusi/messenger/controller/AttachmentController.java": "19705b6da3010c26e423e8cc100c522ad9c8c01bc1b07a494a0cd710086db404",
|
||||
"src/main/java/ru/mtusi/messenger/controller/AttachmentsApi.java": "64bf2fc9c25bb161e28d900ba76e4b6d91c257ede01259ead9d63346ac26b80f",
|
||||
"src/main/java/ru/mtusi/messenger/controller/AuthApi.java": "45acd2b55d8c289f0daf9f70c0fc38477a633d92ccac6bf5735b533a7115e1b9",
|
||||
"src/main/java/ru/mtusi/messenger/controller/AuthController.java": "a5db3355b44a9f4cfe71d181b62668b9c7dcad2888b9ef33932034d23ba99873",
|
||||
"src/main/java/ru/mtusi/messenger/controller/ChatController.java": "49ef6e0e2135dfcd35a61cec7849835d6f2c75cc41e9d01c0b08e823c70034ba",
|
||||
"src/main/java/ru/mtusi/messenger/controller/ChatsApi.java": "dc4f021487ba1950094b0d53b3764c09252f1e3053b6930171093fa890cb8541",
|
||||
"src/main/java/ru/mtusi/messenger/controller/HealthApi.java": "f5f3645ea4ecb7043bc721aa6f245f3e1a9e1dbeab3de1af24a2c3db30ef686e",
|
||||
"src/main/java/ru/mtusi/messenger/controller/HealthController.java": "ca929dc4f5db7c3a380aa5a16e31755c5f98570a70a9c60f76e7a8b91096911e",
|
||||
"src/main/java/ru/mtusi/messenger/controller/MessageController.java": "c1c42e223bd3cd945fd27f911edad74a14a87502f0efbc9b43565f52576baf3e",
|
||||
"src/main/java/ru/mtusi/messenger/controller/MessagesApi.java": "8a085fabcef8a811bef855301304478f38b983c9fa2668c01db03259e433141f",
|
||||
"src/main/java/ru/mtusi/messenger/controller/UserController.java": "52082cf75de23b57eef6b211207e1a8508e5e22e4ae3ffefc010d5fe3f6d21a0",
|
||||
"src/main/java/ru/mtusi/messenger/controller/UsersApi.java": "2f95871d9334ae832c05b4a0a2b9b5faeddc44a036a2101fd8a64da033b56a21",
|
||||
"src/main/java/ru/mtusi/messenger/controller/controllerAdvice/GlobalExceptionHandler.java": "154bc885ee66e06899a9479a507122289e67dca84f992b7fd79eec558fa3e6cb",
|
||||
"src/main/java/ru/mtusi/messenger/dto/AttachmentDTO.java": "8a5ecfa0018bce8bb3be52cc9031613b23b0c4ca129a8dbca2898459c334f343",
|
||||
"src/main/java/ru/mtusi/messenger/dto/ChatDTO.java": "b9dbd4a8f043c5e1287c53d20c1b7d0aa9d713888cbd592c06fdd56a61e8bdd8",
|
||||
"src/main/java/ru/mtusi/messenger/dto/ChatPageDTO.java": "83306e7e8dd52eccb540302c5b96f49aee4d65200b984b19edd00ec03559ba85",
|
||||
"src/main/java/ru/mtusi/messenger/dto/CreateChatDTO.java": "170cba1f52075043d61ca81077ad2e67fb85cbfb15599ec8dfbc85d341e76604",
|
||||
"src/main/java/ru/mtusi/messenger/dto/CreateMessageDTO.java": "b76748a82ec6f1a88eca19e54034a65e152fb986262e37120ea9af45a2912ada",
|
||||
"src/main/java/ru/mtusi/messenger/dto/CreateUserDTO.java": "f8903c32dc8eca5dd306f579b2ee2a8c7c4ae0aa512f4534a477a412bb41f7c6",
|
||||
"src/main/java/ru/mtusi/messenger/dto/ErrorDTO.java": "29d73ad94c71db058faa3d915f32acaa939573687702c5a7153a6714061f00fe",
|
||||
"src/main/java/ru/mtusi/messenger/dto/ErrorErrorDTO.java": "87e0e171ac72c43f7435e5b219d3fe6380a8c940e7bb87958e2df7f70625ccf3",
|
||||
"src/main/java/ru/mtusi/messenger/dto/HealthDTO.java": "02306d373316c6f96278d97f7bd9fed76299b5eb79cffb5636f328d2d1de70d3",
|
||||
"src/main/java/ru/mtusi/messenger/dto/MessageDTO.java": "7d8d0cddaa326323099120b29da74bd8d62dda97d1641c6f7ba687bd3b2e84bf",
|
||||
"src/main/java/ru/mtusi/messenger/dto/MessagePageDTO.java": "4b4fd18119cfa542a5120142e6a03e310385525dd6e656fdcdde8d55a92382c2",
|
||||
"src/main/java/ru/mtusi/messenger/dto/SessionDTO.java": "90827f5fd5fef55ae3e183369a4f239e109c02fcd8ccffa2e8e1846553b4739a",
|
||||
"src/main/java/ru/mtusi/messenger/dto/UserDTO.java": "3629a3e031e9bcf84a602ac11bc95ae6a7870b25a0452543c24ae940d96a4cfb",
|
||||
"src/main/java/ru/mtusi/messenger/dto/VariantDTO.java": "7d7bb208f49ba07386e97c6e02e3bda912034c921a6b3b22c4f534951c6483c5",
|
||||
"src/main/java/ru/mtusi/messenger/exception/ApiErrorFactory.java": "62373a2a9e11fed20ae2a15b92446f3e3c6d4cea461e274bc5ff5a15fcb34f08",
|
||||
"src/main/java/ru/mtusi/messenger/exception/ConflictException.java": "80b1b6602b9fb74ed763b07905cd5d084d76a53b46e8e1d31734e29ccf9c6e6d",
|
||||
"src/main/java/ru/mtusi/messenger/exception/InvalidRequestException.java": "15c4970028f71a8ad6c8cbf317158754445e8f8b4b7414c88d9d56e59b803680",
|
||||
"src/main/java/ru/mtusi/messenger/exception/NotFoundException.java": "0be747b28a29ed79c032a4256f1e2ac92365d0282219dcd8e0608fa3e45dfbdb",
|
||||
"src/main/java/ru/mtusi/messenger/exception/PayloadTooLargeException.java": "14104310e0bed9c878c822d3269ec239dbbd9aa21916eb1b3df9ffe0a008bcfb",
|
||||
"src/main/java/ru/mtusi/messenger/exception/RateLimitedException.java": "cce2f144983ba1540e359d34bd4169746ea1eb7869ba6ae5dd59e41acca19166",
|
||||
"src/main/java/ru/mtusi/messenger/exception/ServiceUnavailableException.java": "79debd21b15f38917fa83340a44dd13543ee44317b17c2dbb706a3a4c44bc650",
|
||||
"src/main/java/ru/mtusi/messenger/exception/StaleAttachmentException.java": "5288d953312f8f8bb6f9a98ff4150fa64271827b0934dd9b354c2fd7ff8f11d4",
|
||||
"src/main/java/ru/mtusi/messenger/exception/StorageUnavailableException.java": "cdc2fe016cef32b0c93c8f51fb4b85b18cd8ed74051ff1fd4877882e469b23d9",
|
||||
"src/main/java/ru/mtusi/messenger/exception/UnauthorizedException.java": "251dc2ee2419729e44410d62c97a98eff08698c801f519c76e1fc0a62e55c8a3",
|
||||
"src/main/java/ru/mtusi/messenger/exception/UnsupportedMediaTypeException.java": "6a0573dba993ef765bc58ff0a4ce1aae0a1d7722cfecb8dc3858a7efc8245cad",
|
||||
"src/main/java/ru/mtusi/messenger/filter/InstanceIdFilter.java": "3e0112a9f90b79c433a6fbdf77afc20b1bf0387e693496d5c428c9c595f409f2",
|
||||
"src/main/java/ru/mtusi/messenger/filter/RateLimitFilter.java": "3d1e0ec75c63345acd42762a7c5b3e965acf3f254f92dc20a3b4667f2f56e089",
|
||||
"src/main/java/ru/mtusi/messenger/filter/RequestIdFilter.java": "217c4f3ae7288ac92d56fda6f61fcae9d01876c0dc6b085e27758e5ad23e7397",
|
||||
"src/main/java/ru/mtusi/messenger/filter/TelemetryFilter.java": "187e45dd0af3d5569e8bedd49210546432afb0f6924928f2717d43e514a3fbc0",
|
||||
"src/main/java/ru/mtusi/messenger/mapper/AttachmentMapper.java": "75c549f7d843843ec502aeb0cff96f2b1cc841df8b8b66da1684dd0fc59c1128",
|
||||
"src/main/java/ru/mtusi/messenger/mapper/ChatMapper.java": "761f6fa8d28c16a4b798f609671e82273a17452821e3bf971f131afe3d00f35f",
|
||||
"src/main/java/ru/mtusi/messenger/mapper/MessageMapper.java": "099149f2060e90fdae382fa28fd3bfd3ec621b740a98a7a9bc8888f6ed649ed1",
|
||||
"src/main/java/ru/mtusi/messenger/mapper/SessionMapper.java": "daebe3300899220c98d26d29728d14c3801c1ba5a061411a7265fd321c6ac0e7",
|
||||
"src/main/java/ru/mtusi/messenger/mapper/UserMapper.java": "c05e950c85dcfedfed21ef5813b62bbdb8f642f2e172d5d4baea68ddaf294241",
|
||||
"src/main/java/ru/mtusi/messenger/model/Attachment.java": "c0076e1b7ff8b401d340d686ecab9446cddbc4c04e55277f31da7ef866d8aab1",
|
||||
"src/main/java/ru/mtusi/messenger/model/AttachmentStatus.java": "6aaa777b2b9042618c7bd25aa44a7c04e1983053d7272167bae16783a7072e79",
|
||||
"src/main/java/ru/mtusi/messenger/model/Chat.java": "997e6acb77cd3f34cfe5745015fefb3356521fec1a53a633e2d81af4b1a5d8ea",
|
||||
"src/main/java/ru/mtusi/messenger/model/IdempotencyKey.java": "d74360e291e3601afad564c463b85a9e89fef90351fa32d6cdd02a4fce4d9ffb",
|
||||
"src/main/java/ru/mtusi/messenger/model/Message.java": "c58fc53563602ee75bec4b492783261bf5fad5b1f3803333a5f7e2a7ce62fd98",
|
||||
"src/main/java/ru/mtusi/messenger/model/Session.java": "039980fd45fc2551f875958f34a40d6a155f9d10414dbe20875b25beaf16f96e",
|
||||
"src/main/java/ru/mtusi/messenger/model/User.java": "01ab578d2ecfedb739e03fc0107f097e3c98a2c7e3c267d351837902723b79c8",
|
||||
"src/main/java/ru/mtusi/messenger/repository/AttachmentRepository.java": "002f8318f97cb797068cc14b1826ece7dab096349e429b269c6395ba23f7f033",
|
||||
"src/main/java/ru/mtusi/messenger/repository/ChatRepository.java": "2336e381b0271ea744a1d58ab10ce97644a1d242c8ec180bbb79f072c79b8d70",
|
||||
"src/main/java/ru/mtusi/messenger/repository/IdempotencyRepository.java": "9e6fdb7b1c9ff7b32b182d223f06a2df5cbac851f875f285740cd7b71a78124b",
|
||||
"src/main/java/ru/mtusi/messenger/repository/MessageRepository.java": "21b00bd89a161206826cfa681b20019ba3140adc841f60d0c4b51b63603bca04",
|
||||
"src/main/java/ru/mtusi/messenger/repository/SessionRepository.java": "071c7d9c30dcc75356eb87324f309fc698aea72166545d0b06ac6052f8aa39ec",
|
||||
"src/main/java/ru/mtusi/messenger/repository/UserRepository.java": "f7bcc2b1dd0cc1a3ae35297cca1daa23579bdad56f8c5c491a4e61bc60a7ddff",
|
||||
"src/main/java/ru/mtusi/messenger/security/ApiAuthenticationEntryPoint.java": "ea207873b9717735bb28b2d41356e9a2104ad262c9fe33db0436f4a47fe98775",
|
||||
"src/main/java/ru/mtusi/messenger/security/BasicCredentials.java": "0f381c0e02d881d8463ca91ccdfbcc20c74bc21125bf7983e5b326e7f96e2e69",
|
||||
"src/main/java/ru/mtusi/messenger/security/SessionAuthenticationFilter.java": "7cfeea0056347d5b27b9ba40b05b93dbf955ccc5ba7863128b7b06ecdeebc3b9",
|
||||
"src/main/java/ru/mtusi/messenger/security/SessionAuthenticationProvider.java": "6e6bfc710105c45e25e46f84e454eec7f7fc578cc80dd693b739d5f6833edccc",
|
||||
"src/main/java/ru/mtusi/messenger/security/SessionAuthenticationToken.java": "231317a83df87a7dcd23114ce3ca42859f91c739f645f7b43209819797b2fe0d",
|
||||
"src/main/java/ru/mtusi/messenger/security/SessionPrincipal.java": "fff3d1d27cf7079947315a5a7e2e960f5f7e245a96a98157430cad474e4ab9f6",
|
||||
"src/main/java/ru/mtusi/messenger/service/AttachmentService.java": "3ffd7b3b6bcda3fbc60eb4934a98a0636652275affd4afa425939ec4adefff91",
|
||||
"src/main/java/ru/mtusi/messenger/service/AttachmentVariantService.java": "015880d98f570597109f7eca26aedb3f6f24667c4b28ae62a9309420443793b1",
|
||||
"src/main/java/ru/mtusi/messenger/service/AuthService.java": "8d93d2f458fabef523ed6af97d2f8ed11ecd2b9b01a4eba4533fc31e22c148e4",
|
||||
"src/main/java/ru/mtusi/messenger/service/ChatService.java": "76f0e94e6ce6c6d3c9b8dfdda363d1b7a2f5017901e9cdeafc3a00f120f4a473",
|
||||
"src/main/java/ru/mtusi/messenger/service/HealthService.java": "ad7a32cbeed901b4913865e1a66e48d45cc35d0eb0f945e1e2eed27c4029d9fa",
|
||||
"src/main/java/ru/mtusi/messenger/service/IdempotencyService.java": "968b1d1f5037b19707a84d45cb8f3173b818c229dc3e3492ae9cb2eb53f21218",
|
||||
"src/main/java/ru/mtusi/messenger/service/MessageService.java": "5a11b2dac973d6b428c54c02605cc8e331f487135355cbef025c46195494c2b6",
|
||||
"src/main/java/ru/mtusi/messenger/service/ProcessingJobService.java": "256e785dbbf97beb7290f35d19c46149e3473ed5b6b27d40c75c5213e1e98209",
|
||||
"src/main/java/ru/mtusi/messenger/service/SessionCacheService.java": "320e6ea2d6f9618ef9cdda57ae871f69c49eb17e7367b70ca0a7b06815c2966f",
|
||||
"src/main/java/ru/mtusi/messenger/service/SessionService.java": "6f9b61ae0ea28e74d32930f5ac079967c406f439cecda5d287713aa4de8ac421",
|
||||
"src/main/java/ru/mtusi/messenger/service/UserService.java": "cf9b9b2eeacba63314d2d883a0a0d59278c7a7a2897fca457b26eabf4e03c5e5",
|
||||
"src/main/java/ru/mtusi/messenger/telemetry/Telemetry.java": "e40fe40c295986dd37ff8551014fb84a60c8095f90e039e60e3dd617716b1c9d",
|
||||
"src/main/java/ru/mtusi/messenger/util/CursorCodec.java": "f218c8f1380a9d15a49a2c790a614a967ac31ebc5a353cd4949b5edc4ec338ba",
|
||||
"src/main/java/ru/mtusi/messenger/util/TokenGenerator.java": "a8de6b5f2253b581f2cf1f9a2c04655ca5893ec1cc4b5e71058f2a2ae0617305",
|
||||
"src/main/java/ru/mtusi/messenger/util/TokenHasher.java": "86d2579f53463d2a180e9de12144c656643399ca57d681582347b4a8f794484d",
|
||||
"src/main/java/ru/mtusi/messenger/util/converter/IdempotencyPayloadConverter.java": "3fde1a9dd714ca64da80bc666a8d0bd8486c301e550cd0f55ac9327acba800ad",
|
||||
"src/main/java/ru/mtusi/messenger/validation/AttachmentValidator.java": "91e529f3eac82500341b25ea5c109b671aec7af150386e18d20cd3e9ffee5072",
|
||||
"src/main/java/ru/mtusi/messenger/validation/ChatValidator.java": "8fd4ba91aaa4e21dd2b372f17fdfd126d62a4039efacf1686f3e2b3143a5bd54",
|
||||
"src/main/java/ru/mtusi/messenger/validation/IdempotencyValidator.java": "99fe04376e875a2e63b5c884e7128dcddceaa200622033a5c8e7f9b411291683",
|
||||
"src/main/resources/application.yaml": "a0dcc8cb089e6bc66319aa5b6dd18805cbd786521375619abf13763afe111d8f",
|
||||
"src/main/resources/db/migration/V1__init.sql": "b4a40c651fc3e8fb10c588f7374164dbe716bef508a3c7609e24a9284aaad894",
|
||||
"src/test/java/ru/mtusi/messenger/AttachmentIntegrationTest.java": "8d4498036d995cd2a60c071e66dfb1d9d0a075580935c2456dd313a924a21044",
|
||||
"src/test/java/ru/mtusi/messenger/MessengerLab1ApplicationTests.java": "d0e7aeee3b3c3c151b241a14e1c41c683401513bdd168e9d5b58fea4905f0132",
|
||||
"student-tests/incidents.py": "44ba60cae219601472283ff7448b8c9a30590238fd5df581e53794c932ebefc1",
|
||||
"student-tests/observe.py": "ff05da61f0ca5b8705985e6acb34d87b17c35d455e781aebd276b92f9f7e2871",
|
||||
"student-tests/pipeline_ack_guard.py": "0477930ec4058f412c36f06427218d4786fb9d250b502d69fce658a74aa3dd44",
|
||||
"student-tests/pipeline_boundaries.py": "051277b8fea2026403a64e951c48d67abfed4aa4bfc06862b01749a4c3ca463f",
|
||||
"student-tests/pipeline_core.py": "2bbb8d77f0286fc551ea4b08a38268a027653d473bbe8bb13b53c8a11941aa98",
|
||||
"student-tests/pipeline_faults.py": "90ecd9babe860e9d556cee0c416a96f71617d8c627620796b832be15289969a7",
|
||||
"student-tests/pipeline_filename.py": "aaaa67ecd54e296181f490fb43a284dd51602b35b09ce7759ab42fbbccf57d9d",
|
||||
"student-tests/pipeline_history_capacity.py": "eaf6fd80c0c09d9fda2da5ae4aff6111d9f49b4726893081a24e29c1dd23041e",
|
||||
"student-tests/pipeline_retention.py": "2a2ddb427366b75b547934201d19135fb5fa3ffe4f2747375bd7269993e6e157",
|
||||
"student-tests/pipeline_support.py": "1530715f9b77f40f4a65f577fe9e9b714206b992d75f4d0de9a5c6d621cc16c0",
|
||||
"student-tests/pipeline_upload_crash.py": "a97912a371b17ca21c00c784cb93182a8ba876c7fa80eb4584128e1eef2b74dd",
|
||||
"student-tests/telemetry_support.py": "2d3be7f873dff27cae9ddda15cd483c6fbf0a66fa3edd7d61e614c1584cf7809",
|
||||
"worker/Dockerfile": "1c777cb030f4d85ad2e683dc49555746d5bf79c1e8106d1e74008479cd52ae36",
|
||||
"worker/pipeline/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"worker/pipeline/broker.py": "2d35ede652cc5068399c54f11c249216ba507cd44e7dd473c2fcfb9de680c630",
|
||||
"worker/pipeline/cleanup.py": "900f923625b362f0c8983b91ba9c10aee5cfe72f991990ef026f1da0f00708fd",
|
||||
"worker/pipeline/config.py": "bba3c1b90b751c0c91c872864178c8339f4b9ee7dc8da92edb9102c0c7ec98c0",
|
||||
"worker/pipeline/faults.py": "af5e7096351605a7e9353a409eb1ccc179281ee893bdc98f4d51240297a05bb0",
|
||||
"worker/pipeline/images.py": "c56c7cdc4ddaf271d1f66bbad88ae2e25a34dc8416e74dddc23abbc135bc7177",
|
||||
"worker/pipeline/main.py": "308e066811b0d31ec71b7782c2649ff52c2a8d616a8f656c60b7aaaa234549b4",
|
||||
"worker/pipeline/operator.py": "8ac54e1a8c69d3ebbb43e68df75d4417a673525d9a40efd1729d6fea33d9937c",
|
||||
"worker/pipeline/outbox.py": "859caa9cf95b36203a57f95a05c14ecd12c19f7720147c30690054be3eaae396",
|
||||
"worker/pipeline/process.py": "80adbd495c8b96d8fae00e4e8442907fbf9d716827c536c29ad76f753aa5f5f9",
|
||||
"worker/pipeline/repository.py": "a1f7f111b1ae45604cd8a13a58284af5f339b49f811f6325465944b2e1ecb8f5",
|
||||
"worker/pipeline/storage.py": "89d5675f9354c6692fb0f8c646dc09a6bc76ea1055eaa53d768cf3e8d4d1e004",
|
||||
"worker/pipeline/telemetry.py": "90f3495ad1957b8368a6a62929c192161de12bccdc5ba9e37bb913b518c245ed",
|
||||
"worker/requirements.txt": "e95d64513a41e4568cccde0bc4869e5ccf07cbdad21344b91aab01ddf4523c83"
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
Container mtusi2026lab6-api-1 Running
|
||||
Container mtusi2026lab6-minio-1 Running
|
||||
Container mtusi2026lab6-redis-1 Running
|
||||
Container mtusi2026lab6-db-1 Running
|
||||
Container mtusi2026lab6-minio-1 Waiting
|
||||
Container mtusi2026lab6-minio-1 Healthy
|
||||
Container mtusi2026lab6-minio-init-1 Starting
|
||||
Container mtusi2026lab6-minio-init-1 Started
|
||||
Container mtusi2026lab6-db-1 Waiting
|
||||
Container mtusi2026lab6-redis-1 Waiting
|
||||
Container mtusi2026lab6-minio-init-1 Waiting
|
||||
Container mtusi2026lab6-redis-1 Healthy
|
||||
Container mtusi2026lab6-db-1 Healthy
|
||||
Container mtusi2026lab6-minio-init-1 Exited
|
||||
Container mtusi2026lab6-api-2 Starting
|
||||
Container mtusi2026lab6-api-2 Started
|
||||
@@ -0,0 +1,56 @@
|
||||
Container mtusi2026lab6-minio-1 Running
|
||||
Container mtusi2026lab6-lb-1 Running
|
||||
Container mtusi2026lab6-db-1 Running
|
||||
Container mtusi2026lab6-grafana-1 Running
|
||||
Container mtusi2026lab6-tempo-1 Running
|
||||
Container mtusi2026lab6-loki-1 Running
|
||||
Container mtusi2026lab6-otel-collector-1 Running
|
||||
Container mtusi2026lab6-prometheus-1 Running
|
||||
Container mtusi2026lab6-redis-1 Running
|
||||
Container mtusi2026lab6-broker-1 Running
|
||||
Container mtusi2026lab6-api-1 Recreate
|
||||
Container mtusi2026lab6-api-2 Recreate
|
||||
Container mtusi2026lab6-api-2 Recreated
|
||||
Container mtusi2026lab6-dispatcher-1 Recreate
|
||||
Container mtusi2026lab6-worker-2 Recreate
|
||||
Container mtusi2026lab6-worker-1 Recreate
|
||||
Container mtusi2026lab6-dispatcher-1 Recreated
|
||||
Container mtusi2026lab6-worker-2 Recreated
|
||||
Container mtusi2026lab6-worker-1 Recreated
|
||||
Container mtusi2026lab6-api-1 Recreated
|
||||
Container mtusi2026lab6-minio-1 Waiting
|
||||
Container mtusi2026lab6-minio-1 Healthy
|
||||
Container mtusi2026lab6-minio-init-1 Starting
|
||||
Container mtusi2026lab6-minio-init-1 Started
|
||||
Container mtusi2026lab6-db-1 Waiting
|
||||
Container mtusi2026lab6-redis-1 Waiting
|
||||
Container mtusi2026lab6-minio-init-1 Waiting
|
||||
Container mtusi2026lab6-redis-1 Healthy
|
||||
Container mtusi2026lab6-db-1 Healthy
|
||||
Container mtusi2026lab6-minio-init-1 Exited
|
||||
Container mtusi2026lab6-api-2 Starting
|
||||
Container mtusi2026lab6-api-2 Started
|
||||
Container mtusi2026lab6-api-1 Starting
|
||||
Container mtusi2026lab6-api-1 Started
|
||||
Container mtusi2026lab6-broker-1 Waiting
|
||||
Container mtusi2026lab6-api-2 Waiting
|
||||
Container mtusi2026lab6-api-1 Waiting
|
||||
Container mtusi2026lab6-broker-1 Waiting
|
||||
Container mtusi2026lab6-api-2 Waiting
|
||||
Container mtusi2026lab6-api-1 Waiting
|
||||
Container mtusi2026lab6-api-2 Waiting
|
||||
Container mtusi2026lab6-api-1 Waiting
|
||||
Container mtusi2026lab6-broker-1 Healthy
|
||||
Container mtusi2026lab6-broker-1 Healthy
|
||||
Container mtusi2026lab6-api-2 Healthy
|
||||
Container mtusi2026lab6-api-1 Healthy
|
||||
Container mtusi2026lab6-api-2 Healthy
|
||||
Container mtusi2026lab6-api-1 Healthy
|
||||
Container mtusi2026lab6-dispatcher-1 Starting
|
||||
Container mtusi2026lab6-api-2 Healthy
|
||||
Container mtusi2026lab6-api-1 Healthy
|
||||
Container mtusi2026lab6-worker-1 Starting
|
||||
Container mtusi2026lab6-dispatcher-1 Started
|
||||
Container mtusi2026lab6-worker-1 Started
|
||||
Container mtusi2026lab6-worker-2 Starting
|
||||
Container mtusi2026lab6-worker-2 Started
|
||||
@@ -0,0 +1,83 @@
|
||||
Container mtusi2026lab6-minio-1 Running
|
||||
Container mtusi2026lab6-broker-1 Recreate
|
||||
Container mtusi2026lab6-otel-collector-1 Recreate
|
||||
Container mtusi2026lab6-db-1 Recreate
|
||||
Container mtusi2026lab6-redis-1 Recreate
|
||||
Container mtusi2026lab6-grafana-1 Recreate
|
||||
Container mtusi2026lab6-loki-1 Recreate
|
||||
Container mtusi2026lab6-prometheus-1 Recreate
|
||||
Container mtusi2026lab6-tempo-1 Recreate
|
||||
Container mtusi2026lab6-otel-collector-1 Recreated
|
||||
Container mtusi2026lab6-redis-1 Recreated
|
||||
Container mtusi2026lab6-broker-1 Recreated
|
||||
Container mtusi2026lab6-tempo-1 Recreated
|
||||
Container mtusi2026lab6-grafana-1 Recreated
|
||||
Container mtusi2026lab6-loki-1 Recreated
|
||||
Container mtusi2026lab6-prometheus-1 Recreated
|
||||
Container mtusi2026lab6-db-1 Recreated
|
||||
Container mtusi2026lab6-api-1 Recreate
|
||||
Container mtusi2026lab6-api-2 Recreate
|
||||
Container mtusi2026lab6-api-1 Recreated
|
||||
Container mtusi2026lab6-api-2 Recreated
|
||||
Container mtusi2026lab6-dispatcher-1 Recreate
|
||||
Container mtusi2026lab6-worker-1 Recreate
|
||||
Container mtusi2026lab6-worker-2 Recreate
|
||||
Container mtusi2026lab6-lb-1 Recreate
|
||||
Container mtusi2026lab6-lb-1 Recreated
|
||||
Container mtusi2026lab6-worker-1 Recreated
|
||||
Container mtusi2026lab6-worker-2 Recreated
|
||||
Container mtusi2026lab6-dispatcher-1 Recreated
|
||||
Container mtusi2026lab6-tempo-1 Starting
|
||||
Container mtusi2026lab6-redis-1 Starting
|
||||
Container mtusi2026lab6-broker-1 Starting
|
||||
Container mtusi2026lab6-otel-collector-1 Starting
|
||||
Container mtusi2026lab6-grafana-1 Starting
|
||||
Container mtusi2026lab6-minio-1 Waiting
|
||||
Container mtusi2026lab6-prometheus-1 Starting
|
||||
Container mtusi2026lab6-loki-1 Starting
|
||||
Container mtusi2026lab6-db-1 Starting
|
||||
Container mtusi2026lab6-tempo-1 Started
|
||||
Container mtusi2026lab6-minio-1 Healthy
|
||||
Container mtusi2026lab6-minio-init-1 Starting
|
||||
Container mtusi2026lab6-redis-1 Started
|
||||
Container mtusi2026lab6-broker-1 Started
|
||||
Container mtusi2026lab6-otel-collector-1 Started
|
||||
Container mtusi2026lab6-grafana-1 Started
|
||||
Container mtusi2026lab6-prometheus-1 Started
|
||||
Container mtusi2026lab6-loki-1 Started
|
||||
Container mtusi2026lab6-db-1 Started
|
||||
Container mtusi2026lab6-minio-init-1 Started
|
||||
Container mtusi2026lab6-redis-1 Waiting
|
||||
Container mtusi2026lab6-minio-init-1 Waiting
|
||||
Container mtusi2026lab6-db-1 Waiting
|
||||
Container mtusi2026lab6-minio-init-1 Exited
|
||||
Container mtusi2026lab6-redis-1 Healthy
|
||||
Container mtusi2026lab6-db-1 Healthy
|
||||
Container mtusi2026lab6-api-2 Starting
|
||||
Container mtusi2026lab6-api-2 Started
|
||||
Container mtusi2026lab6-api-1 Starting
|
||||
Container mtusi2026lab6-api-1 Started
|
||||
Container mtusi2026lab6-api-2 Waiting
|
||||
Container mtusi2026lab6-api-1 Waiting
|
||||
Container mtusi2026lab6-broker-1 Waiting
|
||||
Container mtusi2026lab6-api-2 Waiting
|
||||
Container mtusi2026lab6-api-1 Waiting
|
||||
Container mtusi2026lab6-api-2 Waiting
|
||||
Container mtusi2026lab6-api-1 Waiting
|
||||
Container mtusi2026lab6-broker-1 Waiting
|
||||
Container mtusi2026lab6-broker-1 Healthy
|
||||
Container mtusi2026lab6-broker-1 Healthy
|
||||
Container mtusi2026lab6-api-2 Healthy
|
||||
Container mtusi2026lab6-api-1 Healthy
|
||||
Container mtusi2026lab6-dispatcher-1 Starting
|
||||
Container mtusi2026lab6-api-2 Healthy
|
||||
Container mtusi2026lab6-api-1 Healthy
|
||||
Container mtusi2026lab6-lb-1 Starting
|
||||
Container mtusi2026lab6-api-2 Healthy
|
||||
Container mtusi2026lab6-api-1 Healthy
|
||||
Container mtusi2026lab6-worker-2 Starting
|
||||
Container mtusi2026lab6-dispatcher-1 Started
|
||||
Container mtusi2026lab6-lb-1 Started
|
||||
Container mtusi2026lab6-worker-2 Started
|
||||
Container mtusi2026lab6-worker-1 Starting
|
||||
Container mtusi2026lab6-worker-1 Started
|
||||
@@ -0,0 +1 @@
|
||||
/mtusi2026lab6-api-2 05f31aaf15da exited
|
||||
@@ -0,0 +1 @@
|
||||
/mtusi2026lab6-api-2 05f31aaf15da running
|
||||
@@ -0,0 +1,4 @@
|
||||
All done! ✨ 🍰 ✨
|
||||
27 files would be left unchanged.
|
||||
PASS 14 controller operations: one service call, constructor DI, API Javadoc
|
||||
PASS Java AOSP / Python Black style
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"trace_id": "a08035a4bdd0efa15ee8dfcc0814a041",
|
||||
"request_id": "059de23d-0922-4795-84bd-dd7166543a2e",
|
||||
"span_count_after_restart": 14,
|
||||
"loki_log_found": true
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
PASS original Loki log and Tempo spans after restart
|
||||
Vendored
BIN
Binary file not shown.
+7
@@ -0,0 +1,7 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.0-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
@@ -0,0 +1,248 @@
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Copyright © 2015 the original authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
# Gradle start up script for POSIX generated by Gradle.
|
||||
#
|
||||
# Important for running:
|
||||
#
|
||||
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
|
||||
# noncompliant, but you have some other compliant shell such as ksh or
|
||||
# bash, then to run this script, type that shell name before the whole
|
||||
# command line, like:
|
||||
#
|
||||
# ksh Gradle
|
||||
#
|
||||
# Busybox and similar reduced shells will NOT work, because this script
|
||||
# requires all of these POSIX shell features:
|
||||
# * functions;
|
||||
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
|
||||
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
|
||||
# * compound commands having a testable exit status, especially «case»;
|
||||
# * various built-in commands including «command», «set», and «ulimit».
|
||||
#
|
||||
# Important for patching:
|
||||
#
|
||||
# (2) This script targets any POSIX shell, so it avoids extensions provided
|
||||
# by Bash, Ksh, etc; in particular arrays are avoided.
|
||||
#
|
||||
# The "traditional" practice of packing multiple parameters into a
|
||||
# space-separated string is a well documented source of bugs and security
|
||||
# problems, so this is (mostly) avoided, by progressively accumulating
|
||||
# options in "$@", and eventually passing that to Java.
|
||||
#
|
||||
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
|
||||
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
|
||||
# see the in-line comments for details.
|
||||
#
|
||||
# There are tweaks for specific operating systems such as AIX, CygWin,
|
||||
# Darwin, MinGW, and NonStop.
|
||||
#
|
||||
# (3) This script is generated from the Groovy template
|
||||
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# within the Gradle project.
|
||||
#
|
||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
# Attempt to set APP_HOME
|
||||
|
||||
# Resolve links: $0 may be a link
|
||||
app_path=$0
|
||||
|
||||
# Need this for daisy-chained symlinks.
|
||||
while
|
||||
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
|
||||
[ -h "$app_path" ]
|
||||
do
|
||||
ls=$( ls -ld "$app_path" )
|
||||
link=${ls#*' -> '}
|
||||
case $link in #(
|
||||
/*) app_path=$link ;; #(
|
||||
*) app_path=$APP_HOME$link ;;
|
||||
esac
|
||||
done
|
||||
|
||||
# This is normally unused
|
||||
# shellcheck disable=SC2034
|
||||
APP_BASE_NAME=${0##*/}
|
||||
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD=maximum
|
||||
|
||||
warn () {
|
||||
echo "$*"
|
||||
} >&2
|
||||
|
||||
die () {
|
||||
echo
|
||||
echo "$*"
|
||||
echo
|
||||
exit 1
|
||||
} >&2
|
||||
|
||||
# OS specific support (must be 'true' or 'false').
|
||||
cygwin=false
|
||||
msys=false
|
||||
darwin=false
|
||||
nonstop=false
|
||||
case "$( uname )" in #(
|
||||
CYGWIN* ) cygwin=true ;; #(
|
||||
Darwin* ) darwin=true ;; #(
|
||||
MSYS* | MINGW* ) msys=true ;; #(
|
||||
NONSTOP* ) nonstop=true ;;
|
||||
esac
|
||||
|
||||
|
||||
|
||||
# Determine the Java command to use to start the JVM.
|
||||
if [ -n "$JAVA_HOME" ] ; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD=$JAVA_HOME/jre/sh/java
|
||||
else
|
||||
JAVACMD=$JAVA_HOME/bin/java
|
||||
fi
|
||||
if [ ! -x "$JAVACMD" ] ; then
|
||||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
else
|
||||
JAVACMD=java
|
||||
if ! command -v java >/dev/null 2>&1
|
||||
then
|
||||
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
fi
|
||||
|
||||
# Increase the maximum file descriptors if we can.
|
||||
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
||||
case $MAX_FD in #(
|
||||
max*)
|
||||
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
|
||||
# shellcheck disable=SC2039,SC3045
|
||||
MAX_FD=$( ulimit -H -n ) ||
|
||||
warn "Could not query maximum file descriptor limit"
|
||||
esac
|
||||
case $MAX_FD in #(
|
||||
'' | soft) :;; #(
|
||||
*)
|
||||
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
||||
# shellcheck disable=SC2039,SC3045
|
||||
ulimit -n "$MAX_FD" ||
|
||||
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
||||
esac
|
||||
fi
|
||||
|
||||
# Collect all arguments for the java command, stacking in reverse order:
|
||||
# * args from the command line
|
||||
# * the main class name
|
||||
# * -classpath
|
||||
# * -D...appname settings
|
||||
# * --module-path (only if needed)
|
||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
|
||||
|
||||
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||
if "$cygwin" || "$msys" ; then
|
||||
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
||||
|
||||
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
||||
|
||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||
for arg do
|
||||
if
|
||||
case $arg in #(
|
||||
-*) false ;; # don't mess with options #(
|
||||
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
|
||||
[ -e "$t" ] ;; #(
|
||||
*) false ;;
|
||||
esac
|
||||
then
|
||||
arg=$( cygpath --path --ignore --mixed "$arg" )
|
||||
fi
|
||||
# Roll the args list around exactly as many times as the number of
|
||||
# args, so each arg winds up back in the position where it started, but
|
||||
# possibly modified.
|
||||
#
|
||||
# NB: a `for` loop captures its iteration list before it begins, so
|
||||
# changing the positional parameters here affects neither the number of
|
||||
# iterations, nor the values presented in `arg`.
|
||||
shift # remove old arg
|
||||
set -- "$@" "$arg" # push replacement arg
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||
|
||||
# Collect all arguments for the java command:
|
||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
||||
# and any embedded shellness will be escaped.
|
||||
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
||||
# treated as '${Hostname}' itself on the command line.
|
||||
|
||||
set -- \
|
||||
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
||||
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
|
||||
"$@"
|
||||
|
||||
# Stop when "xargs" is not available.
|
||||
if ! command -v xargs >/dev/null 2>&1
|
||||
then
|
||||
die "xargs is not available"
|
||||
fi
|
||||
|
||||
# Use "xargs" to parse quoted args.
|
||||
#
|
||||
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
|
||||
#
|
||||
# In Bash we could simply go:
|
||||
#
|
||||
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
|
||||
# set -- "${ARGS[@]}" "$@"
|
||||
#
|
||||
# but POSIX shell has neither arrays nor command substitution, so instead we
|
||||
# post-process each arg (as a line of input to sed) to backslash-escape any
|
||||
# character that might be a shell metacharacter, then use eval to reverse
|
||||
# that process (while maintaining the separation between arguments), and wrap
|
||||
# the whole thing up as a single "set" statement.
|
||||
#
|
||||
# This will of course break if any of these variables contains a newline or
|
||||
# an unmatched quote.
|
||||
#
|
||||
|
||||
eval "set -- $(
|
||||
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
|
||||
xargs -n1 |
|
||||
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
|
||||
tr '\n' ' '
|
||||
)" '"$@"'
|
||||
|
||||
exec "$JAVACMD" "$@"
|
||||
Vendored
+93
@@ -0,0 +1,93 @@
|
||||
@rem
|
||||
@rem Copyright 2015 the original author or authors.
|
||||
@rem
|
||||
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@rem you may not use this file except in compliance with the License.
|
||||
@rem You may obtain a copy of the License at
|
||||
@rem
|
||||
@rem https://www.apache.org/licenses/LICENSE-2.0
|
||||
@rem
|
||||
@rem Unless required by applicable law or agreed to in writing, software
|
||||
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
@rem
|
||||
@rem SPDX-License-Identifier: Apache-2.0
|
||||
@rem
|
||||
|
||||
@if "%DEBUG%"=="" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@rem Gradle startup script for Windows
|
||||
@rem
|
||||
@rem ##########################################################################
|
||||
|
||||
@rem Set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%"=="" set DIRNAME=.
|
||||
@rem This is normally unused
|
||||
set APP_BASE_NAME=%~n0
|
||||
set APP_HOME=%DIRNAME%
|
||||
|
||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
||||
|
||||
@rem Find java.exe
|
||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||
|
||||
set JAVA_EXE=java.exe
|
||||
%JAVA_EXE% -version >NUL 2>&1
|
||||
if %ERRORLEVEL% equ 0 goto execute
|
||||
|
||||
echo. 1>&2
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
|
||||
echo. 1>&2
|
||||
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||
echo location of your Java installation. 1>&2
|
||||
|
||||
goto fail
|
||||
|
||||
:findJavaFromJavaHome
|
||||
set JAVA_HOME=%JAVA_HOME:"=%
|
||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||
|
||||
if exist "%JAVA_EXE%" goto execute
|
||||
|
||||
echo. 1>&2
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
|
||||
echo. 1>&2
|
||||
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||
echo location of your Java installation. 1>&2
|
||||
|
||||
goto fail
|
||||
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
if %ERRORLEVEL% equ 0 goto mainEnd
|
||||
|
||||
:fail
|
||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||
rem the _cmd.exe /c_ return code!
|
||||
set EXIT_CODE=%ERRORLEVEL%
|
||||
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
||||
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
||||
exit /b %EXIT_CODE%
|
||||
|
||||
:mainEnd
|
||||
if "%OS%"=="Windows_NT" endlocal
|
||||
|
||||
:omega
|
||||
@@ -0,0 +1,45 @@
|
||||
groups:
|
||||
- name: messenger
|
||||
rules:
|
||||
- alert: ApiHighErrorRate
|
||||
expr: >-
|
||||
sum(rate(lab_http_requests_total{status_class="5xx"}[30s])) / sum(rate(lab_http_requests_total[30s])) > 0.1
|
||||
for: 6s
|
||||
annotations:
|
||||
summary: "HTTP 5xx exceeds 10% in 30s"
|
||||
runbook: "infra/otel/runbook.md#api"
|
||||
- alert: AttachmentQueueLag
|
||||
expr: >-
|
||||
max(lab_queue_oldest_seconds{queue="attachments"}) > 8 and max(lab_queue_depth{queue="attachments"}) > 0
|
||||
for: 9s
|
||||
annotations:
|
||||
summary: "Oldest unfinished attachment exceeds eight seconds"
|
||||
runbook: "infra/otel/runbook.md#queue"
|
||||
- alert: ApiBurnFast
|
||||
expr: >-
|
||||
(sum(rate(lab_http_requests_total{status_class="5xx"}[1m])) / sum(rate(lab_http_requests_total[1m])) > 0.05) and (sum(rate(lab_http_requests_total{status_class="5xx"}[15s])) / sum(rate(lab_http_requests_total[15s])) > 0.05) and (sum(increase(lab_http_requests_total[1m])) >= 6)
|
||||
for: 9s
|
||||
annotations:
|
||||
summary: "Api burn > 5x in 1m and 15s"
|
||||
runbook: "infra/otel/runbook.md#api"
|
||||
- alert: ApiBurnSlow
|
||||
expr: >-
|
||||
(sum(rate(lab_http_requests_total{status_class="5xx"}[3m])) / sum(rate(lab_http_requests_total[3m])) > 0.02) and (sum(rate(lab_http_requests_total{status_class="5xx"}[45s])) / sum(rate(lab_http_requests_total[45s])) > 0.02) and (sum(increase(lab_http_requests_total[3m])) >= 12)
|
||||
for: 18s
|
||||
annotations:
|
||||
summary: "Api burn > 2x in 3m and 45s"
|
||||
runbook: "infra/otel/runbook.md#api"
|
||||
- alert: ReadyBurnFast
|
||||
expr: >-
|
||||
(sum(rate(lab_ready_sli_total{outcome="bad"}[1m])) / sum(rate(lab_ready_sli_total[1m])) > 0.25) and (sum(rate(lab_ready_sli_total{outcome="bad"}[15s])) / sum(rate(lab_ready_sli_total[15s])) > 0.25) and (sum(increase(lab_ready_sli_total[1m])) >= 6)
|
||||
for: 9s
|
||||
annotations:
|
||||
summary: "Ready burn > 5x in 1m and 15s"
|
||||
runbook: "infra/otel/runbook.md#queue"
|
||||
- alert: ReadyBurnSlow
|
||||
expr: >-
|
||||
(sum(rate(lab_ready_sli_total{outcome="bad"}[3m])) / sum(rate(lab_ready_sli_total[3m])) > 0.1) and (sum(rate(lab_ready_sli_total{outcome="bad"}[45s])) / sum(rate(lab_ready_sli_total[45s])) > 0.1) and (sum(increase(lab_ready_sli_total[3m])) >= 12)
|
||||
for: 18s
|
||||
annotations:
|
||||
summary: "Ready burn > 2x in 3m and 45s"
|
||||
runbook: "infra/otel/runbook.md#queue"
|
||||
@@ -0,0 +1,62 @@
|
||||
receivers:
|
||||
otlp:
|
||||
protocols:
|
||||
http:
|
||||
endpoint: 0.0.0.0:4318
|
||||
processors:
|
||||
memory_limiter:
|
||||
check_interval: 1s
|
||||
limit_mib: 128
|
||||
spike_limit_mib: 32
|
||||
batch:
|
||||
timeout: 1s
|
||||
send_batch_size: 128
|
||||
send_batch_max_size: 256
|
||||
exporters:
|
||||
prometheus:
|
||||
endpoint: 0.0.0.0:8889
|
||||
metric_expiration: 20s
|
||||
otlp/tempo:
|
||||
endpoint: tempo:4317
|
||||
tls:
|
||||
insecure: true
|
||||
timeout: 2s
|
||||
sending_queue:
|
||||
queue_size: 32
|
||||
num_consumers: 1
|
||||
retry_on_failure:
|
||||
initial_interval: 1s
|
||||
max_interval: 3s
|
||||
max_elapsed_time: 10s
|
||||
otlphttp/loki:
|
||||
endpoint: http://loki:3100/otlp
|
||||
timeout: 2s
|
||||
sending_queue:
|
||||
queue_size: 32
|
||||
num_consumers: 1
|
||||
retry_on_failure:
|
||||
initial_interval: 1s
|
||||
max_interval: 3s
|
||||
max_elapsed_time: 10s
|
||||
service:
|
||||
telemetry:
|
||||
metrics:
|
||||
readers:
|
||||
- pull:
|
||||
exporter:
|
||||
prometheus:
|
||||
host: 0.0.0.0
|
||||
port: 8888
|
||||
pipelines:
|
||||
metrics:
|
||||
receivers: [otlp]
|
||||
processors: [memory_limiter, batch]
|
||||
exporters: [prometheus]
|
||||
logs:
|
||||
receivers: [otlp]
|
||||
processors: [memory_limiter, batch]
|
||||
exporters: [otlphttp/loki]
|
||||
traces:
|
||||
receivers: [otlp]
|
||||
processors: [memory_limiter, batch]
|
||||
exporters: [otlp/tempo]
|
||||
@@ -0,0 +1,501 @@
|
||||
{
|
||||
"uid": "messenger-lab6",
|
||||
"title": "Messenger Lab 6",
|
||||
"schemaVersion": 39,
|
||||
"version": 1,
|
||||
"refresh": "5s",
|
||||
"time": {
|
||||
"from": "now-15m",
|
||||
"to": "now"
|
||||
},
|
||||
"panels": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "API requests / second",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "reqps"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "sum by (status_class) (rate(lab_http_requests_total[1m]))",
|
||||
"legendFormat": "{{status_class}}"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"title": "API 5xx share",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 0,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "percentunit"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "(sum(rate(lab_http_requests_total{status_class=\"5xx\"}[1m])) or vector(0)) / sum(rate(lab_http_requests_total[1m]))",
|
||||
"legendFormat": "5xx"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"title": "HTTP latency across replicas",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 8,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "s"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "histogram_quantile(0.5, sum by (le) (rate(lab_http_duration_seconds_bucket[1m])))",
|
||||
"legendFormat": "p50"
|
||||
},
|
||||
{
|
||||
"refId": "B",
|
||||
"expr": "histogram_quantile(0.95, sum by (le) (rate(lab_http_duration_seconds_bucket[1m])))",
|
||||
"legendFormat": "p95"
|
||||
},
|
||||
{
|
||||
"refId": "C",
|
||||
"expr": "histogram_quantile(0.99, sum by (le) (rate(lab_http_duration_seconds_bucket[1m])))",
|
||||
"legendFormat": "p99"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"title": "Worker delivery outcomes / second",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 8,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "ops"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "sum by (outcome) (rate(lab_jobs_total[1m]))",
|
||||
"legendFormat": "{{outcome}}"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"title": "Worker delivery latency",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 16,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "s"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "histogram_quantile(0.5, sum by (le) (rate(lab_job_duration_seconds_bucket[1m])))",
|
||||
"legendFormat": "p50"
|
||||
},
|
||||
{
|
||||
"refId": "B",
|
||||
"expr": "histogram_quantile(0.95, sum by (le) (rate(lab_job_duration_seconds_bucket[1m])))",
|
||||
"legendFormat": "p95"
|
||||
},
|
||||
{
|
||||
"refId": "C",
|
||||
"expr": "histogram_quantile(0.99, sum by (le) (rate(lab_job_duration_seconds_bucket[1m])))",
|
||||
"legendFormat": "p99"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"title": "Acceptance to READY",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 16,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "s"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "histogram_quantile(0.5, sum by (le) (rate(lab_ready_duration_seconds_bucket[3m])))",
|
||||
"legendFormat": "p50"
|
||||
},
|
||||
{
|
||||
"refId": "B",
|
||||
"expr": "histogram_quantile(0.95, sum by (le) (rate(lab_ready_duration_seconds_bucket[3m])))",
|
||||
"legendFormat": "p95"
|
||||
},
|
||||
{
|
||||
"refId": "C",
|
||||
"expr": "histogram_quantile(0.99, sum by (le) (rate(lab_ready_duration_seconds_bucket[3m])))",
|
||||
"legendFormat": "p99"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"title": "Unfinished jobs",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 24,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "short"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "max(lab_queue_depth)",
|
||||
"legendFormat": "depth"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"title": "Oldest unfinished job",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 24,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "s"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "max(lab_queue_oldest_seconds)",
|
||||
"legendFormat": "age"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"title": "DB pool per API",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 32,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "short"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "lab_db_pool_connections",
|
||||
"legendFormat": "{{instance}} {{state}}"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"title": "Worker saturation",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 32,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "percentunit"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "sum(lab_worker_busy) / sum(lab_worker_capacity)",
|
||||
"legendFormat": "busy/capacity"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"title": "Process CPU",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 40,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "short"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "rate(lab_process_cpu_seconds_total[1m])",
|
||||
"legendFormat": "{{job}} {{instance}}"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"title": "Process RSS",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 40,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "bytes"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "lab_process_rss_bytes",
|
||||
"legendFormat": "{{job}} {{instance}}"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"title": "Burn rates",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 48,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "short"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "sum(rate(lab_http_requests_total{status_class=\"5xx\"}[1m])) / sum(rate(lab_http_requests_total[1m])) / 0.01",
|
||||
"legendFormat": "API"
|
||||
},
|
||||
{
|
||||
"refId": "B",
|
||||
"expr": "sum(rate(lab_ready_sli_total{outcome=\"bad\"}[1m])) / sum(rate(lab_ready_sli_total[1m])) / 0.05",
|
||||
"legendFormat": "READY"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 14,
|
||||
"title": "Active alerts",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 48,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "short"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "ALERTS{alertstate=~\"pending|firing\"}",
|
||||
"legendFormat": "{{alertname}} {{alertstate}}"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"title": "Correlated API and worker logs",
|
||||
"type": "logs",
|
||||
"datasource": {
|
||||
"type": "loki",
|
||||
"uid": "loki"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 56,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "short"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "{service_name=~\"messenger-(api|worker|dispatcher)\"}",
|
||||
"legendFormat": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 16,
|
||||
"title": "SLO attainment over 30 minutes",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 56,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "percentunit"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"legendFormat": "API success (target 99%)",
|
||||
"expr": "1 - (sum(increase(lab_http_requests_total{status_class=\"5xx\"}[30m])) or vector(0)) / sum(increase(lab_http_requests_total[30m]))"
|
||||
},
|
||||
{
|
||||
"refId": "B",
|
||||
"legendFormat": "READY within 5s (target 95%)",
|
||||
"expr": "sum(increase(lab_ready_sli_total{outcome=\"good\"}[30m])) / sum(increase(lab_ready_sli_total[30m]))"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
apiVersion: 1
|
||||
providers:
|
||||
- name: messenger
|
||||
type: file
|
||||
options:
|
||||
path: /var/lib/grafana/dashboards
|
||||
@@ -0,0 +1,22 @@
|
||||
apiVersion: 1
|
||||
datasources:
|
||||
- name: Prometheus
|
||||
type: prometheus
|
||||
uid: prometheus
|
||||
url: http://prometheus:9090
|
||||
isDefault: true
|
||||
- name: Loki
|
||||
type: loki
|
||||
uid: loki
|
||||
url: http://loki:3100
|
||||
jsonData:
|
||||
derivedFields:
|
||||
- name: TraceID
|
||||
matcherType: label
|
||||
matcherRegex: trace_id
|
||||
datasourceUid: tempo
|
||||
url: '$${__value.raw}'
|
||||
- name: Tempo
|
||||
type: tempo
|
||||
uid: tempo
|
||||
url: http://tempo:3200
|
||||
@@ -0,0 +1,29 @@
|
||||
auth_enabled: false
|
||||
server:
|
||||
http_listen_port: 3100
|
||||
common:
|
||||
instance_addr: 127.0.0.1
|
||||
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
|
||||
limits_config:
|
||||
allow_structured_metadata: true
|
||||
retention_period: 24h
|
||||
compactor:
|
||||
retention_enabled: true
|
||||
delete_request_store: filesystem
|
||||
@@ -0,0 +1,13 @@
|
||||
global:
|
||||
scrape_interval: 3s
|
||||
evaluation_interval: 3s
|
||||
rule_files:
|
||||
- /etc/prometheus/alerts.yaml
|
||||
scrape_configs:
|
||||
- job_name: otlp
|
||||
honor_labels: true
|
||||
static_configs:
|
||||
- targets: [otel-collector:8889]
|
||||
- job_name: collector
|
||||
static_configs:
|
||||
- targets: [otel-collector:8888]
|
||||
@@ -0,0 +1,22 @@
|
||||
# Диагностика учебного стенда
|
||||
|
||||
Откройте dashboard Messenger Lab 6 по адресу http://127.0.0.1:13006/d/messenger-lab6. Для определения времени инцидента используйте состояние правил Prometheus и отметки проб в evidence. Для локального запуска тестов используйте команды из REPORT.md.
|
||||
|
||||
## API
|
||||
|
||||
1. По панели API 5xx share найдите интервал деградации. Сопоставьте его с API latency и DB pool used/waiting. Проверьте наличие трафика перед интерпретацией доли ошибок.
|
||||
2. В Explore выберите Loki. Запрос `{service_name="messenger-api"} | status_class="5xx"` покажет события завершения запросов. Найдите тот же `request_id`, что в HTTP-заголовке. Временно сузьте диапазон времени, чтобы исключить ошибки предыдущего опыта.
|
||||
3. Скопируйте `trace_id` в Tempo или откройте ссылку TraceID. Длинный дочерний span `postgres.session.lookup` с ошибкой показывает, что запрос ждал PostgreSQL в ходе проверки сессии. Если задержка приходится на другое дочернее действие, смотрите его имя и статус.
|
||||
4. Снимите операторскую блокировку и проверьте, что 200 восстановились, доля 5xx снизилась и правила перешли в inactive. При необходимости проверьте состояние DB-контейнера и ожидания в `pg_stat_activity`.
|
||||
|
||||
## Queue
|
||||
|
||||
1. При росте `Oldest unfinished job` сравните backlog с активностью worker. Большой backlog при исчезновении рядов capacity означает отсутствие свежей телеметрии воркеров. Подтвердите состояние контейнеров через `docker compose ps`. Активные воркеры при высоком busy/capacity указывают на насыщение.
|
||||
2. По X-Request-Id принятого upload найдите `http.completed` в Loki. В Tempo проверьте producer `attachments publish` и consumer `attachments consume`. По `job.attempt` видно повторную обработку. Ошибки S3 и БД различаются по дочерним spans.
|
||||
3. Восстановите работу воркеров. Проверьте исчезновение backlog, переход AttachmentQueueLag в inactive и завершение ранее принятых вложений. Ready burn может сработать после обработки накопившихся медленных вложений и завершится после выхода этих наблюдений из короткого окна.
|
||||
|
||||
## Telemetry
|
||||
|
||||
1. При отсутствии логов проверьте состояние Loki и запросы через datasource. Сопоставьте с Prometheus `up` для Collector и с `otelcol_exporter_send_failed_log_records_total`.
|
||||
2. По `otelcol_exporter_queue_size` и `otelcol_exporter_queue_capacity` проверьте предел очереди. Рост ошибок экспорта после истечения retry window означает потерю наблюдений.
|
||||
3. Проверьте HTTP-запись и чтение сообщений, затем восстановите Loki и найдите свежий `http.completed` в Grafana. SDK и Collector держат ограниченные очереди в памяти.
|
||||
@@ -0,0 +1,20 @@
|
||||
server:
|
||||
http_listen_port: 3200
|
||||
distributor:
|
||||
receivers:
|
||||
otlp:
|
||||
protocols:
|
||||
grpc:
|
||||
endpoint: 0.0.0.0:4317
|
||||
ingester:
|
||||
max_block_duration: 5m
|
||||
compactor:
|
||||
compaction:
|
||||
block_retention: 24h
|
||||
storage:
|
||||
trace:
|
||||
backend: local
|
||||
local:
|
||||
path: /var/tempo/blocks
|
||||
wal:
|
||||
path: /var/tempo/wal
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
worker_processes auto;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
access_log /tmp/access.log;
|
||||
error_log /tmp/error.log warn;
|
||||
|
||||
resolver 127.0.0.11 valid=10s ipv6=off;
|
||||
resolver_timeout 5s;
|
||||
|
||||
upstream api_backend {
|
||||
zone api_backend 64k;
|
||||
server api:8080 resolve max_fails=1 fail_timeout=5s;
|
||||
keepalive 32;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
client_max_body_size 0;
|
||||
client_body_timeout 15s;
|
||||
|
||||
location / {
|
||||
proxy_pass http://api_backend;
|
||||
proxy_http_version 1.1;
|
||||
proxy_request_buffering off;
|
||||
proxy_buffer_size 8k;
|
||||
proxy_set_header Connection "";
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-Host $http_host;
|
||||
proxy_set_header X-Forwarded-Port $server_port;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
proxy_next_upstream error timeout http_502 http_504;
|
||||
proxy_next_upstream_tries 3;
|
||||
|
||||
proxy_connect_timeout 1s;
|
||||
proxy_send_timeout 10s;
|
||||
proxy_read_timeout 10s;
|
||||
}
|
||||
}
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"Version": "2012-10-17",
|
||||
"Statement": [
|
||||
{
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"s3:GetObject",
|
||||
"s3:PutObject",
|
||||
"s3:DeleteObject",
|
||||
"s3:ListBucket",
|
||||
"s3:GetBucketLocation",
|
||||
"s3:AbortMultipartUpload",
|
||||
"s3:ListMultipartUploadParts"
|
||||
],
|
||||
"Resource": [
|
||||
"arn:aws:s3:::messenger-attachments",
|
||||
"arn:aws:s3:::messenger-attachments/*"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
[tool.black]
|
||||
line-length = 100
|
||||
target-version = ['py39']
|
||||
@@ -0,0 +1,4 @@
|
||||
-r requirements-dev.txt
|
||||
black==25.9.0
|
||||
Pillow==12.0.0
|
||||
jsonschema==4.26.0
|
||||
@@ -0,0 +1,12 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
New-Item -ItemType Directory -Force secrets | Out-Null
|
||||
$values = @{postgres_db='messenger'; postgres_user='messenger'; postgres_password=''; minio_root_user='labadmin'; minio_root_password=''; s3_access_key_id='labapi'; s3_secret_access_key=''; grafana_admin_password=''}
|
||||
foreach ($name in $values.Keys) {
|
||||
$path = Join-Path secrets ($name + '.txt')
|
||||
if (!(Test-Path -LiteralPath $path)) {
|
||||
$value = $values[$name]
|
||||
if (!$value) { $value = [Convert]::ToBase64String([System.Security.Cryptography.RandomNumberGenerator]::GetBytes(32)) }
|
||||
[System.IO.File]::WriteAllText((Join-Path (Get-Location) $path), $value)
|
||||
}
|
||||
}
|
||||
if (!(Test-Path .env)) { Copy-Item .env.example .env }
|
||||
@@ -0,0 +1,117 @@
|
||||
import hashlib
|
||||
import json
|
||||
import subprocess
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
COMPOSE = ["docker", "compose", "-f", "docker-compose.yml", "-f", "compose.local.yaml"]
|
||||
|
||||
|
||||
def cmd(*args):
|
||||
return subprocess.check_output(args, cwd=ROOT, text=True, encoding="utf-8").strip()
|
||||
|
||||
|
||||
def save(name, value):
|
||||
(ROOT / "evidence" / name).write_text(json.dumps(value, indent=2) + "\n", encoding="utf-8")
|
||||
|
||||
|
||||
def containers():
|
||||
ids = cmd(*COMPOSE, "ps", "-q").splitlines()
|
||||
data = json.loads(cmd("docker", "inspect", *ids))
|
||||
return [
|
||||
{
|
||||
"service": row["Config"]["Labels"]["com.docker.compose.service"],
|
||||
"image": row["Config"]["Image"],
|
||||
"image_id": row["Image"],
|
||||
"started_at": row["State"]["StartedAt"],
|
||||
"health": row["State"].get("Health", {}).get("Status", row["State"]["Status"]),
|
||||
"memory_limit_bytes": row["HostConfig"]["Memory"],
|
||||
"nano_cpus": row["HostConfig"]["NanoCpus"],
|
||||
"volumes": [item["Name"] for item in row["Mounts"] if item["Type"] == "volume"],
|
||||
}
|
||||
for row in data
|
||||
]
|
||||
|
||||
|
||||
def verify_sources():
|
||||
protected = ["README.md", "COURSE.md", "contracts", "tests", "lab.json"]
|
||||
subprocess.run(
|
||||
["git", "diff", "--exit-code", "470d9d6", "--", *protected], cwd=ROOT, check=True
|
||||
)
|
||||
names = cmd(
|
||||
"git", "-c", "core.quotePath=false", "ls-files", "-c", "-o", "--exclude-standard"
|
||||
).splitlines()
|
||||
root_secrets = ROOT / "secrets"
|
||||
credentials = [
|
||||
path.read_bytes().strip()
|
||||
for path in root_secrets.glob("*.txt")
|
||||
if "password" in path.stem or "secret_access_key" in path.stem
|
||||
]
|
||||
assert all(len(value) > 12 for value in credentials), "expected generated secrets"
|
||||
source = {}
|
||||
for name in names:
|
||||
if not (ROOT / name).is_file():
|
||||
continue
|
||||
content = (ROOT / name).read_bytes()
|
||||
assert not any(
|
||||
secret in content for secret in credentials
|
||||
), "generated credential in Git-visible file"
|
||||
if name.startswith(
|
||||
("src/", "worker/", "infra/otel/", "student-tests/", "scripts/")
|
||||
) or name in (
|
||||
"docker-compose.yml",
|
||||
"Dockerfile",
|
||||
"compose.test.yaml",
|
||||
"compose.local.yaml",
|
||||
"build.gradle",
|
||||
):
|
||||
source[name] = hashlib.sha256(content).hexdigest()
|
||||
save("source-sha256.json", source)
|
||||
print("PASS public starter/contract intact, generated secrets absent from Git-visible files")
|
||||
|
||||
|
||||
def main():
|
||||
service_state = containers()
|
||||
assert (
|
||||
len(
|
||||
[row for row in service_state if row["service"] == "api" and row["health"] == "healthy"]
|
||||
)
|
||||
== 2
|
||||
)
|
||||
assert len([row for row in service_state if row["service"] == "worker"]) == 2
|
||||
save(
|
||||
"environment.json",
|
||||
{
|
||||
"timestamp": datetime.now().astimezone().isoformat(),
|
||||
"skeleton": "470d9d6",
|
||||
"transfer_source": "ef7e8c3",
|
||||
"engine": cmd(
|
||||
"docker",
|
||||
"info",
|
||||
"--format",
|
||||
"version={{.ServerVersion}} cpus={{.NCPU}} memory_bytes={{.MemTotal}}",
|
||||
),
|
||||
"services": service_state,
|
||||
},
|
||||
)
|
||||
save(
|
||||
"resources.json",
|
||||
[
|
||||
json.loads(line)
|
||||
for line in cmd(
|
||||
"docker",
|
||||
"stats",
|
||||
"--no-stream",
|
||||
"--format",
|
||||
"{{json .}}",
|
||||
*cmd(*COMPOSE, "ps", "-q").splitlines(),
|
||||
).splitlines()
|
||||
],
|
||||
)
|
||||
verify_sources()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1 @@
|
||||
@powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0restart.ps1"
|
||||
@@ -0,0 +1,9 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$ids = docker compose ps -q
|
||||
$before = docker inspect --format '{{.Name}} {{.State.StartedAt}}' $ids
|
||||
$before | Set-Content evidence/restart-before.txt
|
||||
docker compose restart db redis minio broker api worker dispatcher lb otel-collector prometheus loki tempo grafana
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
$ids = docker compose ps -q
|
||||
$after = docker inspect --format '{{.Name}} {{.State.StartedAt}}' $ids
|
||||
$after | Set-Content evidence/restart-after.txt
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
docker compose restart db redis minio broker api worker dispatcher lb otel-collector prometheus loki tempo grafana
|
||||
@@ -0,0 +1,47 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
Set-Location (Split-Path $PSScriptRoot -Parent)
|
||||
$env:BASE_URL = 'http://127.0.0.1:18085'
|
||||
$env:PYTHONPATH = (Resolve-Path tests).Path
|
||||
$base = @('compose', '-f', 'docker-compose.yml', '-f', 'compose.local.yaml')
|
||||
$proof = $base + @('-f', 'compose.test.yaml')
|
||||
|
||||
function Invoke-Checked {
|
||||
param([string]$Name, [string]$Command, [string[]]$Arguments)
|
||||
& $Command @Arguments *> "evidence/$Name.txt"
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
Get-Content "evidence/$Name.txt" -Tail 25
|
||||
throw "$Name failed ($LASTEXITCODE)"
|
||||
}
|
||||
Write-Host "PASS $Name"
|
||||
}
|
||||
|
||||
function Wait-Api {
|
||||
py -c "import sys; sys.path.insert(0,'student-tests'); from pipeline_support import ready_api; ready_api()"
|
||||
if ($LASTEXITCODE -ne 0) { throw 'API readiness not confirmed' }
|
||||
}
|
||||
|
||||
try {
|
||||
Invoke-Checked 'contract-check' 'py' @('scripts/check_contract.py')
|
||||
Invoke-Checked 'openapi-validation' 'py' @('scripts/validate_openapi.py')
|
||||
Invoke-Checked 'style' 'py' @('scripts/style.py')
|
||||
Invoke-Checked 'java-build' '.\gradlew.bat' @('test', '--no-daemon')
|
||||
Invoke-Checked 'stack-test-profile' 'docker' ($proof + @('up', '-d', '--build'))
|
||||
Wait-Api
|
||||
Invoke-Checked 'smoke' 'py' @('tests/smoke.py')
|
||||
Invoke-Checked 'observe' 'py' @('student-tests/observe.py')
|
||||
foreach ($name in @('core','faults','retention','boundaries','ack_guard','filename','upload_crash','history_capacity')) {
|
||||
Invoke-Checked "pipeline-$name" 'py' @("student-tests/pipeline_$name.py")
|
||||
}
|
||||
Invoke-Checked 'stack-ordinary' 'docker' ($base + @('up', '-d'))
|
||||
Wait-Api
|
||||
Invoke-Checked 'incidents' 'py' @('student-tests/incidents.py')
|
||||
Invoke-Checked 'load' 'py' @('tests/load.py', '--duration', '30', '--concurrency', '4', '--output', 'evidence/load.json')
|
||||
Invoke-Checked 'persistence' 'py' @('tests/resilience.py', '--mode', 'persistence', '--action-script', 'scripts/restart.cmd')
|
||||
Wait-Api
|
||||
Invoke-Checked 'failover' 'py' @('tests/resilience.py', '--mode', 'failover', '--action-script', 'scripts/stop-one.cmd')
|
||||
Invoke-Checked 'stack-final' 'docker' ($base + @('up', '-d', 'api'))
|
||||
Wait-Api
|
||||
Invoke-Checked 'environment' 'py' @('scripts/capture_evidence.py')
|
||||
} finally {
|
||||
docker @base up -d
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
@powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0stop-one.ps1"
|
||||
@@ -0,0 +1,13 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$replicas = docker compose ps -q api
|
||||
foreach ($replica in $replicas) {
|
||||
$alias = docker inspect --format '{{.Config.Hostname}}' $replica
|
||||
if ($alias -eq $env:TARGET_INSTANCE_ID) {
|
||||
docker inspect --format "{{.Name}} {{.Config.Hostname}} {{.State.Status}}" $replica | Set-Content evidence/stop-one-before.txt
|
||||
docker stop --time 2 $replica
|
||||
$result = $LASTEXITCODE
|
||||
docker inspect --format "{{.Name}} {{.Config.Hostname}} {{.State.Status}}" $replica | Set-Content evidence/stop-one-after.txt
|
||||
exit $result
|
||||
}
|
||||
}
|
||||
exit 1
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
for id in $(docker compose ps -q api); do
|
||||
if [ "$(docker inspect --format '{{.Config.Hostname}}' "$id")" = "$TARGET_INSTANCE_ID" ]; then
|
||||
docker stop -t 2 "$id"
|
||||
exit 0
|
||||
fi
|
||||
done
|
||||
exit 1
|
||||
@@ -0,0 +1,87 @@
|
||||
import argparse
|
||||
import hashlib
|
||||
import os
|
||||
import re
|
||||
from pathlib import Path
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
import urllib.request
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
VERSION = "1.28.0"
|
||||
SHA256 = "32342e7c1b4600f80df3471da46aee8012d3e1445d5ea1be1fb71289b07cc735"
|
||||
|
||||
|
||||
def formatter():
|
||||
jar = Path(tempfile.gettempdir()) / f"google-java-format-{VERSION}-all-deps.jar"
|
||||
if not jar.exists():
|
||||
url = (
|
||||
"https://repo.maven.apache.org/maven2/com/google/googlejavaformat/"
|
||||
f"google-java-format/{VERSION}/{jar.name}"
|
||||
)
|
||||
with urllib.request.urlopen(url, timeout=60) as response:
|
||||
jar.write_bytes(response.read())
|
||||
if hashlib.sha256(jar.read_bytes()).hexdigest() != SHA256:
|
||||
raise RuntimeError("Java formatter checksum mismatch")
|
||||
return jar
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--apply", action="store_true")
|
||||
args = parser.parse_args()
|
||||
java_home = os.environ.get("JAVA_HOME")
|
||||
java = str(Path(java_home) / "bin" / "java") if java_home else "java"
|
||||
files = sorted(str(p.relative_to(ROOT)) for p in (ROOT / "src").rglob("*.java"))
|
||||
mode = ["--replace"] if args.apply else ["--dry-run", "--set-exit-if-changed"]
|
||||
subprocess.run([java, "-jar", str(formatter()), "--aosp", *mode, *files], cwd=ROOT, check=True)
|
||||
python = [
|
||||
"worker/pipeline",
|
||||
"scripts/style.py",
|
||||
"scripts/capture_evidence.py",
|
||||
]
|
||||
python += sorted(str(p.relative_to(ROOT)) for p in (ROOT / "student-tests").glob("*.py"))
|
||||
subprocess.run(
|
||||
[sys.executable, "-m", "black", *([] if args.apply else ["--check"]), *python],
|
||||
cwd=ROOT,
|
||||
check=True,
|
||||
)
|
||||
check_controllers()
|
||||
print("PASS Java AOSP / Python Black style")
|
||||
|
||||
|
||||
def check_controllers():
|
||||
directory = ROOT / "src/main/java/ru/mtusi/messenger/controller"
|
||||
operations = 0
|
||||
for path in directory.glob("*Controller.java"):
|
||||
source = path.read_text(encoding="utf-8")
|
||||
fields = re.findall(r"private final (\w+Service) (\w+);", source)
|
||||
if "@RequiredArgsConstructor" not in source or len(fields) != 1:
|
||||
raise AssertionError(f"Controller DI contract: {path.name}")
|
||||
bodies = re.findall(r"@Override\s+public [^{}]+\{([^{}]*)\}", source)
|
||||
if not bodies:
|
||||
raise AssertionError(f"Controller has no operations: {path.name}")
|
||||
service = fields[0][1]
|
||||
for body in bodies:
|
||||
if body.count(";") != 1 or len(re.findall(rf"\b{service}\.\w+\(", body)) != 1:
|
||||
raise AssertionError(f"Controller must call one service: {path.name}")
|
||||
if not re.fullmatch(rf"\s*(?:return )?{service}\.\w+\([^;]*\);\s*", body):
|
||||
raise AssertionError(f"Controller contains extra logic: {path.name}")
|
||||
operations += len(bodies)
|
||||
for path in directory.glob("*Api.java"):
|
||||
source = path.read_text(encoding="utf-8")
|
||||
if source.count("/**") != source.count("@Operation(") + 1:
|
||||
raise AssertionError(f"Missing API documentation: {path.name}")
|
||||
for path in (ROOT / "src/main/java").rglob("*.java"):
|
||||
source = path.read_text(encoding="utf-8")
|
||||
if "@Autowired" in source:
|
||||
raise AssertionError(f"Use constructor injection: {path.name}")
|
||||
if re.search(r"^import .*\*;", source, re.MULTILINE):
|
||||
raise AssertionError(f"Use explicit imports: {path.name}")
|
||||
print(f"PASS {operations} controller operations: one service call, constructor DI, API Javadoc")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1 @@
|
||||
rootProject.name = 'messenger-lab6'
|
||||
@@ -0,0 +1,17 @@
|
||||
package ru.mtusi.messenger;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
|
||||
import org.springframework.boot.security.autoconfigure.UserDetailsServiceAutoConfiguration;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
|
||||
@ConfigurationPropertiesScan
|
||||
@SpringBootApplication(exclude = UserDetailsServiceAutoConfiguration.class)
|
||||
@EnableScheduling
|
||||
public class MessengerLab1Application {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(MessengerLab1Application.class, args);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package ru.mtusi.messenger.cache;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
|
||||
@Component
|
||||
public class CacheHealthTracker {
|
||||
|
||||
private final AtomicBoolean stale = new AtomicBoolean(false);
|
||||
|
||||
public void markStale() {
|
||||
stale.set(true);
|
||||
}
|
||||
|
||||
public boolean consumeStale() {
|
||||
return stale.getAndSet(false);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package ru.mtusi.messenger.config;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.springframework.boot.jackson.autoconfigure.JsonMapperBuilderCustomizer;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import tools.jackson.databind.DeserializationFeature;
|
||||
import tools.jackson.databind.cfg.CoercionAction;
|
||||
import tools.jackson.databind.cfg.CoercionInputShape;
|
||||
|
||||
@Configuration
|
||||
@Slf4j
|
||||
public class JacksonConfig {
|
||||
|
||||
@Bean
|
||||
public JsonMapperBuilderCustomizer strictJacksonCustomizer() {
|
||||
log.warn(">>> Strict JsonMapper customizer applied");
|
||||
return builder ->
|
||||
builder.enable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
|
||||
.withCoercionConfigDefaults(
|
||||
config -> {
|
||||
config.setCoercion(
|
||||
CoercionInputShape.Boolean, CoercionAction.Fail);
|
||||
config.setCoercion(
|
||||
CoercionInputShape.Integer, CoercionAction.Fail);
|
||||
config.setCoercion(
|
||||
CoercionInputShape.Float, CoercionAction.Fail);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package ru.mtusi.messenger.config;
|
||||
|
||||
import io.minio.MinioClient;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import ru.mtusi.messenger.config.properties.S3Properties;
|
||||
|
||||
@Configuration
|
||||
@RequiredArgsConstructor
|
||||
public class MinioConfig {
|
||||
private final S3Properties props;
|
||||
|
||||
@Bean
|
||||
public MinioClient minioClient() {
|
||||
return MinioClient.builder()
|
||||
.endpoint(props.endpoint())
|
||||
.httpClient(
|
||||
new okhttp3.OkHttpClient.Builder()
|
||||
.connectTimeout(java.time.Duration.ofSeconds(2))
|
||||
.readTimeout(java.time.Duration.ofSeconds(10))
|
||||
.writeTimeout(java.time.Duration.ofSeconds(10))
|
||||
.callTimeout(java.time.Duration.ofSeconds(20))
|
||||
.build())
|
||||
.region(props.region())
|
||||
.credentials(props.resolvedAccessKey(), props.resolvedSecretKey())
|
||||
.build();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package ru.mtusi.messenger.config;
|
||||
|
||||
import io.swagger.v3.oas.annotations.enums.SecuritySchemeType;
|
||||
import io.swagger.v3.oas.annotations.security.SecurityScheme;
|
||||
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
@Configuration
|
||||
@SecurityScheme(name = "basicAuth", type = SecuritySchemeType.HTTP, scheme = "basic")
|
||||
@SecurityScheme(
|
||||
name = "bearerAuth",
|
||||
type = SecuritySchemeType.HTTP,
|
||||
scheme = "bearer",
|
||||
bearerFormat = "opaque session token")
|
||||
public class OpenApiConfig {}
|
||||
@@ -0,0 +1,29 @@
|
||||
package ru.mtusi.messenger.config;
|
||||
|
||||
import io.github.bucket4j.Bandwidth;
|
||||
import io.github.bucket4j.Bucket;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import ru.mtusi.messenger.config.properties.RateLimitProperties;
|
||||
|
||||
import java.time.Duration;
|
||||
|
||||
@Configuration
|
||||
@RequiredArgsConstructor
|
||||
public class RateLimitConfig {
|
||||
private final RateLimitProperties props;
|
||||
|
||||
@Bean
|
||||
public Bucket rateLimitBucket() {
|
||||
Bandwidth limit =
|
||||
Bandwidth.builder()
|
||||
.capacity(props.ratePerMinute())
|
||||
.refillGreedy(props.ratePerMinute(), Duration.ofMinutes(1))
|
||||
.build();
|
||||
return Bucket.builder().addLimit(limit).build();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
package ru.mtusi.messenger.config;
|
||||
|
||||
import io.lettuce.core.ClientOptions;
|
||||
import io.lettuce.core.SocketOptions;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.cache.Cache;
|
||||
import org.springframework.cache.annotation.CachingConfigurer;
|
||||
import org.springframework.cache.annotation.EnableCaching;
|
||||
import org.springframework.cache.interceptor.CacheErrorHandler;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.data.redis.cache.RedisCacheConfiguration;
|
||||
import org.springframework.data.redis.cache.RedisCacheManager;
|
||||
import org.springframework.data.redis.connection.RedisConnectionFactory;
|
||||
import org.springframework.data.redis.connection.RedisStandaloneConfiguration;
|
||||
import org.springframework.data.redis.connection.lettuce.LettuceClientConfiguration;
|
||||
import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory;
|
||||
import org.springframework.data.redis.serializer.JacksonJsonRedisSerializer;
|
||||
import org.springframework.data.redis.serializer.RedisSerializationContext;
|
||||
|
||||
import ru.mtusi.messenger.cache.CacheHealthTracker;
|
||||
import ru.mtusi.messenger.config.properties.RedisProperties;
|
||||
import ru.mtusi.messenger.config.properties.SessionProperties;
|
||||
import ru.mtusi.messenger.service.SessionService;
|
||||
|
||||
@Slf4j
|
||||
@Configuration
|
||||
@EnableCaching
|
||||
@EnableConfigurationProperties(RedisProperties.class)
|
||||
@RequiredArgsConstructor
|
||||
public class RedisConfig implements CachingConfigurer {
|
||||
private final SessionProperties sessionProperties;
|
||||
private final RedisProperties redisProperties;
|
||||
private final CacheHealthTracker cacheHealthTracker;
|
||||
|
||||
@Bean
|
||||
public RedisConnectionFactory redisConnectionFactory() {
|
||||
RedisStandaloneConfiguration server =
|
||||
new RedisStandaloneConfiguration(redisProperties.host(), redisProperties.port());
|
||||
|
||||
SocketOptions socketOptions =
|
||||
SocketOptions.builder()
|
||||
.connectTimeout(redisProperties.connectTimeout())
|
||||
.keepAlive(
|
||||
SocketOptions.KeepAliveOptions.builder()
|
||||
.enable()
|
||||
.idle(redisProperties.keepAliveIdle())
|
||||
.interval(redisProperties.keepAliveInterval())
|
||||
.count(3)
|
||||
.build())
|
||||
.tcpUserTimeout(
|
||||
SocketOptions.TcpUserTimeoutOptions.builder()
|
||||
.tcpUserTimeout(redisProperties.tcpUserTimeout())
|
||||
.enable()
|
||||
.build())
|
||||
.build();
|
||||
|
||||
ClientOptions clientOptions =
|
||||
ClientOptions.builder().socketOptions(socketOptions).autoReconnect(true).build();
|
||||
|
||||
LettuceClientConfiguration client =
|
||||
LettuceClientConfiguration.builder()
|
||||
.commandTimeout(redisProperties.commandTimeout())
|
||||
.shutdownTimeout(redisProperties.shutdownTimeout())
|
||||
.clientOptions(clientOptions)
|
||||
.build();
|
||||
|
||||
return new LettuceConnectionFactory(server, client);
|
||||
}
|
||||
|
||||
@Bean
|
||||
public RedisCacheManager cacheManager(RedisConnectionFactory cf) {
|
||||
RedisCacheConfiguration cfg =
|
||||
RedisCacheConfiguration.defaultCacheConfig()
|
||||
.entryTtl(sessionProperties.ttl())
|
||||
.disableCachingNullValues()
|
||||
.serializeValuesWith(
|
||||
RedisSerializationContext.SerializationPair.fromSerializer(
|
||||
new JacksonJsonRedisSerializer<>(
|
||||
SessionService.SessionRecord.class)));
|
||||
return RedisCacheManager.builder(cf).cacheDefaults(cfg).build();
|
||||
}
|
||||
|
||||
@Override
|
||||
public CacheErrorHandler errorHandler() {
|
||||
return new CacheErrorHandler() {
|
||||
@Override
|
||||
public void handleCacheGetError(RuntimeException e, Cache cache, Object key) {
|
||||
cacheHealthTracker.markStale();
|
||||
log.warn("Cache GET failed ({}): {}", cache.getName(), e.getMessage());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handleCachePutError(
|
||||
RuntimeException e, Cache cache, Object key, Object value) {
|
||||
cacheHealthTracker.markStale();
|
||||
log.warn("Cache PUT failed ({}): {}", cache.getName(), e.getMessage());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handleCacheEvictError(RuntimeException e, Cache cache, Object key) {
|
||||
cacheHealthTracker.markStale();
|
||||
log.warn("Cache EVICT failed ({}): {}", cache.getName(), e.getMessage());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handleCacheClearError(RuntimeException e, Cache cache) {
|
||||
cacheHealthTracker.markStale();
|
||||
log.warn("Cache CLEAR failed ({}): {}", cache.getName(), e.getMessage());
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
package ru.mtusi.messenger.config;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.http.HttpMethod;
|
||||
import org.springframework.security.authentication.AuthenticationManager;
|
||||
import org.springframework.security.authentication.ProviderManager;
|
||||
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
|
||||
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
|
||||
import org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer;
|
||||
import org.springframework.security.config.http.SessionCreationPolicy;
|
||||
import org.springframework.security.crypto.argon2.Argon2PasswordEncoder;
|
||||
import org.springframework.security.crypto.password.PasswordEncoder;
|
||||
import org.springframework.security.oauth2.server.resource.web.BearerTokenResolver;
|
||||
import org.springframework.security.oauth2.server.resource.web.DefaultBearerTokenResolver;
|
||||
import org.springframework.security.web.SecurityFilterChain;
|
||||
import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
|
||||
|
||||
import ru.mtusi.messenger.exception.ApiErrorFactory;
|
||||
import ru.mtusi.messenger.security.ApiAuthenticationEntryPoint;
|
||||
import ru.mtusi.messenger.security.SessionAuthenticationFilter;
|
||||
import ru.mtusi.messenger.security.SessionAuthenticationProvider;
|
||||
|
||||
@Configuration
|
||||
@EnableWebSecurity
|
||||
@RequiredArgsConstructor
|
||||
public class SecurityConfig {
|
||||
private final SessionAuthenticationProvider sessionAuthenticationProvider;
|
||||
private final ApiAuthenticationEntryPoint entryPoint;
|
||||
private final ApiErrorFactory errors;
|
||||
|
||||
@Bean
|
||||
public PasswordEncoder passwordEncoder() {
|
||||
return Argon2PasswordEncoder.defaultsForSpringSecurity_v5_8();
|
||||
}
|
||||
|
||||
@Bean
|
||||
public AuthenticationManager authenticationManager() {
|
||||
return new ProviderManager(sessionAuthenticationProvider);
|
||||
}
|
||||
|
||||
@Bean
|
||||
public SecurityFilterChain filterChain(
|
||||
HttpSecurity http,
|
||||
AuthenticationManager authenticationManager,
|
||||
BearerTokenResolver bearerTokenResolver)
|
||||
throws Exception {
|
||||
SessionAuthenticationFilter sessionFilter =
|
||||
new SessionAuthenticationFilter(bearerTokenResolver, authenticationManager, errors);
|
||||
|
||||
http.csrf(AbstractHttpConfigurer::disable)
|
||||
.httpBasic(AbstractHttpConfigurer::disable)
|
||||
.formLogin(AbstractHttpConfigurer::disable)
|
||||
.logout(AbstractHttpConfigurer::disable)
|
||||
.sessionManagement(sm -> sm.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
|
||||
.authorizeHttpRequests(
|
||||
auth ->
|
||||
auth.requestMatchers("/health/**")
|
||||
.permitAll()
|
||||
.requestMatchers(
|
||||
"/swagger-ui.html",
|
||||
"/swagger-ui/**",
|
||||
"/v3/api-docs",
|
||||
"/v3/api-docs/**")
|
||||
.permitAll()
|
||||
.requestMatchers(HttpMethod.POST, "/api/v1/users")
|
||||
.permitAll()
|
||||
.requestMatchers(HttpMethod.POST, "/api/v1/auth/sessions")
|
||||
.permitAll()
|
||||
.requestMatchers("/actuator/health", "/actuator/health/**")
|
||||
.permitAll()
|
||||
.anyRequest()
|
||||
.authenticated())
|
||||
.addFilterBefore(sessionFilter, UsernamePasswordAuthenticationFilter.class)
|
||||
.exceptionHandling(eh -> eh.authenticationEntryPoint(entryPoint));
|
||||
|
||||
return http.build();
|
||||
}
|
||||
|
||||
@Bean
|
||||
public BearerTokenResolver bearerTokenResolver() {
|
||||
return new DefaultBearerTokenResolver();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package ru.mtusi.messenger.config.properties;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
@ConfigurationProperties(prefix = "app.limits")
|
||||
public record AppProperties(int maxMessagesPerChat) {}
|
||||
@@ -0,0 +1,6 @@
|
||||
package ru.mtusi.messenger.config.properties;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
@ConfigurationProperties(prefix = "app.idempotency")
|
||||
public record IdempotencyProperties(int keyMaxLength, String keyPattern, int retentionHours) {}
|
||||
@@ -0,0 +1,6 @@
|
||||
package ru.mtusi.messenger.config.properties;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
@ConfigurationProperties(prefix = "app.instance")
|
||||
public record InstanceProperties(String id) {}
|
||||
@@ -0,0 +1,6 @@
|
||||
package ru.mtusi.messenger.config.properties;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
@ConfigurationProperties(prefix = "app.rate")
|
||||
public record RateLimitProperties(int ratePerMinute, int retryAfterSeconds) {}
|
||||
@@ -0,0 +1,16 @@
|
||||
package ru.mtusi.messenger.config.properties;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
import java.time.Duration;
|
||||
|
||||
@ConfigurationProperties(prefix = "app.redis")
|
||||
public record RedisProperties(
|
||||
String host,
|
||||
int port,
|
||||
Duration commandTimeout,
|
||||
Duration connectTimeout,
|
||||
Duration shutdownTimeout,
|
||||
Duration keepAliveIdle,
|
||||
Duration keepAliveInterval,
|
||||
Duration tcpUserTimeout) {}
|
||||
@@ -0,0 +1,40 @@
|
||||
package ru.mtusi.messenger.config.properties;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.boot.context.properties.bind.DefaultValue;
|
||||
|
||||
@ConfigurationProperties(prefix = "s3")
|
||||
public record S3Properties(
|
||||
String endpoint,
|
||||
String bucket,
|
||||
@DefaultValue("us-east-1") String region,
|
||||
@DefaultValue("") String accessKey,
|
||||
@DefaultValue("") String secretKey,
|
||||
@DefaultValue("true") boolean pathStyleAccess,
|
||||
@DefaultValue("300") int presignExpirySeconds) {
|
||||
public String resolvedAccessKey() {
|
||||
var file = System.getenv("S3_ACCESS_KEY_ID_FILE");
|
||||
if (file != null && !file.isBlank()) {
|
||||
try {
|
||||
return new String(java.nio.file.Files.readAllBytes(java.nio.file.Paths.get(file)))
|
||||
.strip();
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException("Failed to read S3_ACCESS_KEY_ID_FILE: " + file, e);
|
||||
}
|
||||
}
|
||||
return accessKey;
|
||||
}
|
||||
|
||||
public String resolvedSecretKey() {
|
||||
var file = System.getenv("S3_SECRET_ACCESS_KEY_FILE");
|
||||
if (file != null && !file.isBlank()) {
|
||||
try {
|
||||
return new String(java.nio.file.Files.readAllBytes(java.nio.file.Paths.get(file)))
|
||||
.strip();
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException("Failed to read S3_SECRET_ACCESS_KEY_FILE: " + file, e);
|
||||
}
|
||||
}
|
||||
return secretKey;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package ru.mtusi.messenger.config.properties;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
import java.time.Duration;
|
||||
|
||||
@ConfigurationProperties(prefix = "app.session")
|
||||
public record SessionProperties(Duration ttl) {}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user