描述

    使用show proxycongestion [all] [clustername]语句:

    • show proxycongestion : 展示所有cluster的黑名单信息。黑名单指 : dead_congested, alive_congested, is_zone_upgrading, is_zone_merging, is_server_upgrading任意一个状态为true。
    • show proxycongestion all : 展示所有cluster的server信息(包括黑名单中和非黑名单中的server信息)。
    • show proxycongestion clustername : 展示指定cluster的黑名单信息。
    • show proxycongestion all clustername : 展示指定cluster的server信息。
    • proxy 1.1.2版本之前, clustername不需要单引号或者双引号引起来, 1.1.2版本及之后,必须要用单引号或者双引号引起来。

    示例

    1. OceanBase (root@oceanbase)> show proxycongestion;
    2. *************************** 1. row ***************************
    3. cluster_name: ob1.jianhua.sjh
    4. zone_name: zone1
    5. zone_state: ACTIVE
    6. server_ip: 10.111.4.28:13201
    7. server_state: ACTIVE
    8. alive_congested: 0
    9. last_alive_congested: 0
    10. dead_congested: 0
    11. last_dead_congested: 0
    12. stat_alive_failures: 0
    13. stat_conn_failures: 0
    14. conn_last_fail_time: 0
    15. conn_failure_events: 0
    16. alive_last_fail_time: 0
    17. alive_failure_events: 0
    18. ref_count: 1
    19. *************************** 2. row ***************************
    20. cluster_name: ob1.jianhua.sjh
    21. zone_name: zone1
    22. zone_state: ACTIVE
    23. server_ip: 10.111.4.27:13203
    24. server_state: ACTIVE
    25. alive_congested: 0
    26. last_alive_congested: 0
    27. dead_congested: 0
    28. last_dead_congested: 0
    29. stat_alive_failures: 0
    30. stat_conn_failures: 0
    31. conn_last_fail_time: 0
    32. conn_failure_events: 0
    33. alive_last_fail_time: 0
    34. alive_failure_events: 0
    35. ref_count: 1
    36. 2 rows in set (0.00 sec)
    37. OceanBase (root@oceanbase)> show proxycongestion all\G
    38. *************************** 1. row ***************************
    39. cluster_name: MetaDataBase
    40. zone_name: zone1
    41. zone_state: ACTIVE
    42. server_ip: 10.111.4.28:13201
    43. server_state: ACTIVE
    44. alive_congested: 0
    45. last_alive_congested: 0
    46. dead_congested: 0
    47. last_dead_congested: 0
    48. stat_alive_failures: 0
    49. stat_conn_failures: 0
    50. conn_last_fail_time: 0
    51. conn_failure_events: 0
    52. alive_last_fail_time: 0
    53. alive_failure_events: 0
    54. ref_count: 1
    55. *************************** 2. row ***************************
    56. cluster_name: MetaDataBase
    57. zone_name: zone1
    58. zone_state: ACTIVE
    59. server_ip: 10.111.4.27:13203
    60. server_state: ACTIVE
    61. alive_congested: 0
    62. last_alive_congested: 0
    63. dead_congested: 0
    64. last_dead_congested: 0
    65. stat_alive_failures: 0
    66. stat_conn_failures: 0
    67. conn_last_fail_time: 0
    68. conn_failure_events: 0
    69. alive_last_fail_time: 0
    70. alive_failure_events: 0
    71. ref_count: 1
    72. *************************** 3. row ***************************
    73. cluster_name: ob1.jianhua.sjh
    74. zone_name: zone1
    75. zone_state: ACTIVE
    76. server_ip: 10.111.4.28:13201
    77. server_state: ACTIVE
    78. alive_congested: 0
    79. last_alive_congested: 0
    80. dead_congested: 0
    81. last_dead_congested: 0
    82. stat_alive_failures: 0
    83. stat_conn_failures: 0
    84. conn_last_fail_time: 0
    85. conn_failure_events: 0
    86. alive_last_fail_time: 0
    87. alive_failure_events: 0
    88. ref_count: 1
    89. *************************** 4. row ***************************
    90. cluster_name: ob1.jianhua.sjh
    91. zone_name: zone1
    92. zone_state: ACTIVE
    93. server_ip: 10.111.4.27:13203
    94. server_state: ACTIVE
    95. alive_congested: 0
    96. last_alive_congested: 0
    97. dead_congested: 0
    98. last_dead_congested: 0
    99. stat_alive_failures: 0
    100. stat_conn_failures: 0
    101. conn_last_fail_time: 0
    102. conn_failure_events: 0
    103. alive_last_fail_time: 0
    104. alive_failure_events: 0
    105. ref_count: 1
    106. 4 rows in set (0.01 sec)
    107. OceanBase (root@oceanbase)> show proxycongestion all ob1.jianhua.sjh\G
    108. *************************** 1. row ***************************
    109. cluster_name: ob1.jianhua.sjh
    110. zone_name: zone1
    111. zone_state: ACTIVE
    112. server_ip: 10.111.4.28:13201
    113. server_state: ACTIVE
    114. alive_congested: 0
    115. last_alive_congested: 0
    116. dead_congested: 0
    117. last_dead_congested: 0
    118. stat_alive_failures: 0
    119. stat_conn_failures: 0
    120. conn_last_fail_time: 0
    121. conn_failure_events: 0
    122. alive_last_fail_time: 0
    123. alive_failure_events: 0
    124. ref_count: 1
    125. *************************** 2. row ***************************
    126. cluster_name: ob1.jianhua.sjh
    127. zone_name: zone1
    128. zone_state: ACTIVE
    129. server_ip: 10.111.4.27:13203
    130. server_state: ACTIVE
    131. alive_congested: 0
    132. last_alive_congested: 0
    133. dead_congested: 0
    134. last_dead_congested: 0
    135. stat_alive_failures: 0
    136. stat_conn_failures: 0
    137. conn_last_fail_time: 0
    138. conn_failure_events: 0
    139. alive_last_fail_time: 0
    140. alive_failure_events: 0
    141. ref_count: 1
    142. 2 rows in set (0.00 sec)
    143. OceanBase (root@oceanbase)> show proxycongestion all ob1.jianhua\G
    144. ERROR 4018 (HY000): Entry not exist
    1. mysql> show proxyinfo binary\G
    2. *************************** 1. row ***************************
    3. name: binary info
    4. info: ObProxy-OceanBase 1.1.2-459.el6
    5. version:RELEASE_6U
    6. MD5:
    7. REVISION:459-local-5ba2e3d33ea201fb675eb704627162a584485cdd
    8. BUILD_TIME:Sep 29 2016 11:50:15
    9. BUILD_FLAGS:-D__STDC_LIMIT_MACROS -D_OB_VERSION=1000 -D__STDC_CONSTANT_MACROS -D_NO_EXCEPTION -g -Wall -Werror -Wextra -Wunused-parameter -Wformat -Wconversion -Wno-invalid-offsetof -Wno-deprecated -fno-strict-aliasing -fno-omit-frame-pointer -mtune=generic -Wno-psabi -Wno-sign-compare -DGCC_52 -DUSE_POSIX_FALLOCATE -DSUPPORT_SSE4_2 -DHAVE_SCHED_GETCPU -DHAVE_REALTIME_COARSE -DOB_HAVE_EVENTFD -DHAVE_FALLOCATE -DHAVE_MINIDUMP
    10. 1 row in set (0.00 sec)
    11. mysql> show proxycongestion all ob1.jianhua.sjh;
    12. ERROR 5010 (21000): Unknown operator
    13. mysql> show proxycongestion all "ob1.jianhua.sjh";
    14. +-----------------+-----------+------------+--------------------+--------------+-----------------+----------------------+----------------+---------------------+---------------------+--------------------+---------------------+---------------------+----------------------+----------------------+-----------+
    15. | cluster_name | zone_name | zone_state | server_ip | server_state | alive_congested | last_alive_congested | dead_congested | last_dead_congested | stat_alive_failures | stat_conn_failures | conn_last_fail_time | conn_failure_events | alive_last_fail_time | alive_failure_events | ref_count |
    16. +-----------------+-----------+------------+--------------------+--------------+-----------------+----------------------+----------------+---------------------+---------------------+--------------------+---------------------+---------------------+----------------------+----------------------+-----------+
    17. | ob1.jianhua.sjh | zone1 | ACTIVE | 10.125.111.7:13201 | ACTIVE | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
    18. +-----------------+-----------+------------+--------------------+--------------+-----------------+----------------------+----------------+---------------------+---------------------+--------------------+---------------------+---------------------+----------------------+----------------------+-----------+
    19. 1 row in set (0.00 sec)