Forum Discussion
Florin_Andrei_2
Nimbostratus
Mar 09, 2010multiple pools with one virtual server
Situation:
Two data centers, A and B. Each one has a load balancer. Each load balancer has a virtual server. Each virtual server points to a local pool of servers.
So, vi...
Florin_Andrei_2
Nimbostratus
Mar 09, 2010So how about this:
when CLIENT_ACCEPTED {
if { ([active_members pool_A] < 1) and ([active_members pool_B] >= 1) } {
pool pool_B
}
if { ([active_members pool_B] < 1) and ([active_members pool_A] >= 1) } {
pool pool_A
}
}
Is there a better way to select the event than CLIENT_ACCEPTED? I'd rather not trigger the rule too often. Can I use LB_FAILED?
So, the way to use this iRule is:
- select the local pool as the default pool for the virtual server
- add this iRule to the resources used by the virtual server.
Correct?
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