Files
mtusi2026lab6-fork/evidence/local-sandbox/db_lock_span.txt
T

7 lines
716 B
Plaintext
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.
Инцидент «медленная БД»: LOCK TABLE messages IN ACCESS EXCLUSIVE MODE на 15 с под нагрузкой.
load.py (4 потока, 12 с): successful 4, failed 8, error_ratio 0.667
Метрика: http_server_request_duration_seconds_count{http_route="/api/v1/chats/{chat_id}/messages",http_response_status_code="503",error_type="503"} 8
Trace: CLIENT span "INSERT" 5.01 s, status ERROR "QueryCanceled: canceling statement due to statement timeout",
event exception.type=psycopg.errors.QueryCanceled -> время ушло в SQL (statement_timeout 5 с), а не в handler.
Длинный прогон (lock 180 с) и состояния ApiHighErrorRate — alerts_db_lock_180s.txt