We used the stock AMI. I would not be surprised if we had a configuration issue, but we spent a lot of time trying to debug it and were never able to find the root cause of the issue.
yep, we were using Amazon ECS-Optimized Amazon Linux AMI, docker and agent should've matched there.
It was strange behavior, either all agents were connected or most of them were disconnected at the same time...