File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -304,6 +304,22 @@ behaviors:
304
304
value, either ``true`` or ``false``, for the
305
305
:data:`members[n].buildIndexes` field.
306
306
307
+ Multithreaded Replication
308
+ -------------------------
309
+
310
+ MongoDB supports multithreaded replication by applying write operations
311
+ on secondary nodes in batches. Each batch is divided among many threads.
312
+ The multithreaded writes allow for concurrent CPU usage.
313
+
314
+ Despite the multithreaded writes, reads on secondaries do not "see"
315
+ operations applied out of order. While the threads are writing, MongoDB
316
+ blocks read operations, even if the write operations yield.
317
+
318
+ Before writing a batch of oplog operations, MongoDB fetches all the
319
+ memory pages that contain the data and indexes to be written. The
320
+ prefetch stage minimizes the amount of time MongoDB must hold the write
321
+ lock to apply operations.
322
+
307
323
Pre-Fetching Indexes to Improve Replication Throughput
308
324
------------------------------------------------------
309
325
You can’t perform that action at this time.
0 commit comments