A
A
Alexander2016-03-25 14:15:06
linux
Alexander, 2016-03-25 14:15:06

How to limit the number of concurrent requests with nginx?

Tell me how to use nginx (or some other tool) to make requests coming from the same ip-address queued and each next request would be transferred to php-fpm (or any other server, behind nginx) only after the previous one has finished processing? I looked at nginx.org/en/docs/http/ngx_http_limit_req_module.html , but it doesn't really suit me, because it works on the principle of limiting the number of simultaneous requests over time. And I need that, regardless of the execution time, all requests from the same ip are queued, and the next request begins to be processed only after the processing of the previous one is completed.
Therefore, I ask you to either suggest some ready-made alternatives to ngx_http_limit_req_module that solve my problem, or indicate exactly how to configure ngx_http_limit_req_module so that the problem is solved in the formulation that I wrote above.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor Taran, 2016-03-26
@shambler81

nginx.org/ru/docs/http/ngx_http_limit_conn_module.html
and this is what you should have done:
google.gik-team.com/?q=nginx+%D0%BA%D0%BE%D0%BB%D0.. .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question