I tried to add cookie persistence to the irule to no effect:
when HTTP_REQUEST {
if { ([matchclass [string tolower [HTTP::header User-Agent]] contains $::bots])
or
([ matchclass [ IP::client_addr ] equals $::bot_ips ]) } {
is a bot .. send to the bot server
pool MIS-BOT20-01
} else {
regular traffic
switch [URI::query [HTTP::uri] "lbsc"] {
"" {
pool MIS-WEB20-1
}
"c" {
persist cookie
node 10.60.1.234
}
"d" {
persist cookie
node 10.60.2.104
}
"e" {
persist cookie
node 10.60.2.124
}
"f" {
persist cookie
node 10.60.2.6
}
"g" {
persist cookie
node 10.60.2.55
}
"botc" {
persist cookie
node 10.60.1.134
}
"botd" {
persist cookie
node 10.60.2.34
}
default {
pool MIS-WEB20-1
}
}
}
}