MINOR: spoe: Add counters to log info about SPOE agents
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 4 Apr 2018 08:25:50 +0000 (10:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 5 Apr 2018 13:13:54 +0000 (15:13 +0200)
commitcaf2feca62bf384e79b6f862560e9e2150d48e69
tree3eb7e4495db8e45f1e5c1c7a7d021fb3bb9cb303
parent3b8e34902b641abf181d53b7615ab5167a0ca78a
MINOR: spoe: Add counters to log info about SPOE agents

In addition to metrics about time spent in the SPOE, following counters have
been added:

  * applets : number of SPOE applets.
  * idles : number of idle applets.
  * nb_sending : number of streams waiting to send data.
  * nb_waiting : number of streams waiting for a ack.
  * nb_processed : number of events/groups processed by the SPOE (from the
                   stream point of view).
  * nb_errors : number of errors during the processing (from the stream point of
                view).

Log messages has been updated to report these counters. Following pattern has
been added at the end of the log message:

    ... <idles>/<applets> <nb_sending>/<nb_waiting> <nb_error>/<nb_processed>
doc/SPOE.txt
include/types/spoe.h
src/flt_spoe.c