mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 06:06:59 -04:00
MINOR: checks: create the agent tasks even when no check is configured
Till now, a configuration required at least one health check in the whole config file to create the agent tasks. Now we start them even if no health check is enabled.
This commit is contained in:
parent
33a08db932
commit
d8514a2a05
1 changed files with 12 additions and 12 deletions
24
src/checks.c
24
src/checks.c
|
|
@ -1765,19 +1765,19 @@ int start_checks() {
|
|||
t->expire = TICK_ETERNITY;
|
||||
}
|
||||
|
||||
if (!(s->check.state & CHK_ST_CONFIGURED))
|
||||
continue;
|
||||
if (s->check.state & CHK_ST_CONFIGURED) {
|
||||
nbcheck++;
|
||||
if ((srv_getinter(&s->check) >= SRV_CHK_INTER_THRES) &&
|
||||
(!mininter || mininter > srv_getinter(&s->check)))
|
||||
mininter = srv_getinter(&s->check);
|
||||
}
|
||||
|
||||
if ((srv_getinter(&s->check) >= SRV_CHK_INTER_THRES) &&
|
||||
(!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++;
|
||||
if (s->agent.state & CHK_ST_CONFIGURED) {
|
||||
nbcheck++;
|
||||
if ((srv_getinter(&s->agent) >= SRV_CHK_INTER_THRES) &&
|
||||
(!mininter || mininter > srv_getinter(&s->agent)))
|
||||
mininter = srv_getinter(&s->agent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue