Forum Discussion

Sriram_129909's avatar
Sriram_129909
Icon for Nimbostratus rankNimbostratus
Mar 28, 2014

iRule not sending traffic to the specified pool

Experts, I have a simple iRule to direct traffic on a particular vip to a pool. For some reason we still see a little traffic on servers outside the pool. Just wanted to make sure the iRule is fine to begin with. Ironically the /l/ and /r/ conditions are obeyed but not the /landing/.

when HTTP_REQUEST {
   if { [string tolower [HTTP::host]] equals "www.mycompany.com" && ([string tolower [HTTP::uri]] starts_with "/r/" or [string tolower [HTTP::uri]] starts_with "/l/" or [string tolower [HTTP::uri]] starts_with "/landing/") } {
      pool www.mycompany.com_landing_80_pool
   }
}

3 Replies

  • I see no reason why /landing/ wouldn't be matched based on the iRule. Only unless it really wasn't matching the URI the client specified.

     

  • Enable logs in your irule to check each request URI inside and outside the condition.

     

    Let us know. Matt

     

  • Richard__Harlan's avatar
    Richard__Harlan
    Historic F5 Account

    If there was existing traffic flowing through the VIP before the iRule was applied it will not be affected by the new iRule. Once that traffic flow is removed and it is recreated it should flow through the new iRule.