For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

laurence64_2392's avatar
laurence64_2392
Icon for Nimbostratus rankNimbostratus
Oct 19, 2016

Change persistence per pool

Hi

 

We have no default persistence as that has caused polarisation of servers due to NAT rules further up the stream, however I need to apply source_ip affinity on one pool. my irule is as follows,

 

when HTTP_REQUEST { if {[HTTP::host] eq "someurl.com"} {pool somepool}

 

as you can see I am switching on host header, is there any way of making that pool use source affinity or is this set globally per Virtual Server?

 

Any help would be greatly appreciated, I have tried putting persistence in before and inbetween the pool but to no avail.

 

1 Reply

  • Try something like this..

    when HTTP_REQUEST {
        if {[string tolower [HTTP::host]] equals "someurl.com"}{
        persist source_addr
        } else{
          return
        }   
    }
    

    -Jinshu