Files
mtusi2026lab6/infra/grafana/runbooks/queue-oldest-job.md
T

14 lines
966 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# QueueOldestJobGrowing
Alert означает, что в PostgreSQL остаётся хотя бы одна `queued`/`processing` job старше
20 секунд. Это возраст backlog, а не duration одного consumer span.
1. Проверить queue depth, oldest age и worker busy/capacity.
2. В Loki открыть `{service_name="messenger-worker"}` и проверить retry/failure events.
3. По trace ID перейти в Tempo и проверить consumer, S3 и PostgreSQL spans.
4. Восстановить worker или отказавшую зависимость, не создавая новую attachment job.
5. Убедиться, что исходная job стала `ready`, backlog уменьшился и alert resolved.
Порог учебный и рассчитан на локальную демонстрацию; для production его связывают с
реальным SLO времени до ready.