-
Notifications
You must be signed in to change notification settings - Fork 15
PHP-FPM translate Kill Signals #102
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
Conversation
frankkoornstra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do the rewrites do?
a2dbf84 to
869af61
Compare
Now we can rely on correct signal handling via dumb-init and only use shush when there's actually encrypted variables
869af61 to
15c6f8e
Compare
|
@frankkoornstra |
The default signal used by docker to stop a container is SIGTERM and that signal is understood by PHP-FPM as immediate termination. This means that `php-fpm` won't wait for in-flight requests to finish before of stopping the workers and main process. This behaviour is quite undesired for production environments and should be avoided as much as possible. This implementation is meant to be extremely simple and only address the stop signal used when running `docker stop`. `php-fpm` signal choices are somewhat peculiar (`SIGUSR2` for example) and if we want to "fix" them we would have to use a tool (e.g.: `dumb-init`). More info: - https://linux.die.net/man/8/php-fpm - https://docs.docker.com/engine/reference/builder/#stopsignal - https://github.com/Yelp/dumb-init - usabilla/php-docker-template#102
The default signal used by docker to stop a container is SIGTERM and that signal is understood by PHP-FPM as immediate termination. This means that `php-fpm` won't wait for in-flight requests to finish before of stopping the workers and main process. This behaviour is quite undesired for production environments and should be avoided as much as possible. This implementation is meant to be extremely simple and only address the stop signal used when running `docker stop`. `php-fpm` signal choices are somewhat peculiar (`SIGUSR2` for example) and if we want to "fix" them we would have to use a tool (e.g.: `dumb-init`). More info: - https://linux.die.net/man/8/php-fpm - https://docs.docker.com/engine/reference/builder/#stopsignal - https://github.com/Yelp/dumb-init - usabilla/php-docker-template#102
The default signal used by docker to stop a container is SIGTERM and that signal is understood by PHP-FPM as immediate termination. This means that `php-fpm` won't wait for in-flight requests to finish before of stopping the workers and main process. This behaviour is quite undesired for production environments and should be avoided as much as possible. This implementation is meant to be extremely simple and only address the stop signal used when running `docker stop`. `php-fpm` signal choices are somewhat peculiar (`SIGUSR2` for example) and if we want to "fix" them we would have to use a tool (e.g.: `dumb-init`). More info: - https://linux.die.net/man/8/php-fpm - https://docs.docker.com/engine/reference/builder/#stopsignal - https://github.com/Yelp/dumb-init - usabilla/php-docker-template#102
The default signal used by docker to stop a container is SIGTERM and that signal is understood by PHP-FPM as immediate termination. This means that `php-fpm` won't wait for in-flight requests to finish before of stopping the workers and main process. This behaviour is quite undesired for production environments and should be avoided as much as possible. This implementation is meant to be extremely simple and only address the stop signal used when running `docker stop`. `php-fpm` signal choices are somewhat peculiar (`SIGUSR2` for example) and if we want to "fix" them we would have to use a tool (e.g.: `dumb-init`). More info: - https://linux.die.net/man/8/php-fpm - https://docs.docker.com/engine/reference/builder/#stopsignal - https://github.com/Yelp/dumb-init - usabilla/php-docker-template#102
Usabilla PHP Docker Template
Reviewers: @fabiotc @rdohms @WyriHaximus @renatomefi @frankkoornstra @agustingomes @cvmiert
Type
Please specify the type of changes being proposed:
Changelog