Merge "Reduce number of processes on small systems"

This commit is contained in:
Zuul 2021-01-18 15:58:33 +00:00 committed by Gerrit Code Review
commit 371bc250d7
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ zun_recreate_keys: False
## Cap the maximun number of threads / workers when a user value is unspecified.
zun_api_threads_max: 16
zun_api_threads: "{{ [[ansible_processor_vcpus|default(2) // 2, 1] | max, zun_api_threads_max] | min }}"
zun_api_threads: "{{ [[(ansible_processor_vcpus//ansible_processor_threads_per_core)|default(1), 1] | max * 2, zun_api_threads_max] | min }}"
zun_service_in_ldap: "{{ service_ldap_backend_enabled | default(False) }}"