]> git.kaiwu.me - haproxy.git/commit
MEDIUM: checks: Stop scheduling healthchecks during stopping stage
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 16 May 2023 16:07:51 +0000 (18:07 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 17 May 2023 12:57:10 +0000 (14:57 +0200)
commit8bca3cc8c766cada51805631fb1f72475b89bc44
tree86ed677b2a0d66949c8e8bd785c0bd8c91a72b85
parent8a46f986151375a314877040f52936a52a8ddcf5
MEDIUM: checks: Stop scheduling healthchecks during stopping stage

When the process is stopping, the health-checks are suspended. However the
task is still periodically woken up for nothing. If there is a huge number
of health-checks and if they are woken up in same time, it may lead to a
noticeable CPU consumption for no reason.

To avoid this extra CPU cost, we stop to schedule the health-check tasks
when the proxy is disabled or stopped.

This patch should partially solve the issue #2145.
src/check.c