All Products
Search
Document Center

Specify the number of vCPUs and memory size for containers

Last Updated: Aug 15, 2019

Elastic Container Instance (ECI) allows you to specify only the specifications of individual containers when you create a container group. Therefore, you do not have to specify the specifications of the container group. We recommend that you create container groups by using this method for most scenarios that have no special requirements on the CPU clock speed, network capabilities, or GPUs.

Each container group can have up to 20 containers, and each container can be customized, but the number of vCPUs and memory size of the container group must match with the specifications supported by ECI. If this is not the case, ECI automatically rounds the number of vCPUs and memory size up to the nearest specifications supported by ECI. Then, the container group is billed based on the number of vCPUs and memory size after rounding-up.

  • The number of vCPUs ranges from 0.25 to 64, and the memory size ranges from 0.5 GB to 256 GB. In addition, the number of vCPUs and memory size of a container group must match with the specifications supported by ECI. If this is not the case, ECI automatically rounds the number of vCPUs and memory size up to the nearest specifications supported by ECI.

ECI supports the following specifications of container groups:

vCPU Memory (GB)
0.25 0.5, 1
0.5 1, 2
1 2, 4
2 4, 8
4 8, 16
8 8, 16, 32, 64
12 12, 24, 48
16 16, 32, 64
32 64, 128
64 128, 256

For a container group with more than 4 vCPUs, to avoid rounding-up caused by misoperation and to save costs, you must specify the number of vCPUs and memory size that match with the specifications supported by ECI in the API. Otherwise, the API returns a specification error.For a container group with more than 4 vCPUs, we recommend that you create container groups by specifying the number of vCPUs and memory size for container groups.