]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: spoe: Don't systematically create new applets if processing rate is low
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 22 Jun 2020 13:32:14 +0000 (15:32 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 25 Jun 2020 19:50:20 +0000 (21:50 +0200)
commiteccfa612e8c9fd566f94dea9b0213b8b0d2d0531
treebf4a522d11326a644b659a169f01b83d51177f1b
parentcf6898cd14a8c1c65ed164f3ae0907cfa8071feb
MINOR: spoe: Don't systematically create new applets if processing rate is low

When an event must be processed, we decide to create a new SPOE applet if there
is no idle applet at all or if the processing rate is lower than the number of
waiting events. But when the processing rate is very low (< 1 event/second), a
new applet is created independently of the number of idle applets.

Now, when there is at least one idle applet when there is only one event to
process, no new applet is created.

This patch is related to the issue #690.
src/flt_spoe.c