Gary_Bright_120
Mar 13, 2006Nimbostratus
Persist iRule based on URI
Hi there I'm trying to write an iRule that will allow us Admins the choice of selecting a pool member and have persistence with that member.
At the moment we have a persistance profile or source_addr on the virtual server which holds for 15 minutes. This works great.
The pool is made up for 4 members
here is my first attempt
when HTTP_REQUEST {
if { [URI::decode [string tolower [HTTP::uri]]] contains "lbmember=3" } {
persist none
pool pool_name member 1.1.1.1 80
persist source_addr 1800
}
}
Would someone be able to help me out with how I should go about setting this up.
To test I connect from my machine to the pool then view the persisent records in statistics find out which member I'm going to (not member 3) , then I refresh my page with lbmember=3 in the URL, but my persistence record still points to the old server and not 3
TIA
Gary