CREATE DB_DISCOVERY RULE

    • discoveryType specifies the database discovery service type, ShardingSphere has built-in support for MySQL.MGR;
    • Duplicate ruleName will not be created.
    • Create database discovery rule
    1. STORAGE_UNITS(su_0, su_1, su_2),
    2. TYPE(NAME='MySQL.MGR',PROPERTIES('group-name'='92504d5b-6dec')),
    3. HEARTBEAT(PROPERTIES('keep-alive-cron'='0/5 * * * * ?'))

    CREATE, , RULE, STORAGE_UNITS, TYPE, NAME, PROPERTIES,