Skip to content

What Is Kueue? Why Training Jobs Can Wait Even with GPUs Free

Interactive Diagram

새 탭 ↗

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.

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.

PlantUML Diagram

The diagram separates admission from Pod placement for a standard Job managed by Kueue.

ResourceWhat it represents
LocalQueueThe entry point in the job’s namespace. It points to a ClusterQueue.
ClusterQueueA cluster-scoped queue that governs quota by resource type and applies policy.
ResourceFlavorCharacteristics of a resource pool, identified through fields such as node labels. It does not create devices or partition GPUs.
WorkloadThe 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.

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 testExpected 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.

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?”