Skip to content

Scheduler capabilities

A scheduler capability is what a node reports it can do. Placement decisions are made against these records rather than against a node's answer at scheduling time, so a node that is unreachable is still placeable against or excluded from.

Five operations

Operation Does
Upsert Records what a node reports
Project runtime report Turns a node's report into the recorded projection
Get Reads one node's capability
List Reads them across nodes
Assert usable Decides whether a capability may be selected

The projection step matters: a node's raw report is normalised into a recorded shape under system.scheduler_capability_projection.v1 rather than stored as received.

Reported facts, central decisions

flowchart TB
  subgraph N["XRATUD"]
    direction TB
    RAW["Raw report<br/>provider, region, cluster,<br/>capacity, accelerators, fabric"]
  end
  subgraph CP["CONTROL PLANE"]
    direction TB
    PJ{{"Projection<br/>system.scheduler_capability_projection.v1"}}
    REC[("Scheduler capability record")]
    US{{"Assert usable"}}
    SCH["Scheduler"]
    PJ --> REC
    REC --> US --> SCH
  end
  RAW -->|"reported"| PJ

The node's report stops at the projection, and the scheduler reads only the recorded shape the projection produces. What a node said about itself becomes a fact the control plane decides from, rather than an input it trusts as received.

A node contributes facts about itself: provider, region, cluster, namespaces, capacity, accelerators, fabric baseline. The decision that follows is the control plane's. See Control plane as source of truth.

Two refusals

SCHEDULER_CAPABILITY_INVALID_ARGUMENT
SCHEDULER_CAPABILITY_NOT_FOUND

The assert operation is what turns a capability record into a gate. A placement that names a capability which does not exist, or supplies an argument that does not validate, is refused before an assignment is authored rather than failing at the node.

Why placement reads records rather than asking

Asking a node at scheduling time would make placement depend on the link being up, and would make two schedulers see different answers. Reading the projected record makes placement deterministic against recorded state, which is the same property that lets a scheduling decision be explained afterwards.

A node whose reported capability is stale is a known condition with a known remedy: it reports again on its next cycle.

The fabric baseline is a capability

Cross-node private fabric is part of what a node reports it can participate in. Binding locality planning reads that when deciding whether a fabric route is available, which is why a plan can resolve to reject rather than assuming a route can be built. See Binding routing and locality.

Capabilities and accelerators

GPU sharing modes and accelerator tokens are part of the same picture. A model runtime's declared sharing mode is resolved into a contract that names a node selector, and the node's reported accelerators are what make that selector satisfiable. See GPU sharing.