Forum Discussion
mlick2
Nimbostratus
Mar 17, 2006Downtime redirect
I am trying to figure out the best way to redirect an application when it is determined to be down. This unfortunately has to be a manual process in determining if the app is down or not. What we would like to do is have the load balancer look for a file on a web server that will be put in place when we consider the app down, and when it sees that page up, it will direct users to that web site rather than the actual application pool. Can someone please lead me in the right direction. I would expect that I need an I-Rule for that virtual server stating something such as:
Example:
Use poolA (app down page) if true
else
Use poolB (normal appliction)
Please let me know if you need additional information.
Thanks in advance for your assistance.
- JRahm
Admin
actually, that can be done without rules. You can create a custom monitor to look for the page, and mark the pool member down if present. Redirection can be done without rules by setting a fallback host that will kick in when all pool members are down. - mlick2
Nimbostratus
Thank you for the quick response. Fallback host will work for us when all the hosts are down. But we also want to be able to redirect while the pool is still up when it is deteremined that the back end application is down. - JRahm
Admin
Ok, sorry, misunderstood. Is the middleman a webserver? If so, you can use a reverse http monitor that is UP while the condition is NOT met. Configure the action on service down to reselect and you should be fine.monitor my_http { defaults from http reverse recv "APPLICATION IS DOWN!" send "GET /yourpath/yourfile.txt" }
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