Hi Horms,
I followed your suggestion and dropped the latest versions of ldirectord
from CVS into /usr/sbin on an existing test ultramonkey (RH8
2.4.20-20.8.um.1) in the office. I tried 1.74, 1.62.2.12 and 1.62.2.11.
I added some weights to some existing virtual groups, restarted ldirectord,
and nothing happened. Basically it seems to be ignoring weights. I didn't
have that problem on 1.62.2.11 on our production system so I'm not really
sure what's happening. No errors were logged and nothing looked odd when run
in debug.
Ldirectord.cf:
virtual=10.1.1.83:0
real=stg-web1:0 masq 1
real=stg-web2:0 masq 3
service=http
scheduler=wlc
request="TestServlet?size=512"
receive="successfully"
checkport=8080
checktype=negotiate
persistent=500
virtual=10.1.1.61:0
real=stg-web1:0 masq 3
real=stg-web2:0 masq 1
service=http
scheduler=wlc
request="TestServlet?size=512"
receive="successfully"
checkport=8080
checktype=negotiate
persistent=500
TCP 10.1.1.61:0 wlc persistent 500
-> stg-web2:0 Masq 1 0 0
-> stg-web1:0 Masq 1 0 1
TCP 10.1.1.83:0 wlc persistent 500
-> stg-web2:0 Masq 1 0 0
-> stg-web1:0 Masq 1 0 0
I'm afraid I'm not really up to speed with Perl and so can't really see
whats going on. If anyone has any ideas they would certainly be appreciated!
Thanks,
Phil
-----Original Message-----
From: Horms [mailto:horms@xxxxxxxxxxxx]
Sent: 13 December 2003 05:53
To: LinuxVirtualServer.org users mailing list.
Subject: Re: Ldirectord and real server checking
On Tue, Dec 09, 2003 at 03:49:24PM -0000, Philip Hayward wrote:
> Hi,
>
> I'm afraid that I may have found another bug with ldirector, this time
> with server weighting. All config is same as earlier post below.
>
> I've found that if a real server is a member of multiple virtual
> servers and has a different weight in each group the weighting that is
> loaded into LVS is unpredictable. This is especially acute when the
> server is taken down and then brought back into use.
>
> For example if server A has a weight of 1 under virtual group X and 2
> in group Y and is stopped and started when ldirector picks it up again
> it get loaded into LVS with a weighting of 1 or 2 in both groups
> irrespective of the ldirectord.cf file. A workaround is to get
> ldirector to reload ldirectord.cf which seems to sort it out.
>
> I realise that this might sound like a slightly odd config but it
> would be really useful for us if this could be made to work.
Thanks I will investigate this.
Can you make sure that you have the latest version of ldirectord from CVS. I
fixed some related bugs recently.
http://www.vergenet.net/linux/ldirectord/
--
Horms
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx Send
requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://www.in-addr.de/mailman/listinfo/lvs-users
|