• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: 小 中 大 | 推荐给好友 上一篇 | 下一篇

LVS 服务监控程序Ldirectord 配置

发布: 2007-7-04 12:06 | 作者: admin | 来源:  网友评论 | 查看: 27次 | 进入软件测试论坛讨论

领测软件测试网 个人感觉在HA+LVS里面,用ldirectord来监控realserver的服务,要比mon好使的多。可能因为我不懂perl吧!?

## Ldirectord will periodically connect to each real server# and request a known URL. If the data returned by the server# does not contain the the expected response then the# test fails and the real server will be taken out of the available# pool. The real server will be added back into the pool once the# test succeeds. If all real servers are removed from the pool then# localhost is added to the pool as a fallback measure.## Based on the sample ldirectord.cf provided with ldirectord## Prepared: March 2003## Global Directiveschecktimeout=10checkinterval=2#fallback=127.0.0.1:80autoreload=no#logfile="/var/log/ldirectord.log"logfile="local0"quiescent=yes# Virtual Server for HTTPvirtual=10.1.3.61:80 fallback=127.0.0.1:80 real=192.168.6.4:80 masq real=192.168.6.5:80 masq service=http request="index.html" receive="Test Page" scheduler=rr #persistent=600 protocol=tcpchecktype=negotiate# Virtual Service for HTTPSvirtual=10.1.3.61:443 fallback=127.0.0.1:443 real=192.168.6.4:443 masq real=192.168.6.5:443 masq service=https request="index.html" receive="Test Page" scheduler=rr #persistent=600 protocol=tcpchecktype=negotiate# Virtual Service for FTP# Note that peresistancy needs to be turned on for FTP when# used with LVS-TUN (ipip) or LVS-DR (gate), but not with LVS-NAT (masq).virtual=10.1.3.61:21 fallback=127.0.0.1:21 real=192.168.6.4:21 masq real=192.168.6.5:21 masq service=ftp request="welcome.msg" receive="Welcome" login="anonymous" passwd="anon@anon.anon" scheduler=rr #persistent=600 protocol=tcpchecktype=negotiate## Virtual Service for IMAP#virtual=10.1.3.61:143# fallback=127.0.0.1:143# real=192.168.6.4:143 masq# real=192.168.6.5:143 masq# service=imap# #login="test"# #passwd="test"# scheduler=rr# #persistent=600# protocol=tcp# checktype=negotiate### Virtual Service for POP#virtual=10.1.3.61:110# fallback=127.0.0.1:110# real=192.168.6.4:110 masq# real=192.168.6.5:110 masq# service=pop# #login="test"# #passwd="test"# scheduler=rr# #persistent=600# protocol=tcp### Virtual Service for SMTP#virtual=10.1.3.61:25# fallback=127.0.0.1:25# real=192.168.6.4:25 masq# real=192.168.6.5:25 masq# service=smtp# scheduler=rr# #persistent=600# protocol=tcp### Virtual Service for LDAP#virtual=10.1.3.61:389# fallback=127.0.0.1:389# real=192.168.6.4:389 masq# real=192.168.6.5:389 masq# service=ldap# scheduler=rr# #persistent=600# protocol=tcp#只需要由HA启动ldirectord时读入该配置文件。就可以正确检测后台服务进程,踢掉DOWN了的节点,提供高可用服务了。

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:[email protected] 电话:010-51297073

软件测试 | 领测国际 | ISTQB | ISTQB官网 | TMMi | TMMi认证 | 国际软件测试工程师认证 | 领测软件测试网