Adds parameter to configure HAProxy defaults balance

Introduce new option "haproxy_defaults_balance" to set balance in
defaults section.

Change-Id: Iaf12717ffac94ac2308758bd8ec87f088af26b69
Closes-Bug: #1773178
This commit is contained in:
Nikita Gerasimov 2018-05-24 17:09:15 +03:00
parent 3849fbc5f6
commit 418a6c8896
2 changed files with 4 additions and 0 deletions

View File

@ -39,6 +39,9 @@ haproxy_image_full: "{{ haproxy_image }}:{{ haproxy_tag }}"
haproxy_client_timeout: "1m" haproxy_client_timeout: "1m"
haproxy_server_timeout: "1m" haproxy_server_timeout: "1m"
# Check http://www.haproxy.org/download/1.5/doc/configuration.txt for available options
haproxy_defaults_balance: "roundrobin"
haproxy_glance_api_client_timeout: "6h" haproxy_glance_api_client_timeout: "6h"
haproxy_glance_api_server_timeout: "6h" haproxy_glance_api_server_timeout: "6h"

View File

@ -33,6 +33,7 @@ defaults
timeout client {{ haproxy_client_timeout }} timeout client {{ haproxy_client_timeout }}
timeout server {{ haproxy_server_timeout }} timeout server {{ haproxy_server_timeout }}
timeout check 10s timeout check 10s
balance {{ haproxy_defaults_balance }}
listen stats listen stats
bind {{ api_interface_address }}:{{ haproxy_stats_port }} bind {{ api_interface_address }}:{{ haproxy_stats_port }}