-
Notifications
You must be signed in to change notification settings - Fork 18
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
WEB_CONCURRENCY is miscalculated on ECS Fargate #220
Comments
That seems like a bit more than 512MB! For what it's worth, I think |
Fargate lets you set memory in two places, the "task" and the "container". If you set the container memory, this calculation works as expected. If you only set the task memory, there's no way (short of the API) to determine the value from inside the container. |
Yeah I dug into this more for heroku/heroku-buildpack-python#1547 - it turns out for cgroups v1 (older Docker and others) if there is no container memory limit is set, then instead of the Since this issue was opened, the implementation for |
Splitting this out from #210... When running on Fargate with 512MB of RAM,
WEB_CONCURRENCY
is set to28
. My expectation is that it would be set to1
(or not set at all).It looks like the calculations are taken from the following files. Their values on Fargate are:
It's not yet clear to me the best way to determine how much RAM is available in a Fargate container, but I have an open issue with AWS support and will update when I hear back.
The text was updated successfully, but these errors were encountered: