Forum Discussion
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
}
}
}