Currently, my company manages one LAMP-based website on a VPS server, so the database and the web server are essentially in the same field.
We are developing a new site that we plan to host on the same server (i.e. we will have everything for foo.com and bar.com on server A).
However, we expect more traffic and strive to increase resiliency and scalability. I suggested a load balancing architecture with a separate ie server:
Internet ¦ Load Balancer / \ ¦ Server A ¦ ¦ Server B ¦ \ / ¦ MySQL DB ¦
Is this a smart approach? Or is it too complicated? It seems risky to keep everything on one server. Although we may not need load balancing at this stage, is it wise to split the database from the web server?
I saw a couple of questions like this, but I'm not sure if they apply in the context of Apache / MySQL. When I worked in Windows environments, they always had separate database servers.
database mysql architecture
Willl
source share