Is there a direct connection between the number of Pm.max children and the concurrency capability of PHP-FPM? Thank you
Reply content:
Is there a direct connection between the number of Pm.max children and the concurrency capability of PHP-FPM? Thank you
A short answer:
Pm.max_children = maximum number of concurrent
A detailed answer:
Pm.max_children represents the maximum number of child processes that PHP-FPM can start. Because PHP-FPM is a multi-process single-threaded synchronous mode, where a child process processes at most one request at a time, the number of child processes equals the maximum number of concurrent sessions.
The number of processes is generally limited to memory and Nginx similar, based on memory calculation This value is the most reasonable, to a certain amount may also have to test other aspects of hardware configuration, such as io! So the answer is definitely an influence.
Yes, I have seen it before when I checked nginx high-concurrency configuration.