Forum Discussion
Valentine_96813
Jan 30, 2012Nimbostratus
Forcing Priority Group Usage
When I was searching though priority group posts, I founf a refernce someone made to an iRule that will force incoming connections back from the secondary server when the primaries come back up. Here...
hooleylist
Jan 30, 2012Cirrostratus
Hi Valentine,
If you only want to use the sorry server(s) when the virtual server's default pool has no members, you can use an iRule like the one below. The VS pool will be checked on each HTTP request instead of per connection like you see with priority group activation. Update sorry_pool to the name of a second pool you create containing the sorry server(s).
when CLIENT_ACCEPTED {
Save the name of the VS default pool
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
Check if the VS default pool has any active members
if {[active_members $default_pool]}{
pool $default_pool
} else {
pool sorry_pool
}
}
Aaron
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