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

_______________________________________________
LinuxVirtualServer.org mailing list - [email protected]
Send requests to [EMAIL PROTECTED]
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

Reply via email to