amazon-ecs-agent icon indicating copy to clipboard operation
amazon-ecs-agent copied to clipboard

Way to disable per-container memory limit in task definition

Open robbyt opened this issue 11 years ago • 118 comments

According to the docs1, the per-container memory limit is required. This is inconvenient, because I use the same ElasticBeanstalk Dockerrun.aws.json file with multiple instance types.

Is there a way to disable this setting?

robbyt avatar Aug 03 '15 03:08 robbyt

You're correct that there's currently no way to disable this requirement.

There is some discussion in #124 about memory limits and we're internally tracking the feature request of percentage / proportional memory limits.

Would being able to specify a proportional amount of memory and/or being able to overcommit memory resolve the issue for you? Do you want to just be able to opt out of setting memory and having it tracked/scheduled upon at all?

euank avatar Aug 03 '15 20:08 euank

@euank yes, a percentage/proportional amount of memory would be the best solution. I can imagine that overcommit might confuse people.

Disabling the memory setting requirement would be a quick fix for my use case.

robbyt avatar Aug 03 '15 21:08 robbyt

i'm also interested in this discussion.

0xadada avatar Sep 01 '15 21:09 0xadada

:thumbsup:

pmcjury avatar Sep 09 '15 17:09 pmcjury

Having this is kind of a deal-breaker for us.

We're running multiple services in our cluster. Each service by itself usually uses very little memory but occasionally spikes while processing a request. When it spikes, it needs nearly the entire instance's memory. However, services never spike at the same time.

As it is, there doesn't seem to be any way to provision this kind of setup using ECS.

Being able to disable resource limits would be hugely beneficial for us.

morgante avatar Sep 23 '15 19:09 morgante

We need this too, because the OS enables the oom-killer when containers go above the threshold, and the oom-killer implements an heuristic to kill containers "randomly" (and even processes in the host, not only containers!). This happened us twice: a machine (host) stopped responding because a container went above the threshold!

vad avatar Oct 08 '15 12:10 vad

+1. Need this

chenliu0831 avatar Oct 13 '15 14:10 chenliu0831

+1. Need this

gabrianoo avatar Nov 11 '15 11:11 gabrianoo

:+1: Please make the memory limit optional. I have a similar situation as described above; services can spike but not simultaneously.

leftclickben avatar Nov 15 '15 16:11 leftclickben

+1

mr337 avatar Nov 16 '15 19:11 mr337

+1 It's often the case that we run 1 task per EC2 instance and want the container to simply have access to all the memory

jawadst avatar Nov 23 '15 02:11 jawadst

+1

razitz avatar Nov 26 '15 10:11 razitz

+1 Please allow us to skip memory limit setting. This is default docker behavior!

allanharris avatar Dec 10 '15 00:12 allanharris

+1

parajanoff avatar Dec 10 '15 01:12 parajanoff

:+1:

echery avatar Dec 19 '15 18:12 echery

+1

TheTweak avatar Dec 22 '15 18:12 TheTweak

+1 for opting out of memory limit enforcement - I want to tightly pack services onto a small "dev" ec2 instance for debugging purposes

alexmac avatar Dec 31 '15 21:12 alexmac

+1

bribroder avatar Jan 04 '16 03:01 bribroder

+1

pparth avatar Jan 04 '16 16:01 pparth

+1 In Docker there is everything for our request https://docs.docker.com/engine/reference/run/#memory-constraints

ynelin avatar Jan 15 '16 13:01 ynelin