Forum Discussion

Rodolphe_AUBINE's avatar
Rodolphe_AUBINE
Icon for Nimbostratus rankNimbostratus
Sep 21, 2010

PB Dispatch HTTP request to another POOL on URI analysis

Hi,

 

 

I have one Virtual Serveur VS1 wich use default POOL1 for simple http resquest GET / POST.

 

I need to extract some request which contains "../pattern/..." and send to another POOL2 (which is not used bye another VS)

 

 

The simple IRule which is actived on VS1, is :

 

when HTTP_REQUEST {

 

if { [HTTP::uri] contains "mypattern" } {

 

log "[HTTP::uri] forwarded to pool POOL-2"

 

pool POOL-2

 

}

 

}

 

 

The Irule is OK with some uniq espaced resquets the good pool is choiced "default POOL1 or specific POOL2 if the URI contains "mypattern")

 

 

But, when I send massive GET or POST to this VS1, mixing with or without pattern, from an unique IP adress and an unique software client (browser, shell sender,...), I noticed that if the forward to POOL2 is done, the next "near" requests are also forwarder to POOL2, even if their URI doesn't match "mypattern".

 

 

 

Question : Is there a "session" or "sticky" mechanism which forward some request to POOL2, without logging and trigger bye the Irule... ? if yes, what is the common criteria between requests ? ip ? elapsed time ?....

 

 

Thanks in advance,

 

Rodolphe AUBINEAU.

 

 

 

 

4 Replies

  • You might have to use OneConnect to ensure every single request is being evaluated.

     

     

    http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/114/OneConnect-For-my-iRule.aspx

     

     

    You're saying that some requests that contain "mypattern" are being sent to POOL-1, right?
  • Thanks for your response.

     

     

    Yep ! some requests that contain "mypattern" are being sent to POOL-1

     

     

    Question : Is the OneConnect option/profile is available on Big Ip 10.1 ASM (no LTM full licenses) ?

     

    If no, i can't use this tips.

     

     

    Otherwise hw could it be done ?

     

  • I assume you're using a Standard type Virtual Server? If you're using ASM, I assume you're using an HTTP profile...simply select the default OneConnect profile too and you should be set.
  • As Chris suggests, a OneConnect profile should be available on ASM standalone as well as LTM.

     

     

    Aaron