All Products
Search
Document Center

Container Service for Kubernetes:AI workload scheduling

Last Updated:Dec 01, 2026

Elastic resource scheduling, AI job scheduling, heterogeneous resource scheduling, and job queue scheduling help you improve cluster resource utilization and job execution efficiency.

Elastic scheduling

ACK provides hybrid scheduling capabilities for different elastic resources.

Feature

Description

References

Elastic scheduling

Alibaba Cloud provides different types of elastic resources, such as ECS and ECI, and different billing methods, such as subscription, pay-as-you-go, and spot instances.

Elastic scheduling handles ECS and ECI resources differently and supports custom priority-based scheduling policies for elastic resources. When you deploy or scale out an application, the custom resource policy sets the order in which application pods are scheduled to different types of node resources. During scale-in, resources are removed in the reverse of the original scheduling order.

For example, during scale-out, the ECS resources in the existing resource pool are used first, and ECI resources are used only after all ECS resources are allocated. When the application scales in, remove ECI nodes first to improve efficiency and reduce costs.

Job scheduling

ACK provides Gang scheduling and Capacity Scheduling capabilities for batch computing jobs.

Feature

Description

References

Gang scheduling

An All-or-Nothing job requires all of its tasks to be scheduled at the same time. If only some tasks start, the started tasks keep waiting for the remaining tasks to be scheduled. In extreme cases, all jobs remain pending, which results in a deadlock.

To solve this problem, Alibaba Cloud provides the Gang scheduling feature. It ensures that all related processes start at the same time and prevents an exception in some processes from blocking the entire group of related processes.

Use Gang scheduling

Capacity Scheduling

When a cluster has multiple users, allocating fixed resources by using the native Kubernetes ResourceQuota mechanism lowers overall cluster resource utilization. This is because different users consume resources on different cycles and in different ways.

ACK implements Capacity Scheduling in the scheduler by introducing elastic quota groups, based on the extension mechanism of the Scheduling Framework. This design draws on YARN Capacity Scheduling. This approach improves overall cluster resource utilization through resource sharing while ensuring resource allocation for users.

Work with capacity scheduling

Kube Queue

The scheduler schedules pods individually. When a cluster contains many job-type workloads, pods significantly affect the running rate of the scheduler, and jobs submitted by different users affect each other.

The job queue ack-kube-queue is designed to manage AI/ML workloads and batch processing workloads in Kubernetes. It allows system administrators to manage job queues by using custom queues, which improves queue flexibility. Combined with the quota system, ack-kube-queue automatically optimizes workload and resource quota management to maximize cluster resource utilization.

Manage AI/ML workloads with the ack-kube-queue job queue

Heterogeneous resource scheduling

ACK provides capabilities for heterogeneous resources such as CPUs and GPUs, including shared GPU scheduling and GPU/CPU topology-aware scheduling. For information about the node labels that ACK uses to schedule GPUs, see Labels of GPU node scheduling attributes and how to switch label values.

Feature

Description

References

Shared GPU scheduling

Shared GPU scheduling reduces the cost of using GPUs and ensures the stability of program execution.

ACK Pro clusters support the following GPU device allocation policies:

  • Single-pod, single-GPU sharing and isolation. Commonly used for model inference.

  • Single-pod, multi-GPU sharing and isolation. Commonly used to develop distributed model training code.

  • Binpack and Spread allocation policies at the GPU card level. Commonly used to improve GPU card utilization and GPU high availability (HA).

Shared GPU scheduling (Professional Edition)

GPU/CPU topology-aware scheduling

The scheduler uses the topology information of heterogeneous resources on nodes, such as the communication methods between GPU cards (NVLink and PCIe switch) and the NUMA topology of CPUs. With this information, it makes optimal scheduling decisions at the cluster level to deliver better performance for workloads.

FPGA scheduling

For FPGA computing, the Kubernetes cluster manages FPGA devices in a unified manner. Based on application requirements, resources are scheduled to nodes that have FPGA devices.

Schedule workloads to FPGA-accelerated nodes

Job queue scheduling

ACK provides custom job queue scheduling capabilities for AI/ML workloads and batch processing workloads. For more information, see Use the job queue ack-kube-queue.