Forum Discussion
slackwaresuppor
Nimbostratus
Feb 18, 2009temporary down page
is there anyway we can set a "default down" page in the f5 and apply it to a pool when we want to work on the machines etc??? like pool_db1 is down, so this page will be displayed..
4 Replies
- hoolio
Cirrostratus
Hi,
There are a few options for gracefully handling load balancing failures:
- You can configure a fallback host on the HTTP profile. LTM will send a 302 redirect to the client when a single request fails or when the pool is down. See SOL6510 (Click here) for details.
- You can configure additional servers at a lower priority to serve 'sorry page' content when the primary pool members are down. Try searching for 'priority group activation' on AskF5.com for details.
- You can use an iRule to send a redirect or HTML when the pool is down. Search the iRule Codeshare (Click here) for "maintenance" to see a few different examples.
Aaron - slackwaresuppor
Nimbostratus
we are doing network upgrades this weekend.. and our sites will be down, so we just wanted the f5s to display a "under construction page" - hoolio
Cirrostratus
If you want to respond to all requests to a VIP with a static HTML message, you can use HTTP::respond in an iRule and just add the rule when the maintenance starts and remove it afterwards.when HTTP_REQUEST { Send 200 response with some HTML and headers to prevent caching HTTP::respond 200 content { Site maintenance Site down for maintenance } Cache-Control: no-cache Pragma: no-cache Connection: close }
Aaron - JRahm
Admin
It's more than you are asking for in this case, but I just wanted to mention a new addition to the maintenance contributions on the code share. I haven't fleshed out the details in the wiki page yet (my wiki skills need some serious help), but Kirk Bauer wrote a perl script to grab your (understood, not you specifically) working sorry page and generate the iRules/classes necessary to replace that functionally on the LTM. If you run the script locally on the LTM, it'll even deploy for you. Cool stuff. :-)
http://devcentral.f5.com/wiki/default.aspx/iRules/LTMMaintenancePageGenerator.html Click here
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
