LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [Patch] Overload flag is not resetting

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [Patch] Overload flag is not resetting
Cc: Horms <horms@xxxxxxxxxxxx>
From: Wensong Zhang <wensong@xxxxxxxxxxxx>
Date: Sat, 5 Feb 2005 00:31:31 +0800 (CST)


On Fri, 4 Feb 2005, Julian Anastasov wrote:


On Fri, 4 Feb 2005, Horms wrote:

        Can you change WRR on update instead of setting mark->cw to 0,
to clamp it to mw, sort of:

if (mark->cw > mark->mw)
        mark->cw = mark->mw;

        Can this fix a problem where on reducing the max weight
no dests are returned until cw reaches down to mw.

Yes, I am pretty sure that problem would be resolved.
Either with the previous two patches (which both set mark->cw to 0),
or the one below which implements your idea.

        Better move the two lines just before return 0 where mw is
valid.


Agreed. Will apply it to ipvs in kernel 2.4 and 2.6 soon.

It's amazing that this bug has existed for such a long time. :)

Thanks,

Wensong

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