Handle sudden spike in CPU usage on AWS EC2
We have a setup where we’re running 2 EC2 instances (of an instance type with a lot of CPU, c7i or M5zn) each have a single ECS task running. This task runs an optimisation algorithm for vehicles and jobs – this means that it will periodically and suddenly need to process single large requests, resulting in very high CPU usage.