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
18
18
loaded clusters, use multiple ``monogosync`` instances, one
19
19
``monogosync`` for each shard in the cluster.
20
20
21
+ .. include:: /includes/sharding-warning
22
+
21
23
.. _c2c-sharded-config-single:
22
24
23
25
Configure a Single ``mongosync`` Instance
@@ -57,6 +59,16 @@ To configure multiple ``mongosync`` instances:
57
59
sync, the source cluster and destination cluster must have the
58
60
same number of shards.
59
61
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
+
60
72
.. step:: Determine the shard IDs
61
73
62
74
.. _c2c-shard-config-determine:
@@ -261,6 +273,15 @@ These commands only check progress and commit synchronization for the
261
273
to ``progress`` and ``commit`` on any other ``mongosync`` instances
262
274
that may be running.
263
275
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
+
264
285
.. _c2c-sharded-reverse:
265
286
266
287
Reverse the Synchronization Direction
You can’t perform that action at this time.
0 commit comments