aws / aws/containers-roadmap

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

Open
#2,061 5 comments 137 reactions 0 assignees View on GitHub
ECS Fargate Proposed
Dominant language
Shell
Stars
5.4k
Forks
334
PR merge metrics
No merged PRs in 30d

Description

### Community Note

* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) 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](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container-swap.html):

> 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

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the issue's Fargate context and the linked Amazon ECS container swap documentation, then compare the current EC2-only swap parameters with Fargate task definitions. Define what configurable swap should mean for Fargate containers and tasks, including the memory and cost behavior described here; the issue names no repository files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.