HAProxy Enterprise Documentation 2.3r1

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.

Examples

Below, we send the show peers command to the haproxy1 load balancer. The command returns information about stick table data that has been synchronized to the haproxy2 load balancer. There are two stick tables defined, api_req_rate and login_req_rate.

$ echo "show peers peerslist2" | sudo socat stdio /var/run/hapee-2.3/hapee-lb.sock

0x55c0389f4780: [02/Mar/2021:22:13:21] id=peerslist2 state=0 flags=0x3 resync_timeout=<PAST> task_calls=31
0x55c038a01680: id=haproxy2(remote,inactive) addr=172.25.0.12:10000 last_status=CONN reconnect=0s confirm=0 tx_hbt=0 rx_hbt=0 no_hbt=0 new_conn=20 proto_err=0
      flags=0x0
      shared tables:
        0x55c038a12ac0 local_id=2 remote_id=0 flags=0x0 remote_data=0x0
            last_acked=0 last_pushed=0 last_get=0 teaching_origin=0 update=0
            table:0x55c038a02480 id=peerslist2/login_req_rate update=6 localupdate=6 commitupdate=0 syncing=0
      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 -> -
        0x55c038a0aaa0 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:0x55c038a02670 id=peerslist2/api_req_rate update=12 localupdate=12 commitupdate=0 syncing=0
      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 -> -
0x55c0389f6610: id=haproxy1(local,inactive) addr=0.0.0.0:10001 last_status=NONE reconnect=<NEVER> confirm=0 tx_hbt=0 rx_hbt=0 no_hbt=0 new_conn=0 proto_err=0
      flags=0x0
      shared tables:
        0x55c038a12b10 local_id=2 remote_id=0 flags=0x0 remote_data=0x0
            last_acked=0 last_pushed=0 last_get=0 teaching_origin=0 update=0
            table:0x55c038a02480 id=peerslist2/login_req_rate update=6 localupdate=6 commitupdate=0 syncing=0
      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 -> -
        0x55c038a0aaf0 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:0x55c038a02670 id=peerslist2/api_req_rate update=12 localupdate=12 commitupdate=0 syncing=0
      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