Score:0

How to discard a request from burst queue after a certain time in NGINX?

sl flag

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.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.