mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-10 07:42:44 +02:00
MINOR: server: Add 'no-agent-check' server keyword.
This patch adds 'no-agent-check' setting supported both by 'default-server'
and 'server' directives to disable an agent check for a specific server which would
have 'agent-check' set as default value (inherited from 'default-server'
'agent-check' setting), or, on 'default-server' lines, to disable 'agent-check' setting
as default value for any further 'server' declarations.
For instance, provided this configuration:
default-server agent-check
server srv1
server srv2 no-agent-check
server srv3
default-server no-agent-check
server srv4
srv1 and srv3 would have an agent check enabled contrary to srv2 and srv4.
We do not allocate anymore anything when parsing 'default-server' 'agent-check'
setting.
This commit is contained in:
committed by
Willy Tarreau
parent
2a0d061a60
commit
6e0843c0e0
@@ -241,6 +241,7 @@ struct server {
|
||||
int tcp_ut; /* for TCP, user timeout */
|
||||
|
||||
int do_check; /* temporary variable used during parsing to denote if health checks must be enabled */
|
||||
int do_agent; /* temporary variable used during parsing to denote if an auxiliary agent check must be enabled */
|
||||
struct check check; /* health-check specific configuration */
|
||||
struct check agent; /* agent specific configuration */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user