Reputation: 7362
I just used Kadira to analyze the performance of my Meteor App.
In the Trace Explorer for my login method it reports that 'You haven't added oplog support for your the Meteor app.'
and provides this link: http://goo.gl/Co1jJc
I followed the link and from what I read, Meteor by default should have oplog support turned on if you are running a version above 0.7. I am running version 0.8.2 and I Kadira is saying I haven't added oplog support for my Meteor App.
How come and how do I go about adding oplog support?
Here is some details (from Kadira) of the method that reports does not use oplog support
collection : users
selector: {"_id":"h5aq5trwZgkDJSKpX"}
function : observeChanges
isCursorMethod: true
fields: {"profile":1,"username":1,"emails":1}
oplog: false
noOfHandles: 1
noOfCachedDocs: 1
Upvotes: 4
Views: 457
Reputation: 8865
From the meteor wiki:
You'll need your own mongoDB server (eg, not hosted on meteor.com
, or on a shared mongoDB host).
Then [on mongo 2.4 only], add a new user that can access the oplog connection:
$ mongo -u YourExistingAdminUserName -p YourExistingAdminPassword mongo-server-1.example.com/admin
cluster:PRIMARY> db.addUser({user: "oplogger", pwd: "PasswordForOplogger", roles: [], otherDBRoles: {local: ["read"]}})
Then, when running your bundled Meteor app, set the MONGO_OPLOG_URL environment variable:
MONGO_OPLOG_URL=mongodb://oplogger:[email protected],mongo-server-2.example.com,mongo-server-3.example.com/local?authSource=admin
Upvotes: 3