diff --git a/scripts/test-health-check-timing.py b/scripts/test-health-check-timing.py index 26bf638..d7ef322 100755 --- a/scripts/test-health-check-timing.py +++ b/scripts/test-health-check-timing.py @@ -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 diff --git a/templates/hap_header.tpl b/templates/hap_header.tpl index 407187f..a6577b3 100644 --- a/templates/hap_header.tpl +++ b/templates/hap_header.tpl @@ -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)