MINOR: spoe: Add "maxconnrate" and "maxerrrate" statements
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 16 Nov 2016 14:01:12 +0000 (15:01 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 21 Nov 2016 14:29:59 +0000 (15:29 +0100)
commit4802672274eddc91aa5ab2d6b12810d050436536
treea84c21d6c09a6d576698932ea888059dbcb59b83
parentea62c2a345adb31b6c4e11730fea5e0703321a13
MINOR: spoe: Add "maxconnrate" and "maxerrrate" statements

"maxconnrate" is the maximum number of connections per second. The SPOE will
stop to open new connections if the maximum is reached and will wait to acquire
an existing one.

"maxerrrate" is the maximum number of errors per second. The SPOE will stop its
processing if the maximum is reached.

These options replace hardcoded macros MAX_NEW_SPOE_APPLETS and
MAX_NEW_SPOE_APPLET_ERRS. We use it to limit SPOE activity, especially when
servers are down..
doc/SPOE.txt
src/flt_spoe.c