Forum Discussion
ta11ey_89826
Nimbostratus
Oct 30, 2008Need Cookie Hash iRule Help
I have an iRule performing a cookie hash that is working... for the most part.
The pool 'amtrial_http' contains the two nodes referenced in the iRule. Obviously, when the 1st request c...
ta11ey_89826
Nimbostratus
Dec 09, 2008As an FYI, I have recreated the issue in our dev environment. I am using the same iRule and seeing the same results. I listed the wrong pool info above... here's the http pool info for the current dev environment...
POOL AccessManager_Pool LB METHOD round robin MIN/CUR ACTIVE MEMBERS 0/2
| (cur, max, limit, tot) = (0, 7, 0, 227)
| (pkts,bits) in = (1293, 1.920M), out = (1062, 2.123M)
+-> POOL MEMBER AccessManager_Pool/192.168.72.38:http active,up
| | session enabled priority 1 ratio 1
| | (cur, max, limit, tot) = (0, 4, 0, 193)
| | (pkts,bits) in = (892, 847712), out = (727, 979344)
| | requests (total) = 65
+-> POOL MEMBER AccessManager_Pool/192.168.72.44:http active,up
| session enabled priority 1 ratio 1
| (cur, max, limit, tot) = (0, 3, 0, 34)
| (pkts,bits) in = (401, 1.072M), out = (335, 1.144M)
| requests (total) = 126
Here's the matching iRule for dev:
when HTTP_REQUEST {
if { [HTTP::cookie exists "iamlbcookie"] } {
log local0. "[HTTP::cookie "iamlbcookie"]"
switch [HTTP::cookie "iamlbcookie"] {
*01* {
node 192.168.72.38
log local0. "matched 01"
}
*02* {
node 192.168.72.44
log local0. "matched 02"
}
}
}
else {
pool AccessManager_Pool
log local0. "default"
}
}
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
