@@ -65,11 +65,31 @@ Command Fields
65
65
For more information, see :ref:`Data Partitioning with Chunks
66
66
<sharding-data-partitioning>`.
67
67
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
+
68
88
Examples
69
- ----------
89
+ --------
70
90
71
91
Configure Chunk Size
72
- ~~~~~~~~~~~~~~~~~~~~~~
92
+ ~~~~~~~~~~~~~~~~~~~~
73
93
74
94
To change the chunk size for a sharded collection, use
75
95
the ``chunkSize`` option:
@@ -95,7 +115,7 @@ Use this command to change the chunk size for the given collection.
95
115
For more information, see :ref:`Chunk Size <sharding-chunk-size>`.
96
116
97
117
Defragment Collections
98
- ~~~~~~~~~~~~~~~~~~~~~~~~
118
+ ~~~~~~~~~~~~~~~~~~~~~~
99
119
100
120
To tell the balancer to defragment a sharded collection, use the
101
121
``defragmentCollection`` option:
0 commit comments