Scheduler¶
Constraint matching first, scoring second. Steady state is saturation — more recipes than hardware — so the scheduler continuously selects from a deep backlog. FIFO is not viable.
Hard constraints (filter)¶
The job's constraint expression over the fleet field
namespace — topology kind, node count, memory, driver version (exact match
required within any tensor-parallel group — NCCL will not tolerate a mixed
TP group), link speeds, frequency floors, node blocklists (not in),
model/image locality, pinning (node or job-relative), dependency completion.
Every clause filters; nothing here scores.
Composite jobs and pinning¶
Pinning and depends_on are hard constraints: a job with unmet dependencies
never schedules, and a job pinned to a node waits for that node. Composite
(multi-step) jobs reserve the node for the entire step sequence — the
scheduler never interleaves another job between steps, which is what makes
the A/B valid.
Soft preferences (score)¶
Prefer 200G fabric (100G acceptable), prefer unthrottled nodes, prefer nodes already holding the model/image, prefer matching driver version when bisecting, prefer reliable nodes (per-node MTBF from stable-ID history — never put the 4-spark gang job on the node that drops every evening).
Setup-cost-aware placement¶
Every placement prices in:
- Image pull cost — layer-diff-aware. Node daemons report image inventories with layer digests, so the scheduler knows a 2 GB diff from a 40 GB pull.
- Model transfer cost — source selection by measured throughput: fabric peer > cross-site peer > HF.
- Driver-flip cost — changing a node's driver version is a maintenance op, priced accordingly.
Warm nodes win ties.
Gang scheduling with time-window alignment + backfill¶
Multi-node jobs commit only when all members' projected free times land in the same window. Short jobs that provably finish before the window backfill the drain period — kernel-bench jobs are ideal for this — so nodes never sit idle waiting on a straggler. Placement targets enumerated groups: a group is eligible iff all members are free, claims are transactional, and the scorer packs small jobs onto nodes the queued large jobs aren't waiting for (shape-aware packing against overlapping groups).
Client accounting without quota enforcement (v1)¶
No hard quotas: clients dump tasks and compete on scheduler priority (client-set priority + aging + setup-cost efficiency). The controller keeps per-client usage accounting from day one (GPU-hours, by job type) so the operator can see who burns what. Wasteful or abusive clients get their token revoked and their queued jobs dropped — a human decision with data, not an automated limit. Hard quotas can be layered on later without breaking the API, since the metering already exists.
Queue hygiene¶
- Dedup on submit: hash recipe + config + constraint class; on hit, return the cached result instantly. Under saturation every redundant run displaces real work.
- Supersede is first-class: "replace job X with job Y" inherits X's queue position and records lineage. Agents must not be punished for fixing bugs.
- Cancel always allowed for a client's own jobs. Cancelling a running job shows the wasted GPU-time and keeps partial results.
- TTLs with renewal on queued jobs; per-client depth caps.
Driver fleet rebalancing¶
Driver versions are fleet inventory managed against queue demand: if ~30% of queued jobs need 590.x, ~30% of nodes should run it. Rebalancing is a scheduled maintenance op: drain → flip driver → re-fingerprint (config-version bump) → return to pool.
Interference rules¶
No transfers while a job is flagged profiling=true (disk/PCIe contention
moves numbers); the node daemon pauses transfers, and every result row records
whether the node was quiescent.