工作,学习,生活,这里将会有一些记录. 备用域名:http://meisw.wdlinux.cn 注册 | 登陆

haproxy.cfg

global
        log    127.0.0.1   local0
        ulimit-n 131091
        maxconn 65536
        #chroot /usr/local/haproxy
        uid 99
        gid 99
        #stats socket /usr/local/haproxy/HaproxSocket level admin
        #stats           socket /var/run/socket level admin
        daemon
        nbproc 8
        pidfile /var/run/haproxy.pid
        #debug
defaults
        log    127.0.0.1    local3
        mode   http
        option httplog
        #option httplog clf
        option httpclose
        option dontlognull
        #option forwardfor
        option redispatch
        option abortonclose
        retries 3
        maxconn 65536
        #balance source
        balance roundrobin
        #stats   uri     /haproxy-stats
        #stats   refresh 10s
        contimeout      30s
        clitimeout      60s
        srvtimeout      60s
listen  Cluster 0.0.0.0:80
        mode http
        balance roundrobin
        #option httpchk GET /goodo.html HTTP/1.0Host:9.126.13.13
        #option httpchk GET /goodo.html
        #server 192.168.0.111_node1  192.168.0.111:80 weight 3 check inter 2000 rise 2 fall 1
        #server node1 17.139.148.242:80 weight 3 check inter 2000 rise 2 fall 1
        #server node2 17.139.183.18:80 weight 1 check inter 12000 rise 2 fall 3
        server node3 17.139.165.210:80 weight 1 check inter 12000 rise 2 fall 3
        server node4 17.139.144.218:80 weight 1 check inter 12000 rise 2 fall 3
        server node5 11.34.169.10:80 weight 1 check inter 12000 rise 2 fall 3
        server node6 11.34.173.210:80 weight 1 check inter 12000 rise 2 fall 3
        server node7 6.198.139.186:80 weight 1 check inter 12000 rise 2 fall 3
        server node8 6.229.125.146:80 weight 1 check inter 12000 rise 2 fall 3

listen  stats_auth 0.0.0.0:91
        mode  http
        stats enable
        stats uri  /admin
        stats realm "LOGIN"
        stats auth  admin:123456
        stats hide-version
        stats refresh 10s
        stats admin if TRUE
        bind-process    1

« 上一篇 | 下一篇 »

Trackbacks

点击获得Trackback地址,Encode: UTF-8

发表评论

评论内容 (必填):