Skip to main content

probe_backoff_ttl

Function probe_backoff_ttl 

Source
pub(super) fn probe_backoff_ttl(consecutive_failures: u32) -> Duration
Expand description

Re-probe interval after consecutive_failures failures. 0 (a healthy probe) uses HEALTHY_TTL; failures grow it exponentially from 30 s, capped at FAILED_BACKOFF_MAX, so a permanently-broken probe settles at one attempt every five minutes instead of every five seconds.