| global |
| maxconn 10 |
| stats socket ipv4@127.0.0.1:9999 level admin |
| stats socket /var/run/hapee-lb.sock mode 666 level admin |
| stats timeout 2m |
| defaults |
| timeout connect 5000 |
| timeout client 5000 |
| timeout server 5000 |
| log global |
| |
| frontend pulsar_tcp |
| bind *:6666 |
| mode tcp |
| default_backend pulsar_tcp |
| |
| frontend admin_http |
| bind *:8888 |
| mode http |
| default_backend admin_http |
| |
| backend pulsar_tcp |
| balance roundrobin |
| mode tcp |
| server pulsar_tcp pulsar:6650 |
| |
| backend admin_http |
| balance roundrobin |
| mode http |
| server pulsar pulsar:8080 check |
| option httpchk GET /metrics/ |
| http-check expect status 200 |
| |
| listen stats |
| bind *:9999 |
| mode http |
| stats enable |
| stats uri /stats |
| stats refresh 10s |
| stats admin if LOCALHOST |