Forum Discussion
Algebraic_Mirror
Cirrostratus
Nov 12, 2019LTM Traffic Policies vs iRules: Which runs first?
If you create an LTM traffic policy that has a rule operating at request time, and you create an iRule with a "when HTTP_REQUEST" event declaration, and you assign them both to the same virtual serve...
- Nov 14, 2019
is correct, and the article link shows evidence and a test policy and iRule if you want to try it for yourself, but for clarity here, beginning with the introductions of policies in 11.4 the policy will always fire first and that cannot be modified.
JRahm
Admin
Nov 14, 2019Yes, in context of when the traffic is being processed by TMM, the policy fires first and then the iRule. Here's the log entries from the article given similar policy and iRule on same virtual server:
[/Common/http_event_order/policy_rule_logging]: Client Accepted Timestamp: 1532565045277
Rule /Common/http_event_order <CLIENT_ACCEPTED>: Timestamp: 1532565045278
[/Common/http_event_order/policy_rule_logging]: Request Timestamp: 1532565045279
Rule /Common/http_event_order <HTTP_REQUEST>: Timestamp: 1532565045279
Rule /Common/http_event_order <HTTP_REQUEST_RELEASE>: Timestamp: 1532565045282
[/Common/http_event_order/policy_rule_logging]: Response Timestamp: 1532565045285
Rule /Common/http_event_order <HTTP_RESPONSE>: Timestamp: 1532565045285
Rule /Common/http_event_order <HTTP_RESPONSE_RELEASE>: Timestamp: 1532565045285
Algebraic_Mirror
Cirrostratus
Nov 15, 2019Perfect! Thank you !
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