Here’s a good DIY for webmasters looking to expand their websites to handle more traffic with load balancing linux web servers. I have been looking into load-balancing even this site as it’s getting too big to manage with a single server.
All the software required to implement a LAMP cluster ships with most Linux distributions, so it’s easy to implement. We’ll construct a cluster using seven computers for a fictitious company, foo.com. Two servers will run DNS, primary and backup, to distribute Web requests among three Web servers that read and write data from two MySQL database servers. You could build any number of different designs, with more or fewer of each kind of server, but this model will serve as a good illustration of what can be done.