]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[CLEANUP] fwrr: ensure that we never overflow in placements
authorWilly Tarreau <w@1wt.eu>
Sun, 2 Dec 2007 10:01:23 +0000 (11:01 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 2 Dec 2007 10:01:23 +0000 (11:01 +0100)
commitb698f0f4a2a0a182dd4ca647d82f08379bd95b7e
tree6a30b98626a9789c61c9f6c277e9a4cb3c195067
parentd1cd2764563dabb1e71cfce88b553f79fd16e76d
[CLEANUP] fwrr: ensure that we never overflow in placements

Now we can compute the max place depending on the number of servers,
maximum weight and weight scale. The formula has been stored as a
comment so that it's easy to choose between smooth weight ramp up
and high number of servers. The default scale has been set to 16,
which permits 4000 servers with a granularity of 6% in the worst
case (weight=1).
include/types/backend.h
include/types/server.h
src/backend.c
tests/filltab25.c