Skip to content

Commit edbeba3

Browse files
authored
DOCSP-44803-pause-and-crash-behavior (#577) (#589)
* DOCSP-44803--pause-or-crash-behavior * DOCSP-44803-pause-and-crash-behavior * DOCSP-44803-pause-and-crash-behavior * DOCSP-44803-pause-and-crash-behavior * DOCSP-44803-pause-and-crash-behavior * DOCSP-44803-pause-and-crash-behavior * DOCSP-44803 copy edit * DOCSP-44803 copy edit * DOCSP-44803 copy edit * DOCSP-44803 tech edits (cherry picked from commit a7ba507) # Conflicts: # source/reference/mongosync/mongosync-behavior.txt
1 parent 290e0a3 commit edbeba3

File tree

2 files changed

+66
-0
lines changed

2 files changed

+66
-0
lines changed

source/reference/api/pause.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ Behavior
7878
cluster. To learn more, see :ref:`Frequently Asked Questions
7979
<c2c-faq-increase-oplog>`.
8080

81+
For more information on the ``PAUSED`` state, see :ref:`Paused Sync
82+
Behavior <c2c-pause-behavior>`.
83+
8184
Endpoint Protection
8285
~~~~~~~~~~~~~~~~~~~
8386

source/reference/mongosync/mongosync-behavior.txt

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,69 @@ progress.
327327
For more information on DDL operations, see
328328
:ref:`txn-prod-considerations-ddl`.
329329

330+
Network Latency
331+
~~~~~~~~~~~~~~~
332+
333+
Network latency or long physical distances between migration components
334+
can negatively affect sync speed.
335+
336+
Latency between ``mongosync`` and destination shards
337+
For each operation on the source cluster, ``mongosync`` does two
338+
roundtrips to the destination server. The larger the latency, the
339+
slower the sync.
340+
341+
Latency between destination shards
342+
``mongosync`` runs operations and updates its own metadata in batches
343+
in a transaction on the destination cluster. This can result in
344+
cross-shard transactions, which may be more costly if the shards are
345+
far apart.
346+
347+
Latency between the nodes of any replica set on the source or destination cluster
348+
``mongosync`` uses :writeconcern:`"majority"` writes and
349+
:readconcern:`"majority"` reads, which require acknowledgement from
350+
multiple nodes in a replica set, including shard-backing replica
351+
sets. If the majority of these nodes aren't in the same region, there
352+
will be negative performance implications.
353+
354+
Interruptions During Sync
355+
-------------------------
356+
357+
The following considerations pertain to interruptions during the
358+
``mongosync`` process.
359+
360+
Errors and Crashes
361+
~~~~~~~~~~~~~~~~~~
362+
363+
If ``mongosync`` encounters an error or becomes unavailable during
364+
synchronization, or you can resume your ``mongosync`` operation from where
365+
it stopped. The ``mongosync`` binary is stateless and stores the
366+
metadata for a restart on the destination cluster.
367+
368+
To continue sync, restart ``mongosync`` once it becomes available again
369+
and use the same parameters as your interupted sync. Once you restart
370+
``mongosync``, the process resumes from where it stopped.
371+
372+
Cluster Availability
373+
~~~~~~~~~~~~~~~~~~~~
374+
375+
If your source or destination cluster crashes unexpectedly, you can safely
376+
restart ``mongosync`` from where it left off. Once your cluster is available
377+
again, restart ``mongosync`` and use the same parameters as your interupted
378+
sync.
379+
380+
.. _c2c-pause-behavior:
381+
382+
Paused Sync
383+
~~~~~~~~~~~
384+
385+
If ``mongosync`` is in the :ref:`PAUSED <c2c-state-paused>` state,
386+
``mongosync`` does not support the following actions:
387+
388+
- Upgrading the MongoDB version of the source or destination cluster
389+
- Enabling and then disabling the balancer
390+
391+
You can upgrade ``mongosync`` while it is in the ``PAUSED`` state.
392+
330393
Learn More
331394
----------
332395

0 commit comments

Comments
 (0)