问题标签 [mongodb-oplog]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
22 浏览

mongodb - MongoDb Primary Oplog one hour behing realtime

Since in my country the time was changeg to one hour "ahead". My replica set is doing something I can't understand. This is a 4.2 version and P-S-S replica set.

The Primary oplog is registering actions with the wrong time, it would register 8:00 for an action done at 9:00.

The OS time is properly set ande when I checked the time in mongo shell i got the following:

Where is Mongo taking the ISODate value? Is it possible to change it?

0 投票
0 回答
12 浏览

mongodb - Node.js 中的 MongoDB 更改流:魔数和 oplogs 见解

专家们面临的两个具有挑战性的问题:

  1. 有多少个实例可以同时在一个集合上运行 watch()?我计划在一个集合上构建一组“观察者”。(你可以假设我已经解决了“同时”获取问题)

  2. 我怎么知道 oplog 中剩下多少事件(通过给定的令牌)有没有办法计算更改流中的剩余事件?