Forum Discussion
mr_skater99_640
Nimbostratus
Mar 23, 2009Session Persistence
Hi all,
We are a group of developers in a larger organisation and recently we have been involved in a project that has required us to work a lot closer with our network engineers to configure our F5's for what we need.
We have some reasonably complex irules that after a bit of trial and error are functioning well.
What we are after now is session persistence.
The default setup within our organisation usually sets persistence to one of the application generated cookies - in this case jsessionid (tomcat).
This is fine in most cases from what we are told but we have a bit of a problem using this.
The problem we are seeing is that this cookie is not present until the second request. So the users first request will go through to server A, and then the second request may go through to server A or to server B (depending on the load balancing setup). The problem with this is the user has a session that was now created on server A and that is not recognised by server B. So server B gives you a new jsessionid and the Load balancer can then again either keep you on the same server B or flick you to server A upon your next request.
So, what we would like to do is have persistence based on a cookie that is set by the F5 on initial request so that we avoid the above situation. There are other situations where a application generated cookie will change and could cause errors depending on the load balancing algorithm in use.
How do we set up the F5's to create and persist on a cookie that they generated?
We are also told by our network engineers that the persistence setting is per F5 vip and not per pool - however we have seen doco to the contrary on here and other places on the net.
I just dont think our network guys have had the time to fully investigate the full potential of these devices and what they can actually do.
Please any guidance offered or links to doco would be greatly appreciated!
Thanks,
Scott
- bilsch_10068
Nimbostratus
This is a pretty simple task. You will want to create an http persistence profile such as this: - dennypayne
Employee
Posted By mr_skater99 on 03/22/2009 11:13 PM
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