Syncgateway connection to couchbase cluster


How syncgateway connect to cluster… we have option of setting up only one node in configuration. i would like to know how syncgateway internally connecting to couchbase cluster. is it getting all the nodes from cluster and connecting to random node?


On initial communication with the Couchbase cluster node defined in the Sync Gateway config, it retrieves the full set of cluster nodes and uses that set of nodes going forward. Sync Gateway also receives updates on changes to the cluster topology while connected.

It’s not really ‘connecting to a random node’ for a given operation - the node used depends on the data, and specifically where the vbucket corresponding to that data resides.