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. 

 

 

Последний Раз



Photo by psilver

I'll skip the whole 'I haven't posted for two weeks' intro. 

It's only October and it already snowed, a couple of inches and it's still here. Mornings are sure colder.

I finally put together my new fileserver, and up  from my one harddrive server before. I was going to do a RAID1 configuration, but instead went back to a normal partitioning setup (XFS on the secondary HDD for the files). Recieved another computer the other day, so I'm at a total of 7 servers.

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.

 

Same as my NAS, no RAID so if the HDD fails, I'm screwed again. Still, it would be a cool journey on getting a load balancing scheme set up...and working. That, and I just want to use all the ports on my 24 port switch. Then, depending on the load on the NFS server, I could run MySQL/Postgres on it for use with the web servers.