Forum Discussion
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
- nitass
Employee
are you using oneconnect profile? if not, can you try?
sol9800: Using an iRule to load balance HTTP requests to multiple pools
http://support.f5.com/kb/en-us/solutions/public/9000/800/sol9800.html - The_Bhattman
Nimbostratus
How about re-writing the iRule
when HTTP_REQUEST { switch -glob [string tolower [HTTP::uri]] { "/chatws/* - "/chat/*" { pool integrate.pool } } }I hope this helps
-=Bhattman=-
- Sumit_sam_14525
Nimbostratus
Thank you for taking time and interest in my post, Appreciate your help !
- The_Bhattman
Nimbostratus
Sure NP. Let us know how it goes
-=Bhattman=-
- Sumit_sam_14525
Nimbostratus
Thanks for the help guys, enabling oneconnect profile fixed the issue :)
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
