Forum Discussion

Lani's avatar
Lani
Icon for Nimbostratus rankNimbostratus
Mar 24, 2021
Solved

Traffic Shaping and Atlassian Jira

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

}

}

  • 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

4 Replies

  • 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's avatar
    Lani
    Icon for Nimbostratus rankNimbostratus

    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

      • Lani's avatar
        Lani
        Icon for Nimbostratus rankNimbostratus

        Thank you! I really appreciate your help with this!