diff --git a/source/tutorial/manage-sharded-cluster-balancer.txt b/source/tutorial/manage-sharded-cluster-balancer.txt index 8502b4daf48..9348111cff6 100644 --- a/source/tutorial/manage-sharded-cluster-balancer.txt +++ b/source/tutorial/manage-sharded-cluster-balancer.txt @@ -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: @@ -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 --------------------------------