arunoda / meteor-up-legacy

Production Quality Meteor Deployments
MIT License
2.26k stars 395 forks source link

How do I confirm that the OPLOG access worked? #704

Open flantascience opened 9 years ago

flantascience commented 9 years ago

I was able to add OPLOG access to my User on Compose.io.

I added a line to MUPX that says:

"MONGO_OPLOG_URL": "mongodb://username:pass@candidate.52.mongolayer.com:10482,candidate.53.mongolayer.com:10061/local?authSource=nameofmydatabase"

I didn't get an error anywhere... but I don't know how to test if it worked.

The site is deployed at OpenSourceHigh.com

Jim

MasterJames commented 9 years ago

I think this link should help. http://www.manuel-schoebel.com/blog/meteorjs-and-mongodb-replica-set-for-oplog-tailing Let me know if I miss understood, thanks.

In general it talks about running a Replica Set, and connecting to the mongod processes via a simple command (or something like Robomongo to make changes as well)

mongo host:port

And then you could make some changes and see if they propagate etc. (Again you can edit data from the browser command line your app, or even the same command line) http://docs.mongodb.org/getting-started/shell/update/

MasterJames commented 9 years ago

Or maybe you're wanting something more advanced like this? from ... http://docs.mongodb.org/manual/reference/command/replSetGetStatus/

use admin
db.runCommand( { replSetGetStatus : 1 } )
sferoze commented 9 years ago

add the meteor facts package: https://github.com/meteor/meteor/wiki/Oplog-Observe-Driver

Then update your server. Visit the page with the facts template inserted and you will be able to tell if oplog is working. If it is you should have 0 under observe-drivers-polling