HAProxy for VMware Aria Operations analytics configuration guide

You can configure the HAProxy for VMware Aria Operations analytics as follows:

# Configuration file to balance both web and epops 
#global parameters global
    log         127.0.0.1 local2
    chroot      /var/lib/haproxy
    pidfile     /var/run/haproxy.pid
    maxconn     2000
    user        haproxy
    group       haproxy
    daemon
    stats socket /var/lib/haproxy/stats
    ssl-server-verify none  
#default parameters unless otherwise specified defaults
    log global
    mode http
    option httplog
    option tcplog
    option dontlognull
    timeout connect 5000ms
    timeout client 50000ms
    timeout server 50000ms
#listener settings for stats webpage can be optional but highly recommended  listen stats :9090
    balance
    mode http
    stats enable
    stats auth admin:admin
    stats uri /
    stats realm Haproxy\ Statistics
#automatic redirect for http to https connections
frontend vrops_unsecured_redirect *:80
       redirect location https://<insert_fqdn_address_here>
#front settings in this case we bind to all addresses on system or specify an interface
    frontend vrops_frontend_secure
       bind <web dedicated ip>:443 
       mode tcp 
       option tcplog 
       default_backend vrops_backend_secure
#backend configuration of receiving servers containing tcp-checks health checks and hashing
#needed for a proper configuration and page sessions
#adjust the server parameters to your environment
    backend vrops_backend_secure
       mode tcp 
       option tcplog
    balance source
    hash-type consistent
    option tcp-check
    tcp-check connect port 443 ssl
    tcp-check send GET\ /suite-api/api/deployment/node/status?services=api&services=adminui&services=ui\ HTTP/1.0\r\n\r\n
## For older versions of vROPS from 6.6.1 to 7.5 please use the following “tcp-check”
# tcp-check send GET\ /suite-api/api/deployment/node/status\ HTTP/1.0\r\n\r\n
tcp-check expect rstring ONLINE
server node1 <Insert node1 ip address here>:443 check inter 15s check-ssl maxconn 140 fall 3 rise 3
server node2 <Insert node2 ip address here>:443 check inter 15s check-ssl maxconn 140 fall 3 rise 3
server node3 <Insert node3 ip address here>:443 check inter 15s check-ssl maxconn 140 fall 3 rise 3
server node4 <Insert node4 ip address here>:443 check inter 15s check-ssl maxconn 140 fall 3 rise 3
Note:

Make sure to use proper tcp-check call in above instruction. Starting from vROps 8.0 status API enhanced to track separate services status. Old “tcp-check” call provided above in comments.