I have a t3.medium instance managed by ASG and used by ECS. My application requires approximately 25% of the capacity of this instance to operate at a minimum. will work in the standard nginx + php_fpm dockerized configuration. With that, I thought of 2 strategies for the automatic scaling of ECS tasks and I couldn't judge which one is the best due to the lack of knowledge with php.
1 - Configure 4 tasks per instance (25% each, 100% of the instance) and have granularity (and multiprocessing?)
2 - Configure only 1 task with 100% of the instance's capacity
Reading about php-fpm, it is not multithreaded, but it is multiprocess... I don't know how to decide about the best...
Before all, thanks!