LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] Weight keeps getting set back to 1

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] Weight keeps getting set back to 1
From: "Randy Paries" <rtparies@xxxxxxxxx>
Date: Tue, 5 Feb 2008 08:58:51 -0600
hello,
i am setting the weights of my real servers :
ipvsadm -e -t www.domain.com:80 -r local.flanders:80 -w 200
ipvsadm -e -t www.domain.com:80 -r local.lovejoy:80 -w 100
ipvsadm -e -t www.domain.com:80 -r local.smithers:80 -w 100

then i do a
#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.lovejoy:http           Route   100    81         34
  -> local.smithers:http          Route   100    68         100
  -> local.flanders:http          Route   200    143        439


if for any reason i have to restart the http server the weight go back to one.

is there any place to put in a config file a default weight?

thanks for any help.

currently /etc/ha.d/ldirectord.cf looks like:
# Global Directives
checktimeout=13
checkinterval=15
autoreload=yes
logfile="/var/log/ldirectord.log"
quiescent=no

#
virtual=66.xxx.xxx.xxx:80
        real=192.168.0.203:80 gate
        real=192.168.0.159:80 gate
        real=192.168.0.160:80 gate
        fallback=127.0.0.1:80 gate
        service=http
        request="ldirectordping.html"
        receive="Test Page"
        scheduler=wlc
        persistent=1800
        netmask=255.255.255.0
        protocol=tcp


<Prev in Thread] Current Thread [Next in Thread>
  • [lvs-users] Weight keeps getting set back to 1, Randy Paries <=