HAProxy(High Availability Proxy) is an open-source load-balancer whisch is is free,fast and reliable. It offers load-balancing, high-availability, and proxying for TCP and HTTP-based applications.Here we are using it for loadbalencing httpd.Here we are configuring haproxy server assuming that we have httpd installed on our two nodes. First install the dependencies #yum install gcc pcre-static pcre-devel -y Download the ha-proxy package #wget https://www.haproxy.org/download/1.7/src/haproxy-1.7.8.tar.gz Extract it #tar -xvzf haproxy.tar.gz #cd haproxy-1.7.8 then ensure you compile the program for your system. #make TARGET=linux2628 #make install Setting up HAProxy for your server Create the following directories #mkdir -p /etc/haproxy #mkdir -p /run/haproxy #mkdir -p /var/lib/haproxy #touch /var/lib/haproxy/stats Make a symbolic link so the binary will allow you to run HAProxy commands as a normal user. ln -s /usr/local/sbin/haproxy /usr/sbin/haproxy copy the i...