A proposal for job queuing

35 views
Skip to first unread message

Abdullah Gharaibeh

unread,
Jan 19, 2022, 12:56:35 PMJan 19
to d...@kubernetes.io, kubernetes-sig-scheduling, kubernete...@googlegroups.com, kubernetes-sig-architecture, kubernetes-sig...@googlegroups.com

tldr; this is a proposal for introducing new APIs to support job queueing in kubernetes: bit.ly/kueue-apis (doc shared with d...@kubernetes.io/kubernetes-dev@)


Over the past year we invested in improving some aspects of batch job support in core kubernetes, such as indexed job, suspend jobs, pod deletion cost, accurate job tracking, ready pods tracking in jobs, ttl after finish to GA.


A thing that is still lacking in core k8s is proper support for job-level management. In bit.ly/k8s-job-management we presented an initial proposal for that where we discussed a controller that decides when a job should start (as in pods can be created) and when it should stop (as in active pods should be deleted). The idea is that the controller would not duplicate any existing functionality: autoscaling, pod-to-node scheduling, job lifecycle management and admission control are the responsibility of existing k8s native components, cluster-autoscaler, kube-scheduler, kube-controller-manager and Gatekeeper, respectively.

bit.ly/kueue-apis proposes a set of APIs for such a controller, which we call Kueue. The document details the APIs,  but only offers a high-level description of how the controller itself would operate; the detailed design of the controller is left for a followup doc. The goal is to collaborate with the community on shaping those APIs first, and we are hoping that this proposal serves as a seed for discussion.

The north star is to have those APIs and supporting controllers available in upstream Kubernetes, but starting as a subproject to prove the concept may end up being a better first step towards that.


Thanks
Abdullah


Aldo Culquicondor

unread,
Feb 10, 2022, 5:30:27 PMFeb 10
to dev, Abdullah Gharaibeh, kubernetes-sig-scheduling, kubernete...@googlegroups.com, kubernetes-sig-architecture, kubernetes-sig...@googlegroups.com
Hello,
Thank you for all the feedback you gave to the API proposal.
Now we are sharing a more detailed design of the controllers involved bit.ly/kueue-controller-design.

Thanks,
Aldo
Reply all
Reply to author
Forward
0 new messages