You are here

load balancing

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. 

 
 

Schematics

I've been profoundly confused on what to do with two new servers. At the moment, I have a total of three servers; a BitTorrent tracker, web server and NAS (NFS server). Now, what I was thinking was setting up a load balancing scheme using VS via NAT. Essentially, build one of the servers as a load balancer and turn the other one into a http node. The only problem with that is redundancy. Say if the load balancer fails for whatever reason, I'm screwed.
 

Subscribe to RSS - load balancing