Forum Discussion

Sumit_sam_14525's avatar
Sumit_sam_14525
Icon for Nimbostratus rankNimbostratus
Jun 02, 2014

Pool Selection not working using Irule

Hi All,

 

I've build a quite simple irule for pool selection, it works for one pattern & for other it's failing recklessly which is quite surprising as there's nothing fancy about other pattern.

 

IRULE:

 

when HTTP_REQUEST { if { [HTTP::uri] starts_with "/ChatWS/" || [HTTP::uri] starts_with "/chat/"} { pool integrate.pool }

 

The pool selection works fine for pattern "/ChatWS/" , however it fails to select pool correctly for "/chat/" pattern.

 

Following Debugs exhibit traffic sent to correct pool:

 

May 29 11:38:58 slb01a info tmm2[14681]: Rule /Common/chat-irule : /chat/?717208 /Common/integrate.pool x.x.x.x May 29 11:39:06 slb01a info tmm2[14681]: Rule /Common/chat-irule : /chat/?717209 /Common/integrate.pool x.x.x.x

 

However, I checked the HTTP debugs from actual server. Traffic never reached to server, instead being sent to default pool associated with VIP.

 

Any inputs will be highly appreciated.

 

5 Replies