MongoKitten: cant connect mlab replicaset
this example is my problem
server = try Server("mongodb://heroku_xxxxx:xxxxxxx@serveraddress.mlab.com:23372,serveraddress-a1.mlab.com:23372/xxxxxxx?replicaSet=rs-xxxxxx", automatically: true)
thow error, MongoDB is not available on the given host and port Socket failed with code 61 (“No data available”) [connectFailed] “Unknown error”
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 1
- Comments: 23 (21 by maintainers)
@gabriellanata I’ve got connection string parsing working now and am able to connect to the first host in the replica set. I’ll continue now to implement selecting the secondary. And I’m thinking of adding support for efficient querying so that read-only queries will not be sent exclusively to the primary but also to the secondaries, since they should have the same data.
That would be really helpful for me! I could definitely use that to develop Replica Set functionality.