To configure and install HAProxy, the user account must have superuser rights.
It is not recommended to install the HAProxy load balancer on the same server hosting the application because HAProxy and Kaspersky Web Traffic Security use the same port (1344) for interaction with other LAN servers.
To install and configure HAProxy:
firewall-cmd --add-port=1344/tcp --permanent
firewall-cmd --reload
ufw allow 1344
apt-get install iptables-persistent
iptables -A INPUT -p tcp --dport 1344 -j ACCEPT
yum install haproxy
zypper install haproxy
apt-get install haproxy
frontend ICAP
bind 0.0.0.0:1344
mode tcp
default_backend icap_pool
backend icap_pool
balance <balancing scheme, roundrobin is recommended>
mode tcp
server <name of ICAP server 1> <IP address of cluster node>:<ICAP server port> check
server <name of ICAP server 2> <IP address of cluster node>:<ICAP server port> check
server <name of ICAP server 3> <IP address of cluster node>:<ICAP server port> check
service haproxy restart
The HAProxy load balancer will be configured.
Page top