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: I1dbbfc82f24732f8534594ff25aefc03e5c4003c
This commit is contained in:
Dmitriy Rabotyagov 2020-11-30 14:20:14 +02:00
parent 2afa08eb9b
commit bf42c4a403
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ placement_service_port: 8780
# UWSGI
placement_wsgi_processes_max: 16
placement_wsgi_processes: "{{ [[ansible_processor_vcpus|default(1), 1] | max * 2, placement_wsgi_processes_max] | min }}"
placement_wsgi_processes: "{{ [[(ansible_processor_vcpus//ansible_processor_threads_per_core)|default(1), 1] | max * 2, placement_wsgi_processes_max] | min }}"
placement_wsgi_threads: 1
## Service Type and Data