I am trying to use HAProxy to limit speed. I need to track multiple endpoints and limit them individually. So far I have used general purpose counters. However, there are only 3, from sc0 to sc2.
The documentation mentions that all operations on these counters accept an optional table parameter, but this is unclear, then if I can track different things in different tables, but using the same counters.
In other words: is the limit of 3 general-purpose counters global or a sticky table?
If, after the correct definition of the table and the instructions of the track, I do
sc1_inc_gpc0(table1)
(and, in different conditions)
sc1_inc_gpc0(table2)
And then there are 2 acl rules like
acl X sc1_get_gpc0(table1) gt 1
acl Y sc1_get_gpc0(table2) gt 1
Will the two aclwork autonomously, otherwise they will process the same counter?
Thanks for the help! (If you are interested: for a number of reasons, at the moment I could not use a solution other than HAProxy to limit the speed)
source
share