Forum Discussion
paul_adomeit_70
Nimbostratus
Sep 28, 2006Round Robin two pools
We were asked to balance four servers in a pretty unique way. The way to make it behave like it was requested would be to create two pools with all four members but have different priorities assigned...
Sep 29, 2006
Something like this should do the trick...
when RULE_INIT {
set ::NEXT_POOL 0
}
when CLIENT_ACCEPTED {
if { $::NEXT_POOL == 0 } {
pool pool_a
set ::NEXT_POOL 1
} else {
pool pool_b
set ::NEXT_POOL 0
}
}This creates a global variable "NEXT_POOL" and then on each connection it toggles the pool to use.
I don't know how to get away without making use of a global variable.
-Joe
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
