Compare commits

...

6 commits
3.20.7 ... main

Author SHA1 Message Date
e989738aa6 add pm_mode as env 2025-02-28 15:39:17 +01:00
e0f21268b0 update www php-fpm config 2025-02-28 15:21:09 +01:00
4b6ae8ef13 fix dockerfile 2025-02-28 14:42:50 +01:00
8d30dd70a2 Merge pull request 'increase pm ressources' (#1) from hotfix/increase-pm_worker into main
Reviewed-on: #1
Reviewed-by: emanuel.holzmann <emanuel.holzmann@noreply.localhost>
2025-02-28 14:36:59 +01:00
d11499928f Merge branch 'main' into hotfix/increase-pm_worker 2025-02-28 10:41:43 +01:00
75b588935f increase pm ressources 2025-02-28 10:35:05 +01:00
3 changed files with 13 additions and 2 deletions

View file

@ -87,8 +87,14 @@ ENTRYPOINT ["/bin/docker-entrypoint.sh"]
HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1:8080/fpm-ping || exit 1
ENV nginx_root_directory=/var/www/html/public \
nginx_fastcgi_read_timeout=100 \
client_max_body_size=2M \
clear_env=no \
pm_mode=dynamic \
pm_start_servers=20 \
pm_min_spare_servers=10 \
pm_max_spare_servers=20 \
pm_max_requests=1000 \
allow_url_fopen=On \
allow_url_include=Off \
display_errors=Off \

View file

@ -76,6 +76,8 @@ http {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_index index.php;
fastcgi_read_timeout ${nginx_fastcgi_read_timeout};
include fastcgi_params;
# Pass the original forwarded_scheme and HTTPS status to the PHP backend

View file

@ -34,7 +34,7 @@ listen.group = nobody
pm.status_path = /fpm-status
; Ondemand process manager
pm = ondemand
pm = $pm_mode
; The number of child processes to be created when pm is set to 'static' and the
; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
@ -46,6 +46,9 @@ pm = ondemand
; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
; Note: This value is mandatory.
pm.max_children = 100
pm.start_servers = $pm_start_servers
pm.min_spare_servers = $pm_min_spare_servers
pm.max_spare_servers = $pm_max_spare_servers
; The number of seconds after which an idle process will be killed.
; Note: Used only when pm is set to 'ondemand'
@ -56,7 +59,7 @@ pm.process_idle_timeout = 10s;
; This can be useful to work around memory leaks in 3rd party libraries. For
; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
; Default Value: 0
pm.max_requests = 1000
pm.max_requests = $pm_max_requests
; Make sure the FPM workers can reach the environment variables for configuration
clear_env = $clear_env