中文社区首页
博客
讨论区
Try it Out
Drivers
Downloads
Community
Blog
OPTIONS
Version
Select Version
2.6 (current)
2.4
2.2
Formats
HTML
PDF
EPUB
Contribute
Report a Problem
直接翻译或纠错本页面
翻译或纠错本页面
Reference
>
mongo
Shell Methods
>
分片方法
>
sh.getBalancerHost()
sh.getBalancerHost()
¶
sh.
getBalancerHost
(
)
¶
返回:
String in form
hostname
:
port
sh.getBalancerHost()
returns the name of the server that is running the balancer.
参见
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