Navigation
This version of the manual is no longer supported. Learn more about upgrading your version of MongoDB.

sh.stopBalancer()

On this page

Definition

sh.stopBalancer(timeout, interval)

Disables the balancer in a sharded cluster and waits for balancing to complete.

Parameter Type Description
timeout integer Milliseconds to wait.
interval integer Milliseconds to sleep each cycle of waiting.