数据库发现

优质
小牛编辑
161浏览
2023-12-01

定义

SHOW DB_DISCOVERY RULES [FROM schemaName]              

说明

说明
name规则名称
dataSourceNames数据源名称列表
discoverType数据库发现服务类型
discoverProps数据库发现服务参数

示例

mysql> show db_discovery rules from database_discovery_db;
+-------+--------------------+--------------+-------------------------------------------------------------------------------------------------------------+
| name  | dataSourceNames    | discoverType | discoverProps                                                                                               |
+-------+--------------------+--------------+-------------------------------------------------------------------------------------------------------------+
| pr_ds |  ds_0, ds_1, ds_2  | MGR          |  keepAliveCron=0/5 * * * * ?, zkServerLists=localhost:2181, groupName=92504d5b-6dec-11e8-91ea-246e9612aaf1  |
+-------+--------------------+--------------+-------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)