Skip to content

Commit 5a25c58

Browse files
author
Sam Kleinman
committed
minor: adding balancer config scheduling disable
1 parent 0d04e8a commit 5a25c58

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

source/administration/sharding.txt

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -697,13 +697,6 @@ be able to migrate chunks:
697697

698698
db.settings.update({ _id : "balancer" }, { $set : { activeWindow : { start : "23:00", stop : "6:00" } } }, true )
699699

700-
To turn off the balancing window:
701-
702-
.. code-block:: javascript
703-
704-
use config
705-
db.settings.update({ _id : "balancer" }, { $unset : { activeWindow : true })
706-
707700
.. note::
708701

709702
The balancer window must be sufficient to *complete* the migration
@@ -713,6 +706,19 @@ To turn off the balancing window:
713706
patterns, it is important to ensure that the balancing window you
714707
select will be sufficient to support the needs of your deployment.
715708

709+
Remove Balancing Window Schedule
710+
--------------------------------
711+
712+
If you have :ref:`set the balancing window
713+
<sharding-schedule-balancing-window>` and wish to remove the schedule
714+
so that the balancer is always running, issue the following sequence
715+
of operations:
716+
717+
.. code-block:: javascript
718+
719+
use config
720+
db.settings.update({ _id : "balancer" }, { $unset : { activeWindow : true })
721+
716722
.. _sharding-balancing-disable-temporally:
717723

718724
Disable the Balancer

0 commit comments

Comments
 (0)