Forum Discussion
mpfeifer_63884
Nimbostratus
Nov 12, 2009redirect part of the traffic
Hi. This is my first post in this forum, I'm not sure if it is the right topic, but as it might involve complex iRuling, I give it a try to post it under "iRules".
We have a difficult i...
James_Quinby_46
Nov 12, 2009Historic F5 Account
So, to make sure I understand:
For every 100 requests that come in, 3 of them need to have a 302 issued in order to redirect the browser somewhere else.
One way to accomplish this is to apply a STATS profile to the virtual server, than increment the counter as needed via an iRule.
Take a look here for an example of using a STATS profile for reporting:
http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=66
...here, for a look at the STATS::incr commmand
http://devcentral.f5.com/Wiki/default.aspx/iRules/STATS__incr.html
...and here for a rule that grabs info from the STATS data for decision making (in this case, whether or not to display a 'under maintenance' page:
http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=70
I'm going to fire up my lab box in a little while, but I think this should be fairly straightforward, assuming I have your requirement correct.
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