Forum Discussion
dannyk81_365606
Aug 07, 2018Nimbostratus
It's been quite a while since this was answered, but I had a similar requirement recently and came across this.
Using the
LB::reselect
seemed like a good choice for us, however the above suggested solution doesn't work since the destination port cannot be specified when calling LB::reselect pool
But it can be specified when calling
LB::reselect node
, like so:
when LB_SELECTED {
if { $new_dport != 0 } {
LB::reselect node [LB::server addr] $new_dport
}
}
The value of
new_dport
is set in CLIENT_ACCEPTED
block (and defaults to 0, i.e. should not be changed).
Just wanted to share, in case someone finds it useful.