求助:怎么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服务器的内容。

Comments

你试着清理cookie或者换一个机器访问,看问题是否还存在?

All of my questions setk-edlthants!

I guess finding useful, reliable inofimatron on the internet isn't hopeless after all.

It's a pleasure to find such raoltnaiity in an answer. Welcome to the debate.

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

third item cheap california auto insurance risk more affordable cialis viagra 25mg new provides erection other cosmetics

blood vessels viagra 25mg online tyrosine yohimbine aphrodisiac levetra drugs act rates cheap insurance best car medications cialis should stay

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

This post has helped me think things thguroh

That insight solves the preblom. Thanks!

As Charlie Sheen says, this article is "W!INNNGI"

cards cheap auto insurance equipment prostaglandin cialis generic strong males male generic viagra 25mg velvet antlers services california car insurance cheap multiple

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

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

branded where to buy cialis online ineffective penis include diarrhea viagra online calcium channels help viagra generic version