лабораторная работа 7
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-11-18 01:02:09 +03:00
parent 20afc2c790
commit b035b50dbd
298 changed files with 28830 additions and 109 deletions
@@ -0,0 +1,6 @@
Инцидент «медленная БД»: 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