Dataplane discovery, enrollment, and pools¶
Three steps bring a node into a deployment. Discovery establishes whether the two sides are compatible, enrollment gives the node an identity, and a pool says which work it is eligible for.
Discovery is a compatibility handshake¶
A node presents what it is, by version:
dataplane_product_version what the node is running
transport_protocol_version the transport it speaks
assignment_schema_version the assignment shape it understands
credential_issuer_contract_version the credential contract it expects
cp_instance_uuid, cp_identity_revision which control plane it believes it is talking to
The control plane answers with what it is and what it permits:
discovery_version
cp_instance_uuid, cp_identity_revision
tenancy_policy_revision, tenancy_policy_source_spec_digest
max_tenants
max_active_dataplanes_per_tenant
max_active_runtime_instances_per_dataplane
transport_profile
protocol_versions, assignment_schema_versions
compatibility_window
The limits arrive at discovery rather than being discovered by hitting them, so a node knows its ceiling before it enrolls. The compatibility window states which versions are acceptable, so a node can tell "not yet supported" from "no longer supported".
Enrollment gives a node its identity¶
flowchart LR
subgraph CP["CONTROL PLANE"]
direction TB
INV[("Invitation<br/>scoped")]
ENR[("Enrollment state")]
OS[("Operation stream<br/>dataplane.enrollment")]
REG["Registration and pull"]
ENR --> OS
end
subgraph N["THE NODE"]
direction TB
XD["xratud"]
SEED[("Seed and durable<br/>node identity")]
XD --- SEED
end
INV -->|"code, handed to the node"| XD
XD -->|"exchanges the code"| ENR
ENR -->|"seed"| SEED
XD -->|"every start"| REG
The seed ends up on the node's durable state, and from then on the node reaches the control plane through registration, not through the invitation. The invitation is used at enrollment, and the identity it produced survives the node's restarts.
Enrollment runs as an async operation under the dataplane.enrollment family,
so its progress is followed on the operation stream. See
Async operations.
Identity is per node, never per workspace¶
dataplane_uuid the node
dataplane_installation_uuid the installation that produced it
dataplane_instance_uuid this instance of it
Enrollment is performed once per data plane identity. The work a node receives is scoped separately, which is why one node can serve many workspaces without enrolling again.
The three identifiers separate concerns that otherwise blur: the node, the installation that created it, and the current running instance. A restart keeps the first two and changes the third.
Enrollment has states, not just a result¶
Enrollment transitions through recorded states rather than flipping from absent to present, and the detail is projectable. A node stuck partway through is readable as a state with a reason rather than as an absence.
Pools decide eligibility¶
| Operation | Does |
|---|---|
| Create pool | Defines a pool within a tenant scope |
| List pools | Reads the pools that exist |
| Get pool | Reads one |
Three refusals cover what can go wrong:
DATAPLANE_POOL_NOT_FOUND
DATAPLANE_POOL_TENANT_SCOPE_NOT_FOUND
DATAPLANE_POOL_TENANT_SCOPE_FORBIDDEN
The last two are worth telling apart: a tenant scope that does not exist is a different problem from one the caller may not use.
A node's pool travels in its runtime credential, and shared-mode dispatch admission checks it. See Admission and tenancy scoping.