]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] only consider slow checks when looking for the common interval
authorWilly Tarreau <w@1wt.eu>
Sun, 14 Oct 2007 21:05:39 +0000 (23:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 15 Oct 2007 07:33:14 +0000 (09:33 +0200)
commit2c43a1e2f05161cac4f88c9e9c01bd16f1b2cb5b
tree95d30a451107c05117f3b8de9522c5fcfdb3fbfb
parentb304dc7fd78e097f69ad2dcdaa0bc3e66cac3ada
[MEDIUM] only consider slow checks when looking for the common interval

When one server in one backend has a very low check interval, it imposes
its value as the minimal interval, causing all other servers to start
their checks close to each other, thus partially voiding the benefits of
the spread checks.

The solution consists in ignoring intervals lower than a given value
(SRV_CHK_INTER_THRES = 1000 ms) when computing the minimal interval,
and then assigning them a start date relative to their own interval
and not the global one.

With this change, the checks distribution clearly looks better.
include/common/defaults.h
src/checks.c