- Reference >
- JavaScript Methods >
- sh.setBalancerState()
sh.setBalancerState()¶
-
sh.
setBalancerState
(state)¶ Parameters: - state (boolean) –
true
enables the balancer if disabled, andfalse
disables 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) –