@@ -13,10 +13,10 @@ Use ``mongosync`` on Sharded Clusters
13
13
:class: twocols
14
14
15
15
There are two ways to synchronize :ref:`sharded clusters
16
- <sharded-cluster>`. You can use either one ``monogosync `` or several
17
- ``monogosync `` instances. For best performance with large or heavily
18
- loaded clusters, use multiple ``monogosync `` instances, one
19
- ``monogosync `` for each shard in the cluster.
16
+ <sharded-cluster>`. You can use either one ``mongosync `` or several
17
+ ``mongosync `` instances. For best performance with large or heavily
18
+ loaded clusters, use multiple ``mongosync `` instances, one
19
+ ``mongosync `` for each shard in the cluster.
20
20
21
21
.. _c2c-sharded-config-single:
22
22
@@ -32,7 +32,7 @@ the :urioption:`replicaSet` option or the :option:`id <mongosync --id>`
32
32
option.
33
33
34
34
The rest of this page addresses cluster to cluster synchronization
35
- using multiple ``monogosync `` instances.
35
+ using multiple ``mongosync `` instances.
36
36
37
37
.. _c2c-sharded-config:
38
38
@@ -57,16 +57,6 @@ To configure multiple ``mongosync`` instances:
57
57
sync, the source cluster and destination cluster must have the
58
58
same number of shards.
59
59
60
- .. step:: Stop the Balancer on the Destination
61
-
62
- To stop the balancer on the destination cluster, connect to the
63
- destination cluster and call the :method:`sh.stopBalancer` method:
64
-
65
- .. code-block:: javascript
66
-
67
- sh.stopBalancer()
68
-
69
-
70
60
.. step:: Determine the shard IDs
71
61
72
62
.. _c2c-shard-config-determine:
@@ -179,8 +169,7 @@ instances.
179
169
Check Progress
180
170
--------------
181
171
182
- The ``mongosync`` instances do not aggregate progress information
183
- across shards. To review synchronization progress for a particular
172
+ To review synchronization progress for a particular
184
173
shard, use ``curl`` or another HTTP client to issue the
185
174
:ref:`progress <c2c-api-progress>` command to the ``mongosync``
186
175
instance syncing that shard.
@@ -271,15 +260,6 @@ These commands only check progress and commit synchronization for the
271
260
to ``progress`` and ``commit`` on any other ``mongosync`` instances
272
261
that may be running.
273
262
274
- Once this is done, use :method:`sh.startBalancer` to restart the balancer
275
- on the destination cluster:
276
-
277
- .. code-block:: javascript
278
-
279
- sh.startBalancer()
280
-
281
-
282
-
283
263
.. _c2c-sharded-reverse:
284
264
285
265
Reverse the Synchronization Direction
@@ -290,7 +270,10 @@ acts as the source cluster:
290
270
291
271
- If you have not already done so, issue the :ref:`commit
292
272
<c2c-api-commit>` command to each ``mongosync`` instance and wait
293
- until all of the commits to finish.
273
+ until all of the commits to finish. To check if the sync process has been
274
+ committed, issue the :ref:`progress <c2c-api-progress>` command to all
275
+ ``mongosync`` instances and see if each response's ``state`` field contains
276
+ the value ``COMMITTED``.
294
277
- Issue the :ref:`reverse <c2c-api-reverse>` command to each
295
278
``mongosync`` instance.
296
279
0 commit comments