In our cluster, there are 4 nodes running data, query, index and analytics.
10.xx.xx.xx -> data
10.xx.xx.xx -> query
10.xx.xx.xx -> index
10.xx.xx.xx -> analytics
What is the correct way to create com.couchbase.client.java.Cluster? Pass each IP address to CouchbaseCluster.create() method as an array of string?
Cluster cluster = CouchbaseCluster.create(“10.xx.xx.xx”, “10.xx.xx.xx”, “10.xx.xx.xx”, “10.xx.xx.xx”);
Is the above statement correct?