These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Additional FPM pool options doesn't change my pool config on the new forum.
Hello,
I want to adapt the default FPM config when creating a ne virtualhost for that purpose in
Server Templates > PHP options > Additional FPM pool options
I have added this config:
pm = ondemand
pm.max_children = 15
pm.start_servers = 1
pm.min_spare_servers = 1
pm.max_spare_servers = 5
pm.max_requests = 200
But any new Vhost created is still and always getting the default config
pm = dynamic
pm.max_children = 9999
pm.start_servers = 1
pm.min_spare_servers = 1
pm.max_spare_servers = 5
Is there something else to do to have those options replace by my mine ?
Thanks for any input
Kind regards
best self propelled lawn mower best self propelled lawn mower 2018
I really appreciate this post. I have been looking all over for this! Thank goodness I found it on Bing. You’ve made my day! Thanks again top air rifle scope 2018
GOOD
I think www.conf and virtual domain.conf parameters need to be changed manually. I only changed children, min/max servers and requests on www.conf under /etc/php-fpm.d and no changes on the domains 12345678.conf files. I have not found any clue anywhere if domain.conf files need any change as their default is 9999 children and 1,1,5
Appreciated.
Heavy duty recliners 2018
Math,
I've find out that only by adding settings in the end of file:
/etc/php/7.0/fpm/php-fpm.conf
makes this permanent (and also reflect all hosts, and modifies all pool.d/xxx.conf files also) after fpm restarts..You have to add it after pool declaration, like this
Somehow kpendic's solution doesn't seem to work for me, the pools fpm configurations don't get overridden.
I devised an alternative solution:
pm = ondemand
pm.max_children = 5
pm.process_idle_timeout = 10s;
For already existing domains, you can have Virtualmin regenerate the configuration file by changing the "PHP script execution mode" from FPM to anything else and then back to FPM. If you have to do it for multiple domains, I advise you to temporarily switch to the old webmin theme if you want to go 10x faster.
Hi, I really like your idea and it's working. Thanks. I am also interested in regarding switching to old webmin theme would help. Would you mind elaborate on that?