24-Mar-2021 12:07
Hi All,
I'm having an issue getting Traffic Shaping situated for Jira - here's what I need done:
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
}
}
Solved! Go to Solution.
24-Mar-2021 14:21
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
24-Mar-2021
12:45
- last edited on
04-Jun-2023
21:00
by
JimmyPackets
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"
}
}
24-Mar-2021 12:49
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?
24-Mar-2021 14:21
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
24-Mar-2021 14:24
Thank you! I really appreciate your help with this!