Merge "[haproxy] Enable global optimization options"

This commit is contained in:
Zuul 2018-05-16 12:25:09 +00:00 committed by Gerrit Code Review
commit cbb7cce7c1
2 changed files with 12 additions and 1 deletions

View File

@ -50,3 +50,8 @@ keepalived_traffic_mode: "multicast"
haproxy_listen_tcp_extra: []
haproxy_listen_http_extra: []
# Extended global configuration, optimization options.
haproxy_max_connections: 4000
haproxy_processes: 1
haproxy_process_cpu_map: "no"

View File

@ -6,7 +6,13 @@ global
group haproxy
daemon
log {{ syslog_server }}:{{ syslog_udp_port }} {{ syslog_haproxy_facility }}
maxconn 4000
maxconn {{ haproxy_max_connections }}
nbproc {{ haproxy_processes }}
{% if haproxy_processes > 1 and haproxy_process_cpu_map | bool %}
{% for cpu_idx in range(0, haproxy_processes) %}
cpu-map {{cpu_idx+1}} {{cpu_idx}}
{% endfor %}
{% endif %}
stats socket /var/lib/kolla/haproxy/haproxy.sock group kolla mode 660
{% if kolla_enable_tls_external | bool %}
ssl-default-bind-ciphers DEFAULT:!MEDIUM:!3DES