Jeff_McConnell_
May 24, 2006Nimbostratus
jessionid uie persistence
I am testing the following iRule to persist on jsession for three clustered apps, which so far is working. While testing, I see that when I disable a node, the sessions continue to persist to the disabled node. It is only when I take down the app servers and the health check fails that persistence drops and persists to another node. Is this normal behavior? Any ideas on how to drop/move sessions when a node with persistent connections is disabled? Thanks
when HTTP_REQUEST {
if { [HTTP::cookie exists "JSESSIONID"] and [HTTP::uri] contains "/app1/" or [HTTP::uri] contains "/app2/" or [HTTP::uri] contains "/app3/" } {
persist uie [HTTP::cookie "JSESSIONID"]
} else {
set jsess [findstr [HTTP::uri] "jsessionid" 11 ";"]
if { $jsess != "" and [HTTP::uri] contains "/app1/" or [HTTP::uri] contains "/app2/" or [HTTP::uri] contains "/app3/"} {
persist uie $jsess
}
}
}