Commit Graph
2 Commits
Author SHA1 Message Date
Claude 5ec7d9b6d3 edge: correct the dead-backend detection bound in comments (~75s worst case, matches the test's own arithmetic)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
2026-11-25 07:02:16 -08:00
shadowdaoandClaude Sonnet 5.5 06e5ad0ce7 edge: back-end health checks every 30s, staggered (default-server + spread-checks 50)
whp01 runs ~426 `check ssl` servers at the HAProxy default 2s interval:
~200+ TLS handshakes/s of pure health-check churn, which with memory
pressure preceded the 2026-11-25 watchdog aborts.

global:   spread-checks 50
defaults: default-server inter 30s fastinter 10s downinter 30s rise 2 fall 3

fastinter is 10s, not 2s: HAProxy spreads the first check of every server
over the smallest interval in use and a not-yet-fully-healthy server (every
server after a start/reload) uses fastinter, so 2s would put every reload's
first checks into a ~2s burst. Dead backend still marked down in <= ~65s.
The Coraza SPOA server keeps its own 2s checks. No change to the server
lines WHP supplies (check ssl verify none).

Tests: scripts/test-health-check-timing.py (in the image build) and
check-timing assertions in validate-rendered-config.py (real haproxy -c).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
2026-11-25 06:41:41 -08:00