PHP-FPM configuration for shared hosting

filip212

Member
Aug 22, 2017
19
1
3
Slovakia
cPanel Access Level
Root Administrator
Hello,
I have server with 50GB of ram and 10 CPUs.
My configuration of PHP-FPM is:
pm : ondemand
pm_max_children : { name: 'pm.max_children', value: 15 }
pm_max_requests : { name: 'pm.max_requests', value: 500 }
pm_max_spare_servers : { name: 'pm.max_spare_servers', value: 10 }
pm_min_spare_servers : { name: 'pm.min_spare_servers', value: 1 }
pm_process_idle_timeout : { name: 'pm.process_idle_timeout', value: 30 }

Is this configuration Optimal? Can i get better performance with editting or adding somethink here?
Requests are per children or total?
 

sysdop

Member
Sep 10, 2017
18
1
3
International
cPanel Access Level
Root Administrator
@filip212 The configuration as it is I find it excellent. I would recommend opting to optimize your php.ini and see what other options you should activate through Easyapache to get better performance. The use of memcached is a good option if the websites you host are based on Wordpress and Joomla for example.