Way to disable per-container memory limit in task definition
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?
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 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.
i'm also interested in this discussion.
:thumbsup:
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.
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!
+1. Need this
+1. Need this
:+1: Please make the memory limit optional. I have a similar situation as described above; services can spike but not simultaneously.
+1
+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
+1
+1 Please allow us to skip memory limit setting. This is default docker behavior!
+1
:+1:
+1
+1 for opting out of memory limit enforcement - I want to tightly pack services onto a small "dev" ec2 instance for debugging purposes
+1
+1
+1 In Docker there is everything for our request https://docs.docker.com/engine/reference/run/#memory-constraints