Forum Discussion
Irule to failover between two sites based on return string respone.
Here's a simple way to do this:
a) Create a pool that uses Global Availability as the load balancing method.
b) Assign your VS's to the pool, not as LTM related VS's, but as generic HTTP virtual servers. Put site1 as the first member in the pool, site2 as the second.
c) Create a custom HTTP monitor, looking for the string "site2 up", but make it a reverse monitor (meaning it will return 'Up' unless the target string is seen), and apply that monitor to the site1 VS.
This will have the effect of always using site1, unless the monitor returns the string "site2 up", at which point, the second pool member (the site2 member) will be used.
No need to use an iRule.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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