docs: describe caveat and workaround for multiple fpm pools #366
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Added documentation on handling multiple php-fpm service restarts when provisioning multiple FPM pools. This serves as an addendum to PR 365 and a RFC at once.
While the change in PR 365 was not entirely incorrect (default
:delayed
notification:timer
was explicitly set), it did not address the issue at all.After investigating the problem further and testing a working solution, I’d like to share my findings.
Since
chef-client v18
,unified_mode true is the default setting for custom resources.With
unified_mode true
enabled::delayed
within a custom resource action (likeaction :install
) are queued to be processed once the action completes, rather than waiting until the end of the Chef client run.This means that my previous assertion in PR 365 was incorrect. Although the service resource notification was indeed set to
:delayed
, due tounified_mode true
it was triggered at the end of theaction :install
block within thefpm_pool
resource, not at the end of thechef-client
run.Documentation has been added; feedback is welcome.
Issues Resolved
Caveat and possible Workaround for managing multiple FPM pools documented.
Check List
## Unreleased