Skip to content

Commit af6fbff

Browse files
authored
DOCSP-45117-sharded-cluster-behavior (#472) (#476)
* DOCSP-45117-sharded-cluster-behavior * DOCSP-45117-sharded-cluster-behavior * DOCSP-45117 fixing label * DOCSP-45117 copy edits * DOCSP-45117 tech edit * DOCSP-45117 fixing underline (cherry picked from commit 0ab11b3)
1 parent 1efb2cd commit af6fbff

File tree

2 files changed

+28
-23
lines changed

2 files changed

+28
-23
lines changed

source/reference/api/start.txt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -349,14 +349,6 @@ State
349349
If the ``start`` request is successful, ``mongosync`` enters the
350350
``RUNNING`` state.
351351

352-
Pre-Split Chunks
353-
~~~~~~~~~~~~~~~~
354-
355-
When ``mongosync`` syncs to a sharded destination cluster, it pre-splits chunks
356-
for sharded collections on the destination cluster. For each sharded collection,
357-
``mongosync`` creates twice as many chunks as there are shards in the
358-
destination cluster.
359-
360352
.. _c2c-shard-replica-sets:
361353

362354
Shard Replica Sets
@@ -369,6 +361,9 @@ collections.
369361
The ``sharding.shardingEntries`` array specifies the collections to shard.
370362
Collections that are not listed in this array replicate as unsharded.
371363

364+
For more information, see :ref:`Sharded Cluster Behavior
365+
<c2c-sharded-cluster-behavior>`.
366+
372367
.. _c2c-supporting-index-behavior:
373368

374369
Supporting Indexes

source/reference/mongosync/mongosync-behavior.txt

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,36 @@ For information on available settings, see :ref:`Configuration <c2c-config>`.
5454
Cluster and Collection Types
5555
----------------------------
5656

57+
.. _c2c-sharded-cluster-behavior:
58+
5759
Sharded Clusters
5860
~~~~~~~~~~~~~~~~
5961

6062
{+c2c-product-name+} supports replication between sharded clusters.
61-
Individual shards are replicated in parallel from the source cluster to
62-
the destination cluster, however a :ref:`chunk migration
63-
<sharding-chunk-migration>` or similar source update could move
64-
documents to a new source shard during replication.
63+
``mongosync`` replicates individual shards in parallel from the source
64+
cluster to the destination cluster. However ``mongosync`` does not
65+
preserve the source cluster's sharding configuration.
66+
67+
Pre-Split Chunks
68+
''''''''''''''''
69+
70+
When ``mongosync`` syncs to a sharded destination cluster, it pre-splits chunks
71+
for sharded collections on the destination cluster. For each sharded collection,
72+
``mongosync`` creates twice as many chunks as there are shards in the
73+
destination cluster.
74+
75+
Primary Shards
76+
''''''''''''''
6577

66-
Even if documents move between source shards during replication,
67-
{+c2c-product-name+} maintains the :term:`eventual consistency`
68-
guarantee on the destination cluster. For more information, see
69-
:ref:`c2c-sharded-clusters`.
78+
When you sync to a sharded destination cluster, ``mongosync`` assigns a
79+
primary shard to each database by means of a round-robin.
80+
81+
.. warning::
82+
83+
Running :dbcommand:`movePrimary` on the source or desintation cluster
84+
during migration may result in a fatal error or require you to
85+
restart the migration from the start. For more information, see
86+
:ref:`c2c-sharded-limitations`.
7087

7188
Multiple Clusters
7289
~~~~~~~~~~~~~~~~~
@@ -162,13 +179,6 @@ snapshot of the source data. To learn more, see :ref:`c2c-behavior-consistency`.
162179
Otherwise, start a new continuous sync operation by using a new empty
163180
destination cluster.
164181

165-
Sharded Clusters
166-
~~~~~~~~~~~~~~~~
167-
168-
When running continuous sync with sharded clusters, you must stop
169-
:ref:`balancers <sharding-balancing>` on both the source and the destination
170-
for the lifetime of the sync until commit.
171-
172182
Temporary Changes to Collection Characteristics
173183
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
174184

0 commit comments

Comments
 (0)