Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4751

Cannot use sc_http_req_rate when the counter isn't currently tracked

$
0
0

As per documentation, sc_http_req_rate will return the rate of http requests from the stick table, but only from the currently tracked counters.

From testing, this means that if you are incrementing your counter using http-response rather than http-request, the field is unavailable. It cannot be used for rate limiting, or sent on to the backends.

A down to earth conseguence of this is that I cannot limit the number of bots generating too many 404 requests.

How can I load and use the stick table http rate during the request if it’s only tracked in the response?

Thank you :slight_smile:

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>