zhengsenlin888 发表于 2011-05-12 12:37

haproxy配置好了,可是没有负载均衡。请问下哪里出问题,谢谢。【已解决】

本帖最后由 zhengsenlin888 于 2011-05-12 14:13 编辑

haproxy配置好了,可是没有负载均衡。请问下哪里出问题,谢谢。配置如下:
global
    log 127.0.0.1 local0
    log 127.0.0.1 local1 notice
    maxconn 4096
    uid 99
    gid 99
    daemon

defaults
    log global
    mode http
    option httplog
    option dontlognull
    retries 3
    option redispatch
    maxconn 2000
    contimeout 5000
    clitimeout 50000
    srvtimeout 50000

listenlocalhost 0.0.0.0:2008
    stats   uri   /haproxy-stats
    mode http
    cookie SERVERID insert indirect
    balance roundrobin
    stats realm Haproxy\ statistics
    option httpclose
    #optionhttpchk GET /index.php
    server    app004 xx.xx.xx.xx:80 cookie app1inst1 check inter 2000 rise 2 fall 5
    server    app005 yy.yy.yy.yy:80 cookie app1inst1 check inter 2000 rise 2 fall 5
页: [1]
查看完整版本: haproxy配置好了,可是没有负载均衡。请问下哪里出问题,谢谢。【已解决】