CREATE DB_DISCOVERY HEARTBEAT
Description
The CREATE DB_DISCOVERY HEARTBEAT
syntax is used to create a database discovery heartbeat rule.
Syntax
CreateDatabaseDiscoveryHeartbeat ::=
'CREATE' 'DB_DISCOVERY' 'HEARTBEAT' databaseDiscoveryHeartbaetDefinition ( ',' databaseDiscoveryHeartbaetDefinition )*
databaseDiscoveryHeartbaetDefinition ::=
discoveryHeartbeatName '(' 'PROPERTIES' '(' 'key' '=' 'value' ( ',' 'key' '=' 'value' )* ')' ')'
discoveryHeartbeatName ::=
identifier
Supplement
- Names with
-
need to use" "
when changing.
Example
Create HEARTBEAT
CREATE DB_DISCOVERY HEARTBEAT db_discovery_group_1_heartbeat(
PROPERTIES('keep-alive-cron'='0/5 * * * * ?')
);
Reserved word
CREATE
, DB_DISCOVERY
, HEARTBEAT
Related links
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .