I have a Bitnami Lightsail Nginx instance (2 CPU 8GB RAM).
I am hitting the max.children warning constantly (5)
the default php-fpm conf settings are;
;pm.process_idle_timeout = 10s;
;pm.max_requests = 500
Along with php.ini and php-fpm.conf, I can see there are several other .conf files in the bitnami/php/etc folder including;
Now, I understand that common.conf sets user and group for the process & environment.conf is the environmental variables - and that both these files are linked as includes from php-fpm.conf along with the pool declaration.
However, neither common-dynamic.conf nor common-ondemand.conf are linked as includes from php-fpm.conf
Now... common-demand.conf basically has the same pm settings as php-fpm.conf, so not very useful for fixing my max children problem.
But.. if I follow the rabbit down the hole, I can see that common-dynamic has an additional include path;
This is where it appears dynamic changing of pm settings based on server size occurs and that my instance would then have pm settings as follows;
; Bitnami PHP-FPM Configuration
; Copyright 2017 Bitnami.com All Rights Reserved
; Note: This file will be modified on server size changes
Question is, do I simply include common-dynamic.conf along with the common.conf and envionment.conf in my php-fpm.conf file and everything is hunky-dory?
Any clues appreciated