AWS is full of anti patterns that are customer hostile. It’s really bizarre for a company with customer obsession in their manifestos and SEC filings.
My favorite: ECS optimized AMI by default configures zero memory for the ECS agent. So if you pack 8GB instances with 7.99GB of containers, prepare for a bad time.
This was the bane of my existence. Binpacking to the point of breaking the ECS agent then no orchestration works and you’re into terminating EC2 instances manually to recover. It’s nasty.
Super nasty. Our parent company requires us to run a ton of security agents, some of which are incredibly memory hungry. So we had to do a major ECS reservation + systemd memorylimits for the agents to stabilize.
terminating EC2 instances manually to recover
Yes, for us, the oomkill behavior was particularly perverse since drumroll the ECS optimized AMI comes with no swap configured.