Skip to content

Instantly share code, notes, and snippets.

@mshafiee
Created December 29, 2018 16:10
Show Gist options
  • Save mshafiee/883a2142918a5c54617edc2d4bd7fb31 to your computer and use it in GitHub Desktop.
Save mshafiee/883a2142918a5c54617edc2d4bd7fb31 to your computer and use it in GitHub Desktop.
[global]
; Override default pid file
pid = /run/php-fpm.pid
; Avoid logs being sent to syslog
error_log = /proc/self/fd/2
[www]
; Access from webserver container is via network, not socket file
listen = [::]:9000
; Choose how the process manager will control the number of child processes.
; Possible Values:
; static - a fixed number (pm.max_children) of child processes;
; dynamic - the number of child processes are set dynamically based on the
; following directives:
; pm.max_children - the maximum number of children that can
; be alive at the same time.
; pm.start_servers - the number of children created on startup.
; pm.min_spare_servers - the minimum number of children in 'idle'
; state (waiting to process). If the number
; of 'idle' processes is less than this
; number then some children will be created.
; pm.max_spare_servers - the maximum number of children in 'idle'
; state (waiting to process). If the number
; of 'idle' processes is greater than this
; number then some children will be killed.
; Note: This value is mandatory.
pm.max_children = 3000
pm.start_servers = 2000
pm.min_spare_servers = 1
pm.max_spare_servers = 2000
pm.max_requests = 500
; Redirect logs to stdout - FPM closes /dev/std* on startup
access.log = /proc/self/fd/2
catch_workers_output = yes
; Required to allow config-by-environment
clear_env = no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment