Allow configurable healthcheck interval
Allow the service to specify check_interval, the interval in milliseconds between health checks Change-Id: Ie780066f7279ef7691ccb80f57f5d296aa5434ba
This commit is contained in:
parent
bd78cf3f7e
commit
94f10002a9
|
@ -51,6 +51,7 @@ Each haproxy.services can define the following sub-properties
|
|||
* proxy_port: *DEPRECATED* Port for a service to bind to.
|
||||
* service_maxconn: A limit on the number of concurrent connections allowed to
|
||||
this service.
|
||||
* check_interval: The interval between two consecutive health checks in milliseconds.
|
||||
|
||||
Each haproxy.nodes can define the following sub-properties
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@ listen {{name}}
|
|||
maxconn {{.}}
|
||||
{{/service_maxconn}}
|
||||
{{#nodes}}
|
||||
server {{name}} {{ip}}:{{port}} check inter 2000 rise 2 fall 5 {{#extra_server_params}} {{.}}{{/extra_server_params}}
|
||||
server {{name}} {{ip}}:{{port}} check inter {{#check_interval}}{{{.}}}{{/check_interval}}{{^check_interval}}2000{{/check_interval}} rise 2 fall 5 {{#extra_server_params}} {{.}}{{/extra_server_params}}
|
||||
{{/nodes}}
|
||||
{{/services}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue