]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] continous statistics
authorKrzysztof Piotr Oledzki <ole@ans.pl>
Sat, 24 Nov 2007 21:12:47 +0000 (22:12 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 26 Nov 2007 19:21:47 +0000 (20:21 +0100)
commit583bc966064e248771e75c253dddec7351afd8a2
tree946baaa882ef8aa85af8291bd2390480157358b7
parent5df518788dc85f7449cd31f17b6bbed667828236
[MEDIUM] continous statistics

By default, counters used for statistics calculation are incremented
only when a session finishes. It works quite well when serving small
objects, but with big ones (for example large images or archives) or
with A/V streaming, a graph generated from haproxy counters looks like
a hedgehog.

This patch implements a contstats (continous statistics) option.
When set counters get incremented continuously, during a whole session.
Recounting touches a hotpath directly so it is not enabled by default,
as it has small performance impact (~0.5%).
doc/configuration.txt
include/proto/session.h
include/types/backend.h
src/cfgparse.c
src/proto_http.c
src/proto_uxst.c
src/session.c