AI overview
Kueue controls when SparkApplications may start by suspending each submission, evaluating its declared CPU and memory against a ClusterQueue, and admitting it to the Spark Operator when quota is available. In the example, a self-managed queue reserves 3 CPUs and 4 GiB: one app with a driver and two executors fits, while a second waits without creating pods and starts after the first finishes. Setup requires the external Red Hat build of Kueue, SparkApplication framework integration and RBAC, a ResourceFlavor/ClusterQueue/LocalQueue, and a queue-name label on every app. The excerpt warns that preemption deletes driver and executor pods without checkpointing, dynamic executor allocation is unsupported, and quota reflects requested rather than actual resource use. It recommends fixed executor counts, explicit resource requests, and checking Workload conditions to distinguish a quota wait from a configuration problem.