Skip to content

Balancer needs to be on for ActiveWindow to work #1755

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
Closed
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
13 changes: 13 additions & 0 deletions source/tutorial/manage-sharded-cluster-balancer.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,16 @@ be able to migrate chunks:

use config

#. Issue the following operation to ensure the balancer is not in the
``stopped`` state:

.. code-block:: sh

sh.setBalancerState( true )

The balancer will not activate if the state is stopped or outside the
``activeWindow`` timeframe.

#. Use an operation modeled on the following example :method:`update()
<db.collection.update()>` operation to modify the balancer's
window:
Expand Down Expand Up @@ -124,6 +134,9 @@ be able to migrate chunks:
patterns, it is important to ensure that the balancing window you
select will be sufficient to support the needs of your deployment.

Do not use the :method:`sh.startBalancer()` method when you have set an
``activeWindow``.

.. _sharding-balancing-remove-window:

Remove a Balancing Window Schedule
Expand Down