LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Changing server weights

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Changing server weights
From: Wensong Zhang <wensong@xxxxxxxxxxxx>
Date: Sat, 12 May 2001 10:10:51 +0800 (CST)
On Fri, 11 May 2001, Horms wrote:

> On Fri, May 11, 2001 at 01:06:08PM -0400, Joseph Mack wrote:
> > Horms wrote:
> >
> > > So if the service doesn't exist it would be the same as running
> > > ipvsadm -a ...
> > >
> > > But if the service already exists  it would be the same as the current
> > > behaviour for ipvsadm -e ..
> > >
> > > Is this what you are after? It certainly seems like a good idea to me.
> >
> > yes!
> >
> > I'm looking for an ipvsadm -a command that will work in a script.
>
> I'm thinking that the best way to do this would be to merge the
> behaviour of -a and -e (-A and -E) so that if either option is used a
> new entry will be added if there is none, else the existing entry
> will be edited.
>

I don't think that we need change this. Let us keep it simple, the -a
option is to add a new entry, and the -e is to edit an existing entry, the
concept is clear (and the code is safe too).

Cheers,

Wensong



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