Forum Discussion
11.4 node/pool select according to domains list
I would add to Kevin Stewart's suggestion: Use an external data group, and use one datagroup for each class of domains. So if you are splitting into 2, one datagroup will contain 500 domains, the next datagroup will contain 500. Also use one pool for each class.
Use if-elseif expressions to match the classes as highlighted in Kevin's example.
Since you are matching domain names, you will need to match by HTTP::host, as that is independent of IP address.
Reference: Irules If and Expressions: https://devcentral.f5.com/articles/irules-101-02-if-and-expressions.UjG3LETK3Fg
- Kevin_StewartSep 12, 2013
Employee
This is an interesting idea, but not sure what benefit it brings. The iRule would potentially have to parse two data groups to find a domain. - Dmitry_ShermanSep 12, 2013
Nimbostratus
Can you show an example please? - BinaryCanary_19Sep 12, 2013Historic F5 AccountHe wants domains in one list to go to one pool, and the next set to go to a different pool. Using two datagroups seems like the easiest way to do this.
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