Forum Discussion
bob3
Mar 15, 2023Altocumulus
iRule Help for Web front end and Backend Database server traffic to failover at same time
Hello, I am looking to create an iRule for Web front end and Backend Database server traffic to failover at same time. The current topology is 2 Front end web servers and 2 back end database server...
Daniel_Wolf
MVP
Hi bob3,
you can achieve this without iRules but with a good combination of health check monitors and priority group activation.
- Create two pools, lets call them pl_web and pl_sql. Add the web servers to pl_web and the db servers to pl_sql. Use priority group activation, to make sure all the traffic goes to the 01 server.
Do not add a monitor to the pool. - Create four health check monitors, one for each server.
You can do this by specifing the Alias Address in each monitor. This way the monitor will only check the server with the IP specified in the alias field. - Add the monitors to the pool members like this:
Web server 01 will have the monitor for itself and DB server 01
DB server 01 will have the monitor for itself and web server 01
Web server 02 will have the monitor for itself and DB server 02
DB server 02 will have the monitor for itself and web server 02
Go to Local Traffic ›› Pools : Pool List ›› pl_web. Click on the Members tab. Click on the first member.
Add member specific monitors as described above, two per server. Make sure Availability Requirement is All (default).
Repeat this for all four servers in the two pools.
With this configuration the web server 01 will go down if either itself or the DB server 01 fails. With priority group activation you make sure all the goes only to either one pair or to the other. And priority group activation will also ensure that the failback works.
KR
Daniel
bob3
Mar 16, 2023Altocumulus
Thank you Daniel. We will try your recommendations.
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