Forum Discussion
jaikumar_f5
Apr 06, 2018MVP
@Max,
Does the Irule code worked in the your lab env,
when CLIENT_ACCEPTED {
set lookup [list [IP::client_addr] pool low_priority_pool]
set value [persist lookup source_addr $lookup]
if { ([LB::status pool high_priority_pool member 10.10.10.10 80] eq "up") && ([LB::status pool high_priority_pool member 20.20.20.20 80] eq "up") && ([$value ne ""]) } {
persist delete source_addr [IP::client_addr]
log local0. "high_priority_pool both servers are up & hence deleting persistence of low_priority_pool"
}
}
when HTTP_REQUEST {
if { [active_members high_priority_pool] >= 2 } {
pool high_priority_pool }
else {
pool low_priority_pool }
}