Let's say I want to place my tasks on EC2 instances of type m6i.large
, which has 2 vCPU and 8GB of memory.
I have 10 ECS tasks, each requiring 512 mCPU and 512MB of memory. How many EC2 instances do I need to run them?
Total CPU = 10 x 512 / 1024 = 5 vCPU
Total Memory = 10 x 512 / 1024 = 5 GB
Do they require 3 instances of m6i.large
to meet the CPU demands? Or can they share the same instance (and hopefully not burst at the same time to overload the machine)?