Skip to content

DOCS-1555 correcting instructions for re-enabling balancing #1047

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,13 @@ shard.
#. Restart all stopped replica set members of each shard as normal and
allow them to catch up with the state of the primary.

#. Restore the balancer with the :method:`sh.startBalancer()` method
according to the :ref:`sharding-balancing-disable-temporally`
procedure.
#. Re-enable the balancer with the :method:`sh.setBalancerState()`
method.

Use the following command sequence when connected to the
:program:`mongos` with the :program:`mongo` shell:

.. code-block:: javascript

use config
sh.startBalancer()
sh.setBalancerState(true)
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,13 @@ shard.
#. Unlock all locked replica set members of each shard using the
:method:`db.fsyncUnlock()` method in the :program:`mongo` shell.

#. Restore the balancer with the :method:`sh.startBalancer()` method
according to the :ref:`sharding-balancing-disable-temporally`
procedure.

#. Re-enable the balancer with the :method:`sh.setBalancerState()`
method.

Use the following command sequence when connected to the
:program:`mongos` with the :program:`mongo` shell:

.. code-block:: javascript

use config
sh.startBalancer()
sh.setBalancerState(true)