Forum Discussion

Moominboy_29470's avatar
Moominboy_29470
Icon for Nimbostratus rankNimbostratus
Oct 09, 2016

Any way to avoid source persistence based on IP?

Hi guys,

 

Looking for some advice please.

 

I'm looking to implement an alerting function on our estate which aims to hit a hostname.asp url across 4 servers, tally the result then alert if any count is 0 over a period.

 

The problem is that our F5 have simple session persistence so I get a full count for one server and 0 for the rest.

 

Is it at all possible that an iRule could be written to use source persistence EXCEPT to a certain URL? ie, https://myserver.hostname.asp, or even ignore persistence from a static IP?

 

1 Reply

  • Try something like this:

    when HTTP_REQUEST {
    if { ([HTTP::host] eq "myserver.hostname.asp") and ([HTTP::uri] eq "/") } {
    persist none
    }
    }