Forum Discussion
Rajendra_129865
Nimbostratus
Jun 13, 2014Load Balancing for new connections fails when jsessionid persistence profile is applied to VIP
Hi,
We have applied jsessionid based persistence profile to the VIP to maintain active session persistence to same node. Also observed all new connections from different source ip's are getting to th...
Rajendra_129865
Nimbostratus
Jun 16, 2014Hi,
We have applied customized universal persistence (JSESSIONID_Persistence) which has an iRule in it. Below is the persistence setup for your reference.
*******************************************
profile persist JSESSIONID_Persistence {
defaults from universal
mode universal
rule rule_JSESSIONID_persistenceprofile
}
rule rule_JSESSIONID_persistenceprofile {
when HTTP_REQUEST {
if { [HTTP::cookie exists "JSESSIONID"] } {
persist uie [HTTP::cookie "JSESSIONID"] 3600
log local0. " Added persistence for session [HTTP::cookie "JSESSIONID"]; Server address: [IP::server_addr]"
} else {
set jsess [findstr [HTTP::uri] "JSESSIONID" 11 ";"]
if { $jsess != "" } {
persist uie $jsess 3600
log local0. " Used persistence record from path $jsess; Server address: [IP::server_addr]"
}
}
}
when HTTP_RESPONSE {
if { [HTTP::cookie exists "JSESSIONID"] } {
persist add uie [HTTP::cookie "JSESSIONID"] 3600
log local0. " Found persistence for session [HTTP::cookie "JSESSIONID"]; URL is [HTTP::host][HTTP::uri]"
}
}
}
*****************************************
Thanks,
Rajendra
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