LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RE: Changing server weights

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: Changing server weights
From: Bowie Bailey <Bowie_Bailey@xxxxxxx>
Date: Fri, 11 May 2001 10:13:36 -0400
> From: Joseph Mack [SMTP:mack.joseph@xxxxxxx]
> 
> Bowie Bailey wrote:
> > 
> > I have a simple question.
> > 
> > If I want to bring a server down for maintenance, I need to change the
> > weight to 0 so it will clear all of it's connections. 
> 
> well actually this doesn't allow any new connections.
> People already connected will be able to continue with their sessions
> untill they voluntarily disconnect.
> 
Right.  That's what I meant.

> > How do I do this?  
> 
> man ipvsadm
> 
> look for the -w (weight) option
> 
> when you setup, the default weight is 1, so you'll do something like
> 
> ipvsadm -a -t $VIP:$SERVICE -r $REALSERVER:$SERVICE $FORWARDING -w 1
> 
> to stop new connections you'll do
> 
> ipvsadm -a -t $VIP:$SERVICE -r $REALSERVER:$SERVICE $FORWARDING -w 0
> 
My setup looks like this:
   IP Virtual Server version 0.9.14 (size=4096) 
   Prot LocalAddress:Port Scheduler Flags
     -> RemoteAddress:Port          Forward Weight ActiveConn InActConn
   TCP  172.16.17.30:80 wrr
     -> 172.16.17.11:80             Route   1000   0          0
     -> 172.16.17.168:80            Route   1000   0          0

I did this:
   ipvsadm -a -t 172.16.17.30:80 -r 172.16.17.168:80 -g -w 0

and it gave me an error:
   setsockopt failed: File exists
   Destination already exists

The man page says that the '-a' option is for adding a new server.  I am
trying to change a server that's already in the cluster.  What am I missing?

> > Also, has anyone else noticed that the html version of the LVS-HOWTO on
> > linuxvirtualserver.org is messed up?  It looks like the file got
> corrupted
> > and/or the html is messed up.
> 
> the new version was uploaded a few minutes ago. You must have stepped
> in in the middle of the upload. It is OK at my end.
> 
I checked it again from a different computer that doesn't use our proxy
server (just in case the bad version was being cached), and I got the same
results.  Right after the FWMARK section of the index it starts looking
really weird.

This is at:
http://www.linuxvirtualserver.org/Joseph.Mack/HOWTO/LVS-HOWTO.html

> 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
> 
Bowie Bailey
BUC International


<Prev in Thread] Current Thread [Next in Thread>