Endpoints
Placement and the VRAM ledger
How the placer chooses cards from measured VRAM, dedicated and shared workers, the auto ladder, time-slicing, and what makes a plan fit or not.
The placer puts each worker the plan does not pin on a node and a card. It judges every plan against the ledger: each card's measured size, what each worker claims on it, and what something outside opod already uses. VRAM is the unit, not whole GPUs. A card that a worker pod of ours holds under an endpoint id this control plane does not know counts as taken too (0.3.0).
In short
The placer decides which machine and which card each worker gets. It decides from measured memory, not from GPU counts: a probe reads every card every 20 s. You either let it choose everything (placement: auto), or you name some or all nodes and cards (placement: explicit) and it fills in the rest. A plan that does not fit is refused with the numbers, before any pod starts.
When you need it
- Before a create: to see how many more copies of a model fit now.
- When a create is refused
E-FITorE-AUTO-NOFIT. - To pack several small models on one card (
colocation: shared, NVIDIA only). - To pin a worker to one machine, or keep it off one.
- To set a team's GPU quota.
Do it
See what is free
curl -s -H "$H" https://cp.example.com/api/v1/capacity/ledger | jq . curl -s -H "$H" "https://cp.example.com/api/v1/capacity/fits?model=qwen2.5-7b-instruct" | jq .The first answers each card's measured, used and free memory and who holds it. The second answers how many more of that model fit, per colocation class, and why the next one is refused.
Choose a shape
Let the control plane choose:
placement: auto model: { id: qwen2.5-7b-instruct }Or pack two small workers on one NVIDIA card, 6 GB each:
placement: explicit colocation: shared model: { id: llama-3.2-3b, engine: llamacpp } workers: - { node: node-c, gpu: 0, vramBudgetGb: 6 } - { node: node-c, gpu: 0, vramBudgetGb: 6 }Preview it
Put the plan in a create body and
POSTit to/api/v1/endpoints/preview(Create). Readclaims(the cards it would take) and, forauto,plan.resolved.why(each rung of the ladder and why it was chosen or rejected).Create it
POSTthe same body to/api/v1/endpoints. The claim appears in the ledger at once.
Check it worked
curl -s -H "$H" https://cp.example.com/api/v1/capacity/ledger \
| jq -c '.nodes[] | {name, class, freeWhole, freeSharedGb, holders: [.holders[]?.workload]}'
# {"name":"node-c","class":"shared","freeWhole":0,"freeSharedGb":12,"holders":["ep_…"]}A good answer lists the endpoint's id (ep_…) under holders on the node from Preview's claims. Each node's devices[] carries the per-card numbers: totalGb, usedGb, externalGb, sharedGb, freeGb. In the console, Capacity ledger shows the claim on that card, and Machines shows the worker on that machine.
If it fails
| Code | Cause | Fix |
|---|---|---|
E-FIT | the plan does not fit; details carries the measured numbers | see What E-FIT says |
E-AUTO-NOFIT | no rung of the auto ladder fits | read details: the need, the free GPUs, the largest card and every rejection |
E-AUTO-SHAPE | an auto plan names a node, a split, gangs or several workers | remove them, or use placement: explicit |
E-SHARED-VENDOR | a shared plan on a card that is not NVIDIA | colocation: dedicated |
E-NODE-CORDONED, E-NODE-TAINTED | the named node is cordoned or tainted | uncordon it, set the toleration it names, or name another node |
E-TELEMETRY-WARMING (0.3.0) | the control plane just started and has not read a card yet | retry after details.retryAfterS |
E-LICENCE, E-QUOTA | the licence or the team's quota is full | a larger licence, a higher quota, or free a GPU |
E-NO-ENGINE | no worker image for that engine on that node's vendor | another engine; the message lists the ones that have an image. From 0.3.2, details.missingImage ("trtllm/nvidia") says the engine runs there and only this install's engineImages value is unset: set it, or pick another engine |
Measured, never assumed
A probe pod per vendor (opodcp-gpu-telemetry-*) reads every card every 20 s (where each vendor's number comes from) and the control plane collects the reading (pushed in 0.3.6; from the release after 0.3.6, read by every replica from each probe): total and used memory, the memory the driver reserves, utilisation, temperature, power, links between cards, the nearest RDMA NIC, and health (uncorrected ECC errors, throttle reasons). Host facts come too: kernel, /dev/shm, the model cache's size and free space, huge pages, NUMA nodes, NICs.
- A card nobody measured is not judged for a shared budget; a plan that needs one waits or is refused.
- A card with uncorrected ECC errors or an active hardware slowdown is fenced for new placements and raises
gpu.unhealthy. Nothing running is killed. - A card with at least 1 GiB in use and nothing of ours on it is held outside: it is not free in the ledger, and the alert
gpu.held-outsidenames the node and card, never what runs there. New in 0.3.0. - Just after the control plane starts, a plan that meets an unread card gets
E-TELEMETRY-WARMINGwith a retry time (details.retryAfterS), not a "full cell" refusal. New in 0.3.0. From 0.3.2 the same answer also covers a dedicated llama.cpp worker whose card has not been read yet: it is refused with a retry time instead of being stored at the 8,192-token default, so it is filled once the card is read.
Dedicated and shared
| Aspect | colocation: dedicated (default) | colocation: shared |
|---|---|---|
| A worker holds | one or more whole cards, through the device plugin | vramBudgetGb on one card, pinned by index |
| Judged against | free whole cards | the card's measured free memory, best fit |
| Isolation | the device plugin's | none: workers on one card share its memory and fault domain |
| Compute | the card's, for this worker alone | one card's, taken in turns: when both endpoints are busy, TTFT and TPOT can rise for both. In the release after 0.3.6 Preview, create and the endpoint page say so (advisory card-shared, naming the other endpoint) |
| Vendors | all | NVIDIA only (E-SHARED-VENDOR elsewhere) |
A node hosts one class at a time. From 0.3.0, a dedicated llama.cpp worker fills its card with KV slots, and a shared worker that states no budget is sized from the model's weights plus a KV pool of 1.15 × its maximum context plus the engine's overhead, rounded up to whole GB. In 0.2.1 every shared worker needs a vramBudgetGb. A stated budget wins. A shared worker cannot be tensor parallel: it is one card. A shared worker on a node with no GPU is refused: a CPU worker is dedicated to its node.
The VRAM ledger: place a model
Change the model or the class: the drawing shows where it goes before you place it
Explicit placement
The plan names what it wants; the placer fills in only what is left empty. You may name a node and gpu, leave them empty, or mix. A plan that names a node is judged on that node only:
E-NODE-CORDONED(uncordon it or name another node),E-NODE-TAINTEDwith the toleration to set,E-VENDOR-UNKNOWNfor a vendor label no driver in this build knows. A node that is not in the cell is refused400.E-FITwhen it does not fit, with the measured numbers and alternatives.E-TP-DOMAINwhen a tensor group is wider than the node's allocatable devices;E-TP-HEADSwhen the tensor degree does not divide the model's attention heads, or neither divides nor is a multiple of its KV heads.E-IMAGE-FAMILYwhen the worker image's compiled code does not cover the node's GPU family. Unknown families never refuse. In 0.3.0 the check reads the image for the engine on that vendor (plan.imagesor the chart's), not a worker's ownimage; from 0.3.2 it reads the image the worker actually runs, override included.E-NO-ENGINEwhen no worker image is declared and configured for the engine on that node's vendor; the message lists the engines that have one. On a GPU-less node only llama.cpp runs.E-NO-ACCELERATORwhen the cell has no node with a GPU or accelerator at all, for an engine that needs one.E-DISKwhen the node's model cache has no room for weights it does not hold yet.
Tensor parallelism may cross nodes. It is allowed and slow on ordinary Ethernet: every token's all-reduce crosses the wire. The plan carries an advisory that says what it costs.
What E-FIT says
E-FIT carries the numbers in details. Its cases:
| Case | Fix |
|---|---|
| a node would host both dedicated and shared workers (one class per node) | another node, or the other class |
| a node is overcommitted: plans need more whole cards than it has allocatable, cards held outside counted | fewer workers there, or another node |
| a card has no measured VRAM, so a shared budget cannot be judged | wait for its probe, or check the telemetry DaemonSet |
| a card is over budget: shared plans reserve more than it measures | a smaller vramBudgetGb, or another card |
| a budget is larger than the card | a smaller budget |
| a time-sliced node presents no whole cards, or no free turns | a node in budget mode |
| one request of the workload's length does not fit beside the weights, or the workload needs more workers than one card holds | a shorter context, fewer requests at once, or more workers |
Automatic placement
placement: auto takes the model (and optionally an engine, a colocation class and one template worker with a budget, flags or replicas, but no node) and resolves the shape by a fixed ladder, cheapest first:
engine the plan's engine → the catalog's → llama.cpp
size the catalog's VRAM hint → weights + 20 % → one whole GPU when unknown
one-gpu the smallest measured card that holds it whole
one-node tensor parallel across the fastest island of cards in one node
across-nodes pipeline parallel across nodes of one vendor; every vendor's nodes together
only for llama.cpp RPC, and only when no single vendor's pool fits
cpu llama.cpp on a GPU-less node, when the cell has no accelerator at allA shared auto plan has one rung instead of the last four: shared, the best-fit card for its budget against the measured free VRAM. The ladder never chooses tensor parallel across nodes; state that shape explicitly. Verified paths only break ties inside one rung.
The answer is written into workers or shardGroups exactly as an explicit plan would state it, judged by the same rules, and pinned in plan.resolved:
{ "path": "…", "shape": "worker", "engine": "llamacpp", "nodes": ["node-a"], "needGb": 6,
"why": [ { "step": "one-gpu", "chosen": "node-a/0", "reason": "…", "rejected": ["…"] } ],
"verified": "none", "resolvedAt": "…", "revision": 1 }verified is none, integration or fleet. A node that joins later never re-shapes a running endpoint. Only a rollout re-resolves. Refusals: E-AUTO-SHAPE (an auto plan that names a node, a split, gangs or several workers), E-AUTO-SIZE (a shared plan with nothing to size the model), E-AUTO-NOFIT (no rung fits: the need, the free GPUs, the largest card, every rejection, and alternatives), E-UNVERIFIED (with verifiedOnly, the rung found an unproven path).
placement: auto — the ladder, cheapest rung first
An empty illustrative cell · drag the weights; each rung says why it fits or not
size = weights + 20 % = 36 GB (when the catalog gives no VRAM hint)
- one-gpunode-a/0 (48 GB) is the smallest card that holds 36 GB
- one-nodenot reached
- across-nodesnot reached
plan.resolved with every rejected rung in why. A node that joins later never re-shapes it; only a rollout re-resolves.Spread
The placer keeps one endpoint's workers and gangs on different machines: a gang's own siblings first, then the endpoint's other workers. It stacks two on one machine only when no other machine of the right class has a free card, and says so (workers.stacked). Autoscaled workers follow the same rule. With two serving units or more, the workers get a PodDisruptionBudget of maxUnavailable: 1. Spread and the budget are new in 0.3.0.
Licence and quota
The same judgement applies the licence ceiling (E-LICENCE) and the team's GPU quota (E-QUOTA). Both gate new placements only. A team quota counts a dedicated worker as one card and a team's shared workers on one card as that one card.
E-LICENCE names which line it crossed: the cell would hold more GPUs than the fleet licence allows, a card is outside the licensed set of the cell, or a node has fewer licensed cards free than the plan asks. details carries the tier, the licensed and the held counts. See Licensing.
curl -s -H "$H" -X PUT https://cp.example.com/api/v1/team-quotas \
-H 'Content-Type: application/json' -d '[{"team":"search","gpus":8}]'GET /api/v1/team-quotas reads them; a team-scoped caller sees only their team. Setting them needs admin.
Time-sliced machines
Time-slicing is new in 0.3.0. Machines → Time-slice this machine (or POST /api/v1/nodes/{name}/sharing {"mode":"timeslice"}, admin) makes NVIDIA's plugin present each card of that machine as 2, 4 or 8 turns (nvidia.com/gpu.shared). slices sets the turns per card; left out, the control plane picks the one suggested for the card. Only the counts in substrate.nvidiaDevicePlugin.timeSlicing.choices are accepted. {"mode":"budget"} switches the machine back.
Shared workers there take one turn each and may budget at most one turn's worth of VRAM (E-SLICE-BUDGET). It gives scheduling, not capacity: memory is not isolated, and on a busy card more turns give less total output.
| Refusal | Cause |
|---|---|
E-SHARING-BUSY | the machine runs work the switch would strand; move or delete it first (Machines → Evacuate for ours) |
E-SHARING-VENDOR | the machine is not NVIDIA |
E-NODE-UNKNOWN | no node of that name |
A time-sliced machine whose plugin presents no turns yet refuses new shared workers until it does.
planned Hard isolation with NVIDIA MIG (a worker that asks for isolation: hard gets one MIG profile, and the ledger counts profiles instead of cards) is designed and not built: no plan field takes it yet. Today the placer only leaves a resource advertised as nvidia.com/mig-<profile> out of a node's whole-card count, so a dedicated worker is never placed on a MIG slice.
Read the ledger
| Route | Answers |
|---|---|
GET /api/v1/capacity/ledger | per node and card: measured, used, outside use, shared budgets, free, holders, fenced, placeable |
GET /api/v1/capacity/fits?model=<id> | how many more of a model would be placed now, per colocation class, and why the next is refused |
GET /api/v1/nodes | each node with its cards, holders, taints, host facts and health |
GET /api/v1/compat/resolve?vendor=&engine=&model=&tensor= | whether a shape runs on this silicon with this engine |
GET /api/v1/compat/verified | the paths this control plane has proven |
The console's Capacity ledger page draws the first; Machines draws the third.
Last updated · Source: content/docs/control-plane-endpoints/placement.mdx · View as Markdown