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.getBalancerHost()
sh.getBalancerHost()
¶
sh.
getBalancerHost
(
)
¶
Returns:
String in form
hostname
:
port
sh.getBalancerHost()
returns the name of the server that is running the balancer.
See also
sh.enableBalancing()
sh.disableBalancing()
sh.getBalancerState()
sh.isBalancerRunning()
sh.setBalancerState()
sh.startBalancer()
sh.stopBalancer()
sh.waitForBalancer()
sh.waitForBalancerOff()
←
sh.enableSharding()
sh.getBalancerState()
→
ON THIS PAGE
sh.getBalancerHost()
Report a Problem