Graceful Shutdown with PHP-FPM in Kubernetes

Scope of this page

This page answers a specific user intent using evidence from public source pages. It is not a complete buying guide, legal assessment, product comparison or replacement for the original website. Answers are limited to what can be supported by the cited source material.

Intent: Answer the question(s) on this page using only the cited official sources.

Topic: Graceful Shutdown Kubernetes

Last updated:

Primary source: https://palark.com/blog/graceful-shutdown-in-kubernetes-is-not-always-trivial

Quick Info

The PHP-FPM master process does not control its child processes by default and may terminate before they complete.

Purpose and usage

This page provides short, extractable answers for the topic above.

Key points

  • How can the grace period for PHP-FPM processes be set?: The process_control_timeout directive in PHP-FPM sets a grace period for worker processes to finish active requests.

Terms and entities

Canonical definitions live on the Facts pages. This page only references them.

What limitation does PHP-FPM have regarding child processes?

The PHP-FPM master process does not control its child processes by default and may terminate before they complete.

How can the grace period for PHP-FPM processes be set?

The process_control_timeout directive in PHP-FPM sets a grace period for worker processes to finish active requests.

Sources

  1. https://palark.com/blog/graceful-shutdown-in-kubernetes-is-not-always-trivial

Machine metadata