Forum Discussion
Erki_Märks_2779
Nimbostratus
Nov 29, 2007Bea Weblogic persistence
We are using bigip with Weblogic cluster. Since session is replicated only on 2 nodes, we had to find a solution that knew the additional server where the original session was replicated and if the pr...
Deb_Allen_18
May 08, 2008Historic F5 Account
nice, thanks for the post.
I've been noodling with this idea off & on for the last year without an environment to test in, looks like you may have nailed it.
Regarding optimization:
You probably want to take a look at this article Colin recently wrote about polymorphic operators (Click here) and replace some of them with the appropriate string operators where ever string-only comparisons take place.
And I agree with Colin on eliminating the regex ops as much as possible. While it seems like a trivial choice, (especially if you are as comfortable with regex as you obviously are), the cost of firing up the regex engine is apparently obscenely expensive in comparison with the alternatives, especially the iRules native comparison operators, so you might consider using them in place of your 2 "switch -regex's"
I'd replace:
switch -regexp $uri {
mainservlet {with switch -glob $uri {
*mainservlet* {only if you need to match multiple URI's. Otherwise use the even more efficient
if { $uri contains "mainservlet"} {for a single test like this.
I'd also replace:
switch -regexp [HTTP::status] {
50[0-3]$ {with if { [HTTP::status] starts_with "50"} {
HTH
/deb
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
