Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FPM global_pool_settings are not applied to the default pool #651

Open
mpdude opened this issue Jan 10, 2022 · 0 comments
Open

FPM global_pool_settings are not applied to the default pool #651

mpdude opened this issue Jan 10, 2022 · 0 comments

Comments

@mpdude
Copy link
Contributor

mpdude commented Jan 10, 2022

At least with version 6.0.2 of this module, the global_pool_settings parameter in php::fpm was applied to the default www pool. This is no longer the case in v8.0.2, but it is not mentioned as a breaking change in the CHANGELOG either.

I suspect the change in #572 caused this:

The default pool is now defined in params.pp:

$fpm_pools = {
'www' => {
'catch_workers_output' => 'no',
'listen' => '127.0.0.1:9000',
'listen_backlog' => -1,
'pm' => 'dynamic',
'pm_max_children' => 50,
'pm_max_requests' => 0,
'pm_max_spare_servers' => 35,
'pm_min_spare_servers' => 5,
'pm_start_servers' => 5,
'request_terminate_timeout' => 0,
},
}

fpm.pp uses a create_resources call. This function will only use default values from the third argument (the global_pool_settings) when they are not already specified in the second argument's hash.

create_resources(::php::fpm::pool, $real_pools, $real_global_pool_settings)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant