LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] help with ipvsadm and setting weight

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] help with ipvsadm and setting weight
From: chris barry <Christopher.Barry@xxxxxxxxxx>
Date: Thu, 10 Jan 2008 11:21:08 -0500
On Thu, 2008-01-10 at 10:10 -0600, Randy Paries wrote:
> Hello,
> i need to change the weighing of a server and have a couple of
> questions. I do not have a place to play so i do not want to screw up.
> 
> currently  i have
> ipvsadm
> IP Virtual Server version 1.0.10 (size=65536)
> Prot LocalAddress:Port Scheduler Flags
>   -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
> TCP  www.unitnet.com:http wlc persistent 1800 mask 255.255.255.0
>   -> local.flanders:http          Route   1      108        124
>   -> local.smithers:http          Route   1      107        548
>   -> local.lovejoy:http           Route   1      97         104
> TCP  www.unitnet.com:https wlc persistent 1800 mask 255.255.255.0
>   -> local.flanders:https         Route   1      0          0
> 
> 
> I assume that the higher the the more connections it will get?
> 
> So i thought i would do
> #ipvsadm -t local.flanders -w 2
> 
> but i get the error Try `ipvsadm -h' or 'ipvsadm --help' for more information.
> 
> Also is there a way to make this permanent or do i have to set it each reboot?
> 
> Thanks
> Randy
> 
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users


try ipvsadm-save >mytable
edit mytable like you want
then ipvsadm-restore <mytable

-C


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