19-Aug-2020 10:13
Source affinity profile has persistence set to 12hrs for all source IP addresses but there is requirement to have no persistence for two servers.
I have an iRule but I dont think that works well and Source IPs are matched to the same nodes.
when HTTP_RESPONSE {
if {([IP::server_addr] equals "192.168.255.10" ) || ([IP::server_addr] equals "192.168.255.17" )} {
persist none
}
}
19-Aug-2020 19:26
Hello Arek.
Try this.
when LB_SELECTED {
if { ([lindex [LB::server] 1] equals "192.168.255.10") || ([lindex [LB::server] 1] equals "192.168.255.17") } {
persist none
}
}
Regards,
Dario.
22-Aug-2020 01:11
Hello Dario,
Thank you for your reply.
I used rule below just for one server and It worked
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 192.168.255.17] } {
persistence none
}
}
Thank you,
Arek
23-Aug-2020 01:27
Hello Arek.
Great to know that it's working.
Anyway, your iRule is to disable persistence just for one single client (192.168.255.17), not for disabling persistence for some pool members, but if it suits your requirements is good.
Regards,
Dario.
24-Aug-2020 01:15
Hi Dario,
Thank you for your help, the irule wasnt required at the end as platform team decided to make changes within Oracle DB to achieve their end goal but they may be back.
🙂