Hi,
Do we have to specify all server nodes in connection settings, or just specifying any one would suffice and get details of other server nodes as well?
Hi @SumitMeh Managing Connections | Couchbase Docs has all the details you are looking for.
In a production environment, your connection string should include the addresses of multiple server nodes in case some are currently unavailable. Multiple addresses may be specified in a connection string by delimiting them with commas:
Cluster cluster = Cluster.connect(“192.168.56.101,192.168.56.102”, “username”, “password”);
You don’t need to include the address of every node in the cluster. The client fetches the full address list from the first node it is able to contact.