From 145b219a83abd56c1bab7e2504cddb75c3ea40c4 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Sun, 2 Jan 2022 10:48:10 +0200 Subject: [PATCH] Fix keystone_httpd_mpm_max_requests default value At the moment keystone_httpd_mpm_server_limit appears as string, so instead of multiplication of integers we repeat value of `keystone_httpd_mpm_server_limit` `keystone_httpd_mpm_thread_child` times which is not what we want to do. So we apply int filter to ensure we do math operation on integers. Change-Id: Ib3258eb018f758edb9a6a9424a7be8266c7e9fd6 --- defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index bf49ae68..8ac2d5da 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -216,7 +216,7 @@ keystone_httpd_mpm_min_spare_threads: 25 keystone_httpd_mpm_max_spare_threads: 75 keystone_httpd_mpm_thread_limit: 64 keystone_httpd_mpm_thread_child: 25 -keystone_httpd_mpm_max_requests: "{{ keystone_httpd_mpm_server_limit * keystone_httpd_mpm_thread_child }}" +keystone_httpd_mpm_max_requests: "{{ keystone_httpd_mpm_server_limit | int * keystone_httpd_mpm_thread_child | int }}" keystone_httpd_mpm_max_conn_child: 0 ## uWSGI setup