Skip to content
Snippets Groups Projects
Commit 789ac738 authored by Léo Gillot-Lamure's avatar Léo Gillot-Lamure Committed by Michal Nasiadka
Browse files

loadbalancer: support cpu-map for threads

The directive used has the same semantic as what is done above for nbproc > 1:
it binds each thread to a CPU. It is simpler and does not require a loop because
it uses the auto: syntax available in HAProxy 2.4.

Change-Id: I1ce124b678140f5f4737df557683bb67bc7cfc66
parent e0438286
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,9 @@ global
cpu-map {{ cpu_idx + 1 }} {{ cpu_idx }}
{% endfor %}
{% endif %}
{% if (haproxy_threads | int > 1) and (haproxy_process_cpu_map | bool) %}
cpu-map auto:1/all 0-63
{% endif %}
stats socket /var/lib/kolla/haproxy/haproxy.sock group kolla mode 660{% if haproxy_socket_level_admin | bool %} level admin{% endif %}
{% if kolla_enable_tls_external | bool or kolla_enable_tls_internal | bool %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment