Hi! I build a lvs(lvs-dr):
________
| |
| client |
|________|
|
(router)(62.132.4.129)
|
__________ |
| | | VIP=62.132.4.187 (eth0:0, arps)
| director |--- DIP=62.132.4.170 (eth0)
|__________| |
|
|
-------------------------------------
| | |
| | |
RIP1=62.132.4.171 RIP2=62.132.4.172 RIP3=62.132.4.173 (eth0)
VIP=62.132.4.187 VIP=62.132.4.187 VIP=62.132.4.187 (all dummy0:0,
non-arping)
_____________ _____________ _____________
| | | | | |
| realserver | | realserver | | realserver |
|_____________| |_____________| |_____________|
| | |
(router) (router) (router)
| | |
----------------------------------------------> to router
in front of
director
here is lvs_dr.conf(compile with configure 0.8)
#----------lvs_dr.conf----------------------------------------
LVSCONF_FORMAT=1.0
LVS_TYPE=VS_DR
INITIAL_STATE=on
CLEAR_IPVS_TABLES=yes
VIP=eth0:0 62.132.4.187 255.255.255.255 62.132.4.187
DIRECTOR_INSIDEIP=eth0 62.132.4.170 62.132.4.128 255.255.255.192 62.132.4.191
SERVICE=t http wrr 62.132.4.172,2 62.132.4.172,2 62.132.4.173,2
SERVER_VIP_DEVICE=dummy0:0
SERVER_NET_DEVICE=eth0
SERVER_GW=62.132.4.129
#----------end lvs_dr.conf------------------------------------
then run rc.lvs_dr on director and real-server, I found that the config of
dummy0:0 is changed by rc.lvs_dr. so I have to reset dummy0:0. Testing lvs, the
speed of the client connecting lvs is very slowly, and ipvsadm shows entries in
InActConn, but none in ActiveConn. I check the real-servers' route table, the
default gw of eth0 is 62.132.4.129(it is right, I also add the default gw of
dummy0 with 62.132.4.129, thing is same).
anyone tell me why?
致
礼!
charles huang
charles-huang@xxxxxxxx
|