描述
show proxycluster [like 'xx']
语句展示指定cluster的rs list详细信息(包括meta_db_cluster),支持like模糊匹配(支持’%’和’_‘的匹配)
show proxycluster idc [like 'xx']
语句展示指定cluster的idc list详细信息(包括meta_db_cluster),支持like模糊匹配(支持’%’和’_‘的匹配)
示例
OceanBase (root@oceanbase)> show proxycluster;
+-----------------+--------------------------------------------------------------------------------+-------------------+--------+
| cluster_name | rs_url | root_addr | role |
+-----------------+--------------------------------------------------------------------------------+-------------------+--------+
| ob1.jianhua.sjh | http://10.111.4.23:8080/oceanbase_obconfig/ob1.jianhua.sjh.10.125.111.4.rslist | 10.244.4.27:13203 | leader |
| MetaDataBase | http://10.111.4.23:8080/oceanbase_obconfig/ob1.jianhua.sjh.10.125.111.4.rslist | 10.244.4.27:13203 | leader |
+-----------------+--------------------------------------------------------------------------------+-------------------+--------+
2 rows in set (0.00 sec)
OceanBase (root@oceanbase)> show proxycluster like "%ob1%";
+-----------------+--------------------------------------------------------------------------------+-------------------+--------+
| cluster_name | rs_url | root_addr | role |
+-----------------+--------------------------------------------------------------------------------+-------------------+--------+
| ob1.jianhua.sjh | http://10.111.4.23:8080/oceanbase_obconfig/ob1.jianhua.sjh.10.125.111.4.rslist | 10.111.4.27:13203 | leader |
+-----------------+--------------------------------------------------------------------------------+-------------------+--------+
1 row in set (0.00 sec)
mysql> show proxycluster;
+--------------+------------+--------------------------------------------------------------------------+-------------------+----------+
| cluster_name | cluster_id | rs_url | root_addr | role |
+--------------+------------+--------------------------------------------------------------------------+-------------------+----------+
| ob1.schema | 1 | http://10.111.4.23:8080/oceanbase_obconfig/obtest_schema_10.111.4.50_ob1 | 10.111.4.62:42000 | leader |
| ob1.schema | 1 | http://10.111.4.23:8080/oceanbase_obconfig/obtest_schema_10.111.4.50_ob1 | 10.111.4.38:42000 | follower |
| ob1.schema | 1 | http://10.111.4.23:8080/oceanbase_obconfig/obtest_schema_10.111.4.50_ob1 | 10.111.14.1:42000 | follower |
| MetaDataBase | 1 | http://10.111.4.23:8080/oceanbase_obconfig/obtest_schema_10.111.4.50_ob1 | 10.111.14.1:42000 | follower |
+--------------+------------+--------------------------------------------------------------------------+-------------------+----------+
4 rows in set (0.00 sec)
mysql> show proxycluster idc;
+--------------+------------+-----------------------------------------------------------------------------------+------+--------+
| cluster_name | cluster_id | idc_url | idc | region |
+--------------+------------+-----------------------------------------------------------------------------------+------+--------+
| ob1.schema | 1 | http://10.111.4.23:8080/oceanbase_obconfig/obtest_schema_10.111.4.50_ob1_idc_list | | |
| MetaDataBase | 1 | http://10.111.4.23:8080/oceanbase_obconfig/obtest_schema_10.111.4.50_ob1_idc_list | | |
+--------------+------------+-----------------------------------------------------------------------------------+------+--------+
2 rows in set (0.00 sec)
mysql> show proxycluster idc like 'ob1.schema';
+--------------+------------+-----------------------------------------------------------------------------------+------+--------+
| cluster_name | cluster_id | idc_url | idc | region |
+--------------+------------+-----------------------------------------------------------------------------------+------+--------+
| ob1.schema | 1 | http://10.111.4.23:8080/oceanbase_obconfig/obtest_schema_10.111.4.50_ob1_idc_list | | |
+--------------+------------+-----------------------------------------------------------------------------------+------+--------+
1 row in set (0.00 sec)