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

Commit 8a69af8

Browse files
committed
DOCSP-44657-mongosync-latency-performance
1 parent 9dc66e9 commit 8a69af8

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

source/reference/mongosync/mongosync-behavior.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,26 @@ 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. mongosync is able to send a request and
377+
get a response.
378+
379+
Latency between ``mongosync`` and destination shards
380+
For each change event that ``mongosync`` applies, ``mongosync`` does
381+
an extra roundtrip to its metadata stored on the destination.
382+
383+
Latency between destination shards.
384+
For each change event that ``mongosync`` applies, it has to access a
385+
document that may live on a different shard. This results in many i
386+
cross-shard transactions.
387+
388+
Latency between a given destination shards’ nodes.
389+
``mongosync`` must use majority writes, which require acknowledgement
390+
from multiple nodes within a shard.
391+
372392
Learn More
373393
----------
374394

0 commit comments

Comments
 (0)