Forum Discussion

rodrigo_Benzaqu's avatar
rodrigo_Benzaqu
Icon for Nimbostratus rankNimbostratus
Aug 17, 2005

Help with a simple rule

Hi Guys, I need a little help to modify this rule :

 

 

load balancing rules

 

rule Cache_Fetch {

 

if (http_uri starts_with "/jm/pms" or http_uri starts_with "/cgi/pms/") {

 

use pool PMS_java

 

}

 

else {

 

if (http_uri starts_with "/jm/search") {

 

use pool SEARCH_java

 

}

 

else if (http_uri starts_with "/jm/" or http_uri starts_with "/jms/" or http_uri starts_with "/servlet/") {

 

use pool Java_Servers

 

}

 

else {

 

if (http_uri contains "/ml/") {

 

use pool SQL_Servers

 

}

 

else {

 

use pool static_server

 

}

 

}

 

}

 

}

 

 

I need to add :

 

 

if (http_uri starts_with "/jm/pms" or http_uri starts_with "/cgi/pms/" or http_uri ends_with "_JM") {

 

use pool PMS_java

 

}

 

 

If that possible and works ?

 

 

Thanks in advance

 

ROdrigo.

 

  • iControl is our management API. This is a iRules question so you should post it over on the 4.x iRules forum to get a response from the iRules experts.

     

     

    -Joe