Skip to content

Commit 183db4d

Browse files
authored
DOCSP-31028 sharding warning (#140)
* DOCSP-31028 Adds balancer warning * Adds restart balancer message * Fixes per Joe * Fixes per Joe
1 parent cc2598c commit 183db4d

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

source/includes/sharding-warning.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+

source/multiple-mongosyncs.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ There are two ways to synchronize :ref:`sharded clusters
1818
loaded 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

2325
Configure 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
261273
to ``progress`` and ``commit`` on any other ``mongosync`` instances
262274
that 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

266287
Reverse the Synchronization Direction

0 commit comments

Comments
 (0)