Skip to content

Host sync and recovery ​

Host sync sends regional policy to Metal and returns host capacity and VM state to Atlas. Metal's own reconciler keeps VMs running between syncs.

What a sync exchanges ​

The scheduler selects Metal Servers that are Running with completed setup.

DirectionData
Atlas → MetalComplete WireGuard peer set, privileged VM addresses, image cache policy, and transport mode.
Metal → AtlasCapacity, VM states, and private interface MAC address.
Sequence diagram
Loading diagram...

Metal replaces its managed policy sets and wakes the relevant reconcilers. Atlas stores a capacity sample and updates its VM state cache.

Why sync sends complete sets ​

A complete set repairs policy after a restart or missed sync. Atlas includes a peer only after it has keys, network addresses, and a private interface MAC.

The Atlas Virtual Machine State record remains a cache. Read Metal when you need current guest state.

Failure and recovery ​

FailureResult
Invalid or failed syncAtlas logs the failure and writes no new capacity sample.
Sample older than 2 minutesPlacement excludes the host.
Policy partly appliedThe next full sync can apply it again.
Atlas unavailableMetal continues VM, image, and migration reconciliation.
Metal restartsIt reads its saved records. Guests survive only if systemd preserved their console descriptors.

Check the latest Metal Server Usage timestamp, Atlas Error Log, Metal journal, and VM record.

Details: Placement, Metal operations, and the Metal sync API.

Source code and tests

AGPL-3.0