Skip to content
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

Support for setting PIDs limit for ECS tasks #3923

Merged
merged 2 commits into from
Sep 25, 2023
Merged

Conversation

sparrc
Copy link
Contributor

@sparrc sparrc commented Sep 25, 2023

Summary

Note: This PR merges the feature branch to dev, see PR to feature branch for previous review: #3790

Adds a new agent configuration variable: ECS_TASK_PIDS_LIMIT

This variable defaults to being unset, which results in the current behavior of no PID limit being set at the task level.

If the user sets this to a value 1 or more, then agent will set the pids.max pid limit cgroup parameter to the provided value, for the task-level cgroup for all ECS tasks that are launched on this container instance. Note that this limit is applied for the whole task, not per-container.

addresses aws/containers-roadmap#354 for the EC2 launch type.

Implementation details

Testing

Functionality was verified manually and unit tests were added in this PR. Functional tests will be added before merging to dev branch.

New tests cover the changes: yes

Description for the changelog

Enhancement: ECS_TASK_PIDS_LIMIT for setting the task-level PIDs limit.

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@sparrc sparrc requested a review from a team as a code owner September 25, 2023 17:24
@sparrc sparrc merged commit 6c4e129 into dev Sep 25, 2023
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants