Node lifecycle
A node is a machine in the cluster that runs a Realm agent. Each node is declared in the nodes section of the config with the URL of its agent and a node driver (linux or windows). The driver handles power management (power on through Wake-on-LAN, power off, shutdown, restart) and reports the node’s state. See Configuration for the available fields.
The CLI never runs loads directly: it sends each node its node configuration, which includes its loads, and the agent on the node runs them.
stateDiagram-v2 [*] --> Offline Offline --> Online: PowerOn Online --> Ready: Load Config Ready --> Online: Unload Config Online --> Offline: Shutdown/PowerOff Error --> Offline: Shutdown/PowerOffStates
Section titled “States”| State | Meaning |
|---|---|
offline |
The agent doesn’t answer: the machine is powered off or unreachable |
online |
The agent answers, but no node configuration has been loaded yet |
ready |
The node configuration is loaded and its loads can be provisioned and started |
error |
The agent answers, but the node driver failed to report the node status |
Check the state of the nodes with realm nodes state.
Transitions
Section titled “Transitions”- PowerOn:
realm nodes poweronpowers the machine on, through Wake-on-LAN when it is enabled in the driver config. The CLI waits up to the node’s start timeout for the agent to answer. - Load Config: the node configuration is sent to the agent.
realm startandrealm updatedo this for every node in the planned state. - Unload Config: the node configuration is removed from the agent, returning the node to
online. - Shutdown/PowerOff:
realm nodes shutdownandrealm nodes poweroffturn the machine off.realm stopstops all loads first and then powers the nodes off, waiting up to the stop timeout for each agent to go down.
A node that is already ready only accepts a new configuration if its static settings (URL, driver, driver config, cloud-init) are unchanged. Loads, timeouts and registries can be changed on a running node with realm update.