Forum Discussion
hooleylist
Oct 15, 2008Cirrostratus
Hi Shay,
You can use active active_members $pool_name to get a count of the active members:
when HTTP_REQUEST {
Check if there are more than x members marked up in the default pool
if {[active members [LB::server pool]] < 3}{
HTTP::respond 302 "Location" "http://redirected.example.com/busy" \
"Connection" "Close" \
"Cache-Control" "no-cache" \
"Pragma" "no-cache"
}
}
LB::server (Click here)
active_members (Click here)
Aaron