iRule persistance based on HTTP header
After reading the F5 doc, this seemed simple enough:
I created a universal persistence profile with the following rule:
when HTTP_REQUEST {
if { [HTTP::header exists "X-DeviceKey"] } {
persist uie [HTTP::header "X-DeviceKey"]
}
}
Then I created a virtual server with this persistence profile, the default http profile, and a OneConnect profile. The pool itself is set up for Round Robin load balancing.
But it doesn't seem to be working. When I send HTTP requests for different devices from a single client, I am seeing all these requests sent to the same node in the pool (via "persist show all"). This is not what I expected. I'm testing with a small pool with 2 nodes and was expecting to see at least one device "stick" to a different node in the pool than the others.
What am I missing here?
Thanks in advance for any advice you can give me.
--Greg Williams