Forum Discussion
sub-pools for failover?
That way you could have the iRUle round robin between the pools, and have each clustered pair in its own pool. When one member of either pool went down, the failover would be handled by the pool's configuration. The iRule would just keep passing requests to each pool in turn and the remaining operational node would get the traffic.
Basically two layers of round robin load balancing, does that make sense?
The iRule would be quite straightforward. Assuming you're talking about an HTTP application it'd be something like:
when HTTP_REQUEST {
if { $myPool equals "pool1" } {
set myPool "pool2"
} else {
set myPool "pool1"
}
pool $myPool
}
HTH,
Colin
I'm reading that the above is an illustrative example. I'm surprised it is at a HTTP_REQUEST event and it isn't clear how the persistence is carried and on failure that the selection is in the same pool. But perhaps it doesn't matter since the persistence will dictate the member for the requests once it has been established and this code in the HTTP_REQUEST doesn't alter that.
Okay then to complicate it if all members of one pool are unavailable - become unavailable it needs to select a member of the other pool. If the pool is explicitly stated then how does it know what the 'fallback' pool is for the other group? Thanks!!!!
Recent Discussions
Related Content
* 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