Skip to content

DOCS-11227: use balancerStart/Stop command to start/stop balancer #3215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 1, 2018
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