Ulimit
The ulimit settings to pass to the container.
Amazon ECS tasks hosted on Amazon Fargate use the default resource limit values
set by the operating system with the exception of the nofile resource limit
parameter which Amazon Fargate overrides. The nofile resource limit sets a
restriction on the number of open files that a container can use. The default
nofile soft limit is 65535 and the default hard limit is
65535.
You can specify the ulimit settings for a container in a task
definition.
Contents
- hardLimit
-
The hard limit for the
ulimittype. The value can be specified in bytes, seconds, or as a count, depending on thetypeof theulimit.Type: Integer
Required: Yes
- name
-
The
typeof theulimit.Type: String
Valid Values:
core | cpu | data | fsize | locks | memlock | msgqueue | nice | nofile | nproc | rss | rtprio | rttime | sigpending | stackRequired: Yes
- softLimit
-
The soft limit for the
ulimittype. The value can be specified in bytes, seconds, or as a count, depending on thetypeof theulimit.Type: Integer
Required: Yes
See Also
For more information about using this API in one of the language-specific Amazon SDKs, see the following: