Forum Discussion
Lee_Jong_su_488
Nimbostratus
Apr 10, 2012connection limit on VS and redirect page
Hi All,
I'm trying to make a irule for connection limit on VS and redirect page.
in example.
when the connection limit is a 1000 on Virtaul Server . if the connection of 1001 on virtaul server is coming , that would redirect to redirction page.
do you have some ideas?
Many thanks in advance.
2 Replies
- Antony_413
Nimbostratus
On the VS configuration there is a MAX connection limit,
As you are using http, a http_profile could specify a fallback page URL. This is normally used for when the pool is unavailable, but I'm not sure if it would trigger in this case; try it and see.
Failing this, with a bit of research the VS connection limit variable and current connections variable may be available to reference insid ethe iRule: (PSEUDO CODE BELOW, THIS IS NOT TCL)
when HTTP_REQUEST {
if [ $CURRENT_CONS > $VS_CONN_LIMIT]
{
HTTP::redirect https://my.domain/too_many_connections_page.html
return
}
or similar?
} - nitass
Employee
these might be useful.
v10.1 - The table Command - Examples by Spark
https://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=2383
iRule::ology - Table Based Rate Limiting by Colin
https://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/1086416/iRuleology--Table-Based-Rate-Limiting.aspx
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
