- Documentation
Volcengine Kubernetes Engine
Volcengine Container Instance
User guide
Creating an instance
Creating instances by ignoring specific container resource requirements
Creating an instance
Creating instances by ignoring specific container resource requirements
Creating instances by ignoring specific container resource requirements
VCI allows you to ignore the resource requirements of specific containers during the creation of instances. In this way, exclusive resources are not allocated to some containers that do not affect your business in certain scenarios.
Feature description
You can configure the following environment variable for a container in a VCI pod. VCI will ignore the resource requests of the container during resource adjustment.
If a VCI pod has n containers, when VCI matches instance (pod) specifications, it traverses the n containers in the following priority order and matches only one of the following cases:
- If "__VCI_RESOURCE_IGNORE__"="TRUE" is configured, the resource requirements of the container are skipped.
- If a resource (such as CPU, memory, and GPU) is configured with a limit, the limit value of the container is added to the resource requirement.
- If a resource is configured with a request, the request value of the container is added to the resource requirement.
tip
VCI matches instance specifications based on the accumulated values of CPU, memory, and GPU. For more information about specification calculation and matching, see Instance specification normalization. Limits
- After the resource requirements of specific containers are ignored, the total resources provided by the matched VCI instance specification may be less than the total resources declared by all containers in the pod. For example:
- If CPU and memory resource requirements are ignored, CPU and memory resources are shared among containers, and multiple containers may compete for resources.
- If GPU resource requirements are ignored, GPU resources cannot be shared among containers. In this way, the VCI pod will fail to be created (data plane failure) if its matched instance specification has fewer GPUs than the total declared by all containers.
- We recommend that you use this feature in the following way:
- For CPU and memory, you can ignore the resource requirements of specified containers. In this way, multiple containers will compete for resources. In addition, you can specify the limit for each pod. This prevents containers without a configured limit from occupying resources for other containers, improving resource utilization within the pod.
- For GPU, we recommend that you configure the environment variable only for containers that do not require GPU resources, such as sidecar containers. In this way, other containers can use as much CPU and memory as possible.
Prerequisites
Procedure
Using the Kubernetes approach
The following sample code shows how to create a Deployment.
Creating instances by using the console
- Basic information: Select Volcengine Container Instance for the Computing power type parameter.
- Container configuration: Enable Ignore resource alignment in the ResourceQuota section.
Last updated: 2026.09.03 15:56:09