mongo-watch
Advanced tools
Comparing version 0.2.7 to 0.2.8
{ | ||
"name":"mongo-watch", | ||
"description":"A mongo watcher. This ties into the MongoDB replication oplog, and exposes all data modifications via an EventEmitter.", | ||
"version":"0.2.7", | ||
"version":"0.2.8", | ||
"homepage":"http://github.com/TorchlightSoftware/mongo-watch", | ||
@@ -6,0 +6,0 @@ "repository":"git://github.com/TorchlightSoftware/mongo-watch.git", |
@@ -75,2 +75,16 @@ # Mongo Watch | ||
## Replica sets | ||
If you pass a replicaSet array it will be used to establish a connection. | ||
It should keep working in case the primary changes - i.e. when it dies, and secondary takes it place. | ||
```coffee | ||
watcher = new MongoWatch { | ||
replicaSet: [ | ||
{host: "currentPrimary.mongoexample.com", port : 10453}, | ||
{host: "currentSecondary.mongoexample.com", port : 10452} | ||
] | ||
} | ||
``` | ||
## Debugging | ||
@@ -77,0 +91,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
23710
154