]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] add a weight divisor to the struct proxy
authorWilly Tarreau <w@1wt.eu>
Mon, 19 Nov 2007 18:10:18 +0000 (19:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 28 Nov 2007 13:23:13 +0000 (14:23 +0100)
commit5dc2fa660c25be38a0eec9e49fea11955465e64b
tree343376dde375906ab26ad62433fd627bf8c3379f
parent206970449231fd25112d10b11e5fce18f0bdcf14
[MINOR] add a weight divisor to the struct proxy

Under some circumstances, it will be useful to be able to have
a server's effective weight bigger than the user weight, and this
is particularly true for dynamic weight-based algorithms. In order
to support this, we add a "wdiv" member to the lbprm structure
which will always be used to divide the weights before reporting
them.
include/proto/backend.h
include/types/proxy.h
src/backend.c
src/cfgparse.c
src/dumpstats.c