#haproxy版本 1.6.3
#配置文件
globallog 127.0.0.1 local3 notice
maxconn 4096
#chroot /usr/share/haproxy
uid 0
gid 0
daemon
#debug
#quiet
defaults
log global
mode tcp
option tcplog
option dontlognull
retries 3
maxconn 2000
option redispatch
timeout connect 5000
timeout client 50000
timeout server 50000
#stats uri /haproxy
#stats auth test:test #设置监控页面的用户和密码:test
listen server_haproxy
bind 192.168.1.104:8066
balance roundrobin
mode tcp
server server_01 192.168.1.105:8066 weight 3 check
server server_02 192.168.1.107:8066 weight 3 check