All Products
Search
Document Center

Specify the number of vCPUs and memory size for container groups

Last Updated: Sep 17, 2019

Elastic Container Instance (ECI) allows you to specify the number of vCPUs and memory size for container groups. You can customize the specifications of individual containers in the container group, and pay for the container group according to the number of vCPUs and memory size specified for the container group. You can use annotations in pod settings to ensure compatibility with Kubernetes.

When the number of vCPUs and memory size for a container group are specified, ECI uses the corresponding ECS instance types to host computing resources. ECI attempts to use different ECS instance types to meet the specified CPU and memory requirements, providing better inventory and elasticity capabilities than single ECS instance types.

Specifications of container groups

ECI does not specify the ECS instance types before processing your requests and providing container group resources. The supported specifications for container groups with a specified number of vCPUs and memory size are as follows:

vCPU Memory (GB) emptyDir space size (GB) Bandwidth (inbound or outbound in Gbit/s) Network packet processing (inbound or outbound in 10,000 PPS) IPv6 support NIC queues ENIs (including one primary ENI)
0.25 0.5, 1 20 0.1 4 No 1 1
0.5 1, 2 20 0.2 5 No 1 1
1 2, 4 20 0.5 5 No 1 1
2 4, 8 20 1 30 No 1 1
4 8, 16 20 1.5 50 No 1 1
8 8, 16, 32, 64 20 2.0 80 No 1 1
12 12, 24, 48 20 2.5 90 No 1 1
16 16, 32, 64 20 3.0 100 No 1 1
32 64, 128 20 6.0 200 No 1 1
64 128, 256 20 20.0 400 No 1 1

Advantages

No limits are required for the resources for the containers in the container group.

Specifically, you do not need to specify request and limit for the containers in the container group. These containers can use the resources in the container group to the maximum extent. In the genetic computing and Istio scenarios, the framework automatically adds a sidecar container to the pod. After specifications of container groups are specified, ECI can seamlessly connect to such business frameworks.

Resource reservation in the container group

If the cold start time is limited, you can reserve resources in the container group to start the container group in advance. When you need to process business traffic and tasks, you can update the container specifications in the container group to dramatically speed up the startup.