Skip to content

Commit b5fb25e

Browse files
committed
DOCS-11038: waitForSecondaryBeforeNoopWriteMS parameter
1 parent 2366a34 commit b5fb25e

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

source/reference/parameters.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,6 +1095,38 @@ Replication Parameters
10951095
for its :dbcommand:`find` command to finish during
10961096
:ref:`data synchronization <replica-set-sync>`.
10971097

1098+
.. parameter:: waitForSecondaryBeforeNoopWriteMS
1099+
1100+
.. versionadded:: 3.6
1101+
1102+
|mongod-only|
1103+
1104+
*Type*: integer
1105+
1106+
*Default*: 10
1107+
1108+
The length of time (in milliseconds) that a secondary must wait if
1109+
the ``afterClusterTime`` is greater than the last applied time from
1110+
the oplog. After the ``waitForSecondaryBeforeNoopWriteMS`` passes,
1111+
if the ``afterClusterTime`` is still greater than the last applied
1112+
time, the secondary makes a no-op write to advance the last applied
1113+
time.
1114+
1115+
The following example sets the
1116+
:parameter:`waitForSecondaryBeforeNoopWriteMS` to 20 seconds:
1117+
1118+
.. code-block:: sh
1119+
1120+
mongod --setParameter waitForSecondaryBeforeNoopWriteMS=20
1121+
1122+
During runtime, you can also set the parameter with the
1123+
:dbcommand:`setParameter` command:
1124+
1125+
.. code-block:: javascript
1126+
1127+
db.adminCommand( { setParameter: 1, waitForSecondaryBeforeNoopWriteMS: 20 } )
1128+
1129+
10981130
Sharding Parameters
10991131
~~~~~~~~~~~~~~~~~~~
11001132

source/release-notes/3.6.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,10 @@ Replica Sets
432432
:dbcommand:`find` command to finish during :ref:`data synchronization
433433
<replica-set-sync>`.
434434

435+
- Added the :parameter:`waitForSecondaryBeforeNoopWriteMS` parameter to
436+
specify how long a secondary must wait if the ``afterClusterTime`` is
437+
greater than the last applied time from the oplog.
438+
435439
Sharded Clusters
436440
----------------
437441

0 commit comments

Comments
 (0)