24-Aug-2020 00:47
Good day all,
We have recently taken over a subsidary of ours and f5 is one of their devices.
In a virtual service, this irule is found. I am trying to understand what this does with the virtual server traffic.
Please help me to understand what this is used for. The service is an https that converts the client requests to another port on the pool member.
( some of these have been slightly changed here for discreet purpose)
when CLIENT_ACCEPTS {
set retry 0
}
when HTTP_REQUEST {
set http_request [HTTP::request]
}
when HTTP_RESPONSE {
if { ([HTTP::status] starts_with "4")} {
incr retry
if { $retry <= [active_members [LoB::pool]] } {
HTTP::retry $http_request
} else {
set retry 0
}
} else {
set retry 0
}
}
when ltm-pass {
if { ($retry > 0) && ($retry <= [active_members [LoB::pool]])} {
LB::reselect pool [LoB::pool]
log local0.info "New LB server is [LoB::xyz]"
}
}
when ltm-fail {
if { $retry <= [active_members [LoB::pool]]} {
incr retry
LoB::reselect pool [LoB::pool]
}
}
Solved! Go to Solution.
26-Aug-2020 08:41
26-Aug-2020 08:41