Forum Discussion
ChrisJackel_103
Nimbostratus
Nov 30, 2007Persistence problem with multiple pools under one VIP
We have one VIP with two separate applications under it, with traffic segregated with an iRule like the following:
when HTTP_REQUEST {
if {[matchclass [string tolower [HTTP::uri]] starts_with $::myURL] } {
pool app1_http
} else {
pool app2_http
}
}
App1 is a set of Apache servers with no state information. App2 is dotNET and maintains state with the ASP state service, so persistence is less of an issue.
The persistence profile on the VIP is cookie insert.
Previously, there was very little crossover between the two applications. However, they do occasionally call objects from each other and when they do the BigIP cookie is overwritten. This is expected, the session information is a connection between the client and a node, and I can't see an easy way to maintain a session to two different nodes under the same VIP.
My understanding is that the 'match across virtual servers' and 'match across pools' wouldn't really apply in this case, since it is the same VIP throughout.
However, this is causing problems for app1, where it loses state as soon as it calls an image (or anything) that resides on a path under app2. They next time a request is made for app1 it establishes a new session and bad things happen.
It would take months of dev work to get the two applications into separate namespace and different VIPs. Any suggestions how I can maintain persistence within the same VIP to two applications at once?
We are running 9.3.1. Thanks in advance.
- ChrisJackel_103
Nimbostratus
At what point is persistence evaluated? Would this work? - hoolio
Cirrostratus
Using two different persistence profile instances should work well. - ChrisJackel_103
Nimbostratus
Thanks for the response. - hoolio
Cirrostratus
When using a custom persistence profile, I've had to specify the persistence type and the name, as you did with cookie_a1. I think you can leave off the name if you want to use the default profile for that type of persistence. - hoolio
Cirrostratus
After testing this again for another customer, I realized that when specifying a "name" for the command 'persist cookie insert ', name isn't the name of the cookie persistence profile you want to use--it's the name of the cookie you want to insert. When I tested this originally, I was using same name for the cookie persist profile and the cookie name in that profile, so I got confused.
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