LB::mode

Description

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

Syntax

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

LB::mode <lb_mode>

Examples

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