msullivan_61147
Apr 07, 2010Nimbostratus
Remove persistence for downtime site
I need some help with persistence for our sites.
We are using Weblogic as our app server, so we want to set persistence on a JSESSIONID in a cookie.
I created the following iRule:
when HTTP_RESPONSE
{ if { [http::cookie exists "JSESSIONID"] }
{ persist add uie [http::cookie "JSESSIONID"]
}
}
when HTTP_REQUEST
{ if { [http::cookie exists "JSESSIONID"] }
{ persist uie [http::cookie "JSESSIONID"] }
}
I have set up my virtual server to use the iRule as the default persistence profile. I then added two pool members that point to our application. The JSESSIONID shows up in the persistence statistics and our app jsp pages work fine.
Now I want to add a third member to the pool. This points to a downtime page which just displays HTML. I configured the two app members with priority group 30, set the downtime member to priority group 10 and enabled Priority Group Activation for less than one.
If both app members go down, the downtime page will show up. The problem is that the persistence applies to the downtime site. When the app members come back up, the downtime page still shows up until the persistence rule expires.
Is there a way to modify the iRule to remove the persistence rule from the downtime member? I know there are a few other ways of doing downtime/maintenance pages, but they don't work well for our environment.