From 49f10e7e315925997ab42dd8e3027847d0a2fc15 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 25 Jan 2021 11:12:46 +0200 Subject: [PATCH] * FPM/Container: start more php processes by default and keep them running to better cope with high usage --- doc/docker/fpm/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/docker/fpm/Dockerfile b/doc/docker/fpm/Dockerfile index a678822ba6..b395d3dfb2 100644 --- a/doc/docker/fpm/Dockerfile +++ b/doc/docker/fpm/Dockerfile @@ -22,6 +22,9 @@ RUN apt-get update \ && sed -e 's/^;\?listen \?=.*/listen = 9000/g' \ -e '/allowed_clients/d' \ -e '/pm.max_children/s/=.*/= 80/' \ + -e '/pm.start_servers/s/=.*/= 10/' \ + -e '/pm.min_spare_servers/s/=.*/= 10/' \ + -e '/pm.max_spare_servers/s/=.*/= 20/' \ -e '/catch_workers_output/s/^;/;/' \ -e '/error_log/d' \ -e 's/^;\?pm.max_requests =.*/pm.max_requests = 30/' \