Amazon ECS Now Supports Per-Container Swap Space Parameters

With per-container swap configuration in ECS, customers can control each container’s use of swap. Different containers can have swap enabled or disabled, and for those that have it enabled, the maximum amount of swap used can be limited per container. This means, for example, that latency-critical containers can have swap disabled, whereas containers with high transient memory demands can have swap turned on in order to reduce the likelihood of out-of-memory errors under load. ECS will ensure that each container runs with the desired swap configuration, even if those containers are running on the same EC2 instance.