MariaDB社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2720|回复: 0
打印 上一主题 下一主题

haproxy求教

[复制链接]
跳转到指定楼层
1#
发表于 2010-9-13 22:56:41 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我安裝了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

本帖被以下淘专辑推荐:

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 转播转播 分享分享 分享淘帖1 顶 踩

QQ|Archiver|小黑屋|手机版|MariaDB社区 ( 京ICP备07012489号    |
业务联系: QQ:48474881; 邮箱: 48474881@qq.com; 电话:13911732319
声明:本站部分文章是网友转载,若未经作者同意或署名有误,请联系网站管理员。

GMT+8, 2024-9-20 07:55 , Processed in 0.166610 second(s), 25 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表