Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions source/reference/mongosync/mongosync-behavior.txt
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,31 @@ progress.
For more information on DDL operations, see
:ref:`txn-prod-considerations-ddl`.

Network Latency
~~~~~~~~~~~~~~~

Network latency or long physical distances between migration components
can negatively affect sync speed.

Latency between ``mongosync`` and destination shards
For each operation on the source cluster, ``mongosync`` does two
roundtrips to the destination server. The larger the latency, the
slower the sync.

Latency between destination shards
``mongosync`` runs operations and updates its own metadata in batches
in a transaction on the destination cluster. This can result in
cross-shard transactions, which may be more costly if the shards are
far apart.

Latency between the nodes of any replica set on the source or destination cluster
``mongosync`` uses :writeconcern:`"majority"` writes and
:readconcern:`"majority"` reads, which require acknowledgement from
multiple nodes in a replica set, including shard-backing replica
sets. If the majority of these nodes aren't in the same region, there
will be negative performance implications.


Learn More
----------

Expand Down