mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 07:07:04 +02:00
MINOR: checks: fix agent check interval computation
start_checks() only used to consider the health checks intervals to compute the start interval, so if an agent had a faster check than all health checks, it would be significantly delayed.
This commit is contained in:
parent
ff5ae35b9f
commit
15f3910214
@ -1771,6 +1771,11 @@ int start_checks() {
|
||||
(!mininter || mininter > srv_getinter(&s->check)))
|
||||
mininter = srv_getinter(&s->check);
|
||||
|
||||
if ((s->agent.state & CHK_ST_CONFIGURED) &&
|
||||
(srv_getinter(&s->agent) >= SRV_CHK_INTER_THRES) &&
|
||||
(!mininter || mininter > srv_getinter(&s->agent)))
|
||||
mininter = srv_getinter(&s->agent);
|
||||
|
||||
nbcheck++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user