Forum Discussion
Kannan_Thalaia1
Cirrus
Sep 26, 2014Need a iRule for VIP connection limit
The idea is:
We want to limit the access to the load balancer to X number of concurrent users After X concurrent users, the system will not accept anymore connections Users which were on the ...
Arnaud_Lemaire
Employee
Sep 27, 2014two build in features could help, but it's not making sur current users are not impacted :
- Connection limit: Specifies the maximum number of concurrent connections allowed for the virtual server. Setting this to 0 turns off connection limits. The default is 0.
- Connection Rate Limit: Specifies the maximum number of connections-per-second allowed for a virtual server. When the number of number of connections-per-second reaches the limit for a given virtual server, the system redirects additional connection requests.
They are available per VS or per pool member.
If you want to go with an irule you can start from this one : https://devcentral.f5.com/wiki/iRules.virtual_server_connection_limit_with_HTTP_response.ashx.
You need then to add existing user concept by creating a table with either IP addresses or user's ID to bypass the logic.
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