This version has reached end of life on October 2016. Learn more about upgrading your version of MongoDB.


On this page



Disables the balancer for the specified sharded collection. This does not affect the balancing of chunks for other sharded collections in the same cluster.

The sh.disableBalancing() method has the following parameter:

Parameter Type Description
namespace string The namespace of the collection.

For more information on the balancing process, see Manage Sharded Cluster Balancer and Sharded Collection Balancing.