natehuangting opened a new issue, #18327:
URL: https://github.com/apache/shardingsphere/issues/18327

   ## Feature Request
   
   ### Describe the feature you would like.
   The MySQLNormalReplicationDatabaseDiscoveryProviderAlgorithm uses 
Seconds_Behind_Master to judge the replication delay, but Seconds_Behind_Master 
may be inaccurate. I hope to use my own defined SQL to obtain the replication 
delay. If there is no definition or the table does not exist and other abnormal 
conditions, I will use Seconds_Behind_Master.
   
   #  discoveryTypes:
   #    normal-replication:
   #      type: MySQL.NORMAL_REPLICATION
   #      props:
   #        delay-milliseconds-threshold: 10000
   #        delay-checked-sql: select 
abs(unix_timestamp(now())-unix_timestamp(max(Ftime))) as delay from 
dba.delay_monitor limit 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]

Reply via email to