File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -1095,6 +1095,38 @@ Replication Parameters
1095
1095
for its :dbcommand:`find` command to finish during
1096
1096
:ref:`data synchronization <replica-set-sync>`.
1097
1097
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
+
1098
1130
Sharding Parameters
1099
1131
~~~~~~~~~~~~~~~~~~~
1100
1132
Original file line number Diff line number Diff line change @@ -432,6 +432,10 @@ Replica Sets
432
432
:dbcommand:`find` command to finish during :ref:`data synchronization
433
433
<replica-set-sync>`.
434
434
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
+
435
439
Sharded Clusters
436
440
----------------
437
441
You can’t perform that action at this time.
0 commit comments