saundy 发表于 2019-1-1 12:44:54

Haproxy 主备配置

global
    maxconn 100000
    log /dev/log local0 notice

defaults
    mode tcp
    log global
    option redispatch
    retries 3
    timeout connect 5s
    timeout client 1210s
    timeout server 1210s

listen stats :8642
    mode http
    stats enable
    stats uri /
    stats auth admin:admin
frontend bbs
bind :28000
default_backend bbs
backend bbs
balance leastconn
server bbs-app_9801 bbs-server-1:9801 weight 1 maxconn 4096 check inter 1000
server bbs-app_9801 bbs-server-2:9801 weight 1 maxconn 4096 check inter 1000
server bbs-mysql-master_3306 bbs-mysql-server:3306check inter 1000 backup  




页: [1]
查看完整版本: Haproxy 主备配置