Skip to content

Commit 0ab11b3

Browse files
authored
DOCSP-45117-sharded-cluster-behavior (#472)
* 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
1 parent 54b2d6d commit 0ab11b3

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
@@ -359,14 +359,6 @@ State
359359
If the ``start`` request is successful, ``mongosync`` enters the
360360
``RUNNING`` state.
361361

362-
Pre-Split Chunks
363-
~~~~~~~~~~~~~~~~
364-
365-
When ``mongosync`` syncs to a sharded destination cluster, it pre-splits chunks
366-
for sharded collections on the destination cluster. For each sharded collection,
367-
``mongosync`` creates twice as many chunks as there are shards in the
368-
destination cluster.
369-
370362
.. _c2c-shard-replica-sets:
371363

372364
Shard Replica Sets
@@ -379,6 +371,9 @@ collections.
379371
The ``sharding.shardingEntries`` array specifies the collections to shard.
380372
Collections that are not listed in this array replicate as unsharded.
381373

374+
For more information, see :ref:`Sharded Cluster Behavior
375+
<c2c-sharded-cluster-behavior>`.
376+
382377
.. _c2c-supporting-index-behavior:
383378

384379
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)