Skip to main content

Module supervisor

Module supervisor 

Source

Structs§

Supervisor
Manages running node processes. Holds child process handles and runtime state.

Constants§

EVICTION_POLL_INTERVAL
How often the low-disk monitor checks free space at node data directories and evicts a node if a partition has fallen to its eviction threshold.
LIVENESS_POLL_INTERVAL
How often the liveness poll verifies that each Running node’s OS process still exists.
UPGRADE_POLL_INTERVAL
How often the upgrade-detection task polls each running node’s binary for a version change.

Functions§

build_node_args
Build CLI arguments for the node binary from a NodeConfig.
spawn_eviction_monitor
Background task: monitor free disk space at each node’s data directory and, when a partition falls to its eviction threshold, automatically evict a node to reclaim space.
spawn_liveness_monitor
Poll each Running node’s PID for OS liveness every LIVENESS_POLL_INTERVAL, flipping dead ones to Stopped and emitting NodeStopped.
spawn_upgrade_monitor
Periodically probe each Running node’s on-disk binary for a version change.