forked from mtusi2026/mtusi2026lab6
1.2 KiB
1.2 KiB
Runbooks
API high error rate
- In Grafana, compare the 5xx ratio with
db_client_*pool metrics. - Open a failed server span in Tempo and inspect child JDBC/Redis/S3 spans.
- Search Loki by the trace ID. Do not search by a user, chat or message ID.
- Restore the failing dependency and confirm the alert resolves after the five-minute window.
Queue lag
- Check
messenger_queue_depthandmessenger_queue_oldest_job_age_seconds. - Check worker busy/capacity and the rate of
messenger_jobs_processed_totalby outcome. - Search worker errors in Loki, then open the linked consumer trace in Tempo.
- Restore or scale the worker and confirm depth and age return to zero.
Worker saturation
- Compare busy/capacity with job duration p95 and container CPU/RAM.
- Inspect slow consumer spans and their S3/JDBC children.
- Remove the bottleneck before increasing concurrency; memory is explicitly bounded.
Telemetry backend
- Inspect Collector exporter failure and queue metrics on port 8888 through Prometheus.
- Restore Loki or Tempo. Collector retries for at most 60 seconds with a 2048-item queue.
- Confirm the application remained available; telemetry loss is allowed and bounded.