We are using Couchbase as our main database, so we want to minimize the downtime as much as we can.
Sometimes one of the Couchbase suffer a restart, it may sometimes change the node IP address
When it happen, the java sdk enters in a loop trying to reconnect but it never could re-connect since the IP address changed:
Could not connect to endpoint on reconnect attempt 31, retrying with delay 4096 MILLISECONDS: com.couchbase.client.deps.io.netty.channel.ConnectTimeoutException: connection timed out: couchbase-set-0.couchbase.****.cluster.local/***.***.***.***:11210 Socket connect took longer than specified timeout: connection timed out: couchbase-set-0.couchbase.****svc.cluster.local/***.***.***.***:11210
Is there any way of automatically refresh the couchbase IP without having any downtime on our couchbase calls?
Couchbase community 5.1.1
Couchbase java sdk 2.5.9