From 7d14b4e76b2e1b73654f8bfd5b498dfca5954aa5 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Fri, 30 Oct 2020 18:27:30 +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: Ia0304a9314029b5678a3f730d662be6580b17a77 --- defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 1502df7..d7d5e4b 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -181,7 +181,7 @@ heat_metadata_server_url: "{{ heat_cfn_service_publicuri_proto }}://{{ external_ ## Cap the maximum number of threads / workers when a user value is unspecified. heat_api_threads_max: 16 -heat_api_threads: "{{ [[ansible_processor_vcpus|default(2) // 2, 1] | max, heat_api_threads_max] | min }}" +heat_api_threads: "{{ [[(ansible_processor_vcpus//ansible_processor_threads_per_core)|default(1), 1] | max * 2, heat_api_threads_max] | min }}" heat_service_in_ldap: false