Create pods with multiple instance types

Updated at:

When you create Elastic Container Instance (ECI) pods (that is, ECI instances) at scale, insufficient inventory may occur. In this case, configure multiple instance types. The system then attempts to create a pod by using the configured instance types in sequence, which improves the ECI pod creation success rate.

Background information

If you specify multiple specifications when you create an elastic container instance, the system tries to use the specifications in sequence. This improves the creation success rate.

Note
  • During the retry, the instance remains in the Pending state.

  • The multi-specification mode is effective at the instance level and only affects the creation policy of a single instance.

  • You can also specify multiple zones when you use the multi-specification mode. This further improves the creation success rate.

Instance type overview

vCPU and memory specifications supported by Elastic Container Instance

  • Specifications supported in all regions where Elastic Container Instance is available

    vCPU

    Memory (GiB)

    Bandwidth (bidirectional, Gbit/s, theoretical upper limit)

    0.25

    0.5 and 1

    0.08

    0.5

    1 and 2

    0.08

    1

    2, 4, and 8

    0.1

    2

    1, 2, 4, 8, and 16

    1

    4

    2, 4, 8, 16, and 32

    1.5

    8

    4, 8, 16, 32, and 64

    2

    12

    12, 24, 48, and 96

    2.5

    16

    16, 32, 64, and 128

    3

    24

    24, 48, 96, and 192

    4.5

    32

    32, 64, 128, and 256

    6

    52

    96, 192, and 384

    12.5

    64

    128, 256, and 512

    20

  • Specifications supported only in some regions

    Important
    • The specifications contained in the following table are supported only in some regions. When you create an elastic container instance that has one of the following specifications, make sure that the corresponding specifications are supported in the specified region and zone. Otherwise, the instance cannot be created because no resources exist in the region and zone.

      The regions that support the specifications contained in the following table include: China (Hangzhou), China (Shanghai), China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Ulanqab), China (Shenzhen), China (Heyuan), China (Guangzhou), China (Chengdu), and Singapore.

    • You cannot use the specifications in the following table to create preemptible instances.

    vCPU

    Memory (GiB)

    Bandwidth (bidirectional, Gbit/s, theoretical upper limit)

    2

    6, 10, 12, and 14

    1

    4

    6, 10, 12, 14, 18, 20, 22, 24, 26, 28, and 30

    1.5

    6

    6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, and 48

    1.5

    8

    10, 12, 14, 18, 20, 22, 24, 26, 28, 30, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, and 62

    2.5

ECS instance families supported by ECI

  • Enterprise-level x86 computing instance families

    x86 instance types are based on the x86 architecture. Each vCPU corresponds to a hyper-thread of a processor core, which delivers stable performance. These instance types are suitable for scenarios such as enterprise-level applications of all types and sizes, database systems, video encoding and decoding, and data analytics.

    Category

    Enterprise-level x86 instance families

    General-purpose

    g9ae, g9a, g9i, g8a, g8i, g7a, g7, g6e, g6a, g6, g5, sn2ne

    Compute-optimized

    c9ae, c9a, c9i, c8a, c8i, c7a, c7, c6e, c6a, c6, c5, sn1ne

    Memory-optimized

    r9ae, r9a, r9i, r8a, r8i, r7a, r7, r6e, r6a, r6, r5, se1ne, se1

    Universal

    u2a, u2i, u1

    Compute-intensive

    ic5

    High clock speed

    • hfg8i, hfg7, hfg6, hfg5

    • hfc8i, hfc7, hfc6, hfc5

    • hfr8i, hfr7

    Big data

    d1, d1ne

    Local SSD

    i2, i2g

    Memory-enhanced

    re6

  • Enterprise-level heterogeneous computing instance families

    GPU instance types are equipped with GPU computing cards and are suitable for scenarios such as deep learning and image processing. Docker images for these GPUs can run directly on ECI GPU instances. NVIDIA GPU drivers are preinstalled on the instances. Supported driver and CUDA versions vary by GPU instance type.

    Note

    In the following table, gn8ia and gn8is are supported only in some regions, such as overseas regions. If you have such a requirement, contact Alibaba Cloud sales.

    Category

    GPU instance families

    Driver and CUDA version

    vGPU-accelerated instance families

    sgn8ia

    GRID 535, CUDA 12.2 (installed by default)

    sgn7i-vws

    GRID 470, CUDA 11.4 (installed by default)

    vgn7i-vws

    vgn6i-vws

    GPU-accelerated compute-optimized instance families

    gn9g and gn9gc

    • Tesla 580, CUDA 13.0 (installed by default)

    • Tesla 570, CUDA 12.8

    gn8ia/gn8ia/gn8v

    gn7, gn7e, gn7i, and gn7s

    gn6e, gn6i, and gn6v

    gn5 and gn5i

    Important

    Starting March 17, 2025, a specified GPU driver version no longer uses the full version number (such as 535.161.08) but only the major version number (such as 535). The driver version of the instance that is actually created may have its minor version number updated while the major version number remains unchanged. After an older driver is retired, instances are automatically created with a higher driver version. The support period of a specific driver version is the same as the support period that NVIDIA officially provides for that driver. For more information, see NVIDIA Driver Documentation.

    GPU driver update history

    Update time

    Update description

    November 2026

    • The default Tesla driver was changed from 550 to 580.

    • The Tesla 550 driver was updated to 570.211.01, and the Tesla 580 driver was updated to 580.178.04.

    • The Tesla 535 and 550 drivers are no longer supported. If you specify one of these drivers, the instance is created with driver version 570 instead.

    March 2026

    • The default Tesla driver was changed from 470 to 550.

    • The Tesla 535 driver was updated to 535.274.02, the Tesla 550 driver was updated to 550.163.01, and the Tesla 580 driver was updated to 580.105.08.

    • The Tesla 470 driver is no longer supported. If you specify this driver, the instance is created with driver version 535 instead.

    March 2025

    • The GRID 470 driver was updated to 470.239.06.

    • The Tesla 470 driver was updated to 470.256.02, the Tesla 535 driver was updated to 535.230.02, and the Tesla 550 driver was updated to 550.127.08.

    • The Tesla 525 driver is no longer supported. If you specify this driver, the instance is created with driver version 535 instead.

  • Enterprise-level Arm computing instance families

    Arm instance types are based on the Arm architecture. Each vCPU corresponds to a physical core of a processor, which delivers stable performance and dedicated resources. These instance types are suitable for scenarios such as containers, microservices, websites and application servers, high-performance computing (HPC), and CPU-based machine learning.

    Category

    Arm instance families

    General-purpose

    g8y

    Compute-optimized

    c8y

    Memory-optimized

    r8y

  • Shared x86 computing instance families

    Shared instance types are mainly intended for typical small and medium-sized websites or personal development. Compared with enterprise-level instance types, they place more emphasis on shared resource performance. As a result, instance computing performance is not guaranteed to be stable, but the cost is lower.

    Category

    Shared x86 instance families

    Economy

    e

For more information about ECS instance types, see:

Configuration notes

Add the k8s.aliyun.com/eci-use-specs annotation to the pod metadata to specify instance types.

  • When you specify multiple instance types, you can specify vCPU and memory specifications, ECS instance types, or both.

    Important

    After the pod is created, you can check the k8s.aliyun.com/eci-instance-spec field in the YAML details of the pod to confirm the instance type that the pod actually uses. If the pod uses an ECS instance type, you are billed based on the ECS instance type. If the pod uses specific vCPU and memory values, you are billed based on vCPUs and memory.

  • Configure multiple instance types in the order of priority in which you want to use them. You can specify a maximum of five instance types at a time.

  • Some instance types, such as GPU instance types, instance types with local disks, and Arm instance types, require additional parameters besides the instance type itself. When you specify multiple instance types of this kind, you can specify only instance types of the same type.

The following example shows the configuration:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: test
  labels:
    app: test
spec:
  replicas: 2
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      name: nginx-test
      labels:
        app: nginx
        alibabacloud.com/eci: "true" 
      annotations:
        k8s.aliyun.com/eci-use-specs: 2-4Gi,ecs.c5.large,ecs.c6.large  #As needed, replace with the instance types that you want to use
    spec:
      containers:
      - name: nginx
        image: registry.cn-shanghai.aliyuncs.com/eci_open/nginx:1.14.2
        ports:
        - containerPort: 80