Skip to main content

Crate prosperod

Crate prosperod 

Source
Expand description

prosperod β€” the long-running Prospero control-plane daemon.

Wires a [FleetManager] to the HTTP/SSE API + dashboard, runs the background poll loop, and serves until interrupted.

StructsΒ§

Args πŸ”’
Prospero control-plane daemon.

EnumsΒ§

FleetBackend πŸ”’
Fleet control-plane backend, selected by --fleet-backend/PROSPERO_FLEET.

FunctionsΒ§

default_data_dir πŸ”’
Default data dir: $XDG_DATA_HOME/prospero or $HOME/.local/share/prospero.
heartbeat_interval πŸ”’
Heartbeat period: explicit --heartbeat-interval-ms, else a third of the lease TTL (clamped to at least 1s so a tiny TTL can’t busy-loop).
main πŸ”’
parse_key_val πŸ”’
Parse a KEY=VALUE pair (value may contain further =).
read_token_file πŸ”’
require_token_tls πŸ”’
Read a bearer token from a mounted-Secret file, trimming the trailing whitespace/newline that Secret files commonly carry. A missing or unreadable path is fatal β€” a silently-empty token would defeat auth.
resolve_replica_id πŸ”’
This replica’s lease identity: the explicit --replica-id, else the HOSTNAME env (the pod name in k8s), else a local fallback.
shutdown_signal πŸ”’
Resolve when the process receives Ctrl-C (and SIGTERM on Unix).