fix: harden graceful-failover checks found in verify

hang-key names its trigger per run, turns SIGTERM and SIGHUP into an
interrupt so the trigger is always dropped and the replica unpaused, and
prints the cleanup SQL if dropping fails. idle-conns reports who closed
the idle connections and can read the pool of another LB container, so a
variant LB config can be checked against the same replicas. bench_compare
refuses a label measured without the load balancer. Stale numbers removed
from the haproxy.cfg comment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-11 00:00:54 +03:00
co-authored by Claude Opus 5.5
parent 4234df5767
commit 12783aaff1
6 changed files with 106 additions and 29 deletions
+3 -2
View File
@@ -83,8 +83,9 @@ backend api
# LB не повторяет). С пулом (http-reuse safe) последнее простаивающее
# соединение LB держал, пока его не закрывала реплика. Гонку при
# SIGTERM (uvicorn сразу закрывает простаивающие соединения) не убирает
# ни один режим: одиночный 502 в 2 из 8 фаз stop с never и в 1 из 9 с
# safe (design change graceful-failover, решение 3)
# ни один режим: одиночный 502 в части фаз stop под нагрузкой; убрать
# её может только вывод реплики из LB до SIGTERM (design change
# graceful-failover, решение 3; evidence/failover/keep-alive.md)
http-reuse never
# активная проверка готовности: /health/live для LB не годится,
# живой процесс без PostgreSQL запросы не обслуживает