Module health

Module health 

Source
Expand description

Health Checking

Provides health checking infrastructure for kernels and the runtime.

§Features

  • Liveness probes (is the kernel alive?)
  • Readiness probes (is the kernel ready to serve?)
  • Health aggregation for kernel groups
  • Degradation mode support

§Example

use rustkernel_core::resilience::health::{HealthCheck, HealthProbe};

let probe = HealthProbe::new("graph/pagerank")
    .with_interval(Duration::from_secs(10))
    .with_timeout(Duration::from_secs(5));

let result = probe.check(&kernel).await;
println!("Health: {:?}", result.status);

Structs§

HealthCheckConfig
Health check configuration
HealthCheckResult
Health check result
HealthDetails
Additional health check details
HealthProbe
Health probe for a kernel

Traits§

HealthCheck
Health check trait for components

Functions§

aggregate_health
Aggregate health from multiple checks