Container Resources Configuration
Shares are the units we use to describe compute usage. A full share is 10 and equates to a single virtualized core or thread. To calculate shares available, multiply the amount of virtual cores or the amount of threads available on the infrastructure by 10.
By default, Cycle will set CPU reserve to 2 shares. That means that when creating an environment Cycle will allocate shares to service containers as well. If the total shares available are exceeded on the infrastructure, Cycle will no longer allow the deployment of instances to that infrastructure.
- Limits are the maximum amount of resource that can be used.
- Reserve is the amount each instance of a container should pre-allocate of the given resource.
- Units are kilobytes(KB), megabytes(MB), gigabytes(GB), and so on.
Learn more about managing container resources.
CPU
Field | Description |
---|---|
Enable Shares | Option to enable CPU shares for allocation of CPU resources. |
Enable Pinning | Option to pin processes to specific CPU cores. |
Limit | Specify the maximum CPU limit for the container or process. |
Reserve | Specify the reserved CPU capacity. |
Cores | Set specific CPU cores in the format "4" or "4-6". |
RAM
Field | Description |
---|---|
Enable Limit | Option to enable limiting RAM usage. |
Enable Reserve | Option to reserve a specific amount of RAM. |
Limit | Specify the maximum amount of RAM that can be used. |
Reserve | Specify the amount of RAM to reserve. |