A proposal for job queuing

Skip to first unread message

Abdullah Gharaibeh

Jan 19, 2022, 12:56:30 PM1/19/22
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.


Aldo Culquicondor

Feb 10, 2022, 5:30:29 PM2/10/22
to dev, Abdullah Gharaibeh, kubernetes-sig-scheduling, kubernete...@googlegroups.com, kubernetes-sig-architecture, kubernetes-sig...@googlegroups.com
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.



Feb 19, 2022, 2:50:23 AM2/19/22
to kubernetes-sig-apps
Hi  Abdullah ,

What is the relationship between kueue and kube-batch ? It seems that these two projects are used to solve the  batch workloads.  


Abdullah Gharaibeh

Feb 20, 2022, 1:26:38 PM2/20/22
to warm...@outlook.com, kubernetes-sig-apps
Hi, please check the proposal at bit.ly/kueue-apis for a discussion on the differences between the two projects.

You received this message because you are subscribed to the Google Groups "kubernetes-sig-apps" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-sig-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-sig-apps/368a8e26-0773-443f-b3d7-b4d598c293bcn%40googlegroups.com.
Reply all
Reply to author
0 new messages