Follow these suggested steps to observe the capabilities of queue:
-
To setup a cluster, run
./create_cluster.sh
-
Start a pane to observe the status of each ClusterQueue:
watch -n 2 kubectl get clusterqueue -o wide
-
Create jobs in each namespace:
./create_jobs.sh alpha-job.yaml 3s ./create_jobs.sh beta-job.yaml 3s
-
Stop the script for the
beta
namespace. Once all the pending jobs from the namespacebeta
are processed, observe how more jobs from the namespacealpha
are admitted. -
Resume the script for the
beta
namespace. -
Edit the
spot-cq
ClusterQueue to setcohort: all
:kubectl edit clusterqueue spot-cq
-
Observe how admitted workloads spike for both
alpha-cq
andbeta-cq
with the added quota.