- Reference >
- JavaScript Methods >
- sh.setBalancerState()
sh.setBalancerState()¶
-
sh.setBalancerState(state)¶ Parameters: - state (boolean) –
trueenables the balancer if disabled, andfalsedisables the balancer.
Enables or disables the balancer. Use
sh.getBalancerState()to determine if the balancer is currently enabled or disabled andsh.isBalancerRunning()to check its current state.- state (boolean) –