Skip to main content

Module connection_drainer

Module connection_drainer 

Source
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§

ConnectionDrainer
Manages graceful connection draining for orderly node shutdown.
DrainableConnection
A connection that participates in the draining lifecycle.
DrainerConfig
Configuration for the ConnectionDrainer.
DrainerStats
Aggregate statistics for the drainer.

Enums§

DrainState
The drain state of a connection.