]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: listener: add support for limiting the session rate in addition to the connec...
authorWilly Tarreau <w@1wt.eu>
Mon, 7 Oct 2013 16:51:07 +0000 (18:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 28 Jan 2014 14:49:27 +0000 (15:49 +0100)
commit93e7c006c1bc2e6a376af47a8587ea90580ac97a
tree48eb33abec34f6f5f3e35426c6a30c2ff3b94785
parent71b734c30725c15f5108f2b2aa9620eea1152a32
MEDIUM: listener: add support for limiting the session rate in addition to the connection rate

It's sometimes useful to be able to limit the connection rate on a machine
running many haproxy instances (eg: per customer) but it removes the ability
for that machine to defend itself against a DoS. Thus, better also provide a
limit on the session rate, which does not include the connections rejected by
"tcp-request connection" rules. This permits to have much higher limits on
the connection rate without having to raise the session rate limit to insane
values.

The limit can be changed on the CLI using "set rate-limit sessions global",
or in the global section using "maxsessrate".
doc/configuration.txt
include/types/global.h
src/cfgparse.c
src/dumpstats.c
src/listener.c