]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[STATS] report the number of times each server was selected
authorWilly Tarreau <w@1wt.eu>
Wed, 5 Dec 2007 09:34:49 +0000 (10:34 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 5 Dec 2007 09:34:49 +0000 (10:34 +0100)
commitddbb82ff4737847e67d7afb642a3f5788f08d69c
treecca4f6346cf1c239b388c23aae4654bcd552fe7d
parent5542af65dcc4f89355b06fee6d81afe55671ecf1
[STATS] report the number of times each server was selected

One user reported that an indicator was missing in the statistics:
the number of times each server was selected by load balancing. It
is in fact the total number of sessions assigned to a server by the
load balancing algorithm. It should directly reflect the weight for
"fair" algorithms such as round-robin, since it will not account for
persistant connections.

It should help a lot tuning each server's weight depending on the
load it receives.
include/types/proxy.h
include/types/server.h
src/backend.c
src/dumpstats.c