Hi,
I have a running standalone Laravel 5.6 application in a Docker container.
Now I want to let it scale so I would like to setup 2 more installation of the Docker container on other hosts served by an HAProxy load balancer.
I am looking for best practices, for example how to manage the storage directory (if it needs to be shared or not) and PHP session (now I'm saving them in a Redis cluster), or other info I need to know when using multiple balanced installations.
@decibel83 Have you actually identified the need to scale? Or are you just scaling because? Because you’ll hit other bottlenecks before the number of requests your server can handle becomes an issue.
For example, you’ll hit concurrent database connections limit way before you hit any request limits with something like nginx.
Solve problems you actually have, and not problems you think you might have in the future.
Thanks @martinbean, your questions make perfect sense.
I want to scale because I need high availability at this time, and I need to prepare myself for the moment in which I will need to load balance.