- Reference >
- JavaScript Methods >
- sh.stopBalancer()
sh.stopBalancer()¶
-
sh.
stopBalancer
(timeout, interval)¶ Parameters: - timeout (integer) – Milliseconds to wait.
- interval (integer) – Milliseconds to sleep each cycle of waiting.
The
sh.stopBalancer()
disables the balancer in a sharded cluster and waits for balancing to complete.