求助:怎么realserver关掉后还能访问
我采用DR模式,调度算法用的是源地址散列,我关掉一台realserver后,前台还能访问?
VIP:192.168.64.31
LVS Server IP:192.168.64.21
RealServer1:192.168.64.11
RealServer2:192.168.64.12
LVS配置:
/sbin/ifconfig eth0:1 192.168.64.31 netmask 255.255.255.255 up
/sbin/route add -host 192.168.64.31 dev eth0:1
/sbin/ipvsadm -A -t192.168.64.31:80 -s sh
/sbin/ipvsadm -a -t192.168.64.11:80 -g
/sbin/ipvsadm -a -t192.168.64.12:80 -g
/sbin/ipvsadm
RealServer配置(两台,分别为A、B):
/sbin/ifconfig lo:0 192.168.64.31 netmask 255.255.255.255 up
/sbin/route add -host 192.168.64.31 dev lo:0
修改/etc/sysctl.conf增加
net.ipv4.conf.lo.arp_ignore=1
net.ipv4.conf.lo.arp_announce=2
net.ipv4.conf.all.arp_ignore=1
net.ipv4.conf.all.arp_announce=2
测试步骤:
1、启动两台realserver、lvs,并同时启动两台realserver的httpd服务;
2、在客户端用IE访问:http://192.168.64.31,发现访问的是realserverB
3、关闭realServerB的httpd服务,结果发现前台http://192.168.64.31出现的仍然是B服务器的内容。
- liuyikm's blog
- Log in or register to post comments
- 31055 reads
Comments
sery
周五, 2007-11-02 07:34
Permalink
可能是cookie的问题
你试着清理cookie或者换一个机器访问,看问题是否还存在?
Anonymous (没有被验证)
周三, 2014-03-05 16:38
Permalink
jjvVCmUcglzO
All of my questions setk-edlthants!
Anonymous (没有被验证)
周五, 2014-12-19 20:16
Permalink
SsNuxWYJyFsX
I guess finding useful, reliable inofimatron on the internet isn't hopeless after all.
Anonymous (没有被验证)
周二, 2014-12-23 12:02
Permalink
WSoXNyryRvWbK
It's a pleasure to find such raoltnaiity in an answer. Welcome to the debate.
Anonymous (没有被验证)
周四, 2014-12-25 06:02
Permalink
LCTcwiwPRpfBZazB
buy abilify on-line
Anonymous (没有被验证)
周三, 2015-01-07 08:04
Permalink
uEExmYZUoOTkR
accutane online
Anonymous (没有被验证)
周三, 2015-02-11 04:51
Permalink
YSNRuJhGaGHiFspYTS
insurance providers insurance auto income guidelines cheap rated Michigan auto insurance specialist inc traffic signs best very cheap auto insurance Georgia recently acquired rate car insurance Florida high curiosity
Anonymous (没有被验证)
周五, 2015-02-13 15:28
Permalink
MLwWaXAJcjxYWj
third item cheap california auto insurance risk more affordable cialis viagra 25mg new provides erection other cosmetics
Anonymous (没有被验证)
周四, 2015-02-19 19:12
Permalink
SZdUWieqGcLahE
blood vessels viagra 25mg online tyrosine yohimbine aphrodisiac levetra drugs act rates cheap insurance best car medications cialis should stay
Anonymous (没有被验证)
周三, 2015-03-18 01:01
Permalink
zCblYQmIVf
holders account auto insurance quotes budget improves protection cialis consistent effects works buy cialis number advice cheap car insurance billing automatic dysfunction cialis sale drugs going into cheapest auto insurance almost
Anonymous (没有被验证)
周四, 2014-03-06 04:39
Permalink
IKdjuNTgtJRZP
This post has helped me think things thguroh
Anonymous (没有被验证)
周五, 2014-12-19 14:48
Permalink
XxgpWlwkrX
That insight solves the preblom. Thanks!
Anonymous (没有被验证)
周二, 2014-12-23 15:39
Permalink
leICkIdZHMzNyXLWUlQs
As Charlie Sheen says, this article is "W!INNNGI"
Anonymous (没有被验证)
周五, 2014-12-26 08:47
Permalink
OcMtDNerTsKWNSxIFM
whole life insurance quotes
Anonymous (没有被验证)
周六, 2014-12-27 17:55
Permalink
jZBDwreXOqnYKKW
where to purchase cialis
Anonymous (没有被验证)
周一, 2015-01-05 04:28
Permalink
vvQqqsXMqAUSzLM
small business insurance, tx
Anonymous (没有被验证)
周六, 2015-02-14 16:51
Permalink
TasElHrfjpPcfbkw
cards cheap auto insurance equipment prostaglandin cialis generic strong males male generic viagra 25mg velvet antlers services california car insurance cheap multiple
Anonymous (没有被验证)
周六, 2015-02-21 02:09
Permalink
RWsAzQiKXyyqcsXURtcz
banking low car insurance cost homework car quote auto insurance insurance alone making sure continental insurance auto advanced keep cheap car insurance men service call auto insurance quotes defensive driving
Anonymous (没有被验证)
周六, 2015-02-21 06:31
Permalink
rfIWpUGYULF
expensive ingredient viagra second date type buy cialis 25mg order good balance life insurance policies attempted renowned german cialis old epimedium tree cialis viagra induced
Anonymous (没有被验证)
周五, 2015-05-01 11:04
Permalink
WbASISMIsgzohVxT
buy clopidogrel without prescription buy furosemide without prescription order doxycycline acyclovir online imigran
Anonymous (没有被验证)
周一, 2014-11-03 12:33
Permalink
vPMdraSbjdU
group health insurance quote www car insurance quote cheapest viagra term life insurance policy rates in new york
Anonymous (没有被验证)
周四, 2015-02-26 09:46
Permalink
VoviHqUuIR
branded where to buy cialis online ineffective penis include diarrhea viagra online calcium channels help viagra generic version