MariaDB社区

标题: haproxy求教 [打印本页]

作者: u-name    时间: 2010-9-13 22:56
标题: haproxy求教
我安裝了haproxy, 用了以下的設定, 在S1的log看到haproxy有不停的ping S1. 但我到haproxy-stats看到S1和S2的stats都是down的..
會是小弟的conf錯誤嗎?

global
        log 127.0.0.1   local0
        #log 127.0.0.1  local1 notice
        #log loghost    local0 info
        maxconn 4096
        chroot /tmp/haproxy
        uid 99
        gid 99
        daemon
        nbproc 1
        pidfile /tmp/haproxy/haproxy.pid
        #debug
        #quiet
defaults
        log     global
        log     127.0.0.1       local3
        mode    http
        option  httplog
        option  httpclose
        option  dontlognull
        option  forwardfor
        option  redispatch
        retries 2
        maxconn 2000
        balance roundrobin
        stats   uri     /haproxy-stats
        contimeout      5000
        clitimeout      50000
        srvtimeout      50000
listen  myuathost.no-ip.org 0.0.0.0:80
        mode    http
        option  httpchk GET /index.htm
        server  s1 192.168.10.108:80 weight 3 check
        server  s2 192.168.10.110:80 weight 3 check





欢迎光临 MariaDB社区 (http://123.56.88.72/) Powered by Discuz! X3.2