Forum Discussion
Awkrd1_7470
Nimbostratus
Jul 22, 2011Current connections not dropped when using command:discard
Hello,
I have a simple i-Rule implemented that is not doing what I expect it to do. I would like to discard any current or new connections to the pool (TCP reset) when the pool members <2. ...
Awkrd1_7470
Nimbostratus
Jul 25, 2011Thank you Matt!
Thank you Bhattman!
Changing the event is my next option, maybe something like this;
when SERVER_CONNECTED {
Check if the VS's default pool has at least 2 active members
if { [active_members [LB::server pool]] < 2 } {
drop/discard the current connections
discard
}
}
I am aware that the action on service down reset will provide the results I am looking for, but my pool is not down with a single node still available.
I'll need to lab using different events and commands and provide an update later.
Thanks again!
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