Fleet Query & Constraint Expressions¶
A client (usually an agent-driven harness) needs to answer two questions: what does the fleet look like right now, and how do I ask for exactly the hardware I want. This page defines both.
Fleet visibility¶
GET /nodes— every node: stable ID, donor display name, site, health, and the full fingerprint metadata below.GET /nodes/{id}— detail: current activity, link measurements, recent history.GET /topology— nodes, fabric links with measured speeds, and named groups.
No privileged fields: everything a client can filter on, a client can read.
Topology enumeration¶
Groups are not hand-configured — the pool discovers them. Registration (and every link re-measure) runs enumeration over the measured link graph (nodes as vertices, fabric links as edges with speed, type, MTU):
- Match templates. The pool looks for a fixed set of predefined topologies:
2-spark— two nodes with mutual fabric reachability at or above threshold (a direct link, or via a shared switch)3/4/6-spark-ring— a cycle of direct links of that length (the ring is specifically a direct-cable topology; a "ring" over a switch is just the switched lane)4/6/8-spark— N nodes sharing one switch- Name. Deterministic canonical names from member IDs
(
pair-dgx1-dgx2; rings in cycle order, rotations/reversals canonicalized to one name). - Speed. Each group's effective speed is the minimum over its links
— the weakest link defines the group (
group.min_link_gbps).
A node belongs to every group it qualifies for. Four Sparks in a ring yield
four 2-spark groups (the four direct edges — not the diagonals; no link,
no group) and one 4-spark-ring.
Blocking is derived, not locked. A group is available iff all its members
are free — a view over node state, not a separate lock. If dgx1 is running a
job, pair-dgx1-dgx2, pair-dgx1-dgx4, and the 4-ring all read unavailable.
Gang claims are transactional in the scheduler, so two jobs can't grab the
same pair in the same tick.
Recomputed on change. Any link re-measure that changes an edge speed
re-runs enumeration incrementally: groups appear, disappear, or change their
min_link_gbps. A flaky cable degrading 200G→90G automatically demotes every
group containing it — no operator action.
Edge cases¶
Mixed-speed switch — 8 Sparks: 4×200G, 2×100G, 2×50G. No direct links,
so no rings. Pairs: all 28, each at min(uplink_a, uplink_b) — six at 200G,
the rest at 100G or 50G. 4/6/8-spark subsets at their min uplink; the single
8-spark group runs at 50G. The weakest-link rule stratifies the fleet
automatically: group.min_link_gbps > 150 matches only the six 200G pairs
and the all-200G 4-set. The 50G nodes still serve bandwidth-insensitive jobs,
and the scorer penalizes speed-heterogeneous groups — mixing a 50G node into
a 200G set wastes the fast uplinks, since NCCL moves at the slowest link.
Sub-threshold links. Each template has a minimum speed (pool config); links below it aren't fabric edges at all. 1G management connectivity never creates a "pair".
No-fabric nodes. A node with no fabric links forms only single-node groups. Still useful — most kernel-bench work is single-node.
Combinatorial bound. 16 nodes on a switch → ~23k switched subsets. Fine: groups are small derived rows, recomputed incrementally on link change, never hand-managed. Deterministic names; no human reads all 23k.
Overlapping groups and fragmentation. Taking pair-dgx1-dgx2 for a small
job blocks the 4-ring — inherent to overlapping shapes. The scorer prefers
placements that block the fewest queued large jobs (shape-aware packing),
so small jobs pack onto nodes the big jobs aren't waiting for.
Cross-site. Groups are per-site. Fabric is site-local; cross-site is for model bytes, not collectives.
Field namespace¶
Every field below is measured (fingerprint, join bench, or periodic re-measure) — never donor-asserted. Unknown fields in an expression are rejected with a clear error.
| Field | Source | Unit |
|---|---|---|
node.id |
stable identity | string |
node.display_name |
donor-chosen | string |
node.site |
operator | string |
node.health |
healthy / degraded / unreachable | string |
gpu.fp4_tflops |
join-bench (pool image) | TFLOPS |
gpu.freq_limit_mhz |
configured cap | MHz |
gpu.freq_recorded_mhz |
achieved under bench | MHz |
gpu.membw_gbs |
measured | GB/s |
mem.allocatable_gb |
measured CUDA-allocatable (unified) | GB |
cpu.governor |
e.g. schedutil |
string |
cpu.perf_score |
simple relative bench in certify (provisional) | number |
disk.free_gb |
GB | |
disk.seq_read_mbs, disk.seq_write_mbs |
fio | MB/s |
disk.rand_read_iops, disk.rand_write_iops |
fio 4k | IOPS |
kernel.version, driver.version, cuda.version |
version | |
link.type |
roce / tcp |
string |
link.speed_gbps |
measured iperf3 | Gbps |
link.mtu |
bytes | |
group.name, group.kind (single/pair/ring/switched), group.size |
||
group.min_link_gbps |
weakest link in the group | Gbps |
Constraint expressions¶
Job specs carry constraints as a string expression, not nested JSON —
harnesses (especially LLM-driven ones) write it naturally, and the parser is
a restricted grammar over the fixed namespace above (no eval, no
arbitrary code):
"constraints": "gpu.freq_recorded_mhz > 2200 and link.speed_gbps > 150"
- Comparisons:
> < >= <= == != - Membership:
in,not in— the blocklist case:"node.id not in [\"n-8f2c…\", \"n-31ce…\"]"(burned once, never again) - Boolean:
and,or,not, parentheses - Unit suffixes normalized:
2200MHz,2.2GHz,150Gbps,115GB - Version fields compare semantically:
driver.version >= "580.0" - String equality:
node.display_name == "Space Bunny",cpu.governor == "schedutil"
Node-scoped fields filter single-node jobs; link.* / group.* fields
filter group selection for multi-node jobs. Every clause is a hard filter —
soft preferences (locality, setup cost) stay in the scheduler's scoring.
Dry-run matching¶
POST /jobs/match takes resources + constraints and returns the
matching nodes/groups with the fields the expression touched — "show me what
my filter hits before I submit 50 jobs." A filter matching nothing is a
client bug worth catching early, not a job worth queueing.
Digests echo the match¶
Every result digest includes the node/group metadata the job was constrained
on, so results are self-describing: a reader sees
gpu.freq_recorded_mhz: 2210 next to the numbers without a second query.