Reduce number of processes on small systems
Even the most modest 4C/8T system would run with the maximum 16 processes due to the calculation being VCPU*2. We devide amount of CPUs to number of threads for hyperthreaded CPUs Change-Id: Ia0304a9314029b5678a3f730d662be6580b17a77
This commit is contained in:
parent
0fb579a11d
commit
7d14b4e76b
|
@ -181,7 +181,7 @@ heat_metadata_server_url: "{{ heat_cfn_service_publicuri_proto }}://{{ external_
|
|||
|
||||
## Cap the maximum number of threads / workers when a user value is unspecified.
|
||||
heat_api_threads_max: 16
|
||||
heat_api_threads: "{{ [[ansible_processor_vcpus|default(2) // 2, 1] | max, heat_api_threads_max] | min }}"
|
||||
heat_api_threads: "{{ [[(ansible_processor_vcpus//ansible_processor_threads_per_core)|default(1), 1] | max * 2, heat_api_threads_max] | min }}"
|
||||
|
||||
heat_service_in_ldap: false
|
||||
|
||||
|
|
Loading…
Reference in New Issue