natehuangting commented on issue #18380:
URL:
https://github.com/apache/shardingsphere/issues/18380#issuecomment-1157201411
The configuration for db-discovery.
```
rules:
- !READWRITE_SPLITTING
dataSources:
readwrite_ds:
type: Dynamic
props:
auto-aware-data-source-name: readwrite_ds
- !DB_DISCOVERY
dataSources:
readwrite_ds:
dataSourceNames:
- ds_0
- ds_1
- ds_2
discoveryTypeName: mysql_normal
discoveryHeartbeatName: mysql-heartbeat
discoveryHeartbeats:
mysql-heartbeat:
props:
keep-alive-cron: '0/5 * * * * ?'
discoveryTypes:
mysql_normal:
type: MySQL.NORMAL_REPLICATION
props:
delay-milliseconds-threshold: 10000
min-enabled-replicas-threshold: 1
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]