@@ -165,13 +165,13 @@ all migration, use the following procedure:
165
165
166
166
.. note::
167
167
168
- To disable the balancer from a driver that does not have the
169
- :method:`sh.stopBalancer()` or :method:`sh.setBalancerState()` helpers ,
170
- issue the following command from the ``config`` database :
168
+ To disable the balancer from a driver,
169
+ use the :command:`balancerStop` command against the ``admin`` database ,
170
+ as in the following :
171
171
172
172
.. code-block:: javascript
173
173
174
- db.settings.update ( { _id: "balancer" }, { $set : { stopped: true } } , { upsert: true } )
174
+ db.adminCommand ( { balancerStop: 1 } )
175
175
176
176
.. _sharding-balancing-re-enable:
177
177
.. _sharding-balancing-enable:
@@ -193,12 +193,14 @@ re-enable it:
193
193
194
194
sh.setBalancerState(true)
195
195
196
- From a driver that does not have the :method:`sh.startBalancer()` helper,
197
- issue the following from the ``config`` database:
196
+ .. note::
198
197
199
- .. code-block:: javascript
198
+ To enable the balancer from a driver, use the :command:`balancerStart`
199
+ command against the ``admin`` database, as in the following:
200
+
201
+ .. code-block:: javascript
200
202
201
- db.settings.update ( { _id: "balancer" }, { $set : { stopped: false } } , { upsert: true } )
203
+ db.adminCommand ( { balancerStart: 1 } )
202
204
203
205
Disable Balancing During Backups
204
206
--------------------------------
0 commit comments