通过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]

Forums:

已经解决了,scheduler = rr由轮训模式改成dh后就可以了;通过在client和realserver分别抓包,看看client和realserver的交互情况,发现有些包分别有两个realserver返回client,导致里面的子页面无法正常显示。

Hot damn, lokiong pretty useful buddy.

Hot damn, lokiong pretty useful buddy.

Keep these arceltis coming as they've opened many new doors for me.

So much info in so few words. Tosloty could learn a lot.

At last, sonomee comes up with the "right" answer!

Superb inrfamotion here, ol'e chap; keep burning the midnight oil.

instant payday loans sdffdsfsd payday

Tha'ts the best answer of all time! JMHO

vxbpuiw payday loans ydcrK payday loans %-[[[ payday loans %-[[[

bspglz buy cialis 8156 viagra iTCVg viagra boFCop cialis >:-OOO

good website with interesting ideas. lap band surgery

thanks for the updates on linux..seems to be working. concert tickets