cancel
Showing results for 
Search instead for 
Did you mean: 

Traffic Shaping and Atlassian Jira

Lani
Nimbostratus
Nimbostratus

Hi All,

I'm having an issue getting Traffic Shaping situated for Jira - here's what I need done:

 

  1. Sticky Sessions
  2. If the URI is rest - then go to Pool2
  3. Else if that URI is rest/login.jsp - Pool1
  4. All others go to Pool1

 

The problem I'm having, is it always routes me back to pool2

when HTTP_REQUEST {

if { [string tolower [HTTP::uri]] contains "/rest" }{

pool pl-prd-jira.ftr.com2-tcp8080

}

}

1 ACCEPTED SOLUTION

K9815: Using an iRule to select among multiple pools with different members may be incompatible with some cookie persistence configurations

Link: https://support.f5.com/csp/article/K9815

View solution in original post

4 REPLIES 4

Hi Lani,

 

Can you try this irule?

when HTTP_REQUEST { if { [string tolower [HTTP::path]] starts_with "/rest" && [string tolower [HTTP::path]] ne "/rest/login.jsp"} { pool pl-prd-jira.ftr.com2-tcp8080 } else { pool pl-prd-jira.ftr.com1-tcp8080 } }

If you need persistence:

when HTTP_REQUEST { if { [string tolower [HTTP::path]] starts_with "/rest" && [string tolower [HTTP::path]] ne "/rest/login.jsp"} { pool pl-prd-jira.ftr.com2-tcp8080 persist cookie insert "pool-ftr2" } else { pool pl-prd-jira.ftr.com1-tcp8080 persist cookie insert "pool-ftr1" } }

 

Lani
Nimbostratus
Nimbostratus

We got it working - but I'm super interested in the persistence -

Does this mean, setting persistence within the configuration does not work? unless we add it via iRule?

 

 

K9815: Using an iRule to select among multiple pools with different members may be incompatible with some cookie persistence configurations

Link: https://support.f5.com/csp/article/K9815

Thank you! I really appreciate your help with this!