Unclear how to measureOplog data per hour

24 views
Skip to first unread message

Vilius O

unread,
Sep 5, 2018, 4:38:36 AM9/5/18
to mongodb-user
since insertBytes metric was removed, it is not really clear how one should measure 'Oplog Data per hour' metric.

Any ideas?

Vilius O

unread,
Sep 5, 2018, 4:42:07 AM9/5/18
to mongodb-user
is it this one 'cursor-insert key and value bytes inserted' ?

Kevin Adistambha

unread,
Sep 7, 2018, 2:02:37 AM9/7/18
to mongodb-user

Hi Vilius,

I believe the commands you’re looking for are db.getReplicationInfo() and rs.printReplicationInfo(). These commands will output some statistics about your oplog utilization, from which you should be able to estimate how much data is going into the oplog per hour.

Best regards,
Kevin

Vilius O

unread,
Dec 20, 2018, 8:21:50 AM12/20/18
to mongodb-user
Oplog divided by its window size probably gives it. I though there was a possibility to calculate it more accurately.

Kevin Adistambha

unread,
Dec 20, 2018, 4:38:49 PM12/20/18
to mongodb-user

Hi

Oplog divided by its window size probably gives it. I though there was a possibility to calculate it more accurately.

It can be more accurate if you know exactly how big each document inserted, and also taking into account other administrative entries in the oplog. For example, in MongoDB 3.4 and later, there is a periodic noop writes in the oplog SERVER-23892. However since the oplog is server-wide, it’s probably difficult to have a very exact number.

Best regards,
Kevin

Reply all
Reply to author
Forward
0 new messages