-
Notifications
You must be signed in to change notification settings - Fork 4.1k
aws-ecs: Support MaxSwap and Swappiness in LinuxParameters #18460
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
Comments
Example workaround:
|
@mjgp2 Thank you, it got registered in repository's template.json and tree.json. However after deployment, |
@joelchen - you probably need to enable some swap space on the EC2 host instance. |
|
Description
Please support MaxSwap (https://github.com/aws/aws-cdk/blob/master/packages/@aws-cdk/cfnspec/spec-source/specification/000_cfn/000_official/000_AWS_ECS.json#L975) and Swappiness (https://github.com/aws/aws-cdk/blob/master/packages/@aws-cdk/cfnspec/spec-source/specification/000_cfn/000_official/000_AWS_ECS.json#L987) in LinuxParameters (https://github.com/aws/aws-cdk/blob/master/packages/@aws-cdk/aws-ecs/lib/linux-parameters.ts).
Use Case
Using swap allows the container to write excess memory requirements to disk when the container has exhausted all the RAM that is available to it.
Proposed Solution
Other information
No response
Acknowledge
The text was updated successfully, but these errors were encountered: