Forum Discussion
Universal Persistence Profile (UIE) across multiple pools
Hi all
I have a question about UIE with multiple pools. I have a Virtual Server which swaps pools depending on the URI:
**POOLS:**
pool1
server1
server2
pool2
server3
server4
default:
server5
server6
**RULE1:**
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]]{
"/uri1/*" {
pool pool1
}
"/uri2/*" {
pool pool2
}
default {
pool default
}
}
}
**RULE2:**
when HTTP_REQUEST {
if { [HTTP::cookie "JSESSIONID"] ne "" }{
persist uie [HTTP::cookie "JSESSIONID"]
}
}
when HTTP_RESPONSE {
if { [HTTP::cookie "JSESSIONID"] ne "" }{
persist add uie [HTTP::cookie "JSESSIONID"]
}
}
/uri1/ has a single sign on system that creates a JSESSIONID cookie. This is used for Universal Persistence.
Rule2 is associated with a Universal Persistence Profile. This Profile is then associated with the Virtual Server - this is done so Rule2 can be used on several Virtual Servers and not just the one specified above.
User test - in a browser session,
request1: http://www.server.com/uri1/getssotoken - this is served by server1 and I get a JSESSIONID cookie
request2: http://www.server.com/uri2/somecontent - this is served by server4
request3: http://www.server.com/othercontent - this is served by server6
So the question I have...
Any request I now make in this same browser session, depending on uri, I will always be served by either server1, server4 or server6
Is this correct?
Thanks
Recent Discussions
Related Content
* 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