HAProxy installation guide.

HAProxy installation is supported and tested on Red Hat Enterprise Linux (RHEL) 7.x or 8.x and can be obtained from the official Red Hat repository. You can install HAProxy on RHEL 7.x or 8.x by using the yum package manager. To configure HAProxy as a load-balancer for VMware Aria Operations follow the steps below:

Procedure

  1. Perform a package update on system to ensure all packages are up-to-date:
    yum update
  2. Install HAProxy:
    yum -y install haproxy
  3. Copy original HAProxy configuration to backup file:
    cp /etc/haproxy/haproxy.cfg /etc/haproxy/haproxy.cfg.bak
  4. Configure HAProxy configuration. To configure analytics balancer, see Configure HAProxy Analytics.
  5. Allow firewall traffic through for the ports needed for HAProxy to function:
    firewall-cmd --permanent --zone=public --add-port=80/tcp
    firewall-cmd --permanent --zone=public --add-port=9090/tcp
    firewall-cmd --permanent --zone=public --add-port=443/tcp
  6. Reload the firewall configuration:
    systemctl reload firewalld
  7. Activate HAProxy to connect to any interface:
    setsebool -P haproxy_connect_any 1
  8. Activate HAProxy service:
    systemctl enable haproxy