Forum Discussion
Jack_H_39707
Nimbostratus
Apr 30, 2010Is there an IRules to control active connections?
Dear all, I am very new to F5 and would really appreciate if any of the members here could help me.
Is there an IRules which allow F5 to control the active connections? Meaning, If I allowed 20 c...
anthony_102289
Nimbostratus
Jun 17, 2010That looks great Bhattman! I am wondering what ways there are to remotely modify the global variable max_active_clients. I've worked out two ways but not sure if there is a better way,
1 - Use iControl to delete and recreate a dummy irule. On the creation of the irule it will automatically run the RULE_INIT routine and modify the global variable.
iRule - Dummy_Rule
when RULE_INIT {
set ::max_active_clients 30
log local0. "Changing max_active to $::max_active_clients"
}
2 - Use a data group to keep the variable and modify it with iControl. In this example MAX_USERS is a data group with one element.
Likely would need to move the creation of the variable into the "when HTTP_REQUEST" routine.
when HTTP_REQUEST {
set ::max_active_clients [class element 0 MAX_USERS]
Anthony
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
