marcello3d / node-mongolian

[project inactive] Mongolian DeadBeef is an awesome Mongo DB driver for node.js
https://groups.google.com/group/node-mongolian
zlib License
350 stars 50 forks source link

Support replica set automatic connection handling #13

Closed marcello3d closed 13 years ago

marcello3d commented 13 years ago

Currently MongolianDB only works if you connect directly to a master server. In a replica set situation, the master server can change, so it is crucial to support replica set master detection.

See: http://www.mongodb.org/display/DOCS/Connecting+Drivers+to+Replica+Sets

marcello3d commented 13 years ago

Making some progress... mongo://localhost:27017: Connected mongo://localhost:27017/secondary: Initialized mongo://localhost:27018: Connected mongo://localhost:27017/secondary: Disconnected mongo://localhost:27018/primary: Initialized