Skip to content

Commit 011b4c9

Browse files
authored
DOCS-15383 add Behavior section to configureColBal (#1222)
* DOCS-15383 add Behavior section to configureColBal * chunkSize * monospace * CR1 Feedback * fix header lengths * TR1 Feedback * add ref to chuck size tutorial * on
1 parent 190e041 commit 011b4c9

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

source/reference/command/configureCollectionBalancing.txt

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,31 @@ Command Fields
6565
For more information, see :ref:`Data Partitioning with Chunks
6666
<sharding-data-partitioning>`.
6767

68+
Behavior
69+
--------
70+
71+
No Collection ``chunkSize`` Specified
72+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
73+
74+
If you do not specify ``chunkSize`` for a collection and no custom size
75+
has been set previously, the global default ``chunkSize`` is
76+
used for balancing.
77+
78+
Specifying ``chunkSize: 0``
79+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
80+
81+
If you use :dbcommand:`configureCollectionBalancing` with
82+
``chunkSize: 0``, the per-collection ``chunkSize`` is reset and the
83+
global default ``chunkSize`` is used for balancing.
84+
85+
For more information on configuring default ``chunkSize``,
86+
see :ref:`tutorial-modifying-chunk-size`.
87+
6888
Examples
69-
----------
89+
--------
7090

7191
Configure Chunk Size
72-
~~~~~~~~~~~~~~~~~~~~~~
92+
~~~~~~~~~~~~~~~~~~~~
7393

7494
To change the chunk size for a sharded collection, use
7595
the ``chunkSize`` option:
@@ -95,7 +115,7 @@ Use this command to change the chunk size for the given collection.
95115
For more information, see :ref:`Chunk Size <sharding-chunk-size>`.
96116

97117
Defragment Collections
98-
~~~~~~~~~~~~~~~~~~~~~~~~
118+
~~~~~~~~~~~~~~~~~~~~~~
99119

100120
To tell the balancer to defragment a sharded collection, use the
101121
``defragmentCollection`` option:

source/tutorial/modify-chunk-size-in-sharded-cluster.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _tutorial-modifying-chunk-size:
2+
13
======================================
24
Modify Chunk Size in a Sharded Cluster
35
======================================

0 commit comments

Comments
 (0)