Hello

On 11/1/19 2:03 AM, Victor Jonathon Calel wrote:

backend sec_table
         stick-table type string len 64 size 500k expire 5s store gpc0,gpt0,http_req_rate(1s)

backend min_table
          stick-table type string len 64 size 500k expire 5s store http_req_rate(60s)


As you can see triad03 matching 5 keys. And requests is coming from all 5 keys, but stick-table only shows 3 keys in it (First, second and 4rth).


watch -n1 'echo "show table sec_table" | socat stdio unix:/var/run/haproxy.sock'
# table: sec_table, type: string, size:512000, used:3

Why is that? Does this have anything to do with MAX_SESS_STCKTR ? Bur here I am only using two counter sc0 and sc1.

What am I doing wrong? Please help.




I have tested this config and it seems to work fine for me on the latest stable version.

# table: sec_table, type: string, size:512000, used:5

Are you sure the entries are not expiring?  It seems your expiration time is set to 5 seconds.



Thanks,

-- Daniel


Reply via email to