lvs 中ldirectord是通过那些配置参数对真服务器进行检测的?
有关于lvs 中ldirectord是怎么检测真服务器在线情况,提供服务的正常性。
一直搞不懂。
有状态服务?无状态服务?---这些又指的是什么
服务的健康状况判断方法?---这是指的是那些配置
# Global Directives
checktimeout=3
checkinterval=1
#fallback=127.0.0.1:80
autoreload=yes
#logfile="/var/log/ldirectord.log"
#logfile="local0"
#emailalert="admin@abc"
#emailalertfreq=3600
#emailalertstatus=all
quiescent=yes
# Sample for an http virtual service
virtual=192.168.1.254:80
real=192.168.1.2:80 gate
real=192.168.1.3:80 gate
real=192.168.1.4:80 gate
real=192.168.1.5:80 gate
fallback=127.0.0.1:80 gate
service=http
request="index.html"
receive="Test Page"
virtualhost=abc.domain.com
scheduler=rr
#persistent=600
#netmask=255.255.255.255
protocol=tcp
checktype=negotiate
checkport=80
BIOS
周三, 2009-04-08 10:19
Permalink
ldirectord通过checktype设
ldirectord通过checktype设置及相关配置进行健康检查
checktype 包括connect|external|negotiate|off|on|ping|checktimeout这几个,默认的是negotiate,通过交互来判断服务是否正常
connect是通过对端口进行连接进行检测,使用connect就会忽略request和receive参数
你上面这个配置就是通过拿去index.html页面同时判断页面中的内容是不是“Test Page”这个字串,如果是,表明http状态是正常的,如果不符合,说明就是不正常的
mbillion
周四, 2009-04-09 07:23
Permalink
非常感谢! 我在做实
非常感谢!
我在做实验时(因为真的当时不明是怎么检测真服务器的)全部注销掉以下四项,当我真服务器httpd进程一退出,ldirectord也能马上检测出来,真的很郁闷!
#request="index.html"
#receive="Test Page"
#checktype=negotiate
#checkport=80
以上注销了checktype了,默认的值还是negotiate 吗?而这时因为注销了以下两项
#request="index.html"
#receive="Test Page"
checktype就忽略了request="index.html"与receive="Test Page"吗?
BIOS
周一, 2009-04-13 02:22
Permalink
我是这样理解的 #reques
我是这样理解的
#request="index.html"
#receive="Test Page"
有这两条,是检查http服务的可用性,如果没有,会检查lvs 80端口的可用性
因为你的httpd进程被你down掉了
所以80端口不可用了,故ldirectord也认为realserver是坏掉了
只所以要有#request="index.html"
#receive="Test Page"这两项,是存在80端口是存在的,但是不能提供服务的情况,比如httpd成为了僵尸进程
Anonymous (没有被验证)
周三, 2014-03-05 10:02
Permalink
IcRsDqWKpYoWnvHDRvzf
This piece was cogent, welrlw-itten, and pithy.
Anonymous (没有被验证)
周四, 2014-03-06 14:42
Permalink
nuFfVhRGKlMW
Stay invfimatroe, San Diego, yeah boy!
Anonymous (没有被验证)
周二, 2014-03-18 04:21
Permalink
YrGgQLJwdpWfui
buy car insurance online cheapese Cialis on line cialis virarga companies life insurance term
Anonymous (没有被验证)
周五, 2014-12-19 18:14
Permalink
aRnJNyMVyx
The expstriee shines through. Thanks for taking the time to answer.
Anonymous (没有被验证)
周二, 2014-12-23 11:13
Permalink
LdZOIRtTmULyqxDSOxHF
I apatecipre you taking to time to contribute That's very helpful.
Anonymous (没有被验证)
周六, 2014-12-27 21:27
Permalink
kdsvcbVYrFrFGYdFST
viagra online
Anonymous (没有被验证)
周五, 2015-02-20 09:24
Permalink
gTYyoxlVaKDYWIVXW
most suitable auto insurance quotes law outlined above sildenafil who function than buy cialis effects caused driver education california car insurance free quotes insurance having sex buy viagra 25mg savvy
Anonymous (没有被验证)
周六, 2015-02-21 03:34
Permalink
yhjlGuIrKLodiCI
pull buy car insurance online different more fuel-efficient auto insurance quotes some ever rates insurance auto very difficult
Anonymous (没有被验证)
周五, 2015-05-01 19:58
Permalink
wmGWdCFvqgYIbsKet
sildenafil online amoxicillin online order furosemide order imigran colchicine usa buy azithromycin online
Anonymous (没有被验证)
周一, 2015-06-08 21:03
Permalink
SONzPXOSDfxpQBp
annual health whole Georgia life insurance take advantage violations could insurance auto effective car allows cheap auto insurance achieve herbal concoctions viagra day first car insurance quotes people however viagra online decided
Anonymous (没有被验证)
周一, 2014-04-14 06:10
Permalink
GuIxzfGXZMAdUBQatGN
here carinsurancequotesfreeonline.net viagra online manufacturer liability insurance Where to Buy Cialis on Line
Anonymous (没有被验证)
周二, 2014-04-22 20:13
Permalink
lrhVIXTczKTdRXyswBE
college essay writing essay website do my uni assignment for me
Anonymous (没有被验证)
周四, 2014-05-29 18:09
Permalink
ZkYcaBxUdOhvgdIq
accutane cheap essay writing help best home insurance providers order viagra online writing services reviews
Anonymous (没有被验证)
周四, 2014-06-05 04:45
Permalink
HrWTRpKnFH
cheap car insurance nj auto insurance quotes online here academic writing