lishijun121910 opened a new issue #7081:
URL: https://github.com/apache/shardingsphere/issues/7081


   version:
   sharding-jdbc 4.1.0
   
   situation:
   springboot+mybatis+sharding-jdbc+mysql(master-slave).
   
   For high availability, I use MHA to deal with master fail, switch and push 
event to zookeeper by script , to tell sharding-jdbc the new master . this 
works well.
   
   But MHA only focus on fail of master, it does not care about fail of slave. 
When the slave is down , sharding-jdbc doesn't know and will still try to read 
from slave .
   
   I wonder if sharding-jdbc can recognize unreachable datasource and block it 
? Say I have two slavies, one is down , sharding-jdbc automatically block it 
and read the other one.
   
   Or can you recommend some solutions to deal with fail of slave node ?
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to