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
This commit is contained in:
1 parent
2774399add
commit
06e5ad0ce7
6 files changed
+150
-1
No files matched your search
@@ -355,6 +355,10 @@ def assert_scenario_branches(scenario_name, config_path, env_overrides):
|
||||
env_overrides.get('HAPROXY_DEFAULT_SPLASH') != 'off'),
|
||||
'nbthread': ('\n nbthread 1\n',
|
||||
env_overrides.get('HAPROXY_NBTHREAD') == '1'),
|
||||
# Health-check timing is unconditional: every scenario carries it.
|
||||
'check-timing': ('\n default-server inter 30s fastinter 10s '
|
||||
'downinter 30s rise 2 fall 3\n', True),
|
||||
'spread-checks': ('\n spread-checks 50\n', True),
|
||||
}
|
||||
for label, (needle, should_be_present) in expected.items():
|
||||
present = needle in text
|
||||
|
||||
Reference in new issue
Block a user