Module health

Source
Expand description

Health monitoring and circuit breaker for the plugin pool.

This module provides:

  • Circuit breaker pattern for automatic degradation under stress
  • Health status reporting for monitoring
  • Dead server detection for automatic recovery

Structs§

CircuitBreaker
Circuit breaker for managing pool health and automatic recovery. Tracks failure rates and response times to detect GC pressure.
HealthStatus
Health status information from the pool server
ResultRingBuffer
Lock-free ring buffer for tracking recent results (sliding window)

Enums§

CircuitState
Circuit breaker state for automatic degradation under stress
DeadServerIndicator
Indicators that the pool server is dead or unreachable. Using an enum instead of string matching for type safety and documentation.
ProcessStatus
Process status for health check decisions