-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
ecs: Support linuxParameters in FargateTaskDefinition #30294
Comments
linuxParameters is per container definition. While it is only having limited supported with Fargate, I don't see any reason you can't use that in CDK based on the doc: Can you share your code snippets and any error messages? |
@pahud you're right, I was using ApplicationLoadBalancedFargateService with taskImageOptions and my whole CDK code was trully minimalistic, but when I changed to taskDefinition + addContainer comibination - there I can use now Linux parameters. This is not an issue indeed |
|
meanwhile here is what I got now:
So actually the problem is not with using linuxParameters - seems like shared memory is not allowed for fargate. I'd like to serve the image requiring at least 1000MB in shared memory. How can I do this then? Thank you! |
In Fargate, you need to specify the required memory in the TaskDefinition. For 1GB of shared memory, you would need to select at least 1024 for the Memory value. Closing as this is not relevant to CDK. Feel free to create a new issue if it is still relevant. |
|
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one. |
Describe the feature
Hi!
My container requires extended shared memory and I can only set them via container linuxParameters.
It would be nice if FargateTaskDefinition and ApplicationLoadBalancedFargateService would also support this.
Thanks!
Use Case
Create a new service with extended shared memory
Proposed Solution
No response
Other Information
No response
Acknowledgements
CDK version used
2.137.0 (build bb90b4c)
Environment details (OS name and version, etc.)
Ubuntu 23.10
The text was updated successfully, but these errors were encountered: