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