Nodes

Receive a heartbeat from a worker node

Changed on
post/internal/nodes/{node_id}/heartbeat

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    none declared

Path parameters

node_idinteger required

Node ID

Request body

architecturestring nullable

Container platform of this node's Docker daemon (linux/amd64, linux/arm64), read from docker info by the agent. Absent from pre-multi-arch agents; the stored value is then left untouched.

capacityunknown
deployments_without_resolverinteger[] nullable

Deployment ids with a container on this node created without the node's cluster resolver, so it cannot resolve *.temps.local until redeployed. Empty while cluster DNS is off; absent from older agents, which leaves the stored value untouched.

disk_healthobject nullable

Software RAID and drive SMART health read by the agent (temps_metrics::collector::disk_health::DiskHealthReport). Kept as raw JSON here and parsed after the heartbeat is recorded, so a malformed report from a mismatched agent version costs only the disk metrics, never the heartbeat that keeps the node online.

docker_socket_projectsstring[] nullable

Project slugs this node grants host Docker access to (ADR 045), read by the agent from its own TEMPS_DOCKER_SOCKET_PROJECTS.

Advisory only: it tells the scheduler where a granted project may be placed. It can never cause a socket to be mounted — that decision is made by the executing process against its own environment. None from a pre-ADR-045 agent leaves the stored value untouched; an empty array clears it.

instancesobject[] nullable

What the node runtime observed of the workload instances assigned to this node (ADR-055 §7), only those that changed since its last accepted heartbeat. Sent by agents that advertise the state_stream capability; absent from older agents. A report this control plane cannot read is dropped (and logged), never the heartbeat.

labelsunknown
overlay_vxlan_vniinteger nullable

The VXLAN network ID this node's overlay follows (ADR 062): that of the last peer list it acted on. Absent from older agents, which run every overlay on 42.

Response

Heartbeat received

instances_acceptedboolean required

Whether the instance reports in this heartbeat (ADR-055 §7) were recorded. false when it carried none, when recording them failed, or when this process runs no node state stream: the node must keep resending them until a heartbeat answers true. The heartbeat itself still succeeds, so a failed ingest never costs the node its liveness. Absent from older servers, which agents read as false.

messagestring required
statusstring required

Changes

    • info

      added the new optional request property overlay_vxlan_vni

    • info

      added the new optional request property deployments_without_resolver

    • info

      added the new optional request property instances

    2 more changes in this revision