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:
Therese McHale 2015-02-18 16:44:51 +00:00
parent bd78cf3f7e
commit 94f10002a9
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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}}