Request for Default Mode and Bulk Configuration of php-fpm Settings

Hi,

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.

best regards, riba

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.

Use the template for new servers,

3 Likes

Thank you both! :slight_smile:

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.

pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 5

This is what I get from the settings I use.
image

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.

image

Yes and this settings are not for ondemand mode…

I’m confused

min and max spare servers, start servers… these are for dynamic mode…

Right, not sure why it would interfere.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.