In PHP-FPM (FastCGI Process Manager), the pm.start_servers
directive is part of the pool configuration and determines the number of child server processes that should be created when PHP-FPM starts. PHP-FPM uses a process manager to handle incoming requests and distribute them among a pool of worker processes. The pm.start_servers
setting specifically defines the number of child processes that should be created at the beginning to handle incoming requests.
Here's a breakdown of how pm.start_servers
works:
-
Startup: When PHP-FPM starts, it needs to create a certain number of child processes to handle incoming requests. These child processes are responsible for executing PHP scripts.
-
pm.start_servers: This directive sets the number of child processes that should be created during the startup phase. For example, if
pm.start_servers
is set to 5, PHP-FPM will spawn 5 child processes when it starts. -
Balancing Load: The total number of child processes created includes not only the `pm