Forum Discussion
SSHSSH_97332
Nimbostratus
Oct 31, 2013IRule to Re-load Balance
i have 4 Servers at a pool , persistence is source IP
3 servers went down , so all connections went to Server1 , when the 3 servers came back all the old connections didn't go to them & continued on...
JRahm
Admin
Nov 01, 2013brain isn't quite moving yet this morning, but this might get you started. basically sets the active pool member count to a variable every 60s, and when a client connects, if its check of the current count is greater than the last count, it'll remove persistence for those clients connecting in the minute where a new pool member was added to the active list. That's the theory anyway.
when RULE_INIT {
after 60000 -periodic {
set static::counter [active_members /partition/pool]
}
}
when CLIENT_ACCEPTED {
if { [active_members /partition/pool] > $static::counter } {
persist none
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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