开发者

Failover on MySQL JDBC connections?

开发者 https://www.devze.com 2023-03-20 11:29 出处:网络
I am trying to determine how i could implement a high availablity solution using the MySQL JDBC driver, it seems that there is a failover property that I can se开发者_StackOverflow中文版t. But I am wo

I am trying to determine how i could implement a high availablity solution using the MySQL JDBC driver, it seems that there is a failover property that I can se开发者_StackOverflow中文版t. But I am wondering what people tend to use when implement a simple failover mechanism using MySQL and JDBC?

We are planning to have 2 front Tomcat servers connected to 2 MySQL servers.


Even though you're asking about JDBC, I hope this helps you understand all available options...

I typically handle failover by using a load balanced configuration that can gracefully failover, rather than at the JDBC layer.

MySQL Proxy is one way to accomplish that:

http://www.cyberciti.biz/tips/mysql-proxy-howto.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号