LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Adjusting weight

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Adjusting weight
From: Randy Paries <rtparies@xxxxxxxxx>
Date: Sat, 28 Jan 2006 23:47:42 -0600
I want to make sure i understand what i am doing
I need flanders to get more of the redirects than krusty.

But from what i can tell the way i have it set now Flanders will get
twice as many as krusty. Is that correct?

Is there a way to make it like 1.5 times more ?

Thanks

Steps below.

i have this:
 ipvsadm
IP Virtual Server version 1.0.10 (size=65536)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  www.domain.com:http wlc persistent 1800 mask 255.255.255.0
  -> local.krusty:http            Route   1      85         179
  -> local.flanders:http          Route   1      92         341
TCP  www.domain.com:https wlc persistent 1800 mask 255.255.255.0
  -> local.flanders:https         Route   1      0          0

So then i did

 ipvsadm -e -t www.domain.com:80 -r local.flanders:80 -w 2

So now i see
ipvsadm
IP Virtual Server version 1.0.10 (size=65536)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  www.domain.com:http wlc persistent 1800 mask 255.255.255.0
  -> local.krusty:http            Route   1      85         179
  -> local.flanders:http          Route   2      92         341
TCP  www.domain.com:https wlc persistent 1800 mask 255.255.255.0
  -> local.flanders:https         Route   1      0          0

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