Welcome! Log In Create A New Profile

Advanced

PHP fpm config with WP site

Posted by bishwadeep 
PHP fpm config with WP site
February 20, 2019 12:37AM
Hi Everyone,

I have a wordpress site running with following configuration:

Server
Memory: 32G
VCPUs: 8
Daily visitors: About 4000 Visitors/day

Mysql Server (Separate)
Memory: 15G
VCPUs: 4

pm = dynamic
pm.max_children = 750
pm.start_servers = 400
pm.min_spare_servers = 400
pm.max_spare_servers = 600
pm.process_idle_timeout = 10s;
pm.max_requests = 500;

I have a custom wordpress posts with lot of fields. The issue is whenever I try to edit/add posts on my wordpress admin it keeps on loading
and returns 504 header. I have about 4000 visitors on my site daily. Can anyone please suggest the correct configuration for the php for my site?
Please let me know if you have any questions.
Re: PHP fpm config with WP site
February 20, 2019 12:48AM
Updates:
This is what my PHP fpm status is showing

pool: www
process manager: dynamic
start time: 20/Feb/2019:00:55:03 +1100
start since: 57049
accepted conn: 78827
listen queue: 0
max listen queue: 0
listen queue len: 0
idle processes: 584
active processes: 4
total processes: 588
max active processes: 188
max children reached: 0
slow requests: 0
Re: PHP fpm config with WP site
February 21, 2019 04:17AM
That is a lot of processing power, how many pageviews a day does your site have?

I don't think your config is a real problem but you could try to raise the request timeouts to see if that can help.
Re: PHP fpm config with WP site
February 21, 2019 04:47PM
Hey Anton

Thank you for the reply. The average pageviews per day is 40K. I will try raising the request timeout and see if that helps.

Thank you for the suggestion once again.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 147
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready