[prev in list] [next in list] [prev in thread] [next in thread] 

List:       keepalived-devel
Subject:    [Keepalived-devel] weight handling is broken by design. Can I fix it?
From:       lsorense () csclub ! uwaterloo ! ca (Lennart Sorensen)
Date:       2012-02-03 18:42:20
Message-ID: 20120203184220.GU27742 () caffeine ! csclub ! uwaterloo ! ca
[Download RAW message or body]

At the moment a positive weight adds on success and a negative weight
subtracts on failure.  Those two things accomplish the same thing.
Neither one supports adding on failure or subtracting on success.

Of course fixing it would break existing setups, but on the other ahnd
leaving it alone makes it rather useless in many situations.

Would it be OK to add a new weight option (with a new name) that does
the sane thing?

Or maybe add an option that makes weight handling sane when enabled?

Sane being obviously: The weight is what to do when something fails
(interface goes link down, or a check script fails).  Positive means
increase priority in that case, and negative means decrease it.
The existing increase on success is trivially done simply by changing
your base priority in the first place.

-- 
Len Sorensen

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Keepalived-devel mailing list
Keepalived-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/keepalived-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic