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: Ifa09cdddcb4a3875f064ff773bbe2281f964fb1d
This commit is contained in:
@@ -98,7 +98,7 @@ cloudkitty_database_connection: >-
|
||||
|
||||
cloudkitty_wsgi_threads: 1
|
||||
cloudkitty_wsgi_processes_max: 16
|
||||
cloudkitty_wsgi_processes: "{{ [[ansible_processor_vcpus|default(1), 1] | max * 2, cloudkitty_wsgi_processes_max] | min }}"
|
||||
cloudkitty_wsgi_processes: "{{ [[(ansible_processor_vcpus//ansible_processor_threads_per_core)|default(1), 1] | max * 2, cloudkitty_wsgi_processes_max] | min }}"
|
||||
cloudkitty_uwsgi_bind_address: 0.0.0.0
|
||||
|
||||
## Service Type and Data
|
||||
|
Reference in New Issue
Block a user