Loading…
Topic
Kueue
2 posts about Kueue. Every summary links to the original.
- 2 posts
- 1 company
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
Posts
How Kueue schedules Spark jobs fairly on Red Hat OpenShift AI
Kubernetes schedules individual pods but does not decide which Spark application should receive a team’s quota first, so concurrent submissions can leave driver pods stuck and pipelines racing for nodes. Kueue intercepts a SparkApplication before the Kubeflow Spark operator creates driver or executor pods, creating a Workload and admitting it only when declared CPU and memory fit ClusterQueue quota. The walkthrough builds a self-managed queue for the spark-team-a project with a ClusterQueue reserving 3 CPUs and 4 GiB, then submits a SparkApplication carrying the kueue.x-k8s.io/queue-name label. A second copy remains suspended while the first consumes the quota and is admitted automatically after the first completes. Preemption deletes all driver and executor pods, losing in-memory state, shuffle data, and ephemeral files, while quota is reserved from declared requests rather than runtime utilization.
Smarter GPU sharing: How Red Hat build of Kueue works with dynamic resource allocation
The Kubernetes device plugin model treats GPUs as anonymous integers, making fair sharing impossible because a full 80 GB GPU and a 5 GB partition both consume ‘1’ from the same quota. Dynamic resource allocation (DRA), generally available in Kubernetes 1.34, replaces this by having drivers advertise real device attributes like memory and compute capability, but DRA alone does not address quota management or preemption. Red Hat build of Kueue 1.4 on Red Hat OpenShift integrates with DRA to enforce quota, borrowing, and preemption for both whole GPUs and partitionable devices using device-count or counter-based memory accounting. For partitionable GPUs, Kueue reads counter data from DRA drivers and charges GPU memory against ClusterQueue quota instead of device count, enabling accurate fair sharing between training and inference workloads. Future developments include extended resources for simpler adoption without ResourceClaimTemplates, consumable capacity for dynamic time-slicing, and scheduler-library integration to verify scheduling feasibility.
Related topics
All topics →Weekly digest
The best engineering reads, once a week.