Re: Rate-limit relating to the healthy servers count

2019-01-23 Thread Thomas Hilaire
Hi, I didn't think about such trick, it works! Thank a lot! On 23/01/2019 11:48, Jarno Huuskonen wrote: Hi, On Wed, Jan 23, Thomas Hilaire wrote: Hi, I want to implement a rate-limit system using the sticky table of HAProxy. Consider that I have 100 servers, and a limit of 10 request

Rate-limit relating to the healthy servers count

2019-01-23 Thread Thomas Hilaire
Hi, I want to implement a rate-limit system using the sticky table of HAProxy. Consider that I have 100 servers, and a limit of 10 requests per server, the ACL would be:     http-request track-sc0 int(1) table GlobalRequestsTracker     http-request deny deny_status 429 if { sc0_http_req_rate