Docs Home → Develop Applications → MongoDB Manual
sh.getBalancerState()![](/docs/v6.3/assets/link.svg)
sh.getBalancerState()
Returns: boolean sh.getBalancerState()
returnstrue
when the balancer is enabled and false if the balancer is disabled. This does not reflect the current state of balancing operations: usesh.isBalancerRunning()
to check the current state of the balancer.