@@ -202,7 +202,7 @@ Replication
202
202
Secondary members replicate data continuously after the initial sync.
203
203
Secondary members copy the :doc:`oplog </core/replica-set-oplog>` from
204
204
their *sync from* source and apply these operations in an asynchronous
205
- process. [#slow-oplogs]_
205
+ process. [#slow-oplogs]_
206
206
207
207
Secondaries may automatically change their *sync from* source as needed
208
208
based on changes in the ping time and state of other members'
@@ -213,6 +213,33 @@ for more information on sync source selection criteria.
213
213
214
214
.. include:: /includes/extracts/4.2-changes-slow-oplog-log-message-footnote.rst
215
215
216
+ .. _replica-set-streaming-replication:
217
+
218
+ Streaming Replication
219
+ ~~~~~~~~~~~~~~~~~~~~~
220
+
221
+ Starting in MongoDB 4.4, *sync from* sources send a continuous stream
222
+ of :doc:`oplog </core/replica-set-oplog>` entries to their syncing
223
+ secondaries. Streaming replication mitigates replication lag in
224
+ high-load and high-latency networks. It also:
225
+
226
+ - Reduces staleness for reads from secondaries.
227
+ - Reduces risk of losing write operations with :ref:`w: 1 <wc-w>` due to
228
+ primary failover.
229
+ - Reduces latency on write operations with :writeconcern:`w: "majority"
230
+ <"majority">` and :ref:`w: >1 <wc-w>` (that is, any write concern that
231
+ requires waiting for replication).
232
+
233
+ Prior to MongoDB 4.4, secondaries fetched batches of :doc:`oplog
234
+ </core/replica-set-oplog>` entries by issuing a request to their *sync
235
+ from* source and waiting for a response. This required a network roundtrip
236
+ for each batch of :doc:`oplog </core/replica-set-oplog>` entries. MongoDB
237
+ 4.4 adds the :parameter:`oplogFetcherUsesExhaust` startup parameter for
238
+ disabling streaming replication and using the older replication behavior.
239
+ Set the :parameter:`oplogFetcherUsesExhaust` parameter to ``false`` only if
240
+ there are any resource constraints on the *sync from* source or if you wish
241
+ to limit MongoDB's usage of network bandwidth for replication.
242
+
216
243
.. _replica-set-internals-multi-threaded-replication:
217
244
218
245
Multithreaded Replication
0 commit comments