This topic describes how to create and use an AMD-compatible elastic container instance.
Background information
AMD-compatible elastic container instances are powered by AMD EPYCTM ROME processors. These instances offload a large number of virtualization features to dedicated hardware with the use of the SHENLONG architecture to provide predictable and consistent ultra-high performance and reduce virtualization overheads. AMD-compatible elastic container instances suit the following scenarios: video encoding and decoding, web frontend servers, frontend servers of massively multiplayer online (MMO) games, scenarios where large volumes of packets are received and transmitted, and scenarios where applications such as DevOps applications are developed and tested.
You can specify AMD-compatible Elastic Compute Service (ECS) instance types to create AMD-compatible elastic container instances. The c6a compute optimized ECS instance family is supported, which includes a variety of instance types such as ecs.c6a.large.
For more information, visit the following links:
Kubernetes mode
You can add annotations to metadata in the configuration file of a pod to specify an AMD-compatible ECS instance type. Sample code:
apiVersion: apps/v1 # for versions before 1.8.0 use apps/v1beta1
kind: Deployment
metadata:
name: nginx
labels:
app: nginx
spec:
replicas: 2
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
annotations:
k8s.aliyun.com/eci-use-specs: ecs.c6a.xlarge #Specify an AMD-compatible ECS instance type.
spec:
containers:
- name: nginx
image: nginx:1.7.9
ports:
- containerPort: 80
API mode
When you call the CreateContainerGroup operation to create an elastic container instance, you can use the InstanceType parameter to specify an AMD-compatible ECS instance type. The following table describes this parameter. For more information, see CreateContainerGroup.
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
InstanceType | String | No | ecs.c6a.large | The AMD-compatible ECS instance types. You can specify one or more instance types in the c6a AMD-compatible instance family at a time. Example: ecs.c6a.large. |