Forum Discussion
Traffic Shaping and Atlassian Jira
Hi All,
I'm having an issue getting Traffic Shaping situated for Jira - here's what I need done:
- Sticky Sessions
- If the URI is rest - then go to Pool2
- Else if that URI is rest/login.jsp - Pool1
- 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
}
}
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
- LaniNimbostratus
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
- LaniNimbostratus
Thank you! I really appreciate your help with this!
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" } }
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com