Thanks Brian !

i have searched in management guides, but at "show table <name> [ data.<type> <operator> <value> ] | [ key <key> ]" :)

BTW the doc says 2 things :
1] "their size in maximum possible number of entries, and the number of entries currently in use."

it seems that's, in reality, the size of the table in bytes, not really a number of entries. Size is still the same when adding or removing datatype. stick-table size 50m => sized: 52428800 no matter the number of data_type per key.

2] their type (currently zero, always IP)

i have type: string when i set "type string". Maybe i missunderstand the sentence ?

echo "show table " | sudo socat stdio  /run/haproxy/admin.sock
# table: web_plain, type: ip, size:52428800, used:0
# table: dummy_stick_table, type: string, size:52428800, used:0

Thanks

Le 30/03/2017 à 22:50, Bryan Talbot a écrit :

On Mar 30, 2017, at Mar 30, 10:19 AM, Arnall <[email protected] <mailto:[email protected]>> wrote:

Hello everyone,

when using socat to show a stick-table i have lines like this :

# table: dummy_table, type: ip, size:52428800, used:33207

0x7f202f800720: key=aaa.bbb.ccc.ddd use=0 exp=599440 gpc0=0 conn_rate(5000)=19 conn_cur=0 http_req_rate(10000)=55

../...

I understand all the fields except 2 :

used:33207

use=0

I found nothing in the doc, any idea ?



I believe that these are documented in the management guides and not the config guides.

https://cbonte.github.io/haproxy-dconv/1.6/management.html#9.2-show%20table

Here, I think that ‘used’ for the table is the number of entries that currently exist in the table, and ‘use’ for an entry is the number of sessions that concurrently match that entry.

-Bryan


Reply via email to