cancel
Showing results for 
Search instead for 
Did you mean: 

Source address affinity persistence none

Arek
Nimbostratus
Nimbostratus

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

  }

}

 

4 REPLIES 4

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.

Regards,
Dario.

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

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.

Regards,
Dario.

Arek
Nimbostratus
Nimbostratus

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.

 

🙂