install and configure haproxy, the software based loadbalancer in Ubuntu
HAProxy is a very fast and reliable solution offering high availability, load balancing, and proxying for TCP and HTTP-based applications. It’s free and open source application which is very lightweight as well. I checked few other alternatives like perlbal, pond etc. but found haproxy most competent performer.
I’m describing here the steps I followed to download, install and configure it in Ubuntu Server. We have 2 backend Web servers which will receive traffic from Load balancer host running HAProxy in front of them.
Step 1. Download, compile and install HAproxy from here :
$ cd /usr/src $ wget http://haproxy.1wt.eu/download/1.4/src/haproxy-1.4.11.tar.gz $ tar xzf haproxy-1.4.11.tar.gz $ cd haproxy-1.4.11 $ make install