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

Revert task resource accounting #3781

Merged
merged 7 commits into from
Jul 5, 2023

Conversation

sparrc
Copy link
Contributor

@sparrc sparrc commented Jun 30, 2023

Summary

Revert task resource accounting changes. There is a small chance that ECS's scheduling backend can "oversubscribe" an instance, thereby sending it more tasks than it is supposed to have resources for.

Although this is a mistake, agent would allow this to happen and run the task anyways.

Now the tasks are getting stuck in PENDING, which is arguably a worse behavior for agent to take (rather than run anyways or fail the task).

Testing

New tests cover the changes:

Description for the changelog

Bugfix: revert task resource accounting to avoid tasks stuck in PENDING on oversubscribed instance.

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 June 30, 2023 21:50
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