I am using for testing a couchbase cluster community version 3.00 installed on two nodes. Using java client v2.1, I am connecting to cluster with the following command :
Cluster cluster = CouchbaseCluster.create(“192.168.56.101”, “192.168.56.102”);
Bucket bucket = cluster.openBucket(“myapp”, “password”);
While I am trying to insert some rows ( 10000 rows) , I am shut downing one of the nodes ( lets say the 1st node). The client starting to complaints for timeouts when it tries to access the shutdown node. Some records failed to insert because of down node.
Question : How I will configure the client, in case of lost access on one of the clusters nodes, to re-divert the CRUD command to execute on the other available nodes, rather than to return a timeout exception ?