Forum Discussion
Prabhu_73174
Nimbostratus
Aug 31, 2010Unable to redirect to a different pool
Env : Big IP 9.4
I have configured the Below iRule and added it to Virtual Server
when LB_SELECTED {
if {([LB::server port] == 9931)}{
pool APILink_A
log local0. "Port 9931 Identified"
} elseif {([LB::server port] == 9933)} {
pool APILink_B
log local0. "Port 9933 Identified"
}
}
I am able to get the correct log based on the status of the port condition. but the F5 does not direct the traffic to the specified pool .
eg
When [LB::server port] == 9931 condition is satisfied, Pool APILink_A is not selected. But "Port 9931 Identified" is logged.
Any help you be appreciated.
1 Reply
- Chris_Miller
Altostratus
If you're using LB::server port, hasn't your traffic already hit a specific pool and the load balancing decision already been made?
If you read the wiki on "pool," you'll notice the event isn't valid in LB_SELECTED even though it doesn't throw an error:
http://devcentral.f5.com/wiki/default.aspx/iRules/pool.html
Can you better explain what you're trying to accomplish here? It sounds like you have a VS and you want to send traffic to two different pools but I'm unsure of what you're trying to base that decision on.
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