Skip to content

Commit 50a08b2

Browse files
author
Sam Kleinman
committed
DOCS-306: edits
1 parent 7d57ab9 commit 50a08b2

File tree

2 files changed

+23
-27
lines changed

2 files changed

+23
-27
lines changed

source/administration/sharding.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -621,16 +621,17 @@ In most circumstances, you should let the automatic balancer
621621
migrate :term:`chunks <chunk>` between :term:`shards <shard>`.
622622
However, you may want to migrate chunks manually in a few cases:
623623

624-
- If you create chunks by :term:`pre-splitting` the data in your collection,
625-
you will have to migrate chunks manually to distribute chunks
626-
evenly across the shards.
624+
- If you create chunks by :term:`pre-splitting` the data in your
625+
collection, you will have to migrate chunks manually to distribute
626+
chunks evenly across the shards. Use pre-splitting in limited
627+
situations, to support bulk data ingestion.
627628

628629
- If the balancer in an active cluster cannot distribute chunks within
629630
the balancing window, then you will have to migrate chunks manually.
630631

631632
See the :ref:`chunk migration <sharding-chunk-migration>` section to
632-
understand the internal process of how :term:`chunks <chunk>` move
633-
between :term:`shards <shard>`.
633+
understand the internal process of how chunks move
634+
between shards.
634635

635636
To migrate chunks, use the :dbcommand:`moveChunk` command.
636637

@@ -660,9 +661,8 @@ This command moves the chunk that includes the shard key value "smith" to the
660661
:term:`shard` named ``mongodb-shard3.example.net``. The command will
661662
block until the migration is complete.
662663

663-
See the :ref:`create chunks <sharding-administration-create-chunks>` section
664-
for an overview of how :term:`pre-splitting` can improve initial data
665-
load on a :term:`shard cluster`.
664+
See :ref:`sharding-administration-create-chunks` for an introduction
665+
to pre-splitting.
666666

667667
.. versionadded:: 2.2
668668
:dbcommand:`moveChunk` command has the: ``_secondaryThrottle``

source/reference/command/moveChunk.txt

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ moveChunk
66

77
.. dbcommand:: moveChunk
88

9-
:dbcommand:`moveChunk` is an internal command that moves
10-
:term:`chunks <chunk>` between :term:`shards <shard>`. The command
11-
has the following prototype form:
9+
:dbcommand:`moveChunk` is an internal administrative command that
10+
moves :term:`chunks <chunk>` between :term:`shards <shard>`. The
11+
command has the following prototype form:
1212

1313
.. code-block:: javascript
1414

@@ -18,25 +18,23 @@ moveChunk
1818
<options> } )
1919

2020
:param command moveChunk: The name of the :term:`collection` which
21-
the :term:`chunk` exists. The
22-
collection's full namespace must be
23-
given, including the database name, for
24-
example: ``"test.blog.posts"``.
21+
the :term:`chunk` exists. Specify the
22+
collection's full namespace, including
23+
the database name.
2524

26-
:param find: A query expression that specifies a document of the
27-
chunk to be moved, for example: ``{ author: "eliot"
28-
}``. The query does not have to be related to the
29-
:term:`shard key`.
25+
:param find: A query expression that will select a document within
26+
the chunk you wish to move. The query need not specify
27+
the :term:`shard key`.
3028

31-
:param to: The shard ID where the chunk will be moved to, for
32-
example: ``"shard1"``.
29+
:param to: The identifier of the shard, that you want to migrate the
30+
chunk to.
3331

3432
:param _secondaryThrottle: Optional. Set to ``false`` by
3533
default. Provides :ref:`write concern
3634
<write-concern>` support for chunk
3735
migrations.
3836

39-
If ``_secondaryThrottle`` is set to ``true``, during chunk
37+
If you set ``_secondaryThrottle`` to ``true``, during chunk
4038
migrations when a :term:`shard` hosted by a :term:`replica set`,
4139
the :program:`mongod` will wait until the :term:`secondary` members
4240
replicate the migration operations continuing to migrate chunk
@@ -63,11 +61,9 @@ moveChunk
6361

6462
.. note::
6563

66-
The :dbcommand:`moveChunk` command should be used in special circumstances
64+
Only use the :dbcommand:`moveChunk` in special circumstances
6765
such as preparing your :term:`shard cluster` for an initial
68-
ingestion of data.
69-
70-
.. seealso:: ":ref:`Create chunk <sharding-administration-create-chunks>`"
71-
66+
ingestion of data, or a large bulk import operation. See
67+
:ref:`sharding-administration-create-chunks` for more information.
7268

7369
.. admin-only

0 commit comments

Comments
 (0)