Re: [replication driver] Expected behaviour when the master is down/unreachable
Posted by: Alexander Soklakov
Date: August 23, 2013 03:33AM

ReplicationConnection internally keeps two connections:
1) "master connection" for first listed host is a ConnectionImpl
2) "slave connection" for the rest of hosts list is a LoadBalancedConnection

ReplicationConnection itself doesn't implement any load-balancing or failover between these connection, but only the switch between them basing on read-only state.

So the LoadBalancedConnection doesn't know about first listed host, but you can add it again, like you did, to include this host to the l-b set. This will work and I see no additional problems here.

As for failback between slaves, you could look into configuration of load-balanced connection, global blacklist eg.

Alex

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.