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

Rate limit based on the number of success request

$
0
0

I am using the below configuration,

stick-table type binary size 100k expire 5s store http_req_rate(5s)
acl abuse sc_http_req_rate(0) ge 5
http-request track-sc0 hdr(room) unless abuse
http-request deny if { sc_http_req_rate(0) gt 5 }

My intention is to count only the success request, so i have added unless criteria to track-sc0.

But for some reason its not working. It appears counter is incrementing even for denied request also.

Any pointer to correct the conditions would be of great help

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles



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