Le 3/14/22 à 10:53, Artur a écrit :
Hello,
I'd like to know how checks behaves depending on the "inter" and
"timeout check" settings.
Let's try this simplified setup :
backend back
mode tcp
timeout check 5s
server s1 1.2.3.4:80 check inter 2s
server s2 1.2.3.5:80 check inter 2s
"inter 2s" is the default setup. We should have there one check every 2s
if everything is optimal.
"timeout check 5s" specify that the server check can take up to 5s (once
the connection established).
In this configuration, what happens if the check takes more than 2 seconds ?
Does haproxy wait (up to 5 seconds) for this check to finish before
launching another check or it's still launching checks every 2s anyway ?
Hi,
For a given server, inter/fastinter/downinter timeouts are used to define the
delay between the end of a health-check and the beginning of the following one.
This is independent on the evaluation time. Thus in your example, a health-check
will still run 2s after the end of the previous one, independently on its duration.
--
Christopher Faulet