- Reference >
mongoShell Methods >- Sharding Methods >
- sh.stopBalancer()
sh.stopBalancer()¶
On this page
Definition¶
-
sh.stopBalancer(timeout, interval)¶ Disables the balancer in a sharded cluster and waits for balancing to complete.
Important
You can only run
sh.stopBalancer()on amongosinstance.sh.stopBalancer()errors if run onmongodinstance.Parameter Type Description timeoutinteger Milliseconds to wait. intervalinteger Milliseconds to sleep each cycle of waiting.