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