0
votes
2answers
46 views

Dynamic throttling of bandwidth

I am planning on setting up streaming server. Streaming is done kind of like YT does it; there will be a large number of audio content and each user can listen to it right on the website. In order ...
0
votes
1answer
55 views

How to use limit_conn and limit_req modules of Nginx when it is behind HAProxy

I'm using limit_conn_zone (with limit_conn) and limit_req_zone (with limit_req) in Nginx which sits behind a HAProxy. They both run on the same host. I see whenever a limit is breached in Nginx ...
3
votes
2answers
139 views

nginx rate limiting with X-Forwarded-For header

I'm looking into rate-limiting using nginx's HttpLimitReqModule. However, requests are all coming from the same IP (a loadbalancer), with the real IP address in the headers. Is there a way to have ...
-1
votes
1answer
196 views

Limiting upload speed depending upon the file size [closed]

How can I limit 4M of data sent at 500KBps then the rest of the file at 90KBps. I'm using Nginx Web server.
0
votes
0answers
214 views

Different limit_req depending on get argument in Nginx

How can I use different limit_req for one location depending if a get-argument is present or not? In logic: if($_GET['a']){ applyLimitA(); }else{ applyLimitB(); } I have achieved this but ...
0
votes
1answer
525 views

Nginx - What is does the nodelay option do when limiting requests?

With the nginx HttpLimitReq module requests can be limited by IP. However, I'm not understanding what the "nodelay" option does. If the excess requests within the limit burst delay are not ...
2
votes
1answer
2k views

How to rate-limit in nginx, but including/excluding certain IP addresses?

I'm able to use limit_req to rate-limit all requests to my server. However I'd like to remove the rate restriction for certain IP addresses (i.e. whitelist) and use a different rate restriction for ...
2
votes
1answer
1k views

How soon does nginx's token bucket replenish when limiting at requests per minute?

We've decided that we want to experiment and limit requests per minute instead of requests per second on our sites. However, I am confused by the burst parameter in this context. I am under the ...