Forum Discussion
prasadpkulkarni
Nimbostratus
Apr 20, 2011HTTP health monitor using iRule
Hi
Need help to configure Health Monitor using iRule
- We have two web Servers in Active / Standby mode , running three websites on each server (on three seperate IP with IP Bindings)...
prasadpkulkarni
Nimbostratus
May 10, 2011Thank you all for your valuable suggestions on my requirement !!
Finally I could achieve this with little different approach with the help of F5 supports of course !!
I split the pool into active & standby nodes and then I configured iRule to detect active members in the pool with the help of health monitor for individual pool.
below is the iRule for this config.
VS1->pool1->site1-active
VS2->pool2->site2-active
VS3->pool3->site3-active
pool4->site1-standby
pool5->site2-standby
pool6->site3-standby
For irule, there are three irules and should be applied to VS configuration seperately.
1) iRule1-->VS1:
when HTTP_REQUEST {
if { ([active_members pool1] < 1) or ([active_members pool2] < 1) or ([active_members pool3] < 1) } {
pool pool4
} else {
pool pool1
}
}
2) iRule2->VS2:
when HTTP_REQUEST {
if { ([active_members pool1] < 1) or ([active_members pool2] < 1) or ([active_members pool3] < 1) } {
pool pool5
} else {
pool pool2
}
}
3) iRule3->VS3:
when HTTP_REQUEST {
if { ([active_members pool1] < 1) or ([active_members pool2] < 1) or ([active_members pool3] < 1) } {
pool pool6
} else {
pool pool3
}
}
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