Skip to main content

spawn_warmer

Function spawn_warmer 

Source
fn spawn_warmer(
    hedge: Arc<dyn Blob>,
    cfg: Arc<ConfigSet>,
    metrics: BlobHedgeMetrics,
) -> AbortOnDropHandle<()> 
Expand description

Keeps the sibling’s connection pool warm with periodic concurrent liveness gets, while hedging is enabled. A cold hedge can stall up to the connect timeout, which during correlated connection events is exactly when it must not. While hedging is disabled the warmer idles and the sibling sees no traffic at all, so a freshly enabled flag can find a cold pool for up to one warm interval plus a handshake. Hedges in that window are merely no better than no hedge, never worse.