Skip to main content

Module health

Module health 

Source
Expand description

Health state machine and tracking for backend nodes.

Structs§

ConsecutiveFailurePolicy
Marks a node unhealthy after N consecutive failures, recovers after M successes.
ConsecutiveFailurePolicyBuilder
Use builder syntax to set the required parameters and finish by calling the method Self::build().
HealthTracker
Tracks health state for a set of nodes identified by Id.
NodeHealth
Mutable runtime health counters for a single node.

Enums§

HealthStatus
Current health state of a node.
Outcome
Classified result of a request, allowing HealthPolicy to distinguish between different failure modes.

Traits§

HealthPolicy
Determines how health status transitions based on success/failure signals.