edge: backend health checks every 30s, staggered (default-server + spread-checks) #23

Merged
jknapp merged 2 commits from feat/health-check-interval into main 2026-11-25 15:04:34 +00:00
2 changed files with 5 additions and 4 deletions
Showing only changes of commit 5ec7d9b6d3 - Show all commits

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ What this pins (the real `haproxy -c` of the same config is the
`check-timing` assertions in scripts/validate-rendered-config.py):
* exactly one default-server line, in `defaults`, with the agreed timing;
* `spread-checks 50` in `global` (documented max, 0..50);
* the agreed timing detects a dead backend in <= ~65 s (inside the 1-2
* the agreed timing detects a dead backend in <= ~75 s worst case (inside the 1-2
minutes Josh accepted) -- computed from the numbers, so changing one of
them without re-justifying the other fails here;
* no template puts inter/fastinter/downinter on a customer server line
+4 -3
View File
@@ -211,9 +211,10 @@ defaults
# downinter 30s a server already fully DOWN is re-tested at the same
# low rate.
# rise 2 fall 3 the HAProxy defaults, stated so they are pinned.
# A dead backend is marked DOWN in at most ~65s (first failing check
# <= 45s after it dies, then two more at fastinter ~10s each); a recovered
# one is back UP in about the same. Servers without `check` are unaffected.
# A dead backend is marked DOWN in at most ~75s (first failing check
# <= 45s after it dies, then two more at fastinter, each <= 15s with the
# +50% jitter; ~50s typical); a recovered one is back UP in about the
# same (downinter <= 45s, then one more at fastinter). Servers without `check` are unaffected.
# The Coraza SPOA server sets its own fast timing (hap_coraza_spoa_backend.tpl).
default-server inter 30s fastinter 10s downinter 30s rise 2 fall 3
timeout tarpit 10s # Tarpit delay for low-level scanners (before silent-drop)