Forum Discussion

irchuvieco_1345's avatar
irchuvieco_1345
Icon for Nimbostratus rankNimbostratus
Apr 25, 2018

Cloned pool isn't working correctly

Hi guys

We are using clone pool sentence using the iRule

when HTTP_REQUEST {
   pool "pro-http-sur"
   if { [HTTP::host] contains "www.bbb.es" } {
       if { ( ([HTTP::method] equals "POST") && ([HTTP::uri] starts_with "/boa/index.jsf" ))
          ||([HTTP::uri] starts_with "/boa/hotelResult.jsf") } {
          clone pool pro-clone-sur
       } 
   } elseif { [HTTP::host] contains "www.extranetccc.es"} {
       pool "pro-http-sur-extranet"
   }
}
`


Our intention is to clone traffic based on the request HTTP-URI and HTTP method as you can see in the iRule. 

The cloned destination interface has been enabled to listen in promiscuous mode but the traffic cloned received does not match with the irule condition. 

For example we have checked that there are requests cloned based on the following uris:   

`/boa/resources/prima.jsf
/boa/resources/img.png
/boa/resources/css.png

In addition some requests are been lost even fulfilling based on the irule condition

any idea?

3 Replies

  • The logic is looking good, but would you mind trying this,

    when HTTP_REQUEST {
       if { [HTTP::host] contains "www.bbb.es" } {
           if { ( ([HTTP::method] equals "POST") && ([HTTP::uri] starts_with "/boa/index.jsf" ))
              ||([HTTP::uri] starts_with "/boa/hotelResult.jsf") } {
              pool pro-http-sur
              clone pool pro-clone-sur
              log local0. "Host matched if-if condition - CLONING, HOST: [HTTP::host] has URI : [HTTP::uri] of Method: [HTTP::method]"
           } else {
           pool pro-http-sur
           log local0. "Host matched if-else condition - NO CLONE, HOST: [HTTP::host] has URI : [HTTP::uri] of Method: [HTTP::method]"
           }
       } elseif { [HTTP::host] contains "www.extranetccc.es"} {
           pool pro-http-sur-extranet
           log local0. "Host matched elseif condition - Extranet, NO CLONE, HOST: [HTTP::host] has URI : [HTTP::uri] of Method: [HTTP::method]"
       }
    

    }

  • By other hand we have enabled oneconnect profile and dont know if it can be related with the issue.