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

[Bug]: memory in manifest is ignored in favor of cpu #5770

Open
chrisschaub opened this issue Apr 11, 2024 · 5 comments
Open

[Bug]: memory in manifest is ignored in favor of cpu #5770

chrisschaub opened this issue Apr 11, 2024 · 5 comments
Labels
type/bug Issues that are bugs.

Comments

@chrisschaub
Copy link

Description:

Specifying a 4cpu 8g memory instance in my manifest

environments:
  ecs-production:
    count: 1
    cpu: 4096
    memory: 8192

When I exec to the instance, I see 4 cpus and 16g of ram using free -m and htop. It seems like it's using the EC2 standard sizing as a base, not this chart: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/fargate-tasks-services.html#fargate-tasks-size .... or is there a soft limit? Even though the container shows 16g, we only have access to 8g. And are paying for 8g? Thanks.

@chrisschaub chrisschaub added the type/bug Issues that are bugs. label Apr 11, 2024
@iamhopaul123
Copy link
Contributor

Hello @chrisschaub. I assume 16g is for all tasks you run in the instance right (and you run 1 task normally)? How often do you see your instance using 16g of ram? I wonder if this is because when you update the service, ECS spins up a new task before deleting the old task.

@chrisschaub
Copy link
Author

chrisschaub commented Apr 12, 2024 via email

@iamhopaul123
Copy link
Contributor

that's right. if you have two tasks running then 16g mem makes sense to me since 8g mem is supposed to be per task

@chrisschaub
Copy link
Author

chrisschaub commented Apr 12, 2024 via email

@iamhopaul123
Copy link
Contributor

TLDR not necessarily: https://www.youtube.com/watch?v=Vtymod0nPBo&t=545s.

If you use Fargate then the tasks provisioning is all handled by Fargate under the hood and you only pay for the resources you use rather than anything under some specific instance (and the instance is managed by fargate).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Issues that are bugs.
Projects
None yet
Development

No branches or pull requests

2 participants