Rick_110395
Jan 11, 2012Nimbostratus
Pool Persistence while buiilding the page
I have an iRule that selects a pool based on the URI, but as the page is built subsequent requests do not match the initial condition directing it to the same pool. How do I get the conversation to stick to the original pool it was sprayed to?
Running 10.2.2 HF3
The initial request goes to test-pool-5002 because the URI contains "Test", but as the login page is built the browser makes several additional HTTP requests that do not contain "Test" which then get sent to prod-pool-5001.
when HTTP_REQUEST {
set uri [HTTP::uri]
if { $uri contains "Test" } {
pool test-pool-5002
} else {
pool prod-pool-5001
}
}
Pools
pool test-pool-5002 {
lb method member observed
action on svcdown reselect
monitor all tcp
members 10.20.20.70:5002 {}
}
pool test-pool-5001 {
lb method member observed
action on svcdown reselect
monitor all tcp
members 10.20.20.70:5001 {}
}
I have tried using cookie persistence with no luck. Is there a way to do this without splitting it out into two virtual servers? I am open to any solution.