Logo
HA

HA #

Configuration Item Explanation #

Namespace:http://shardingsphere.apache.org/schema/shardingsphere/database-discovery/database-discovery-5.1.0.xsd

<database-discovery:rule />

NameTypeDescription
idAttributeSpring Bean Id
data-source-rule (+)tagData source rule configuration
discovery-heartbeat (+)tagDetect heartbeat rule configuration

<database-discovery:data-source-rule />

NameTypeDescription
idAttributeData source rule Id
data-source-namesAttributeData source names, multiple data source names separated with comma. Such as: ds_0, ds_1
discovery-heartbeat-nameAttributeDetect heartbeat name
discovery-type-nameAttributeDatabase discovery type name

<database-discovery:discovery-heartbeat />

NameTypeDescription
idAttributeDetect heartbeat Id
propstagDetect heartbeat attribute configuration, keep-alive-cron configuration, cron expression. Such as: ‘0/5 * * * * ?’

<database-discovery:discovery-type />

NameTypeDescription
idAttributeDatabase discovery type Id
typeAttributeDatabase discovery type, such as: MGR、openGauss
props (?)tagRequired parameters for database discovery types, such as MGR’s group-name