SoftInstigate / restheart

Rapid API Development with MongoDB
https://restheart.org
GNU Affero General Public License v3.0
805 stars 171 forks source link

Does restheart support "Replica Set"? #93

Closed chunlunglin closed 8 years ago

chunlunglin commented 8 years ago

Hi Sir,

Does restheart support Replica Set? How to configure it?

Thanks.

ujibang commented 8 years ago

Yes it does.

Connection to replica set is configured via mongo-uri option.

Refer to https://docs.mongodb.org/manual/reference/connection-string/ for detailed info about the mongo-uri format.

That page includes the following example:

The following connects to a replica set with two members, one on db1.example.net and the other on db2.example.net:

mongo-uri: mongodb://db1.example.net,db2.example.com