haproxy simple cfg

时间:2024-08-04 12:33:50
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
user haproxy
group haproxy
daemon defaults
log global
mode http
option httplog
option dontlognull
contimeout
clitimeout
srvtimeout
errorfile /etc/haproxy/errors/.http
errorfile /etc/haproxy/errors/.http
errorfile /etc/haproxy/errors/.http
errorfile /etc/haproxy/errors/.http
errorfile /etc/haproxy/errors/.http
errorfile /etc/haproxy/errors/.http
errorfile /etc/haproxy/errors/.http frontend tutorial_in
bind *:
default_backend tutorial_http backend tutorial_http
balance roundrobin
mode http
server web1 172.16.13.135: check
server web2 172.16.13.136: check
server web3 172.16.13.137: check listen stats *:
stats enable
stats uri /
stats hide-version
stats auth someuser:password

browser web page:  localhost:8088

health monitor : localhost:8089