How to config SyncGW to more than one server in the cluster?

Hi!

In SyncGW config, there is database configuration:

{
“databases”: {
“database1”: {
“server”: “http://server1:8091”,
“bucket”: “bucket”,
“sync”: function(doc) {channel(doc.channels);}
}
}
}

If this specific DB server “server1” is down, on startup the SyncGW cannot connect to the cluster at all, and even there are other cluster nodes alive, it will not work.

The question is: how to describe the database connection that will allow SyncGW to connect to the cluster even one specific server is down?

I tried this one:

{
“databases”: {
“database1”: {
“server”: [“http://server1:8091”,“http://server2:8091”,“http://server3:8091”],
“bucket”: “bucket”,
“sync”: function(doc) {channel(doc.channels);}
}
}
}

but it ends with an error on SyncGW startup:

“cannot unmarshal array into Go value of type string – rest.ParseCommandLine()”

=====

Sync Gateway currently doesn’t support specifying multiple nodes for connection on startup. There’s an open enhancement request being tracked here: