Files
mtusi2026lab7/infra/grafana/runbooks/queue-lag.md
T
dawudukandCursor 54b4b9e509 Перенести реализацию мессенджера из lab6 в skeleton lab7.
Контракт, публичные тесты и README задания оставлены от lab7.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-26 19:23:53 +03:00

781 B

Queue lag

Signal: messenger_queue_oldest_age_seconds is now() - min(created_at) for rows still queued. messenger_queue_depth counts queued and processing. Age is not the same number as worker duration.

  1. If age grows and messenger_worker_busy is 0, the worker process is stopped or not consuming. Messages stay in RabbitMQ and in attachment_jobs.
  2. If busy equals capacity and age still grows, the worker is saturated. Look at messenger_job_duration_seconds and the consumer span.
  3. A consumer span's parent is the producer span, whose parent is the API server span that accepted the upload (traceparent stored on the job row).
  4. Start the worker again. Depth and age return toward zero, then QueueLagHigh resolves. Do not delete the RabbitMQ volume.