Forum Discussion
hooleylist
Jun 27, 2008Cirrostratus
Do you have a default pool on the VIP? Using the rule you posted above, you're not explicitly specifying a pool for requests which don't match the first condition.
when HTTP_REQUEST {
if { [matchclass [HTTP::uri] starts_with $::MyURI] } {
if { [active_members Pool2] > 0 } {
pool Pool2
} else {
pool Pool1
}
} else {
pool Pool1
}
}
Or combined:
when HTTP_REQUEST {
if { [matchclass [HTTP::uri] starts_with $::MyURI] and [active_members Pool2] > 0} {
pool Pool2
} else {
pool Pool1
}
}
Aaron