Forum Discussion
rick_masselle_1
Nimbostratus
Sep 25, 2006redirect when all nodes in pool down
I am running 9.1.2 and I am trying to accomplish a redirect when all nodes are down.
I have tried fallback host , but works on any node down ( or not reachable
eg. timeout). I also tried LB:; Failed, but had similiar results?
My question to group is your opinion on following irule to redirect when all
nodes in pool down to error page.
TIA...Be gentle I am newbie at irules :-)
rule minmembers {
when HTTP_REQUEST {
if { [active_members VistaHttp] < 1 } {
HTTP::redirect http://so-mako.sysoff.ctstateu.edu/Vista-fa.nsf/VT-LBF?OpenForm
}
}
}
2 Replies
- Deb_Allen_18Historic F5 AccountThat's what I use... seems to work fine.
- William_Murphy1
Nimbostratus
Hi,
I am a very new person to irules but the item above interests me a lot. I am trying to implement a redirect above . What i am trying to do is, if 2 members in a pool fail(i.e. 3 members in the pool), then we should redirect all traffic to a new server which would be something like Http://172.24.38.17. The problem is that we need to pull the port for the redirect from the header of the messages. For instance in the messages will be "HOST: hello.hello.net:8003" it can also contain "HOST: hello.hello.net:8004". For these messages we should pull the port from this(i.e. 8003 or 8004) and redirect to Http://172.24.38.17:8003 or http://172.24.38.17:8004 depending on the incmoming message.
Any help would be great or if you need any firther clarification/.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
