Forum Discussion
Chris_Olson
Nimbostratus
Jan 06, 2011Saving sessions during server failure
We have an applilcation running on .net and our dev group is working on trying to write session persistance. I KNOW the F5 can do this, but need to get them started. I am not a developer but have worked with some basic irules, etc. Currently, when users are logged on to a server and that server goes down or is removed from the pool due to a health monitor, they lose their session. They have to close their browsers, then log in again and start over. Currently our application runs using the In-Proc configuration where sessions are kept as live objects in web server (aspnet_wp.exe) thus, when the webserver crashes all the sessions are also gone and users can’t continue with what they're doing. Ideally, we want to be able to cache their sessions so when they are bounced to another server in the pool, they can resume where they left off. What is the best way to do that? The standard cookie or source persistance profiles don't save their work in the application. Can F5 do this or does it need to be written into the application? Action on "Service down" is set to "Reselect."Any suggestions are appreciated. Thanks, Chris
8 Replies
Sort By
- hoolio
Cirrostratus
Hi Chris, - Chris_Olson
Nimbostratus
I thought perhaps we'd be able to mirror/cache the sessions somewhere on the F5 but it looks like their proposal to add a separate server to hold all the state session objects is the way to go. Thanks for setting me straight. - rjordan
Nimbostratus
Hey Chris, - Chris_Olson
Nimbostratus
Thanks for your input. I really am interested in how they plan to do this. I assume you are still using the F5 to load-balance the inistial connection. Is that correct? There is a grey area here on how the F5 and the session state load-balancing occurs without stepping on each other. Any generic documentation or links on how this occurs would be appreciated. - Chris_Olson
Nimbostratus
Hi Aaron,
- hoolio
Cirrostratus
The significant changes I was referring to was how to sync the application session data between the application servers. If the application owners are able to share the application session information across different application instances (possibly using MSSQL as rjordan suggests), you probably wouldn't need to use persistence on LTM. You definitely could, but it shouldn't matter which app server gets the request if all of the pool members know about the client's session. - Chris_Miller
Altostratus
Lori MacVittie wrote a great article about Session State with the message being that the DB is a great place for this. - Chris_Olson
Nimbostratus
Thanks Chris. Good infromation and a good article which makes it easy to understand. We will be testing the OneConnect profile.
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