Docker tutorials often say I can run more containers in order to increase the availability of my webapp. However, that's a really broad statement and doesn't explain how many containers should I actually run in different situations. How do I know if I need 1, 5, 10, 100 or 1000 instances of container?
Example - I have just one server and I'm running nginx and php-fpm with docker. One container for each of them. With this simple setup, my webapp works and seems responsive. Would I benefit in any way from spinning up additional php-fpm replicas (on the same server)? Lets say one container for nginx and 10 containers for php-fpm.
It's my understanding that 10 containers of php-fpm would simply split the amount of available computing resources between them. So I can have either one container with lots of resources or 10 containers with fewer resources. What's better and why?