Forum Discussion
danielpenna
Jun 25, 2014Cirrus
Best Practice - Maintenance Pages when LB_Failed
Hey Guys,
Historically we have provided our users with the below iRule to through up a maintenance page when the pool/members fail. We have been caught out just recently when a dozen sites go...
Matt_Breedlove_
Jun 25, 2014Nimbostratus
If you want to reference the default pool that is associated with the irule on a VS, then you can just use [LB::server pool]
when HTTP_REQUEST {
if {[active_members [LB::server pool]] < 1 } {
HTTP::respond 200 content
}
}
If you want to send the connection to an alternate pool when the default pool is down, but not use a pool name, you can use an HTTP::redirect and just manage the maintenance pool via it's own VS and Dns entry. You could also setup a global static variable that all irules can access on an LTM system with a value of the alternate pool
Hope this helps
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