F
F
Fixid2017-08-23 14:21:28
Nginx
Fixid, 2017-08-23 14:21:28

How to limit RPS for proxy_pass in Nginx?

How to apply ngx_http_limit_req_module for proxy_pass in Nginx?
Or how to limit the number of requests per second for calls to the backend?
Nginx acts as a caching proxy

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Fixid, 2017-08-28
@Fixid

I made a separate server with limit_req based on the same Nginx and made proxy_pass on itself
client -> Nginx(cache, proxy_pass) -> Nginx(limit_req) -> domain

N
nonname, 2017-08-28
@nonname

What is the difficulty? proxy_pass in some location, write limit_req inside the location. The zone is described in the http section.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question