@@ -2128,6 +2128,39 @@ If you attempt to update ``disableSplitHorizonIPCheck`` at runtime,
2128
2128
2129
2129
mongod --setParameter maxSessions=1000
2130
2130
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
+
2131
2164
.. parameter:: TransactionRecordMinimumLifetimeMinutes
2132
2165
2133
2166
.. versionadded:: 3.6
@@ -2827,7 +2860,7 @@ Sharding Parameters
2827
2860
and :method:`delete <db.collection.deleteOne>` operations.
2828
2861
2829
2862
For example, to set the maximum percentage to 20, you can issue the
2830
- followingduring startup:
2863
+ following during startup:
2831
2864
2832
2865
.. code-block:: bash
2833
2866
0 commit comments