Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit 73af4da

Browse files
committed
DOCSP-44657-mongosync-latency-performance
1 parent 9dc66e9 commit 73af4da

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

source/reference/mongosync/mongosync-behavior.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,25 @@ progress.
369369
For more information on DDL operations, see
370370
:ref:`txn-prod-considerations-ddl`.
371371

372+
Network Latency
373+
~~~~~~~~~~~~~~~
374+
375+
Network latency or long physical distances between migration components
376+
can negatively affect sync speed.
377+
378+
Latency between ``mongosync`` and destination shards
379+
For each change event that ``mongosync`` applies, ``mongosync`` does
380+
an extra roundtrip to its metadata stored on the destination.
381+
382+
Latency between destination shards
383+
For each change event that ``mongosync`` applies, it must access a
384+
document that may live on a different shard. This can result in many
385+
cross-shard transactions.
386+
387+
Latency between a destination shards’ nodes
388+
``mongosync`` must use :writeconcern:`"majority"` writes, which
389+
require acknowledgement from multiple nodes within a shard.
390+
372391
Learn More
373392
----------
374393

0 commit comments

Comments
 (0)