File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+
2+ .. warning ::
3+
4+ Syncing large documents to a sharded destination cluster can cause
5+ the destination cluster to initiate chunk migration. When the destination
6+ cluster migrates chunks during sync, it may trigger a bug that can result
7+ in data loss.
8+
9+ To avoid this, it is recommended that you run the :dbcommand: `balancerStop `
10+ command on the destination cluster before starting a sync. Once ``mongosync ``
11+ completes the sync, you can restart the balancer with the
12+ :dbcommand: `balancerStart ` command.
13+
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ There are two ways to synchronize :ref:`sharded clusters
1818loaded clusters, use multiple ``monogosync`` instances, one
1919``monogosync`` for each shard in the cluster.
2020
21+ .. include:: /includes/sharding-warning
22+
2123.. _c2c-sharded-config-single:
2224
2325Configure a Single ``mongosync`` Instance
@@ -57,6 +59,16 @@ To configure multiple ``mongosync`` instances:
5759 sync, the source cluster and destination cluster must have the
5860 same number of shards.
5961
62+ .. step:: Stop the Balancer on the Destination
63+
64+ To stop the balancer on the destination cluster, connect to the
65+ destination cluster and call the :method:`sh.stopBalancer` method:
66+
67+ .. code-block:: javascript
68+
69+ sh.stopBalancer()
70+
71+
6072 .. step:: Determine the shard IDs
6173
6274 .. _c2c-shard-config-determine:
@@ -261,6 +273,15 @@ These commands only check progress and commit synchronization for the
261273to ``progress`` and ``commit`` on any other ``mongosync`` instances
262274that may be running.
263275
276+ Once this is done, use :method:`sh.startBalancer` to restart the balancer
277+ on the destination cluster:
278+
279+ .. code-block:: javascript
280+
281+ sh.startBalancer()
282+
283+
284+
264285.. _c2c-sharded-reverse:
265286
266287Reverse the Synchronization Direction
You can’t perform that action at this time.
0 commit comments