Hi Kevin,
I think this will work for you. If you run into any issues, check /var/log/ltm for debug output. You can add more debug statements to see what's happening. Once you're done testing, you can comment out the log statements to save resources.
when HTTP_REQUEST {
log local0. "[IP::client_addr]:[TCP::client_port]: New request to [HTTP::uri]"
Check if URI contains /forms
if {[HTTP::uri] contains "/forms"} {
log local0. "[IP::client_addr]:[TCP::client_port]: active members: [active_members SECOND_POOL]"
Use the second pool if it has available members
if {[active_members SECOND_POOL] > 0}{
pool SECOND_POOL
} else {
Second pool was down, so use the third pool
pool THIRD_POOL
}
}
}
Aaron