Docs
Drivers
University
Community
Blog
Enterprise
Download
Contact
OPTIONS
Version
Select Version
3.2 (current)
3.0
2.6
2.4
2.2
Formats
PDF
EPUB
Contribute
Report a Problem
Edit on Github
Reference
>
mongo
Shell Methods
>
Sharding Methods
>
sh.startBalancer()
sh.startBalancer()
¶
On this page
Definition
Definition
¶
sh.
startBalancer
(
timeout
,
interval
)
¶
Enables the balancer in a sharded cluster and waits for balancing to initiate.
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.stopBalancer()
sh.waitForBalancer()
sh.waitForBalancerOff()
←
sh.splitFind()
sh.status()
→
Report a Problem