Hi guys, I’m wondering how much extra stress (internal virtual network) would be implied on the host by running 100 Apache containers plus 100 Mysql containers VS just 100 LAMP stack containers.
After much reading, I have opted for one individual database engine per instance of the PHP APP, instead of one big database engine for everyone. However, there’s no literature about running the entire stack in one single LXC container vs separating the different services, in this particular case, Apache2 plus MariaDB each on their own container.
I understand the isolation benefits of separating these 2 services, I also understand the portability and simpler backup benefits of deploying both services together, however, I am now worried about any overheat that could be caused due to all the internal communication between the containers and I also wonder which option would be more performant at low usage.
The APP makes relatively high usage of the DB. HAProxy routes traffic to the right instance.
Each instance of the PHP app only talks to one database, there are no shared tables or databases of any kind.