Forum Discussion
lboogie25_20449
Nimbostratus
Feb 17, 2016VIP with multiple pools and TCP ports
Hello, all. I'm hoping to configure a single VIP to serve multiple pools. I'm using data groups to separate the port objects (not sure if I did that right). Here is my config, with the data groups fi...
Josh_Abaire
Nimbostratus
Feb 17, 2016It seems inefficient to me, but if you must use an iRule, I would probably use a switch statement. Since it's a simple mapping, I'm not sure I would feel the need for a data group.
when CLIENT_ACCEPTED {
switch [TCP::local_port] {
"901" { pool pl_901 }
"902" { pool pl_902 }
"903" { pool pl_903 }
"904" { pool pl_904 }
"905" { pool pl_905 }
}
}
I would also wonder if there is a need for separate pools. If the VS uses the ANY port and the pool members are all the same between ports and use the same port as the VS, just use the ANY port on the pool and let it carry over.
lboogie25_20449
Nimbostratus
Feb 17, 2016Josh, you're saying it would be more efficient to create the couple of hundred vservers? Can you elaborate?
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