Forum Discussion
skunk69_85565
Nov 06, 2007Historic F5 Account
need to insert new info into HTTP query or uri
Hi everyone,
I need some advice here, please.
I am currently developing an iRule which will in the end send user requests to different pools based on IP addr, user agents, an exist...
hoolio
Cirrostratus
Nov 06, 2007If you're setting the pool, you will need to get the user back to the same pool in your rule in order for persistence based on the pool members to work. Based on what you've posted so far, I assume the AB_test cookie will be sent in all requests.
Once you select the correct pool, you have two options. Deb posted some good info on this (Click here).
- You can configure a cookie insert profile with a default cookie name and not do anything with persistence in your rule.
- Or you can create a custom cookie insert persistence profile for the two pools. You could then specify a separate persistence profile per pool using the persist command (Click here) inside the block where you set the pool.
if { $qstring starts_with "A"} {
pool poolA
persist cookie insert poolA_cookie_persist
log local0. "send to poolA"
return
}
elseif { $qstring starts_with "B"} {
pool poolB
persist cookie insert poolB_cookie_persist
log local0. "send to poolB"
return
}
Aaron
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