I want to set a low rate limit such as 5r/s to an upstream. I don't want to reject any request for surpassing QPS limit, So I am setting the burst value to a high number and using default delay value 0, which means to delay infinitely. However I want to discard requests after they are waiting in the burst queue for some time, e.g. 30 seconds.
I tried to set some timeout values but as I learned timeouts doesn't work with rate limits. (see here)
Is there a way to do this in NGINX? If not possible, please share other ideas.