E
E
Eugene2019-11-13 18:01:20
PHP
Eugene, 2019-11-13 18:01:20

How to configure the request queue in the nginx + php71-fpm + yii bundle?

I have a bunch of nginx + php71-fpm + yii here,
I go to some address in the admin panel where there are a lot of requests to the database, it is waiting for them. until it processes and then shows the result, like all the rules. but if I first request one page and then the second, he puts them in a kind of queue, and until he processes the first one, he starts raking the second one (and for example, I just made a mistake and accidentally opened the wrong page). and it gives a queue to this particular client, if in parallel I go to the site from another window from incognito mode, it has its own queue and the pages will open
in general, the question is how to make php-fpm perform several requests in parallel from 1 client.
(pm = dynamic)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maksim Fedorov, 2019-11-13
@ZILosoft

and he gives the queue to this particular client, if in parallel I go to the site from another window from incognito mode, he has his own queue and the pages will open

It looks like the session file cannot be accessed by another process in parallel. Usually, to solve similar problems, sessions are taken out to the same Redis.
But there may be problems here: https://habr.com/en/post/318836/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question