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§
- Health
Check Config - Health check configuration
- Health
Check Result - Health check result
- Health
Details - Additional health check details
- Health
Probe - Health probe for a kernel
Traits§
- Health
Check - Health check trait for components
Functions§
- aggregate_
health - Aggregate health from multiple checks