]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stick-table: Add support of a factor for IN/OUT bytes rates
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 28 Aug 2024 08:02:13 +0000 (10:02 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 2 Sep 2024 13:50:25 +0000 (15:50 +0200)
commita7f6b0ac03618b8edea895bd58df27501ce710aa
treec9ebf35a8cc5b8600cb68c69c8ffe08f7607bb2c
parentdb13df3d6e64e9993b90f048734538491082cbed
MEDIUM: stick-table: Add support of a factor for IN/OUT bytes rates

Add a factor parameter to stick-tables, called "brates-factor", that is
applied to in/out bytes rates to work around the 32-bits limit of the
frequency counters. Thanks to this factor, it is possible to have bytes
rates beyond the 4GB. Instead of counting each bytes, we count blocks
of bytes. Among other things, it will be useful for the bwlim filter, to be
able to configure shared limit exceeding the 4GB/s.

For now, this parameter must be in the range ]0-1024].
doc/configuration.txt
include/haproxy/stick_table-t.h
include/haproxy/stick_table.h
src/flt_bwlim.c
src/stick_table.c