Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

Master slave replication jdbc url

$
0
0

We have a MySQL setup with one master and two slaves we use Spring 3.0 to connect to the DBs and mysql-connector-java-5.1.13.jar. We also use commons dbcp 1.4 for connection pooling.

We use the following jdbc url string:

jdbc:mysql:replication://[master_ip]:23306,[slave1_ip]:23306,[slave2_ip]:23306/wm_admin?autoReconnectForPools=true&roundRobinLoadBalance=true&loadBalanceBlacklistTimeout=5000&loadBalanceStrategy=random

The problem is that the application will not start if one of the slaves is down, or would halt if it's running and one of the slaves is down. Is there a problem with the url string, should it be setup differently ?


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>