community icon indicating copy to clipboard operation
community copied to clipboard

Form a Batch Working Group

Open ahg-g opened this issue 5 years ago • 80 comments

Kubernetes historically focused on service-type workloads, support for load balancing, traffic splitting, rolling-updates, spreading, autoscaling and topology-aware routing are few examples of features the community built for service workloads. Stateful workloads are also getting more support with the introduction of CSI, topology-aware volume provisioning and storage capacity tracking to mention a few.

However, support for Batch lagged in Kubernetes core, leading to a challenging migration journey of batch workloads to Kubernetes. Multiple past efforts tried to improve this status, but those efforts lacked continuity, in some cases leading to forked projects outside k8s (including a forked scheduler).

Recently, there has been momentum to improve core k8s support for batch. Examples:

  1. Job API enhancements (indexed job, suspend jobs, pod deletion cost, accurate job tracking, ready pods tracking in jobs, ttl after finish to GA and CronJob to GA)
  2. NUMA aware scheduling: https://github.com/kubernetes/enhancements/pull/2787
  3. co-scheduling scheduler plugin (https://github.com/kubernetes-sigs/scheduler-plugins/tree/master/pkg/coscheduling)
  4. proposal for job-level management: bit.ly/k8s-job-management
  5. Incubating scheduler plugins for co-scheduling and capacity-scheduling.

To keep the momentum and coordinate efforts, we would like explore forming a batch SIG or WG.

/sig scheduling /sig apps

ahg-g avatar Dec 03 '21 01:12 ahg-g

++

ArangoGutierrez avatar Dec 03 '21 02:12 ArangoGutierrez

Also NFD project with https://github.com/kubernetes-sigs/node-feature-discovery/pull/525

ArangoGutierrez avatar Dec 03 '21 02:12 ArangoGutierrez

  1. seems to be giving a 404.

rochaporto avatar Dec 03 '21 02:12 rochaporto

  1. seems to be giving a 404.

Updated the link

ahg-g avatar Dec 03 '21 02:12 ahg-g

/cc

yuzhiquan avatar Dec 03 '21 03:12 yuzhiquan

/cc @kubernetes/steering-committee

MadhavJivrajani avatar Dec 03 '21 04:12 MadhavJivrajani

++

kniec avatar Dec 03 '21 08:12 kniec

+1

denkensk avatar Dec 03 '21 09:12 denkensk

Add CapacityScheduling for batch workloads https://github.com/kubernetes-sigs/scheduler-plugins/tree/master/pkg/capacityscheduling

denkensk avatar Dec 03 '21 09:12 denkensk

+1

kerthcet avatar Dec 03 '21 10:12 kerthcet

cc @kubernetes/steering-committee

@soltysh for SIG apps

alculquicondor avatar Dec 03 '21 15:12 alculquicondor

Life's a batch, so yes please +1

ajyounge avatar Dec 03 '21 16:12 ajyounge

This will be great! We have been running Spark on Kubernetes for one year, and have to work around multiple issues. It will be very valuable to have Batch SIG/WG to enhance Kubernetes in this area. Would love to join and contribute to this effort!

hiboyang avatar Dec 03 '21 18:12 hiboyang

+1 this is wonderful

chenya-zhang avatar Dec 03 '21 18:12 chenya-zhang

Honestly, prefer to have a WG in CNCF to align the interface with other implementation for batch workload, e.g. Volcano & YuniKorn.

k82cn avatar Dec 03 '21 23:12 k82cn

There can be collaboration between the two. The big thing is for work to be done within kubernetes, especially within k/k, a kubernetes organizational unit (sig/wg/subproject) makes sense. Especially as one or more SIGs within the org will be responsible for long term maintenance and stewardship of the code, not an external project or organization.

mrbobbytables avatar Dec 04 '21 00:12 mrbobbytables

Greetings from the Apache YuniKorn (Incubating) community, we love to join this effort in order to build a common API for batch scheduling.

yangwwei avatar Dec 04 '21 00:12 yangwwei

There can be collaboration between the two. The big thing is for work to be done within kubernetes, especially within k/k, a kubernetes organizational unit (sig/wg/subproject) makes sense. Especially as one or more SIGs within the org will be responsible for long term maintenance and stewardship of the code, not an external project or organization.

hm... my major concern is that: this common API will dependent on k/k's progress and implementation instead of common requirements :)

Two simple examples :

  • Queue is one of common & major concepts of batch system, but there's not more discussed after my first proposal. So will we introduce this concept without implementation in k/k? And how about the other concepts ?
  • spec.scheduleTimeoutSeconds of scheduling-plugins/co-scheduling was introduced because of default scheduling's implementation (e.g. scheduling framework); but it's not a common requirements to the other implementations :)

k82cn avatar Dec 04 '21 00:12 k82cn

+1

abin-tiger avatar Dec 06 '21 06:12 abin-tiger

Specific implementation details are not decided. That's precisely why we need the SIG/WG. I agree with @mrbobbytables, even if there is a CNCF WG, we still need to close gaps in kubernetes.

We don't necessarily need a Queue API (although that's to be decided). For example, suspended jobs allows the implementation of job-level queuing without having a k8s implementation.

The existing co-scheduling plugins has some limitations that need to be solved. So I don't think we should consider it's API as de-facto API at the moment.

alculquicondor avatar Dec 06 '21 15:12 alculquicondor