Questions tagged [mongodb-oplog]

A fixed-sized collection that automatically overwrites its oldest entries when it reaches its maximum size which stores an ordered history of logical writes to a MongoDB. Also, the oplog is the basic mechanism enabling replication in MongoDB.

More details : https://docs.mongodb.com/manual/core/replica-set-oplog/

71 questions
0
votes
1 answer

Unable to start mongod server with default oplog size while trying replication

I was unable to create replication, i.e. rs.initiate() when oplog was having default value. My server had 400+ GB of space available. In MongoDB's official documentation default range for MMAP is 5% of free disk space between 990MB to 50GB but here…
surbhi bakshi
  • 160
  • 1
  • 1
  • 17
0
votes
1 answer

Oplog tailing in Meteor - to do it or not to do it?

I am trying to reconcile this kadira.io article which says that oplog tailing is a must for every Meteor production app with this compose.io article - see section "To Oplog or not Oplog" which says you should only use oplog in certain…
brianjlennon
  • 159
  • 1
  • 8
0
votes
1 answer

MongoDB oplog transformation into Mongoose document

I use the oplog in Mongoose similar to Tim Oxley's example (https://gist.github.com/timoxley/1502645). I am looking for an efficient way to turn a newly inserted document (oplog 'i' operation) into a Mongoose document. I tried this: var my_model…
0
votes
1 answer

socket + node + mongodb + oplog: connect to a replicaset

I have an existing working node+mongodb+oplog application that pushes events to broswers via socket.io, on mongodb update. The configuration currently looks like this: var oplog = MongoOplog('mongodb://' + config.dbHost + ':' + config.dbPort +…
Victor Pudeyev
  • 4,296
  • 6
  • 41
  • 67
0
votes
1 answer

Meteor oplog tailing and performance

What are the advantages of using oplog tailing with Meteor? I know of these: Having replica sets ensures high availability Oplog tailing gives improved performance when it comes to detecting changes in the DB and pushing these to the clients More…
oskare
  • 1,061
  • 13
  • 24
0
votes
1 answer

Multiple mongo-oplog instances for Node.js

I'm trying to read in and loop through a configuration file which contains different mongoURIs and then trying to monitor their activity using mongo-oplog. I don't really know how to set the listeners (such as for update, insert, and delete) for all…
Ron7
  • 395
  • 3
  • 7
  • 18
0
votes
2 answers

How to create mongodb oplog for database?

Recently I purchased cluster account from MongoDB atlas. I had checked UI and MongoDB documentation but don't know create oplog db. And how to create a connection string for oplog?
Ramesh Murugesan
  • 4,727
  • 7
  • 42
  • 67
0
votes
1 answer

Hi, I am using mongo-oplog and I am just trying to get my replication set. However, nothing prints out

I mongod, nodejs, and download mongo-oplog. My replication is set is working on my computer .I have tried to run a replication set on my computer ,while I try to access it from node.js but I still nothing. Am I missing a piece of code ? var…
Nick
  • 195
  • 1
  • 3
  • 13
0
votes
0 answers

How can I remove document from mongodb oplog collection

I have around 7 million document in oplog.$main in which 5 million of them are empty with no object like "o" : { } I want to get rid of them to free up space, but not able to remove them. Any help is appreciated. db.oplog.$main.findOne() { "ts" :…
Aseem Jain
  • 333
  • 2
  • 7
0
votes
1 answer

Inserting doc in MongoDB using node.js getting in infinite loop

I'm modifying document inserted in one MongoDB relpSet and inserting it in another using mongo-oplog and node.js I'm following this link for inserting documents in mongo using node.js. I wrote a wrapper which is getting the document to be inserted…
Shipra
  • 1,259
  • 2
  • 14
  • 26
1 2 3 4
5