Discussion:
Is it possible to view the contents of a stick table on a running HAProxy 1.5 instance?
Duncan Mason
2013-11-28 16:08:15 UTC
Permalink
Hi,

Is it possible to view the contents of a stick table on a running HAProxy 1.5 instance?

I have a simple 2 node peers configuration as

peers mypeers
peer ip-10-31-18-197 10.31.18.197:1024
peer ip-10-31-35-19 10.31.35.19:1024

But the 2 nodes seem to be choosing different target servers for the same stick on value.

I was hoping I could view the contents of the stick tables on both nodes so I could troubleshoot this.

Cheers

Duncan
Malcolm Turnbull
2013-11-29 19:07:20 UTC
Permalink
Duncan,

Try something like:


[***@lbmaster loadbalancer.org]# echo "show table V1" | socat stdio
/var/run/haproxy.stat

# table: V1, type: ip, size:10485760, used:1

0x6c11b4: key=192.168.64.10 use=0 exp=1670531 server_id=1
Post by Duncan Mason
Hi,
Is it possible to view the contents of a stick table on a running HAProxy 1.5 instance?
I have a simple 2 node peers configuration as
peers mypeers
peer ip-10-31-18-197 10.31.18.197:1024
peer ip-10-31-35-19 10.31.35.19:1024
But the 2 nodes seem to be choosing different target servers for the same stick on value.
I was hoping I could view the contents of the stick tables on both nodes so
I could troubleshoot this.
Cheers
Duncan
--
Regards,

Malcolm Turnbull.

Loadbalancer.org Ltd.
Phone: +44 (0)870 443 8779
http://www.loadbalancer.org/
Duncan Mason
2013-12-02 13:45:30 UTC
Permalink
Thanks Malcolm,
After you told me this I found the details in the documentation. I need to remember to RTFM next time.
To get this to work I also had to add a line in the config file I was missing:
        stats socket    /tmp/haproxy
Thanks for your help.
Duncan


Malcolm Turnbull <malcolm-Oteo70RhwZ77w/***@public.gmane.org> , 29/11/2013 7:08 PM:
Duncan,

Try something like:


[***@lbmaster loadbalancer.org]# echo "show table V1" | socat stdio
/var/run/haproxy.stat

# table: V1, type: ip, size:10485760, used:1

0x6c11b4: key=192.168.64.10 use=0 exp=1670531 server_id=1
Post by Duncan Mason
Hi,
Is it possible to view the contents of a stick table on a running HAProxy 1.5 instance?
I have a simple 2 node peers configuration as
peers mypeers
    peer ip-10-31-18-197 10.31.18.197:1024
    peer ip-10-31-35-19 10.31.35.19:1024
But the 2 nodes seem to be choosing different target servers for the same stick on value.
I was hoping I could view the contents of the stick tables on both nodes so
I could troubleshoot this.
Cheers
Duncan
--
Regards,

Malcolm Turnbull.

Loadbalancer.org Ltd.
Phone: +44 (0)870 443 8779
http://www.loadbalancer.org/

Loading...