OpenShift AI field demo shows when Kueue makes Spark jobs wait
The OpenShift AI 3.5 example contrasts jobs that cannot fit, jobs that can run in sequence, and a workbench that uses Spark Connect for remote execution.
A field demo in the Red Hat AI Americas GitHub organization shows how queue quota affects Apache Spark jobs on OpenShift AI 3.5. The fork’s Nov. 23 update documents working gang scheduling with SparkApplication resources. The repository has no published release; what it offers is a set of manifests and examples for testing how the Kubeflow Spark Operator and Kueue behave together.
A job that cannot fit is different from a job that has to wait
The demo starts with a simple Spark application, then introduces two kinds of contention. In one case, a single job asks for more resources than the queue can give it. It cannot run under that quota. In the other, either job fits on its own but both cannot fit at once. The jobs run one at a time rather than starting with only some of their requested executors. That distinction is the point of the gang-scheduling example: waiting for another job to finish can free capacity, but it cannot make an oversized job fit under an unchanged limit.
Test borrowing separately from notebook access
The borrowing example adds a second queue and demonstrates preemption. The README distinguishes guaranteed nominal quota in a ClusterQueue from shared nominal quota in a cohort. In its example, a queue with three CPUs of nominal quota can use seven when all four CPUs of shared quota are free. The demo shows why teams should distinguish the resources a queue can borrow from the resources it can count on when another team submits work.
The repository also shows a separate Spark Connect pattern: the workbench acts as the client while a Spark cluster does the computation. For platform teams evaluating shared Spark infrastructure, start with the baseline and queue examples before trying the workbench connection. Check whether a job is larger than the queue can ever admit, or merely waiting for capacity that another job currently holds. The README calls out that the gang-scheduling configuration requires server-side apply and points to separate instructions for connecting the workbench.
sources
comments · 0