Bug #63353 | Problem using jdbc:mysql:replication driver with multiple slaves | ||
---|---|---|---|
Submitted: | 21 Nov 2011 11:11 | Modified: | 22 Nov 2011 11:14 |
Reporter: | Alessandro none | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S1 (Critical) |
Version: | 5.1.18 | OS: | Linux |
Assigned to: | CPU Architecture: | Any | |
Tags: | replication, slaves |
[21 Nov 2011 11:11]
Alessandro none
[21 Nov 2011 20:12]
Mark Matthews
The driver doesn't enable the blacklist by default. Could you see if adding "loadBalanceBlacklistTimeout=x" where X is the number of milliseconds a host should be left for dead fixes this for you? We may want to consider picking a default value and using that instead as it would be a more expected mode of operation.
[22 Nov 2011 11:14]
Alessandro none
That's it. Setting loadBalanceBlacklistTimeout=5000 fixed the setup for us. Thanks a lot.
[2 Aug 2013 19:58]
vinay pothnis
Another reason for your test to seem slow or hanging could be the default value of 'retriesAllDown' parameter. By default it is 120 and the driver could be trying 120 times to reconnect with a 250ms sleep between checks.