Expand description
Graceful connection draining for orderly node shutdown.
When a node is shutting down, it needs to stop accepting new requests while
allowing in-flight requests to complete. The ConnectionDrainer manages
this lifecycle for all active connections, tracking pending request counts,
enforcing drain timeouts, and reporting statistics.
Structs§
- Connection
Drainer - Manages graceful connection draining for orderly node shutdown.
- Drainable
Connection - A connection that participates in the draining lifecycle.
- Drainer
Config - Configuration for the
ConnectionDrainer. - Drainer
Stats - Aggregate statistics for the drainer.
Enums§
- Drain
State - The drain state of a connection.