#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
本文深入探讨了HAProxy版本1.6.3的配置文件,包括全局参数、默认设置以及具体的服务器监听配置。通过实例展示了如何使用HAProxy实现TCP负载均衡,并配置服务器权重和健康检查。
533

被折叠的 条评论
为什么被折叠?



