Function check_system_health

Source
pub fn check_system_health() -> SystemHealth
Expand description

Check system resources and return health status.

Monitors file descriptor usage and CLOSE_WAIT socket count.

  • Below 70% FD usage and <200 CLOSE_WAIT: Healthy
  • 70-80% FD usage or 200-500 CLOSE_WAIT: Degraded
  • Above 80% FD usage or >500 CLOSE_WAIT: Unhealthy