Expand description
Unified runtime context for RingKernel enterprise features.
This module provides a comprehensive runtime context that instantiates and manages all enterprise features (observability, health, multi-GPU, migration) based on the unified configuration.
§Example
ⓘ
use ringkernel_core::runtime_context::RuntimeBuilder;
use ringkernel_core::config::RingKernelConfig;
// Create runtime with default configuration
let runtime = RuntimeBuilder::new()
.with_config(RingKernelConfig::production())
.build()?;
// Access enterprise features
let health = runtime.health_checker();
let metrics = runtime.prometheus_exporter();
let coordinator = runtime.multi_gpu_coordinator();
// Graceful shutdown
runtime.shutdown().await?;Structs§
- AppInfo
- Application information.
- Background
Task Status - Status of background tasks.
- Circuit
Guard - Guard for executing operations with circuit breaker protection.
- Context
Metrics - Context metrics for monitoring the unified runtime.
- Degradation
Guard - Guard for graceful degradation.
- Health
Cycle Result - Result of a health check cycle run by the runtime context.
- Monitoring
Config - Configuration for background monitoring loops.
- Monitoring
Handles - Handles for background monitoring tasks.
- Ring
Kernel Context - Unified runtime context managing all enterprise features.
- Runtime
Builder - Builder for RingKernelContext.
- Runtime
Stats Snapshot - Snapshot of runtime statistics.
- Shutdown
Report - Report generated after shutdown completes.
- Watchdog
Result - Result of a watchdog scan cycle.
Enums§
- Lifecycle
State - State of the runtime lifecycle.
- Operation
Priority - Operation priority for load shedding decisions.