From 192597d60472337b2d8301a4a326feeb9eb436b9 Mon Sep 17 00:00:00 2001 From: Drazen Date: Thu, 12 Dec 2024 05:55:04 +0100 Subject: [PATCH 1/3] Updating-php-defaults --- roles/debian/php-fpm/defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/debian/php-fpm/defaults/main.yml b/roles/debian/php-fpm/defaults/main.yml index 8de9a5fe0..9eaa195e7 100644 --- a/roles/debian/php-fpm/defaults/main.yml +++ b/roles/debian/php-fpm/defaults/main.yml @@ -13,7 +13,7 @@ php: # It is important to scale up processes on bigger servers, so that more # requests can be handled. Double the number of vCPUs is a good default. # Can be between 5 and 64. - max_children: "{{ [5, (ansible_facts.ansible_processor_nproc | default(1)) * 2, 64] | min | max }}" # Fallback in case ansible_processor_nproc is not gathered before tasks + max_children: "{{ [5, (ansible_facts.ansible_processor_nproc | default(1)) * 2, 64] | max }}" # Fallback in case ansible_processor_nproc is not gathered before tasks start_servers: 2 min_spare_servers: 1 max_spare_servers: 3 From 5e0377a54efce6273b52797f4255af7b270932e5 Mon Sep 17 00:00:00 2001 From: Drazen Date: Fri, 13 Dec 2024 05:56:30 +0100 Subject: [PATCH 2/3] Updating-php-defaults --- roles/debian/php-fpm/defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/debian/php-fpm/defaults/main.yml b/roles/debian/php-fpm/defaults/main.yml index 9eaa195e7..999112b84 100644 --- a/roles/debian/php-fpm/defaults/main.yml +++ b/roles/debian/php-fpm/defaults/main.yml @@ -13,7 +13,7 @@ php: # It is important to scale up processes on bigger servers, so that more # requests can be handled. Double the number of vCPUs is a good default. # Can be between 5 and 64. - max_children: "{{ [5, (ansible_facts.ansible_processor_nproc | default(1)) * 2, 64] | max }}" # Fallback in case ansible_processor_nproc is not gathered before tasks + max_children: "{{ [5, (ansible_facts.ansible_processor_nproc | default(5)) * 2, 64] | min }}" # Fallback in case ansible_processor_nproc is not gathered before tasks start_servers: 2 min_spare_servers: 1 max_spare_servers: 3 From 59976a1ff59115de5b0081d36885edff6a709f14 Mon Sep 17 00:00:00 2001 From: Drazen Date: Fri, 13 Dec 2024 06:15:36 +0100 Subject: [PATCH 3/3] Updating-php-defaults --- roles/debian/php-fpm/defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/debian/php-fpm/defaults/main.yml b/roles/debian/php-fpm/defaults/main.yml index 999112b84..12b52dac7 100644 --- a/roles/debian/php-fpm/defaults/main.yml +++ b/roles/debian/php-fpm/defaults/main.yml @@ -13,7 +13,7 @@ php: # It is important to scale up processes on bigger servers, so that more # requests can be handled. Double the number of vCPUs is a good default. # Can be between 5 and 64. - max_children: "{{ [5, (ansible_facts.ansible_processor_nproc | default(5)) * 2, 64] | min }}" # Fallback in case ansible_processor_nproc is not gathered before tasks + max_children: "{{ [5, [(ansible_facts.ansible_processor_nproc | default(1)) * 2, 64] | min] | max }}" # Fallback in case ansible_processor_nproc is not gathered before tasks start_servers: 2 min_spare_servers: 1 max_spare_servers: 3