- Reference >
mongoShell Methods >- Sharding Methods >
- sh.getBalancerState()
sh.getBalancerState()¶
-
sh.getBalancerState()¶ Returns: boolean sh.getBalancerState()returnstruewhen 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 balancer’s current state.