M
M
Maxim Alekhin2018-12-10 12:30:34
Nginx
Maxim Alekhin, 2018-12-10 12:30:34

Nginx+PHP: how many concurrent requests?

Requests to php through nginx, how many can there be at most at one time?
I'm not talking about server performance (it's big), but is there any limitation - at the level of settings or the maximum capabilities of nginx?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
vman, 2018-12-10
@Settler1

I'm sure that this mostly depends on the php-fpm settings ( php.net/manual/ru/install.fpm.configuration.php) than on nginx
the main thing to pay attention to

pm                              = dynamic
pm.max_children                 = 100
pm.start_servers                = 3
pm.min_spare_servers            = 3
pm.max_spare_servers            = 15
pm.max_requests                 = 100

max_children:
This option sets a limit on the number of concurrent requests that will be served

S
Softer, 2018-12-10
@Softer

Limited by the size of the PHP-FPM pool, the number of connections on the nginx side is usually many times higher.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question