How to: Simple load balancer setup for web servers

I finally put together a load balancing setup together this weekend, and I'm surprised it was this easy.

What you'll need is three servers, two web servers and one server for the load balancer. It's not recommended that you only use one load balancer since it's a single point of failure (SPOF) but I only had one extra server on hand. For this tutorial, I used Debian Lenny.

 

First thing's first, download and install pound on your load balancer. 

 
 

Web, log and mail server.

Thought I'd take it upon myself to create a mail server on 'roppie' (me server). It's now a log server also, I even got my router to send logs to it too. Interesting it is though, I have 'jlap' sending all its logs to roppie too. 'roppie' also runs a minimal web server (lighttpd + mysql, same as jlap) but also serves the logs out on HTTP so I can view them anywhere.