Перенесла файлы проекта из предыдущей лабораторной работы
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# Alert: MessengerUploadLatencyHigh
|
||||
|
||||
## Симптомы
|
||||
- p95 длительности POST `/api/v1/chats/{id}/attachments` > 2s.
|
||||
|
||||
## Диагностика
|
||||
1. Grafana: p95 по route `/api/v1/chats/{id}/attachments`.
|
||||
2. Tempo: trace `POST /api/v1/chats/{id}/attachments` — найти самый долгий
|
||||
child span (`put_object` в S3 или `INSERT` в postgres).
|
||||
3. Loki: `{service_name="messenger-api"} |= "event=http" |~ "attachments"`.
|
||||
|
||||
## Действие
|
||||
- Если виноват S3 — проверить `docker compose ps minio`.
|
||||
- Если БД — увеличить `max_size` пула или `statement_timeout`.
|
||||
- Если телеметрия — переключить sampling (см. TRACK1).
|
||||
Reference in New Issue
Block a user