Skip to content

Commit 9da6860

Browse files
(DOCS-15435): Backport oplogBatchDelayMillis parameter (#1338)
1 parent 78bafa3 commit 9da6860

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

source/reference/parameters.txt

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2128,6 +2128,39 @@ If you attempt to update ``disableSplitHorizonIPCheck`` at runtime,
21282128

21292129
mongod --setParameter maxSessions=1000
21302130

2131+
.. parameter:: oplogBatchDelayMillis
2132+
2133+
.. versionadded:: 5.0.10
2134+
2135+
|both|
2136+
2137+
*Type*: integer
2138+
2139+
*Default*: 0
2140+
2141+
The number of milliseconds to delay applying batches of oplog
2142+
operations on secondary nodes. By default, ``oplogBatchDelayMillis``
2143+
is ``0``, meaning oplog batches are applied with no delay. When there
2144+
is no delay, MongoDB may apply frequent, small oplog batches to
2145+
secondaries.
2146+
2147+
Increasing ``oplogBatchDelayMillis`` causes MongoDB to apply oplog
2148+
batches less frequently on secondaries, with each batch containing
2149+
larger amounts of data. This reduces :abbr:`IOPS (Input/Output
2150+
Operations Per Second)` on secondaries, but adds latency for writes
2151+
with write concern :writeconcern:`"majority"`.
2152+
2153+
You can only set ``oplogBatchDelayMillis`` at startup. You cannot set
2154+
``oplogBatchDelayMillis`` during runtime.
2155+
2156+
For example, run the following command to set the
2157+
``oplogBatchDelayMillis`` for a :binary:`~bin.mongod` instance to 20
2158+
milliseconds:
2159+
2160+
.. code-block:: bash
2161+
2162+
mongod --setParameter oplogBatchDelayMillis=20
2163+
21312164
.. parameter:: TransactionRecordMinimumLifetimeMinutes
21322165

21332166
.. versionadded:: 3.6
@@ -2827,7 +2860,7 @@ Sharding Parameters
28272860
and :method:`delete <db.collection.deleteOne>` operations.
28282861

28292862
For example, to set the maximum percentage to 20, you can issue the
2830-
followingduring startup:
2863+
following during startup:
28312864

28322865
.. code-block:: bash
28332866

0 commit comments

Comments
 (0)