@@ -44,8 +44,9 @@ The command has the following syntax:
44
44
{
45
45
configureCollectionBalancing: "<db>.<collection>",
46
46
chunkSize: <num>,
47
- defragmentCollection: <bool>
48
- enableAutoMerger: <bool>
47
+ defragmentCollection: <bool>,
48
+ enableAutoMerger: <bool>,
49
+ enableBalancing: <bool>
49
50
}
50
51
)
51
52
@@ -80,9 +81,17 @@ Command Fields
80
81
* - ``enableAutoMerger``
81
82
- boolean
82
83
- Optional
83
- - Whether or not the :ref:`{+auto-merge-upper+}
84
+ - Sets whether the :ref:`{+auto-merge-upper+}
84
85
<automerger-concept>` takes this collection into account.
85
86
Defaults to ``true``.
87
+ * - ``enableBalancing``
88
+ - boolean
89
+ - Optional
90
+ - Sets whether the balancer operates on the collection.
91
+ When set to ``false``, the balancer is disabled for the
92
+ collection.
93
+
94
+ .. versionadded:: 8.0.10
86
95
87
96
88
97
For more information, see :ref:`Data Partitioning with Chunks
@@ -207,3 +216,16 @@ set the ``enableAutoMerger`` option to ``false``:
207
216
configureCollectionBalancing: "test.students",
208
217
enableAutoMerger: false
209
218
} )
219
+
220
+ Disable Balancing on a Collection
221
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
222
+
223
+ To explicitly disable the balancer on a collection, set the
224
+ ``enableBalancing`` option to ``false``:
225
+
226
+ .. code-block:: javascript
227
+
228
+ db.adminCommand( {
229
+ configureCollectionBalancing: "test.students",
230
+ enableBalancing: false
231
+ } )
0 commit comments