Forum Discussion
Romel_77740
Nov 15, 2011Nimbostratus
irule performance question
Is it better to have 10 different irules applied to the same virtual server that do similar thing or is it better to combine in one script? Or either way doesn't matter? Eg pseudo scripts with 26 iru...
Michael_Yates
Nov 16, 2011Nimbostratus
Hi Romel,
If multiple iRules are applied to a Virtual Server the iRules are "combined" at runtime by the iRule Priority assigned to the iRule.
If no priority is set then the iRules per event are added in the order that the iRules are applied to the Virtual Server.
iRules with no Priority Applied -
iRule 1:
when HTTP_REQUEST {
do something...
}
iRule 2:
when HTTP_REQUEST {
do something else...
}
They would be processed as:
when HTTP_REQUEST {
do something...
do something else...
}
The same holds true for other events. So it is a matter of what works best for you.
Hope this helps.
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