Skip to main content

MAX_DRAIN_LINGER_MICROS

Constant MAX_DRAIN_LINGER_MICROS 

Source
pub const MAX_DRAIN_LINGER_MICROS: u64 = 100_000;
Expand description

Ceiling on RuntimeOptions::drain_linger in MICROSECONDS (100ms). Validation (and, defensively, executor construction) clamps the budget here: lingering exists to bridge micro-scale gaps between scheduling waves, and a lingering drainer holds a pool worker plus an active_drainers slot while idle, so budgets beyond this bound stop tuning the wave optimization and start pinning workers.