EksContainerResourceRequirements
The type and amount of resources to assign to a container. The supported resources include
memory, cpu, and nvidia.com/gpu. For more information,
see Resource management for pods and containers
Contents
- limits
-
The type and quantity of the resources to reserve for the container. The values vary based on the
namethat's specified. Resources can be requested using either thelimitsor therequestsobjects.- memory
-
The memory hard limit (in MiB) for the container, using whole integers, with a "Mi" suffix. If your container attempts to exceed the memory specified, the container is terminated. You must specify at least 4 MiB of memory for a job.
memorycan be specified inlimits,requests, or both. Ifmemoryis specified in both places, then the value that's specified inlimitsmust be equal to the value that's specified inrequests.Note
To maximize your resource utilization, provide your jobs with as much memory as possible for the specific instance type that you are using. To learn how, see Memory management in the AWS Batch User Guide.
- cpu
-
The number of CPUs that's reserved for the container. Values must be an even multiple of
0.25.cpucan be specified inlimits,requests, or both. Ifcpuis specified in both places, then the value that's specified inlimitsmust be at least as large as the value that's specified inrequests. - nvidia.com/gpu
-
The number of GPUs that's reserved for the container. Values must be a whole integer.
memorycan be specified inlimits,requests, or both. Ifmemoryis specified in both places, then the value that's specified inlimitsmust be equal to the value that's specified inrequests.
Type: String to string map
Value Length Constraints: Minimum length of 1. Maximum length of 256.
Required: No
- requests
-
The type and quantity of the resources to request for the container. The values vary based on the
namethat's specified. Resources can be requested by using either thelimitsor therequestsobjects.- memory
-
The memory hard limit (in MiB) for the container, using whole integers, with a "Mi" suffix. If your container attempts to exceed the memory specified, the container is terminated. You must specify at least 4 MiB of memory for a job.
memorycan be specified inlimits,requests, or both. Ifmemoryis specified in both, then the value that's specified inlimitsmust be equal to the value that's specified inrequests.Note
If you're trying to maximize your resource utilization by providing your jobs as much memory as possible for a particular instance type, see Memory management in the AWS Batch User Guide.
- cpu
-
The number of CPUs that are reserved for the container. Values must be an even multiple of
0.25.cpucan be specified inlimits,requests, or both. Ifcpuis specified in both, then the value that's specified inlimitsmust be at least as large as the value that's specified inrequests. - nvidia.com/gpu
-
The number of GPUs that are reserved for the container. Values must be a whole integer.
nvidia.com/gpucan be specified inlimits,requests, or both. Ifnvidia.com/gpuis specified in both, then the value that's specified inlimitsmust be equal to the value that's specified inrequests.
Type: String to string map
Value Length Constraints: Minimum length of 1. Maximum length of 256.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: