Forum Discussion
ghost-rider_124
Nimbostratus
Apr 12, 2014Disable Pool Member and Persistence session should die??
Hello Experts
If I manually disable pool member then the persistence session would remain on that pool member? If I want, clients in persistence table should move to other available pool member ...
Apr 13, 2014
This is untested, both in practice and in syntax. but you can give it a try. 🙂
when HTTP_request {
set pool "MyPool"
Check if a server has been chosen and if the pool is the right one.
if { [LB::server addr] and [LB::server pool] -eq $pool } {
Check the status of the selected member and reject the connection if it's disabled
if { [LB::status pool $pool member [LB::server addr] [LB::server port]] eq "session_disabled" } {
reject
}
}
}
If you want the rule to also cover when the pool is down you can add an "or" to the "if" statement.
/Patrik
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