Skip to content

Commit

Permalink
configure pm
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Sep 27, 2024
1 parent 9800ad6 commit 894ebb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions 8.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,7 @@ ENV PHP_MEMORY_LIMIT=256M
ENV PHP_POST_MAX_SIZE=50M
ENV PHP_UPLOAD_MAX_FILESIZE=50M

ENV PHP_PM_MAX_CHILDREN=32
ENV PHP_PM_MAX_REQUESTS=1000

EXPOSE 80
4 changes: 2 additions & 2 deletions 8.2/www.conf
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pm = ondemand
; forget to tweak pm.* to fit your needs.
; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
; Note: This value is mandatory.
pm.max_children = 32
pm.max_children = ${PHP_PM_MAX_CHILDREN}

; The number of seconds after which an idle process will be killed.
; Note: Used only when pm is set to 'ondemand'
Expand All @@ -55,7 +55,7 @@ pm.process_idle_timeout = 3s;
; 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 = ${PHP_PM_MAX_REQUESTS}

; Make sure the FPM workers can reach the environment variables for configuration
clear_env = no
Expand Down

0 comments on commit 894ebb2

Please sign in to comment.