Try it Out
Drivers
Downloads
Community
Blog
OPTIONS
Version
Select Version
3.0 (upcoming)
2.6 (current)
2.4
2.2
Formats
HTML
PDF
EPUB
Contribute
Report a Problem
Edit on Github
Reference
>
mongo
Shell Methods
>
Sharding Methods
>
sh.stopBalancer()
sh.stopBalancer()
¶
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.
See also
sh.enableBalancing()
sh.disableBalancing()
sh.getBalancerHost()
sh.getBalancerState()
sh.isBalancerRunning()
sh.setBalancerState()
sh.startBalancer()
sh.waitForBalancer()
sh.waitForBalancerOff()
←
sh.status()
sh.waitForBalancer()
→
ON THIS PAGE
sh.stopBalancer()
Definition
Report a Problem