MINOR: tasks/stats: report the number of niced tasks in "show info"
authorWilly Tarreau <w@1wt.eu>
Wed, 6 Sep 2023 09:33:53 +0000 (11:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Sep 2023 15:44:44 +0000 (17:44 +0200)
commit28ff1a5d56ef5e1ca780b23e6d9de51f8cf45dc6
tree18a5198e6640c6311007783b74b72ca694e1b94b
parente03d060aa308e3ba51aeb60b677425eab3d195bd
MINOR: tasks/stats: report the number of niced tasks in "show info"

We currently know the number of tasks in the run queue that are niced,
and we don't expose it. It's too bad because it can give a hint about
what share of the load is relevant. For example if one runs a Lua
script that was purposely reniced, or if a stats page or the CLI is
hammered with slow operations, seeing them appear there can help
identify what part of the load is not caused by the traffic, and
improve monitoring systems or autoscalers.
include/haproxy/stats-t.h
include/haproxy/task.h
src/stats.c