Forum Discussion
Dmitry_Sherman
Nimbostratus
Sep 12, 201311.4 node/pool select according to domains list
Hello,
I need to perform node/pool selection according to big domains list.
I have a list of 500 domains that have to be routed to a specific node, all other domains should be routed to the second no...
Kevin_Stewart
Employee
Sep 12, 2013Then you just need to modify the data group to reflect that. Example:
"www.domain1.com" := "10.10.10.11 80"
"www.domain2.com" := "10.10.10.11 80"
"www.domain3.com" := "10.10.10.11 80"
"www.domain4.com" := "10.10.10.11 80"
...
"www.domain500.com" := "10.10.10.11 80"
"www.domain501.com" := "10.10.10.12 80"
"www.domain502.com" := "10.10.10.12 80"
"www.domain503.com" := "10.10.10.12 80"
"www.domain504.com" := "10.10.10.12 80"
...
"www.domain1010.com" := "10.10.10.12 80"
though I think at this point you should probably just use two pools:
"www.domain1.com" := "pool1"
"www.domain2.com" := "pool1"
"www.domain3.com" := "pool1"
"www.domain4.com" := "pool1"
...
"www.domain500.com" := "pool1"
"www.domain501.com" := "pool2"
"www.domain502.com" := "pool2"
"www.domain503.com" := "pool2"
"www.domain504.com" := "pool2"
...
"www.domain1010.com" := "pool2"
and then modify the iRule accordingly:
when HTTP_REQUEST {
if { [class match [string tolower [HTTP::host]] equals my_domain_dg] } {
pool [class match -value [string tolower [HTTP::host]] equals my_domain_dg]
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects