免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1626 | 回复: 0
打印 上一主题 下一主题

急!ldirectord 不能加入realserver,只能加入localhost [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-02-25 18:36 |只看该作者 |倒序浏览
heartbeat 3.0.7   IPVSADM 1.24

ldirectord.cf配置

# Global Directives
checktimeout=3
checkinterval=5
#fallback=127.0.0.1:80
#fallback6=[::1]:80
autoreload=yes
logfile="/var/log/ldirectord.log"
logfile="local0"
#emailalert="admin@x.y.z"
#emailalertfreq=3600
#emailalertstatus=all
quiescent=no

# Sample for an http virtual service
virtual=192.168.102.252:80
        real=192.168.102.103:80 gate
        real=192.168.102.104:80 gate
        fallback=127.0.0.1:80 gate
        service=http
        scheduler=rr
        #persistent=600
        #netmask=255.255.255.255
        protocol=tcp
        checktype=negotiate
        checkport=80
        request="index.html"
        receive="Test Page"
        #virtualhost=www.x.y.z

/var/log/ldirectord.log
[Mon Feb 24 16:38:53 2014|ldirectord.cf|1913] Starting Linux Director v1.186-ha as daemon
[Mon Feb 24 16:38:53 2014|ldirectord.cf|1915] Changed virtual server: 192.168.102.252:80
[Mon Feb 24 16:38:53 2014|ldirectord.cf|1915] Restored real server: 192.168.102.104:80 (192.168.102.252:80) (Weight set to 1)
[Mon Feb 24 16:38:53 2014|ldirectord.cf|1915] Deleted real server: 192.168.102.103:80 (192.168.102.252:80)
[Mon Feb 24 16:38:53 2014|ldirectord.cf|1915] Deleted real server: 192.168.102.104:80 (192.168.102.252:80)
[Mon Feb 24 17:08:13 2014|ldirectord.cf|1915] Configuration file '/usr/etc/ha.d/conf/ldirectord.cf' has changed on disk
[Mon Feb 24 17:08:13 2014|ldirectord.cf|1915]  - reread new configuration
[Mon Feb 24 17:08:14 2014|ldirectord.cf|1915] Changed virtual server: 192.168.102.252:80
[Mon Feb 24 17:08:14 2014|ldirectord.cf|1915] Added fallback server: 127.0.0.1:80 (192.168.102.252:80) (Weight set to 1)
[Mon Feb 24 17:19:34 2014|ldirectord.cf|1915] Configuration file '/usr/etc/ha.d/conf/ldirectord.cf' has changed on disk
[Mon Feb 24 17:19:34 2014|ldirectord.cf|1915]  - reread new configuration
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP