Expand description
§Deterministic Boot Finite State Machine
Implements a production-grade boot sequence with:
- Well-defined states:
Init → Migrate → Recover → Warmup → Ready - Time budgets for each phase (for Kubernetes probe alignment)
- Progress reporting for external observability
- Recovery modes: Normal, ReadOnlyRecovery, ForceRecovery
§Kubernetes Integration
The FSM exports progress metrics that align with K8s probe semantics:
startupProbe: tolerates long recovery (uses recovery budget)readinessProbe: true only when FSM is inReadylivenessProbe: heartbeat-based (separate from FSM)
§Safety Property
Ready ⇒ (recovery_complete ∧ invariants_checked ∧ services_registered)
§Complexity Bounds
Recovery is O(|WAL| + |checkpoint|). The FSM tracks and exposes this to allow operators to configure appropriate probe timeouts.
Structs§
- Boot
Budgets - Time budget configuration for each boot phase
- Boot
Error - Error during boot
- Boot
Metrics - Boot metrics for observability
- Boot
Orchestrator - Boot orchestrator that coordinates the full boot sequence
- Boot
State Machine - Boot state machine with thread-safe state transitions
- Health
Status - Health status for probes and observability
- Phase
Progress - Progress information for a boot phase
- Preload
Hints - Preload hints for deterministic warmup
Enums§
- Boot
Phase - Boot phase states (DFA transitions)
- Recovery
Mode - Recovery mode configuration