mlamutt_62697
Feb 17, 2012Nimbostratus
Display a maintenance page when a GTM pool member is disabled
Hi all,
I am trying to create an Irule that will display a maintenance page (or custom 404 for each LTM) when a GTM pool member is disabled.
Here is some background:
We are running 3 ltm/gtm combo units, where the GTMs are synced, but the LTMs are not. We have found that when we disable a GTM pool member to route traffic to the other 2 members, we are still getting a small set of users that are still hitting the disabled site. These requests are coming from sources that are using hardcoded LTM Virtual Server IPs. We do not want to force these users to a "live" datacenter, but we do want to display a custom page maintenance page. Is this possible? I started working on this and came up with this failed attempt:
when HTTP_REQUEST {
if { not {[active_members -list ] contain "GTM member Address" }} {
HTTP::respond 200 content "
"HTML text here"
log local0. " GTMPool member disabled"
}
}
Thanks,
Mike