Hi! Roberto Nibali
在 2001-10-08 21:00:00 您写道:
>Do you use the configure script from Joe?
I use Jos's configure-lvs_0.9.2 to configure lvs, here is my lvs_dr.conf:
#lvs_dr.conf
#format is (C) 2000-2001 Joseph Mack jmack@xxxxxxxx
#released under GPL.
#single network director VS-DR.
#VIP,real-servers on 192.168.1.0/24 on eth0
#
#----------lvs_dr.conf----------------------------------------
LVSCONF_FORMAT=1.1
LVS_TYPE=VS_DR
INITIAL_STATE=on
CLEAR_IPVS_TABLES=yes
VIP=eth0:0 61.131.4.187 255.255.255.255 61.131.4.187
DIP=eth0 61.131.4.170 61.131.4.128 255.255.255.192 61.131.4.191
SERVICE=t http wrr ppc 61.131.4.171,2 61.131.4.172,2 61.131.4.173,2
SERVER_VIP_DEVICE=dummy0:0
SERVER_NET_DEVICE=eth0
SERVER_GW=61.131.4.129
#----------end lvs_dr.conf------------------------------------
>I second Peter's request: Could you explain what exactly do you mean by
>'switch ppc in http ...'? Adding persistency to a service is done with
>the '-p' option. Does this help?
At command mode (ipvsadm), Adding persistency to a service is done with the
'-p' option. But cannot add persistency to http server, I add ppc option at
lvs_dr.conf( like above), configing with Jos's configure-lvs_0.9.2 and runing
rc.lvs_dr.
How to do?
致
礼!
charles huang
charles-huang@xxxxxxxx
|