-
Notifications
You must be signed in to change notification settings - Fork 618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The CPU parameter in the task is not behaving as a hard limit and is not setting either cpu-quota or cpu #4077
Comments
Hi @FelipeGXavier, also if you try to set the CPU limit There is no hard limit based on docker documentation. I don't understand the logic of how CPU limitation is working on ECS level, mb we need to try/stay/switch with Environment Details
|
Hello @FelipeGXavier, @3guboff
Example:
Reference: |
Description
CPU limits in Amazon ECS can be configured at two levels: task level and container level. The task-level setting is intended to enforce a hard limit and is implemented using
--cpu-quota
, as indicated in this resolved issue GitHub Issue #1093.However, when deploying a container and only setting the CPU limit at the task level, it does not seem to impact any CPU hard limit options when inspecting the container using docker inspect.
For example, the task definition specifies a CPU limit at the container level as 0 and at the task level as 262, supposedly representing a hard limit:
Expected Behavior
When running
docker inspect <container_id> | grep -i cpu
expect to changeNanoCpus
,CpusetCpus
orCpuQuota
to implement a hard limit.Observed Behavior
Environment Details
The text was updated successfully, but these errors were encountered: