HAProxy community

Limit connection rate per hdr(Host)


I’m already limiting the connection rate per source IP address (for the entire front end), which is fine for rate limiting an IP address. This is via GPCs…

I’d like to rate limit / limit connections to every ‘virtual host’ i.e. hdr(Host). There are many thousands of hosts so an entry per host is not feasible.

Is there a way to say ‘allow a maximum rate per hdr(Host) of n connections per second or n total connections per hdr(Host)’ without specifying each host?




Did you find a solution please ? I face the same situation.