EPOps via HAProxy configuration guide

You can configure EPOps HAProxy as follows:

# EPOPS Load Balancer configuration. 
#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 <Insert https fqdn here >
    frontend epops_frontend_secure
    bind <epops dedicated ip>:443
    mode tcp
    option tcplog
    use_backend epops_backend_secure
    #adjust the server parameters to your environment
    backend epops_backend_secure
    mode tcp
    option tcplog
    balance source
    hash-type consistent
    option tcp-check
    timeout queue 20s
    tcp-check connect port 443 ssl
    tcp-check send GET\ /epops-webapp/health-check\ HTTP/1.0\r\n
    tcp-check send \r\n
    tcp-check expect string 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:

The line “listen stats :9090” configures the status listener of HAProxy.