Forum Discussion
pedinopa_170325
Nimbostratus
Mar 07, 2016iRule to select specific pool member
I am writing an irule to select a specific pool node based or the uri string.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/node1" { node 80 }
...
pedinopa_170325
Nimbostratus
Mar 07, 2016my question is I want to have 1 pool with many members and then the irule will switch (select) the appropriate member. I have followed the examples for using the switch command but haven't gotten it to work yet.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"*/node1*" { pool member 80 }
"*/node2*" { pool member 80 }
}
}
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