通过lvs的vip访问主页后,里面的业务无法打开,显示白屏请问什么原因导致的,多谢!
在rhel6.3上使用prianha+lvs做tomcat的负载均衡,在浏览器里面访问vip能够成功的访问主页和输入用户和密码验证登陆,但是登陆进去了,点击里面的子页面的时候就发现相关的业务无法打开,浏览器处于白屏状态,这个怎么处理,多谢!
lvs server 配置:
root@crm1[/]#sysctl -p
net.ipv4.ip_forward = 1
net.ipv4.conf.default.rp_filter = 2
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
#cat lvs.cf
serial_no = 79
primary = 10.150.82.47
primary_private = 192.168.0.47
service = lvs
backup_active = 1
backup = 10.150.82.48
backup_private = 192.168.0.48
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = direct
debug_level = NONE
monitor_links = 0
syncdaemon = 0
virtual webserv {
active = 1
address = 10.150.82.40 bond0:1
vip_nmask = 255.255.255.255
port = 8080
pmask = 255.255.255.255
send = "GET / HTTP/1.0\r\n\r\n"
expect = "HTTP"
use_regex = 0
load_monitor = none
scheduler = rr
protocol = tcp
timeout = 6
reentry = 15
quiesce_server = 0
server web1 {
address = 10.150.82.41
active = 1
port = 8080
weight = 1
}
server web2 {
address = 10.150.82.42
active = 1
port = 8080
weight = 1
}
}
RealServer配置:
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 2
net.ipv4.conf.all.rp_filter = 2
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
root@web2[/root]#cat /etc/rlserver.sh
#!/bin/bash
VIP=10.150.82.40
case "$1" in
start)
/sbin/ifconfig lo:0 $VIP netmask 255.255.255.255 broadcast $VIP
/sbin/route add -host $VIP dev lo:0
echo "1" > /proc/sys/net/ipv4/conf/lo/arp_ignore
echo "2" > /proc/sys/net/ipv4/conf/lo/arp_announce
echo "1" > /proc/sys/net/ipv4/conf/all/arp_ignore
echo "2" > /proc/sys/net/ipv4/conf/all/arp_announce
sysctl -p >/dev/null 2>&1
echo "RealServer Started"
;;
stop)
ifconfig lo:0 down
route del $VIP > /dev/null 2>&1
echo "0" > /proc/sys/net/ipv4/conf/lo/arp_ignore
echo "0" > /proc/sys/net/ipv4/conf/lo/arp_announce
echo "0" > /proc/sys/net/ipv4/conf/all/arp_ignore
echo "0" > /proc/sys/net/ipv4/conf/all/arp_announce
echo "RealServer Stoped"
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
ipvsadm -Ln
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 10.150.82.40:8080 rr
-> 10.150.82.41:8080 Route 1 0 0
-> 10.150.82.42:8080 Route 1 0 0
在client端可以使用wget验证成功
#wget http://10.150.82.40:8080/web/
--2013-07-21 10:18:26-- http://10.150.82.40:8080/web/
Connecting to 10.150.82.40:8080... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “index.html.16”
[ <=> ] 23,522 --.-K/s in 0s
2013-07-21 10:18:26 (276 MB/s) - “index.html.16” saved [23522]
larryming
周日, 2013-07-21 16:14
Permalink
修改模式后一切正常!
已经解决了,scheduler = rr由轮训模式改成dh后就可以了;通过在client和realserver分别抓包,看看client和realserver的交互情况,发现有些包分别有两个realserver返回client,导致里面的子页面无法正常显示。
livez
周二, 2016-07-05 20:11
Permalink
http://iranni.xyz
Hot damn, lokiong pretty useful buddy.
Anonymous (没有被验证)
周六, 2013-10-19 09:48
Permalink
SkcsuLOsyl
Hot damn, lokiong pretty useful buddy.
Anonymous (没有被验证)
周四, 2014-03-06 01:12
Permalink
FZUSiPTkaF
Keep these arceltis coming as they've opened many new doors for me.
Anonymous (没有被验证)
周五, 2014-03-07 12:16
Permalink
vnReZyCaIUnbNKiZZN
So much info in so few words. Tosloty could learn a lot.
Anonymous (没有被验证)
周一, 2014-03-24 14:43
Permalink
FhnLGyJGdWZArsO
online auto insurance quotes car insurance cheap news buy viagra on-line
Anonymous (没有被验证)
周四, 2014-05-08 21:55
Permalink
LPndUZosxr
cheapairflights.com classic auto insurance quotes what is the maximum dose of ciallis you can take online accredited schools
Anonymous (没有被验证)
周二, 2013-11-05 02:15
Permalink
IShpkNFGuKNTfnyVKB
cheap auto insurance quote auto insurance quote car insurance quotes auto insurance free online quotes washington state New Orleans cheapest auto insuranve Michigan
Anonymous (没有被验证)
周四, 2013-11-07 18:25
Permalink
ITMEtncaOY
insurance auto Tennessee cheap auto insurance cheapest car insurance rates online colleges insurance quotes online auto insurance qoutes
Anonymous (没有被验证)
周三, 2014-03-05 15:06
Permalink
lNaJrJttCbcYwRRmZCBa
At last, sonomee comes up with the "right" answer!
Anonymous (没有被验证)
周三, 2014-03-05 23:25
Permalink
moNZshhuiIqvR
Superb inrfamotion here, ol'e chap; keep burning the midnight oil.
Anonymous (没有被验证)
周三, 2014-05-14 00:22
Permalink
IGmoaFUNzfepYpSJRVPl
www.isag2008.nl cialis non prescription Auto Insurance qoutes click here
Anonymous (没有被验证)
周四, 2014-05-29 04:32
Permalink
IkJrunvfVdfRpRufFkk
cialisonlinesales reviews online college car insurance rate order cialis custom essay
Anonymous (没有被验证)
周五, 2014-10-10 15:33
Permalink
YAldJuQYHHA
online colleges screaming children benefits provision car insurance quotes
Anonymous (没有被验证)
周四, 2014-10-23 20:03
Permalink
DVqhOSaoarCzE
online car insurance cheap car insurance australia impotence cheapest car insurance
Anonymous (没有被验证)
周四, 2014-11-27 07:05
Permalink
BlOtbQcAUgakvlPoEF
insurance car car insurance quotes online cheap generic cialis online online viagara
Anonymous (没有被验证)
周六, 2013-11-09 05:21
Permalink
cyESnpudaOIMpP
house insurance cheapest
Anonymous (没有被验证)
周日, 2013-11-17 20:35
Permalink
meuvXoBgBqRcWfwytLwU
sagamore auto insurance info on online pharmacy for cheap cialis health insurance cialis auto insurance quotes car insurance quotes
Anonymous (没有被验证)
周四, 2013-11-21 21:07
Permalink
AbSAutlalswVzhqHdBd
cheap insurance cheap cars insurance car category group insurance cheap car insurance quotes online cheap car insurance online degree programs accredited
Anonymous (没有被验证)
周四, 2013-12-05 12:06
Permalink
TcOyyRFwuOVCRvnDz
generic levitra online cheapest auto insurance viagra non generic online the chepest car insurance cheapest car insurance rates
Anonymous (没有被验证)
周三, 2013-12-25 18:39
Permalink
dPTQAPqrsPU
cheap car insurance nj justcars insurance www.bestautoinsur.net www.slotschips.com www.gettinginsurancequotes.net
Anonymous (没有被验证)
周二, 2014-01-07 01:41
Permalink
UYtqMpKGfbZOmWC
cheap insurance sr22 car insurance quotes viagra levitra accutane guild political lawyer salary online slots info car insurance quotes
Anonymous (没有被验证)
周三, 2014-01-15 04:20
Permalink
jCMSzgoFXjKOnON
cheap car insurance quotes cheap insurance free slots cheap temporary health insurance CHEAP auto insurance in new york state
Anonymous (没有被验证)
周五, 2014-09-05 08:56
Permalink
payday loans
pgkqupa payday loans >:-[ easy payday loans =-] money mutual CMTVm paycheck advance 6715 money mutual KrmysS
Anonymous (没有被验证)
周四, 2014-09-11 09:12
Permalink
payday loans
stxsrxr payday loans >:-[ money mutual 6083 payday loans yBPmx bad credit personal loans 0694
Anonymous (没有被验证)
周三, 2014-11-19 01:24
Permalink
sdfsdffs
instant payday loans sdffdsfsd payday
Anonymous (没有被验证)
周五, 2014-12-19 15:45
Permalink
vWujNyzZGKsjML
Tha'ts the best answer of all time! JMHO
Anonymous (没有被验证)
周四, 2015-03-19 08:07
Permalink
payday loan
jaxsxz payday loan 8]]] payday loans >:-OOO payday loans online 8120
Anonymous (没有被验证)
周六, 2015-05-16 14:23
Permalink
payday loan
welyzha payday loan PZgXYp payday loans eBShkq payday loans :-O payday loans >:]] payday loans 6959 payday loan =-]
Anonymous (没有被验证)
周五, 2015-06-05 20:54
Permalink
payday loans
vxbpuiw payday loans ydcrK payday loans %-[[[ payday loans %-[[[
Anonymous (没有被验证)
周二, 2015-06-30 21:12
Permalink
buy cialis
bspglz buy cialis 8156 viagra iTCVg viagra boFCop cialis >:-OOO
Anonymous (没有被验证)
周四, 2015-08-27 15:36
Permalink
Linux
good website with interesting ideas. lap band surgery
Anonymous (没有被验证)
周二, 2015-09-01 18:24
Permalink
hi
thanks for the updates on linux..seems to be working. concert tickets
Anonymous (没有被验证)
周一, 2015-11-02 15:43
Permalink
(No subject)