containers-roadmap icon indicating copy to clipboard operation
containers-roadmap copied to clipboard

[Fargate] [request]: Support use of swap memory

Open cbatson opened this issue 2 years ago • 2 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Tell us about your request Support configurable swap for Fargate containers & tasks. Use cases are similar to #322. (Note there are a number of requests in that issue for Fargate swap support.)

Which service(s) is this request for? Fargate

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? I have a long-running container with one periodically-run process that requires substantially more memory than other processes. I don't care about CPU performance for this process. So it is an ideal candidate for swap.

Are you currently working around this issue? By running the Fargate task configured with the worst-case memory requirement. Before addition of the memory-intensive process, I could run with container memory = 1024. Now, due to this one periodic process, I must run with container memory = 3072. Doing so consumes more memory resources (and associated expense) than is necessary.

Additional context According to the documentation:

The swap space container definition parameters are only supported for task definitions that specify the EC2 launch type. These parameters are not supported for task definitions intended only for Amazon ECS on Fargate use.

Attachments n/a

cbatson avatar Jun 30 '23 18:06 cbatson

Hi, is this being picked up anytime soon?

cb-shreyassreenivas avatar May 09 '25 06:05 cb-shreyassreenivas

Any updates on this being added?

NulledExceptions avatar May 21 '25 20:05 NulledExceptions

Any updates on this ?

chrisbuz avatar Oct 11 '25 18:10 chrisbuz