Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions source/tutorial/manage-sharded-cluster-balancer.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,13 @@ all migration, use the following procedure:

.. note::

To disable the balancer from a driver that does not have the
:method:`sh.stopBalancer()` or :method:`sh.setBalancerState()` helpers,
issue the following command from the ``config`` database:
To disable the balancer from a driver,
use the :command:`balancerStop` command against the ``admin`` database,
as in the following:

.. code-block:: javascript

db.settings.update( { _id: "balancer" }, { $set : { stopped: true } } , { upsert: true } )
db.adminCommand( { balancerStop: 1 } )

.. _sharding-balancing-re-enable:
.. _sharding-balancing-enable:
Expand All @@ -193,12 +193,14 @@ re-enable it:

sh.setBalancerState(true)

From a driver that does not have the :method:`sh.startBalancer()` helper,
issue the following from the ``config`` database:
.. note::

.. code-block:: javascript
To enable the balancer from a driver, use the :command:`balancerStart`
command against the ``admin`` database, as in the following:

.. code-block:: javascript

db.settings.update( { _id: "balancer" }, { $set : { stopped: false } } , { upsert: true } )
db.adminCommand( { balancerStart: 1 } )

Disable Balancing During Backups
--------------------------------
Expand Down