Navigation
This version will reach end of life on Feb 2018. To upgrade, go to the Learn more about upgrading your version of MongoDB.

sh.getBalancerHost()

sh.getBalancerHost()
Returns:String in form hostname:port

sh.getBalancerHost() returns the name of the server that is running the balancer.