Skip to content

Commit 42644fd

Browse files
DOCS-15960 Add duration of how long an oplog slot is kept open (#4153)
* DOCSP-15960 Add duration of how long an oplog slot is kept open * DOCS-15960 updates for CR feedback * DOCSP-15960 include filename correction * Update source/tutorial/troubleshoot-replica-sets.txt Co-authored-by: Ashley Brown <[email protected]> * DOCS-15960 moved example to includes file --------- Co-authored-by: Ashley Brown <[email protected]>
1 parent 3d1b242 commit 42644fd

File tree

5 files changed

+34
-0
lines changed

5 files changed

+34
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Starting in MongoDB 7.0, the ``totalOplogSlotDurationMicros`` in the
2+
slow query log message shows the time between a write operation getting
3+
a commit timestamp to commit the storage engine writes and actually
4+
committing. ``mongod`` supports parallel writes. However, it commits
5+
write operations with commit timestamps in any order.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Consider the following writes with commit timestamps:
2+
3+
- writeA with Timestamp1
4+
- writeB with Timestamp2
5+
- writeC with Timestamp3
6+
7+
Suppose writeB commits first at Timestamp2. Replication is paused
8+
until writeA commits because writeA's oplog entry with Timestamp1 is
9+
required for replication to copy the oplog to secondary replica set
10+
members.

source/reference/log-messages.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,6 +1027,12 @@ profiler <profiler>` entries include a ``cpuNanos`` field that specifies the
10271027
total CPU time spent by a query operation in nanoseconds. The ``cpuNanos`` field
10281028
is only available on Linux systems.
10291029

1030+
.. include:: /includes/fact-totalOplogSlotDurationMicros.rst
1031+
1032+
.. example::
1033+
1034+
.. include:: /includes/fact-totalOplogSlotDurationMicrosExample.rst
1035+
10301036
For a :ref:`pretty-printed <log-message-pretty-printing>` example of a
10311037
slow operation log entry, see :ref:`log-message-json-examples`.
10321038

source/release-notes/7.0.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,13 @@ migrations:
154154
- :serverstatus:`shardingStatistics.countDocsClonedOnCatchUpOnRecipient`
155155
- :serverstatus:`shardingStatistics.countBytesClonedOnCatchUpOnRecipient`
156156

157+
New Slow Query Log Message
158+
~~~~~~~~~~~~~~~~~~~~~~~~~~
159+
160+
.. include:: /includes/fact-totalOplogSlotDurationMicros.rst
161+
162+
To learn more, see :ref:`log-message-slow-ops`.
163+
157164
New Parameters
158165
~~~~~~~~~~~~~~
159166

source/tutorial/troubleshoot-replica-sets.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ To check the current length of replication lag:
7070
The :method:`rs.status()` method is a wrapper around the
7171
:dbcommand:`replSetGetStatus` database command.
7272

73+
.. include:: /includes/fact-totalOplogSlotDurationMicros.rst
74+
75+
.. example::
76+
77+
.. include:: /includes/fact-totalOplogSlotDurationMicrosExample.rst
78+
7379
- Monitor the rate of replication by checking for non-zero or increasing
7480
oplog time values in the :guilabel:`Replication Lag` graph available in
7581
`Cloud Manager <https://docs.cloudmanager.mongodb.com/reference/alerts/replication-lag/>`_

0 commit comments

Comments
 (0)