HAProxy Enterprise Documentation 2.4r1

show peers

Display information about stick table data synchronized between load balancer peers.

Description

When you define a peers section in your configuration, you enable two or more HAProxy Enterprise load balancers to synchronize stick table data between themselves.

The show peers command returns information about data that has transferred between the load balancers. You can filter the results to see only a specific peers section by specifying its name as an argument.

To dump the entire Tx/Rx dictionary caches, specify the dict argument before the peers section name. If the peers section is named dict, substitute a hyphen (-) for the dict argument. Note that the dictionary dump can be very large.

Examples

Below, we send the show peers dict command to the node1 load balancer. The command returns information about stick table data that has been synchronized to the node5 load balancer. There is one stick table defined, sticktable1.

$ echo "show peers dict" | \
   sudo socat stdio unix-connect:/var/run/hapee-2.4/hapee-lb.sock
0x55b5c6fc67e0: [13/Apr/2023:13:52:00] id=mypeers disabled=0 flags=0x2213 resync_timeout=<PAST> task_calls=37
0x55b5c6fc9e20: id=node5(remote,active) addr=192.168.56.35:10100 last_status=ESTA last_hdshk=55s
        reconnect=3s heartbeat=1s confirm=0 tx_hbt=18 rx_hbt=18 no_hbt=0 new_conn=1 proto_err=0 coll=0
        flags=0x20000000 appctx:0x55b5c717ba40 st0=7 st1=0 task_calls=36 state=EST
        remote_table:0x55b5c70b2dc0 id=sticktable1 local_id=1 remote_id=1
        shared tables:
        0x55b5c70b2dc0 local_id=1 remote_id=1 flags=0x0 remote_data=0x400
            last_acked=0 last_pushed=0 last_get=0 teaching_origin=0 update=0
            table:0x55b5c6fd2ee0 id=sticktable1 update=0 localupdate=0 commitupdate=0 refcnt=1
        TX dictionary cache:
        RX dictionary cache:
            0 -> -    1 -> -    2 -> -    3 -> -
            4 -> -    5 -> -    6 -> -    7 -> -
            8 -> -    9 -> -   10 -> -   11 -> -
        12 -> -   13 -> -   14 -> -   15 -> -
        16 -> -   17 -> -   18 -> -   19 -> -
        20 -> -   21 -> -   22 -> -   23 -> -
        24 -> -   25 -> -   26 -> -   27 -> -
        28 -> -   29 -> -   30 -> -   31 -> -
        32 -> -   33 -> -   34 -> -   35 -> -
        36 -> -   37 -> -   38 -> -   39 -> -
        40 -> -   41 -> -   42 -> -   43 -> -
        44 -> -   45 -> -   46 -> -   47 -> -
        48 -> -   49 -> -   50 -> -   51 -> -
        52 -> -   53 -> -   54 -> -   55 -> -
        56 -> -   57 -> -   58 -> -   59 -> -
        60 -> -   61 -> -   62 -> -   63 -> -
        64 -> -   65 -> -   66 -> -   67 -> -
        68 -> -   69 -> -   70 -> -   71 -> -
        72 -> -   73 -> -   74 -> -   75 -> -
        76 -> -   77 -> -   78 -> -   79 -> -
        80 -> -   81 -> -   82 -> -   83 -> -
        84 -> -   85 -> -   86 -> -   87 -> -
        88 -> -   89 -> -   90 -> -   91 -> -
        92 -> -   93 -> -   94 -> -   95 -> -
        96 -> -   97 -> -   98 -> -   99 -> -
        100 -> -  101 -> -  102 -> -  103 -> -
        104 -> -  105 -> -  106 -> -  107 -> -
        108 -> -  109 -> -  110 -> -  111 -> -
        112 -> -  113 -> -  114 -> -  115 -> -
        116 -> -  117 -> -  118 -> -  119 -> -
        120 -> -  121 -> -  122 -> -  123 -> -
        124 -> -  125 -> -  126 -> -  127 -> -
0x55b5c6fc6c80: id=node1(local,inactive) addr=192.168.56.31:10100 last_status=NONE last_hdshk=<NEVER>
        reconnect=<NEVER> heartbeat=<NEVER> confirm=0 tx_hbt=0 rx_hbt=0 no_hbt=0 new_conn=0 proto_err=0 coll=0
        flags=0x0
        shared tables:
        0x55b5c70b2e90 local_id=1 remote_id=0 flags=0x0 remote_data=0x0
            last_acked=0 last_pushed=0 last_get=0 teaching_origin=0 update=0
            table:0x55b5c6fd2ee0 id=sticktable1 update=0 localupdate=0 commitupdate=0 refcnt=1
        TX dictionary cache:
        RX dictionary cache:
            0 -> -    1 -> -    2 -> -    3 -> -
            4 -> -    5 -> -    6 -> -    7 -> -
            8 -> -    9 -> -   10 -> -   11 -> -
        12 -> -   13 -> -   14 -> -   15 -> -
        16 -> -   17 -> -   18 -> -   19 -> -
        20 -> -   21 -> -   22 -> -   23 -> -
        24 -> -   25 -> -   26 -> -   27 -> -
        28 -> -   29 -> -   30 -> -   31 -> -
        32 -> -   33 -> -   34 -> -   35 -> -
        36 -> -   37 -> -   38 -> -   39 -> -
        40 -> -   41 -> -   42 -> -   43 -> -
        44 -> -   45 -> -   46 -> -   47 -> -
        48 -> -   49 -> -   50 -> -   51 -> -
        52 -> -   53 -> -   54 -> -   55 -> -
        56 -> -   57 -> -   58 -> -   59 -> -
        60 -> -   61 -> -   62 -> -   63 -> -
        64 -> -   65 -> -   66 -> -   67 -> -
        68 -> -   69 -> -   70 -> -   71 -> -
        72 -> -   73 -> -   74 -> -   75 -> -
        76 -> -   77 -> -   78 -> -   79 -> -
        80 -> -   81 -> -   82 -> -   83 -> -
        84 -> -   85 -> -   86 -> -   87 -> -
        88 -> -   89 -> -   90 -> -   91 -> -
        92 -> -   93 -> -   94 -> -   95 -> -
        96 -> -   97 -> -   98 -> -   99 -> -
        100 -> -  101 -> -  102 -> -  103 -> -
        104 -> -  105 -> -  106 -> -  107 -> -
        108 -> -  109 -> -  110 -> -  111 -> -
        112 -> -  113 -> -  114 -> -  115 -> -
        116 -> -  117 -> -  118 -> -  119 -> -
        120 -> -  121 -> -  122 -> -  123 -> -
        124 -> -  125 -> -  126 -> -  127 -> -

See also

show stat


Next up

show pools