代码拉取完成,页面将自动刷新
同步操作将从 cyzhang/loadblance 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
global
log 127.0.0.1 local2
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 4000
user haproxy
group haproxy
daemon
# turn on stats unix socket
stats socket /var/lib/haproxy/stats
tune.ssl.default-dh-param 2048
#---------------------------------------------------------------------
# common defaults that all the 'listen' and 'backend' sections will
# use if not designated in their block
#---------------------------------------------------------------------
defaults
log global
mode http
option httplog
option dontlognull
retries 3
timeout http-request 10s
timeout queue 1m
timeout connect 10s
timeout client 1m
timeout server 1m
timeout http-keep-alive 10s
timeout check 10s
maxconn 3000
#---------------------------------------------------------------------
# Frontends (80,8080,389,636,4444)
#---------------------------------------------------------------------
frontend www
bind *:80
mode http
default_backend wwwpool
##---------------------------------------------------------------------
## Backends
##---------------------------------------------------------------------
#
backend wwwpool
mode http
balance roundrobin
option forwardfor
cookie SERVERID
option httpclose
option abortonclose
server web1 172.17.1.1:2345 check cookie server1 weight 1 maxconn 100 inter 2000 rise 2 fall 3
server web2 172.17.1.1:2346 check cookie server2 weight 1 maxconn 100 inter 2000 rise 2 fall 3
server web3 172.17.1.1:2347 check cookie server3 weight 3 maxconn 100 inter 2000 rise 2 fall 3
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。