From d509a5798fbdac41b0707cd0299b4f231c4872cb Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Fri, 30 Oct 2020 18:30:11 +0200 Subject: [PATCH] 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: I67c151181cc358b1adb2ee4dc7aab8fbff2c25ba --- defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index fe8c4092..83fc0a8c 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -246,7 +246,7 @@ ironic_service_user_name: "ironic" # WSGI settings ironic_wsgi_threads: 1 ironic_wsgi_processes_max: 16 -ironic_wsgi_processes: "{{ [[ansible_processor_vcpus|default(4) // 4, 1] | max, ironic_wsgi_processes_max] | min }}" +ironic_wsgi_processes: "{{ [[(ansible_processor_vcpus//ansible_processor_threads_per_core)|default(1), 1] | max * 2, ironic_wsgi_processes_max] | min }}" ironic_uwsgi_bind_address: "{{ openstack_service_bind_address | default('0.0.0.0') }}" ### OpenStack Services to integrate with