]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: global: add some global activity counters to help debugging
authorWilly Tarreau <w@1wt.eu>
Sat, 20 Jan 2018 18:30:13 +0000 (19:30 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 23 Jan 2018 14:38:33 +0000 (15:38 +0100)
commitd80cb4ee1386cb5853170371d11e41284739e9d4
tree49f9f8ac32776520117cabcb7103abb64de0cc81
parent421f02e738999dec9f52665023918e22580197fd
MINOR: global: add some global activity counters to help debugging

A number of counters have been added at special places helping better
understanding certain bug reports. These counters are maintained per
thread and are shown using "show activity" on the CLI. The "clear
counters" commands also reset these counters. The output is sent as a
single write(), which currently produces up to about 7 kB of data for
64 threads. If more counters are added, it may be necessary to write
into multiple buffers, or to reset the counters.

To backport to 1.8 to help collect more detailed bug reports.
13 files changed:
doc/management.txt
include/types/global.h
src/cli.c
src/connection.c
src/ev_epoll.c
src/ev_kqueue.c
src/ev_poll.c
src/ev_select.c
src/fd.c
src/haproxy.c
src/stats.c
src/stream.c
src/task.c