JJ_47859
Apr 21, 2008Nimbostratus
LB:server breaks my website
Hello,
We encountered a serious issue with out web application. I recently created an irule to redirect the users browser to an offline page if there were no servers available in the pool.
Here's the code:
when HTTP_REQUEST {
set mypool [LB::server]
if {[active_members $mypool] < 1 } {
log "all $mypool pool members are unavailable redirecting to maintenance page."
HTTP::redirect "http://offline.com"
}
}
Our some functionality of our web application broke after this code was implemented. I found that if I statically set the pool name then everything works.
Good code example:
when HTTP_REQUEST {
if {[active_members SERVERNAME] < 1 } {
HTTP::redirect "http://offline.com"
}
}
How can I find what LB::server is doing to break my web code?
Thanks.