]> git.kaiwu.me - 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>
Sun, 14 Oct 2007 21:57:31 +0000 (23:57 +0200)
commitea845b536428c5305073910b0274616097dc9ec6
tree5d77c49af9890f3513f5b6446972b2d0886cb082
parentf3ea91f7a1f5f0032de1707bf713f3672ea70559
[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