File tree Expand file tree Collapse file tree 4 files changed +15
-32
lines changed Expand file tree Collapse file tree 4 files changed +15
-32
lines changed Original file line number Diff line number Diff line change 1+ .. warning ::
2+
3+ Be careful when splitting chunks. When you shard a collection that
4+ has existing data, MongoDB automatically creates chunks to evenly
5+ spread the collection. Performing additional splits requires
6+ knowledge of the resulting chunk sizes by numbers of documents and by
7+ size. You do not want splits that cause some chunks to be much larger
8+ than others. This leads to balancing based on count of chunks, not on
9+ their size, which may cause extreme load/data-distribution problems.
Original file line number Diff line number Diff line change @@ -12,20 +12,10 @@ split
1212 this command makes it possible for administrators to manually
1313 create splits.
1414
15- In normal operation there is no need to manually split chunks. The
16- :term:`balancer` and other sharding infrastructure will automatically
17- create chunks in the course of normal operations. See
18- :doc:`/core/sharded-cluster-internals` for more information.
19-
20- .. warning::
21-
22- Be careful when splitting chunks. When you shard a collection that
23- has existing data, MongoDB automatically creates chunks to evenly
24- spread the collection. Performing additional splits requires
25- knowledge of the resulting chunk sizes by numbers of documents and by
26- size. You do not want splits that cause some chunks to be much larger
27- than others. This leads to balancing based on count of chunks, not on
28- their size, which may cause extreme load/data-distribution problems.
15+ In most clusters, MongoDB will manage all chunk creation and
16+ distribution operations without manual intervention.
17+
18+ .. include:: /includes/warning-splitting-chunks.rst
2919
3020 Consider the following example:
3121
Original file line number Diff line number Diff line change @@ -10,14 +10,6 @@ splitChunk
1010 :method:`sh.splitFind()` and :method:`sh.splitAt()` functions in the
1111 :program:`mongo` shell to access this functionality.
1212
13- .. warning::
14-
15- Be careful when splitting chunks. When you shard a collection that
16- has existing data, MongoDB automatically creates chunks to evenly
17- spread the collection. Performing additional splits requires
18- knowledge of the resulting chunk sizes by numbers of documents and by
19- size. You do not want splits that cause some chunks to be much larger
20- than others. This leads to balancing based on count of chunks, not on
21- their size, which may cause extreme load/data-distribution problems.
13+ .. include:: /includes/warning-splitting-chunks.rst
2214
2315 .. admin-only.
Original file line number Diff line number Diff line change @@ -58,15 +58,7 @@ You may want to split chunks manually if:
5858 values between ``300`` and ``400``, *but* all values of your shard
5959 keys are between ``250`` and ``500`` are in a single chunk.
6060
61- .. warning::
62-
63- Be careful when splitting chunks. When you shard a collection that
64- has existing data, MongoDB automatically creates chunks to evenly
65- spread the collection. Performing additional splits requires
66- knowledge of the resulting chunk sizes by numbers of documents and by
67- size. You do not want splits that cause some chunks to be much larger
68- than others. This leads to balancing based on count of chunks, not on
69- their size, which may cause extreme load/data-distribution problems.
61+ .. include:: /includes/warning-splitting-chunks.rst
7062
7163Use :method:`sh.status()` to determine the current chunks ranges across
7264the cluster.
You can’t perform that action at this time.
0 commit comments