开发者

Failover on MySQL JDBC connections?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜