Skip to content

Instantly share code, notes, and snippets.

@goregrish
Last active April 5, 2021 11:47
Show Gist options
  • Save goregrish/cb63b01ed259736567d35e8427b51263 to your computer and use it in GitHub Desktop.
Save goregrish/cb63b01ed259736567d35e8427b51263 to your computer and use it in GitHub Desktop.
php-fpm pool xenforo forum - 15,000 Unique Visitors per day
[pooluser]
listen = 127.0.0.1:9001
user = pooluser
group = users
request_slowlog_timeout = 5s
slowlog = /var/log/php-fpm/slowlog-domain.log
listen.allowed_clients = 127.0.0.1

pm = ondemand
pm.max_children = 10
pm.process_idle_timeout = 10s
pm.max_requests = 500
listen.backlog = 512

request_terminate_timeout = 120s
rlimit_files = 131072
rlimit_core = unlimited
catch_workers_output = yes
env[HOSTNAME] = $HOSTNAME
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp

[root@slave1 domain]# tail -f /var/log/php-fpm/error.log

[05-Apr-2021 02:55:29] NOTICE: [pool pooluser] child 7222 exited with code 0 after 262.329422 seconds from start
[05-Apr-2021 02:55:29] NOTICE: [pool pooluser] child 7654 started
[05-Apr-2021 02:55:46] NOTICE: [pool pooluser] child 7259 exited with code 0 after 257.863116 seconds from start
[05-Apr-2021 02:55:46] NOTICE: [pool pooluser] child 7677 started
[05-Apr-2021 02:55:48] NOTICE: [pool pooluser] child 7262 exited with code 0 after 259.237738 seconds from start
[05-Apr-2021 02:55:48] NOTICE: [pool pooluser] child 7683 started
[05-Apr-2021 02:55:53] NOTICE: [pool pooluser] child 7269 exited with code 0 after 260.556488 seconds from start
[05-Apr-2021 02:55:53] NOTICE: [pool pooluser] child 7690 started
[05-Apr-2021 02:56:48] NOTICE: [pool pooluser] child 7391 exited with code 0 after 239.575660 seconds from start
[05-Apr-2021 02:56:48] NOTICE: [pool pooluser] child 7780 started
[05-Apr-2021 02:56:54] NOTICE: [pool pooluser] child 7398 exited with code 0 after 242.153466 seconds from start
[05-Apr-2021 02:56:54] NOTICE: [pool pooluser] child 7789 started
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment