Forum Discussion
anujl_5566
Nimbostratus
Jun 26, 2018iRule to select between multiple pools based on cookie and still use persistence for default pool
Hello Community,
I have a use case where one of the applications is transitioning from one kind of application server to another. During this transition, I need an iRule to send traffic to a sub...
Lee_Sutcliffe
Nacreous
Jun 27, 2018You should be able to do this as part of a policy as it is computationally more efficient. However you could use an irule such as this to select your pools based on a cookie value:
when HTTP_REQUEST {
if {[HTTP::cookie exists "APP_S"]} {
if {[HTTP::cookie value "APP_S" eq "Type_1"]} {
pool Pool_Type_1
} elseif {[HTTP::cookie value "APP_S" eq "Type_2"]} {
pool Pool_Type_2
} else {
pool Pool_default
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
