forked from mtusi2026/mtusi2026lab7
Перенесены cmd/internal/config, compose.yaml, Dockerfile, скрипты, student-tests и evidence из mtusi-messenger (master, lab6). Skeleton lab7 (openapi/infrastructure 1.7.0, trust-matrix.md, security/THREAT_MODEL.md, infra/openbao, tests/security.py) сохранён; make test-security добавлен в Makefile.
918 B
918 B
Queue lag / time-to-ready
- Grafana → Lab6 → Jobs and queue:
messenger_queue_oldest_job_age_seconds,rabbitmq_queue_messages_ready,messenger_worker_busy/capacity, TTR p95. - If oldest age grows and
worker_busy == capacity, the worker is saturated: inspectworkerlogs (job claimed,job retry scheduled) andWORKER_CONCURRENCY. - If queue depth grows but
worker_busy == 0, the worker is stopped or cannot connect to the broker:docker compose ps worker, worker/health/ready, brokerrabbitmqctl list_queues. - If retries grow, filter Loki
{service_name="messenger-worker"} | severity_text="error"and tracejob.processattempts; checkerror_code. - For a lost delivery, relay logs
outbox publish cycle/lost queued jobs reconciledandjobctl failed. - Restore worker/broker, verify queue depth < 5 and oldest age < 5s for two scrapes, then confirm the alert resolved.