LVS/DR方式配置有问题,请各位高手指点!谢谢!!
我的配置方法,访问时总是路由到第一个实体机上,不知道什么问题,请各位高手指点一下,在下感激不尽!!
LB 和 2台RS 的 Kernel is 2.4.21-4EL, 系统均是RedHat Enterprise AS3
1)
rpm -ivh ipvsadm-1.21-9.ipvs108.i386.rpm
rpm -ivh piranha-0.7.6-1.i386.rpm
2) service piranha-gui start
3) # more /etc/sysconfig/ha/lvs.cf
serial_no = 18
primary = 192.168.1.1
service = lvs
network = direct
debug_level = NONE
virtual RTSP {
active = 1
address = 192.168.1.2 eth0:1
port = 554
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 RS1 {
address = 192.168.1.3
active = 1
weight = 1
}
server RS2 {
address = 192.168.1.4
active = 1
weight = 1
}
}
4) service pulse start
5) 配置LB的IP
ifconfig eth0:1 192.168.1.2 netmask 255.255.255.255 broadcast 192.168.1.2 up
route add -host 192.168.1.2 dev eth0:1
6) 在RS上的操作
ifconfig lo:0 192.168.1.2 netmask 255.255.255.255 broadcast 192.168.1.2 up
route add -host 192.168.1.2 dev lo:0
在2个RS机器上放有文件名相同但是内容不同的demo.avi文件
当我在4台PC上输入 rtsp://192.168.1.2/demo.avi
却没有按照rr的调度方式,4台客户机, 他们的访问情况是3:1,有时甚至是4:0;理论上应该是1:1,我不知道是哪里出现了问题,还请高手指点。谢谢!!!
maluyao
周日, 2006-09-24 13:03
Permalink
把下边命令的结果贴
把下边命令的结果贴上来
ipvsadm -Ln
把酒当歌,黎曼几何。
popstar
周六, 2006-09-30 01:16
Permalink
IP Virtual Server version
IP Virtual Server version 1.2.0 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
popstar
周六, 2006-09-30 01:16
Permalink
IP Virtual Server version
IP Virtual Server version 1.2.0 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
Anonymous (没有被验证)
周三, 2014-03-05 07:46
Permalink
ilQAiZMjFClXaKv
I am totally wowed and prerepad to take the next step now.
Anonymous (没有被验证)
周四, 2014-03-06 14:15
Permalink
BALVzhZbFdr
You can always tell an expert! Thanks for cognuibrtitn.
Anonymous (没有被验证)
周日, 2014-05-11 11:29
Permalink
iviGuWJElvKZGATNrEb
car insurance quote viagra discount low cost levitra 100 mg insurance car quotes insurance auto quote
Anonymous (没有被验证)
周五, 2014-05-30 14:07
Permalink
UrqmrZynVsvGwbjNS
click here to get started best business insurance cheap insurance quotes cheap house insurence
Anonymous (没有被验证)
周三, 2014-11-19 12:11
Permalink
UDITTsPnswE
car insurance quote online accounting degree no prescription viagra cheap viagra without prescription natural impotence
Anonymous (没有被验证)
周三, 2014-03-05 15:08
Permalink
ocpNKTspoZNC
Ab fab my goldoy man.