zjcnb commented on issue #18441:
URL:
https://github.com/apache/shardingsphere/issues/18441#issuecomment-1160030867
`Configuration : `
```
rules:
- !READWRITE_SPLITTING
dataSources:
readwrite_ds:
type: Dynamic
props:
auto-aware-data-source-name: replication_delay_ds
primary-data-source-allow-query: true # Default Value are true,
it represents provide query when all the replica are offline.
- !DB_DISCOVERY
dataSources:
replication_delay_ds:
dataSourceNames:
- ds_0
- ds_1
- ds_2
discoveryHeartbeatName: replication_delay_heartbeat
discoveryTypeName: replication_delay
discoveryHeartbeats:
replication_delay_heartbeat:
props:
keep-alive-cron: '0/1 * * * * ?'
discoveryTypes:
replication_delay:
type: MySQL.NORMAL_REPLICATION
props:
delay-milliseconds-threshold: 1000
```
--
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]