S
S
Sergey2015-09-29 14:07:46
Nginx
Sergey, 2015-09-29 14:07:46

How exactly does nginx limit_req burst "delay" requests?

Let's say we have nginx with the given limits:
limit_req_zone $binary_remote_addr zone=one:10m rate=30r/s;
limit_req zone=one burst=10;
Suppose 31 requests come to this nginx in some second, one request is accordingly postponed for the next second, the next second 31 requests come again, the one that was postponed will be executed in priority and guaranteed?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Valery Ryaboshapko, 2015-09-29
@Kamikaze

As far as I remember from my experience, extra requests are not delayed, but rejected with the 500th error.

@
@pys, 2016-12-12
_

Burst is supposed to do more than rate. If there is a rate of 30 and a burst of 40, then the 31st request will be delayed for the next second, and the 41st will be rejected with a 503 status.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question