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:
parent
2afa08eb9b
commit
bf42c4a403
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue