ltm rule command LB modeΒΆ

iRule(1)		      BIG-IP TMSH Manual		      iRule(1)



LB::mode
       Sets the load balancing mode, overriding the mode set in the pool
       definition.

SYNOPSIS
       LB::mode (default | rr | roundrobin)

       LB::mode (leastconns | nodeleastconns)

       LB::mode (fastest)

       LB::mode (predictive)

       LB::mode (observed)

       LB::mode (ratio | noderatio)

       LB::mode (dynratio | dynratiombr)

DESCRIPTION
       Sets the load balancing mode, overriding the mode set in the pool
       definition

       LB::mode [default | rr | roundrobin | leastconns |
		 fastest | predictive | observed | ratio |
		 dynratio | nodeleastconns | noderatio]

RETURN VALUE
VALID DURING
       ANY_EVENT

EXAMPLES
	when LB_SELECTED {
	    if { $myretry >= 1 } {
		LB::mode rr
		LB::reselect pool $mypool
	    }
	}

HINTS
SEE ALSO
CHANGE LOG
       @BIGIP-10.0.0 --First introduced the command.



BIG-IP				  2017-01-31			      iRule(1)