Forum Discussion
FAZ_79699
Nimbostratus
Feb 13, 2012Using App server as monitor for Web Server
Hello iRulers,
We have a web pool with two members. Having a requirement to put a web node down in pool when corresponding app server goes down (put web1 down when app1 goes down and vice versa) and to to implement the logic, I am thinking of the following iRule,
Rule1
if { [active_members pool-having-only-one-app-server-node1] == 0 } {
use node ip-of-the-other-web-server2
}
}
Rule2
if { [active_members pool-having-only-one-app-server-node2] == 0 } {
use node ip-of-the-other-web-server1
}
}
These rules would instruct the VS to use the other node (web2 if app1 is down)
Is there a simple logic anyone can think of to implement this?
Is there a posibility to use health of "app node" as a health monitor for web node?
Thanks.
- FAZ_79699
Nimbostratus
Hi all, can some one look my request above please... - FAZ_79699
Nimbostratus
Hi all, can some one look at my request above please... - FAZ_79699
Nimbostratus
Hi all, can some one look at my request above please... - FAZ_79699
Nimbostratus
I think instead of use node ip-of-the-other-web-server1 - FAZ_79699
Nimbostratus
Made it work via creating a monitor out of the app server and associated it to the web node. - nitass
Employee
Having a requirement to put a web node down in pool when corresponding app server goes down (put web1 down when app1 goes down and vice versa) have you tried to specify Alias Address and Service Port in health monitor? monitor does not always have to check pool member which the monitor is assigned to. - FAZ_79699
Nimbostratus
Exactly. Thats how I made it deliver required logic. - nitass
Employee
you are welcome. :D
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