How to connect Couchbase Sync gateway with multiple couchbase server nodes

@itssrinadh, yes you can have 3 server nodes communicate to sync-gateway. In sync gateway config file, you can add ip address of each server node separate by comma to the ‘server’ key. You can have config like something like below, I have highlighted in bold and italicized.
{
“interface”:":4984",
“adminInterface”: “0.0.0.0:4985”,
“maxIncomingConnections”: 0,
“maxCouchbaseConnections”: 16,
“maxFileDescriptors”: 90000,
“slowServerCallWarningThreshold”: 500,
“compressResponses”: false,
“logging”: {“debug”: {“enabled”: true} },
“databases”:{
“db”:{
“num_index_replicas”: 0,
“username”: “travel-sample”,
“password”: “password”,
"server":“http://11.111.11.111,22.222.22.222,33.333.33.333:8091”,
“bucket”:“sample”
}
}
}

1 Like