Duplicated pm values at php-fpm domain.conf
Hello:
/var/cpanel/userdata/user/domain.php-fpm.yaml is empty (only is_preset).
So I have just edited:
/var/cpanel/ApachePHPFPM/system_pool_defaults.yaml
Added some values overwritting default ones, and finally:
[QUOTE]...
pm: ondemand
pm.max_children: 30
pm.max_requests: 200
pm.process_idle_timeout: 20s
...
So then, rebuilt: /usr/local/cpanel/scripts/php_fpm_config --rebuild Then have a look at: /opt/cpanel/ea-php72/root/etc/php-fpm.d/domain.conf Here FOUND DUPLICATED VALUES POR PM CONFIGURATIONS: [QUOTE]... pm = ondemand pm.max_children = 30 pm.max_requests = 200 pm.process_idle_timeout = 20s pm.max_children = 5 pm.max_requests = 20 pm.max_spare_servers = 5 pm.min_spare_servers = 1 pm.process_idle_timeout = 10 pm.start_servers = 0 ...
As you see, there are two values for pm.max_requests, by example, the default one (20) and the configured by me value (200)... The biggest problem is pm.max_children. I do not want to configure this value as per domain basis yaml, but do it only one time. Isn't it the purpose of /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml template???? Thanks so much.
So then, rebuilt: /usr/local/cpanel/scripts/php_fpm_config --rebuild Then have a look at: /opt/cpanel/ea-php72/root/etc/php-fpm.d/domain.conf Here FOUND DUPLICATED VALUES POR PM CONFIGURATIONS: [QUOTE]... pm = ondemand pm.max_children = 30 pm.max_requests = 200 pm.process_idle_timeout = 20s pm.max_children = 5 pm.max_requests = 20 pm.max_spare_servers = 5 pm.min_spare_servers = 1 pm.process_idle_timeout = 10 pm.start_servers = 0 ...
As you see, there are two values for pm.max_requests, by example, the default one (20) and the configured by me value (200)... The biggest problem is pm.max_children. I do not want to configure this value as per domain basis yaml, but do it only one time. Isn't it the purpose of /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml template???? Thanks so much.
Please sign in to leave a comment.
Comments
0 comments