charles huang wrote:
>
> 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
^^^
should this be 171?
> 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.
the script will remove any VIPs found (which it assumes are from previous
setups) and then
setup the VIP on the SERVER_VIP_DEVICE. What is the config of dummy0:0 changed
to?
> so I have to reset dummy0:0.
why?
> 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).
Can you setup your mailer so that it puts carriage returns at the end of each
line.
This paragraph is one line.
> anyone tell me why?
This usually means that the routing is wrong. Were there any errors when you
ran the
scripts on the director or realservers?
Can you send the route table for the realservers?
Joe
--
Joseph Mack PhD, Senior Systems Engineer, Lockheed Martin
contractor to the National Environmental Supercomputer Center,
mailto:mack.joseph@xxxxxxx ph# 919-541-0007, RTP, NC, USA
|