Forum Discussion
benbenben_9082
Feb 18, 2008Nimbostratus
Advice on matching URI's
Hi,
I am using an F5 for quite a large website. I need to direct visitors to certain pages over SSL (I terminate SSL on the F5) and bounce them back to normal HTTP when they leave that part...
Nicolas_Menant
Feb 18, 2008Employee
Hi,
Regexp is more expensive in CPU that other command but may be worth sometimes. Huge and long regular expressions is expensive but from my understanding the different regular expression you'll use shouldn't be too complex. After it will be a question about how much traffic will be processed, what is the your CPU's level right now, etc...
You should try to use your matchclass command with matches_regex, never tested to put regexp in a class but if it works may be interesting to test it.
Moreover, you may use "switch -glob (or -regexp)" if you had to make long statement, it will be more efficient(than a sequence of if/elsei) and you can use regexp if needed (with the -regexp command). From my understanding you'll probably more need the -regexp option than glob.
Here is an example:
http://devcentral.f5.com/Default.aspx?tabid=53&view=topic&forumid=5&postid=8740
If you need to evaluate the impact on performance of what you will try i would recommend to have a look at this article:
http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=123
It is a guide to know how many cpu your irule will use (average value)
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