Lani
1
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
}
}
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
3
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: myF5
Lani
5
Thank you! I really appreciate your help with this!