MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: cybaster85 on 2015-12-29, 23:25:01

Title: Php-fpm change dynamic to ondemand
Post by: cybaster85 on 2015-12-29, 23:25:01
Hi all

I would like to switch php-fpm pool to ondemand process manager to save some RAM with changing to below
pm = ondemand
pm.max_children = 5
pm.process_idle_timeout = 10s
pm.max_requests = 200

i have managed to find each domain php fpm config in /etc/php-fpm.d/

However it got overwritten on every restart, where is the main skeleton conf file?
Title: Re: Php-fpm change dynamic to ondemand
Post by: MRatWork on 2015-12-30, 02:06:28
Kloxo-MR 7 already use 'ondemand' instead 'dynamic'.

If using Kloxo-MR 6.5, copy php53-fpm-pool.conf.tpl to custom.php53-fpm-pool.conf.tpl inside /home/php-fpm/tpl. After that, modified custom.php53-fpm-pool.conf.tpl and then run 'sh /script/fixphpfpm; sh /script/restart-web'.