Forum Discussion
Mark_58201
Nimbostratus
Dec 29, 2008Redirect to another Website Irule Problem
I'm very new to writing iRules. We have BigIp's with v4.5.11 Build 147. What we would like to do is the following:
Two web servers are both down, or the backend database is down which is se...
hoolio
Cirrostratus
Jan 02, 2009If the main pool members are using SSL re-encryption, then the lower priority pool members will also need to accept HTTPS connections in order to accept the BIG-IP connections. I can't see a way around this as you cannon dynamically disable encryption within a single pool if the higher priority members are down.
As far as redirecting if the database is down, here is the logic I'd use in 9.x. I don't have a 4.x box to look at to confirm this is possible in 4.x, but I think it's possible. You could create a page on the higher priority members which generates an UP message in the response body if that web server is able to talk with the database. If the connection from the web server to the db goes down, or the server can't get a valid response from the DB it would display a DOWN message for the monitor page. You could then configure a BIG-IP monitor to check the specific page on the web server for an UP message. You'd want to associate the monitor with just the higher priority pool members so that if the DB is down, the higher priority members will be marked down.
Aaron
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
