Forum Discussion
amolari
Mar 25, 2015Cirrus
Maybe the following?
- route adv. will stop when the VS is down
- trick is to bring the VS down if < 2 pool member (not standard behaviour: down if all)
If we create a new "status VS" (with reserved IP, port 80) and apply a similar Irule to it
when HTTP_REQUEST {
if { [active_members ] <= 1 } {
log local0. "not enough members in pool "
HTTP::respond 503
}
else {
log local0. "enough members in pool "
HTTP::respond 200 content "UP"
}
default {
HTTP::respond 503
log local0. "monitor check error"
}
Then we put the pool members to this VS
We add a HTTP monitor (with specific IP/Port of "status VS") to the original pool and require all monitors to be UP