HAProxy is free, open-source software that provides a high availability load balancer and proxy server for TCP and HTTP-based applications that spread requests across multiple servers. It is quite fast and efficient in terms of processor and memory usage.
HAProxy in Snapt One
As it turns out, Snapt One virtual Load Balancer is powered by HAProxy and has added quite a large number of features to it so that we can utilize it to its maximum capability.
How to Upgrade HAProxy
We will download and build HAProxy from the sources, and then proceed with installation so that you have an upgraded version for Snapt One.
Step 1: Download HAProxy
If you had been using a standalone installation of Snapt One, here are the instructions to upgrade HAProxy to version 1.8, which is the one that Snapt One requires.
SSH to your server and
wget the HAProxy source code:
Step 2: Build HAProxy
Now we’ll build HAProxy 1.8 form the sources.
Uncompress the tarball:
tar xvf haproxy-1.8.0.tar.gz
Enter the sources directory:
make TARGET=linux26 USE_ZLIB=yes USE_OPENSSL=yes USE_PCRE=yes
Step 3: Install HAProxy
You can now install HAProxy 1.8 for Snapt One:
Note: you will need root access to perform this operation.
cp /usr/sbin/haproxy /usr/sbin/haproxy_bak cp ./haproxy /usr/sbin/haproxy
HAProxy 1.8 is now installed and ready to be used to its full potential with Snapt One.