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Β§
- Fleet
Backend π - Fleet control-plane backend, selected by
--fleet-backend/PROSPERO_FLEET.
FunctionsΒ§
- default_
data_ πdir - Default data dir:
$XDG_DATA_HOME/prosperoor$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=VALUEpair (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 theHOSTNAMEenv (the pod name in k8s), else a local fallback. - shutdown_
signal π - Resolve when the process receives Ctrl-C (and SIGTERM on Unix).