Merge "HAProxy backend connection limits"

This commit is contained in:
Zuul 2019-08-27 12:58:07 +00:00 committed by Gerrit Code Review
commit f960a5b58e
3 changed files with 13 additions and 1 deletions

View File

@ -38,9 +38,11 @@ syslog_haproxy_facility: "local1"
keepalived_traffic_mode: "multicast"
# Extended global configuration, optimization options.
haproxy_max_connections: 4000
haproxy_max_connections: 40000
haproxy_processes: 1
haproxy_process_cpu_map: "no"
# Matches the mariadb 10000 max connections limit
haproxy_defaults_max_connections: 10000
haproxy_dimensions: "{{ default_container_dimensions }}"
keepalived_dimensions: "{{ default_container_dimensions }}"

View File

@ -30,6 +30,7 @@ defaults
timeout server {{ haproxy_server_timeout }}
timeout check {{ haproxy_check_timeout }}
balance {{ haproxy_defaults_balance }}
maxconn {{ haproxy_defaults_max_connections }}
listen stats
bind {{ api_interface_address }}:{{ haproxy_stats_port }}

View File

@ -0,0 +1,9 @@
---
upgrade:
- |
The default connection limit for HAProxy backends is 2000 however, MariaDB
defaults to a max of 10000 conections. This has been changed to match the
MariaDB limit.
'haproxy_max_connections' has also been increased to 40000 to accommodate
this.