Forum Discussion
Jason_Hook_4092
Jun 28, 2011Nimbostratus
PERSIST at the pool level only
I have a single VIP that will have two types of users. I don't want to define URLs for both so I'd like to use the PERSIST functionality, but only to keep a session going to the same pool, and not specifically to a single node of the pool.
Documentation on PERSIST seems to show it's to a node only without any option to have pool persistence instead of node persistence.
Ideas?
One thought I had was to use standard PERSIST, but then try to split the persist lookup result and take only the pool name part and then set the pool after the persist statement in order to force it to the pool and not just one node. Would this work?
Are there any examples online or can someone share? Maybe this isn't even possible...let me know!
Thanks!
- The_BhattmanNimbostratusHi Jason,
- hooleylistCirrostratusOnce you figure out how to differentiate between the two sets of users, you can insert a session cookie in responses to track when a user has been assigned to one pool or another. On requests you can look for that cookie value to get them back to the same pool. You wouldn't need to use the persist command for this.
- Jason_Hook_4092NimbostratusI created an iRule for selecting the proper pool based on who's making the request, but now I have a question....we use a VIP for multiple products, each running in their own IIS app pool. One of them uses a long-running HTTP request for doing a publish/subscription type transaction where we push an update out the connection...which is using the PERSIST function to stay on a single server in the pool (the PERSIST iRule is watching for "/streamer" requests only).
- Ryan_Paras_7933NimbostratusI don't think I understand all the pieces to answer your question - but you might want to look at the discussion at the bottom of http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/130/iRules-101--05--Selecting-Pools-Pool-Members-and-Nodes.aspx for some guidance.
- Colin_Walker_12Historic F5 AccountIf your iRule is specifically looking for requests only bound to a particular URI, and the requests using the standard persistence aren't bound for that URI, then there shouldn't be any crossover, should there?
- Jason_Hook_4092NimbostratusI will actually need to hybrid the two together, but keep them separate. I'm sure that makes a lot of sense.
- Colin_Walker_12Historic F5 AccountThat should be very doable. All you need is to identify how to single out the requests for client A vs. your normal requests, and how you want to do persistence, then mush those two together. ;)
- Jason_Hook_4092NimbostratusYeah,
- Jason_Hook_4092NimbostratusHow would I abandon/exit the iRule as a whole?
- Colin_Walker_12Historic F5 AccountSo the /streamer portion is easy to identify. How do you identify client A vs. not client A?
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