1. Home
  2. Framework
  3. HAProxy and Snapt Aria

HAProxy and Snapt Aria

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 comes in a Community Edition as well as an Enterprise Edition.

HAProxy in Snapt Aria

As it turns out, Snapt Aria 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.

You can find out more in our blog post HAProxy User Interface (UI) – Supercharge it! and in the Snapt Aria for HAProxy product page.

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 Aria.

Step 1: Download HAProxy

If you had been using a standalone installation of Snapt Aria, here are the instructions to upgrade HAProxy to version 1.8, which is the one that Snapt Aria requires.

SSH to your server and wget the HAProxy source code:

wget http://www.haproxy.org/download/1.8/src/haproxy-1.8.0.tar.gz

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:

cd haproxy-1.8.0

Compile HAProxy:

Note: you will need to have the OpenSSL and Perl Compatible Regular Expressions (PCRE) development libraries installed in your system.

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 Aria:

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 Aria.

Updated on April 9, 2020

Was this article helpful?

Related Articles