What Is Kueue? Why Training Jobs Can Wait Even with GPUs Free
When a GPU job doesnât start, the first thing to check is often whether a node has a free GPU. But policy can hold a job even when hardware is available. Thatâs the distinction I wanted to check when adding Kueue. Waiting for hardware and waiting for permission under a queue quota are different problems.
Kubeflow Trainer defines what training job to run and which runtime to use. Kueue decides when supported jobs may start. This article explains what Kueue controls and what I wanted to check by preparing three GPU jobs. It isnât an installation guide.
Admission and node placement are different steps
Section titled âAdmission and node placement are different stepsâKueue calls the permission to start admission. It puts jobs that request resources into a queue and applies quota and policy to decide whether to release them for execution. Once an admitted job creates Pods, kube-scheduler still decides which nodes they go on.
When investigating a wait, first check whether a Pod was created. A standard Job managed by Kueue can stay suspended until it is admitted. If a Pod already exists, check placement constraints such as node labels, resources, and affinity separately. Passing the queue doesnât prove that placement succeeded.
The diagram separates admission from Pod placement for a standard Job managed by Kueue.
Four resources that make up a queue
Section titled âFour resources that make up a queueâ| Resource | What it represents |
|---|---|
LocalQueue | The entry point in the jobâs namespace. It points to a ClusterQueue. |
ClusterQueue | A cluster-scoped queue that governs quota by resource type and applies policy. |
ResourceFlavor | Characteristics of a resource pool, identified through fields such as node labels. It does not create devices or partition GPUs. |
Workload | The resource requests and admission state that Kueue tracks for a job. It serves a different purpose from the original Job. |
For example, ResourceFlavor distinguishes GPUs exposed by nodes, and ClusterQueue sets how much the queue can use. The person submitting a job picks a LocalQueue in their namespace rather than picking a node. The quota available to that queue need not match the hardware the nodes advertise.
What the three GPU jobs were meant to show
Section titled âWhat the three GPU jobs were meant to showâThe test uses MIG (Multi-Instance GPU), which splits a GPU into independent devices. A node has four MIG resources, and each job requests one. The ClusterQueue quota is only two. That gap is deliberate: it separates a hardware shortage from a queue quota limit.
| Point in the test | Expected behavior |
|---|---|
| Submit three jobs that request one resource each. | The node has enough resources, but only two jobs are admitted and one waits. |
| One of the first admitted jobs finishes. | Once quota is returned, the waiting job can be admitted if no other constraint applies. |
| Investigate the waiting job. | Check Kueueâs Workload admission status first. If a Pod exists, check placement separately. |
The table describes expected results. The work record covers the installation configuration, preparation of the queues and test job manifests, manifest rendering, and some server-side dry-run checks. The first attempt to validate the queue resources couldnât complete because the custom resource definitions (CRDs) werenât available. I found no record of observing the three jobs wait, get admitted, and finish. A manifest rendering successfully is separate evidence from Kueue controlling live GPU jobs.
How this relates to Kubeflow Trainer
Section titled âHow this relates to Kubeflow TrainerâWith the integration enabled, a Trainer v2 TrainJob can also pick a LocalQueue and go through admission. Trainer defines the training runtime and the job. Kueue policy decides which jobs may start now. The test case used standard Kubernetes Job objects, so the Trainer integration is a connection documented by Kubeflow, not a result verified in this test.
When a training job doesnât start even though GPUs are free, ask two separate questions: âIs the hardware available?â and âDoes this queue allow the job to use it now?â