I'm in the process of trying to optimise and consolidate our AWS instances. Part of this involves standardising (where possible) our instance classes, to make optimal use of reservations.
We have a number of applications using the m5d class EC2's, using the ephemeral storage for super-fast swap space. We also have a number of ECS clusters, which are currently using r5 class EC2's.
I'm wondering if anyone knows whether swap space is useful for ECS cluster instances? If docker is able to efficiently use swap space, then it might mean we could use cheaper general purpose "d" instances, rather than having to use the larger more expensive "r5" class instances.