Are there any plans to introduce a default mode for php-fpm (static, dynamic, on-demand) and other settings such as pm.max_children, pm.start_servers, pm.min_spare_servers, etc.? It would be incredibly helpful to have the ability to modify these configurations in bulk and on an individual basis through PHP settings for each server (in addition to the .conf file) or save fpm mode and settings as a Plan.
I believe the initial PHP-FPM configuration for a new domain is taken from the system configuration. So, I would think if you modify the system /etc/php-fpm.conf, you’ll get that initial configuration for your domains.
At least, I’d be surprised if it behaves differently, since all the other PHP execution modes copy the system PHP config files, when new config files are needed.
I created new template for users to use fpm mode ondemand. The problem is some other settings from dynamic mode is also applied. This is new virtual server.
interesting, I changed the max_children to 40 and pm.start_servers dropped to 5 no matter what I use. Maybe there is hardcard on what start_servers is compared to what max_children is.
And look like max_spare_servers is 1/2 what max_children is.