Forum Discussion
single iRule for multiple pool members for directing traffic
Hi All,
we have found pool members (10.10.10.1 , 10.10.10.2 , 10.10.10.3 , 10.10.10.4) under and virtual server. We received a requirement to direct traffic of a application sublink (for eg /abcd) on pool members 10.10.10.1 , 2 and 3 only i.e if user is accessing the URL with /abcd request will be entertained by 10.10.10.1 , 10.10.10.2 and 10.10.10.3 only and not by 10.10.10.4 ...however request other then /abcd can load balance between all pool members.
Pool name : pool_app1
Rgds
- mf5
Nimbostratus
you can create two different pools and add the nodes to it based on the traffic and use this irule to redirect traffic according to the URL
when HTTP_REQUEST { if { [HTTP::path] ends_with "/abcd" }{ pool abcd_pool } else}{ pool abc_pool } }
You can even send it to a particular node as well, please check this link for more details https://devcentral.f5.com/articles/irules-101-05-selecting-pools-pool-members-and-nodes
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