I will receive my new server hardware in some days, and of course I am already planning on how to use it the most effective way.
My current thoughts are about scaling the web and database server on a single dedicated server.
I had the idea to build 4 virtual machines on this dedicated server (KVM virtualization), give them private IP addresses and use the dedicated server itself as a loadbalancer. I would use an installation of HAproxy which could balance the load to the aforementioned virtual servers.
My question is: Would this concept be more effective than just having a single install of the web and database server on the dedicated host? If so, how does that happen? If not, what could I do to scale my software to use the machine as good as possible? The software I am using for web and database are Apache2 and MySQL Server.
The new dedicated server which I am talking about would have the following specs:
- Intel Xeon E3-1265L
- 32 GB DDR3 ECC RAM
- 2x 300 GB SAS 10k RPM HDD's in Hardware RAID 1
- 100 MBit/s Dedicated Bandwith / 10 GBit/s Switchport
I am interested in your thoughts and ideas about my fast-written concept. To avoid some "bad" comments: I am not unexperienced in server administration, but scaling to such big hardware is pretty new for me, so please don't be too angry if this idea is just stupid.