Forum Discussion
crush09_18103
Nimbostratus
Aug 30, 2012Need help with IRULE,
So here is the scenario. We have a "production website" in one facility. We have a "maintenance website" in another facility. They want to be able to be able to change the response on a webpage withi...
Michael_Yates
Nimbostratus
Aug 30, 2012Hi crush09,
You could simlify things somewhat with a custom health monitor to mark the nodes down if they change the content to "down". Then just have an iRule that monitors the Active Members. If the number of active members is zero, redirect to a sorry or maintenance page.
This would negate the persistence since there would be no active members to persist to (and you could ensure this by adding a "persistence none" statement in the redirect to the maintenance page.
See this post for a picture and more info on how to configure the Health Monitor (in this image example I check a specific file for the response so that the Website Owners could just change the content of one file to enable or disable an individual node to remove it from the pool, so it adds additional functionality on controlling which nodes take traffic. This would mean that they would need to change this on all nodes if they wanted to redirect the entire site to the maintenance location):
Monitor receive disable and persistence
See the Wiki Entry for active_members to see how to check the number of active members (in these examples just change the pool settings to a redirect to the maintenance or oops page location).
Hope this helps.
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