Forum Discussion
prasadpkulkarni
May 10, 2011Nimbostratus
Thank 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
}
}