All Products
Search
Document Center

Elastic Container Instance:ECS instance types of the x86 architecture

最終更新日:Sep 10, 2024

This topic describes how to specify Elastic Compute Service (ECS) instance types of the x86 architecture to create an Elastic Container Instance (ECI) pod.

Supported instance type families

ECS instance type families of the x86 architecture fall into two categories based on whether they are suitable for enterprise scenarios: enterprise-grade families and shared families.

x86-based enterprise-level computing instance families

x86-based ECS instance types are based on the x86 architecture. Each vCPU corresponds to a hyper-thread of a processor core. They deliver stable performance and are suitable for scenarios such as enterprise-level applications, database systems, video encoding and decoding, and data analysis.

Category

x86-based enterprise-level instance family

General-purpose instance families

g8a, g8i, g7a, g7, g6e, g6a, g6, g5, sn2, and sn2ne

Compute-optimized instance families

c8a, c8i, c7a, c7, c6e, c6a, c6, c5, sn1, and sn1ne

Memory optimized instance families

r8a, r8i, r7a, r7, r6e, r6a, r6, r5, se1ne, and se1

General compute category instance families

u1

Compute-intensive instance families

ic5

Instance families with high clock speeds

  • hfg8i, hfg7, hfg6, and hfg5

  • hfc8i, hfc7, hfc6, and hfc5

  • hfr8i and hfr7

Big data instance families

d1 and d1ne

Instance families with local SSDs

i2 and i2g

x86-based shared computing instance families

Shared ECS instance types are suitable for small and medium-sized websites and individuals. Compared with enterprise-level ECS instance types, shared ECS instance types emphasize the sharing of resource performance to maximize resource utilization. In this case, the stability of computing performance cannot be ensured, but the cost is reduced.

Category

x86-based shared instance family

Economy instance families

e

Note

Some of the preceding instance type families use local disks, such as i2 and d1ne. To mount local disks, you must configure a volume. For more information, see ECS instance types that use a local disk.

For more information about ECS instance families, see the following topics:

Configurations

You can add the Kubernetes. aliyun.com/eci-use-specs annotation to the pod metadata to specify ECS instance types. The following code provides an example in YAML format.

apiVersion: apps/v1
kind: Deployment
metadata:
  name: test
  labels:
    app: test
spec:
  replicas: 1
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      name: nginx-test
      labels:
        app: nginx
        alibabacloud.com/eci: "true" 
      annotations:
        k8s.aliyun.com/eci-use-specs: ecs.c6.large. ecs.c5.large # Specify a maximum of five ECS instance types at a time. 
    spec:
      containers:
      - name: nginx
        image: registry.cn-shanghai.aliyuncs.com/eci_open/nginx:1.14.2
        ports: