Forum Discussion
Execute iRule first
Hello,
I have some rules assigned to some VS. Then I want to assign another at a runtime and I want to be sure that when somebody request my VS the new iRule will be executed first.
Best regards.
4 Replies
- The_Bhattman
Nimbostratus
Hi Velina,
If you have separate iRules, then can priorities each rule under the iRules Management of the VIP. If you are talking about which events in a single irule fire off then take a look at the following link
https://devcentral.f5.com/wiki/iRules.priority.ashx
I hope this helps,
-=Bhattman=-
- Velina_Yankova_
Nimbostratus
Hello,
I have different rules, so could you explain me in more details how excatly to do this prioritization?
BR
- Brad_Parker
Cirrus
By default each event has a priority of 500. If you an iRule or multiple iRules attached to a VIP with the same event more than once, by default they will be evaluated in the order of the rules order in the config. To change this behavior you can add a priority to the events in your rule/s. i.e.
The range is 0-1000 for the priority with lower numbers being evaluated first.when HTTP_REQUEST priority 100 {do something} - Velina_Yankova_
Nimbostratus
Okay, how can I add the new iRule at first place, so i can be evaluated first?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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