Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions source/reference/parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1095,6 +1095,38 @@ Replication Parameters
for its :dbcommand:`find` command to finish during
:ref:`data synchronization <replica-set-sync>`.

.. parameter:: waitForSecondaryBeforeNoopWriteMS

.. versionadded:: 3.6

|mongod-only|

*Type*: integer

*Default*: 10

The length of time (in milliseconds) that a secondary must wait if
the ``afterClusterTime`` is greater than the last applied time from
the oplog. After the ``waitForSecondaryBeforeNoopWriteMS`` passes,
if the ``afterClusterTime`` is still greater than the last applied
time, the secondary makes a no-op write to advance the last applied
time.

The following example sets the
:parameter:`waitForSecondaryBeforeNoopWriteMS` to 20 seconds:

.. code-block:: sh

mongod --setParameter waitForSecondaryBeforeNoopWriteMS=20

During runtime, you can also set the parameter with the
:dbcommand:`setParameter` command:

.. code-block:: javascript

db.adminCommand( { setParameter: 1, waitForSecondaryBeforeNoopWriteMS: 20 } )


Sharding Parameters
~~~~~~~~~~~~~~~~~~~

Expand Down
4 changes: 4 additions & 0 deletions source/release-notes/3.6.txt
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,10 @@ Replica Sets
:dbcommand:`find` command to finish during :ref:`data synchronization
<replica-set-sync>`.

- Added the :parameter:`waitForSecondaryBeforeNoopWriteMS` parameter to
specify how long a secondary must wait if the ``afterClusterTime`` is
greater than the last applied time from the oplog.

Sharded Clusters
----------------

Expand Down