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: I91b62df6b54bb2e42c4b191c4a09ca4f2f854a75
This commit is contained in:
parent
49f435a7aa
commit
e7c7796946
@ -66,7 +66,7 @@ panko_galera_port: 3306
|
||||
panko_api_init_overrides: {}
|
||||
panko_wsgi_threads: 10
|
||||
panko_wsgi_processes_max: 16
|
||||
panko_wsgi_processes: "{{ [[ansible_processor_vcpus|default(1), 1] | max * 2, panko_wsgi_processes_max] | min }}"
|
||||
panko_wsgi_processes: "{{ [[(ansible_processor_vcpus//ansible_processor_threads_per_core)|default(1), 1] | max * 2, panko_wsgi_processes_max] | min }}"
|
||||
|
||||
#panko services info
|
||||
panko_role_name: admin
|
||||
|
Loading…
Reference in New Issue
Block a user