Forum Discussion
iRule latency stats
Hi All
We have an iRule that looks into 2 data-groups to find different matches and deny or not http request based on that matches. One of the data-group could have about 500 entries.
The iRule work perfectly but we want to see how much load this iRule is causing on our LTM 1600. (Execution latency, CPU, MEMORY, and so on)
We modify the iRule to add sometings like this:
1st line of the iRule :
- set tempsirule0 [clock clicks -milliseconds]
Last lines of the iRule :
- set tempsirule1 [clock clicks -milliseconds]
- set delayirule [expr $tempsirule1 - $tempsirule0]
- STATS::setmax $::NOM_PROFILE "URL_Filtering_iRules_Delay(mm)" $delayirule
Is there a good way to look at the iRule execution latency ?
What about CPU utilization and memory? We want to make sure that everything work well when we'll have thousand of concurrent connections.
Thank you very much.
- Ian_SmithRet. Employee
The CPU cycles per execution can be recorded by making the first line of the rule
timing on
and using the command
More detail can be found in SOL6228: http://support.f5.com/kb/en-us/solutions/public/6000/200/sol6228.html Instead of using the first-line/last-line when you try to calculate latency, you should use the first line of the first event (CLIENT_ACCEPTED, for example) and the last line of the last event (CLIENT_DATA or HTTP_REQUEST_RELEASE, for example), since the rule isn't going to necessarily execute top to bottom on every connection. Also, recording the timestamps and doing the math will certainly add to the traversal time of the packet.show ltm rule
- Shun_Takahashi1Historic F5 AccountiRule Editor has a nice GUI to show you all the available stat for the particular iRule execution such that CPU clock cycle, latency so on. It's really cool stuff.
- Shun_Takahashi1Historic F5 AccountiRule Editor has a nice GUI to show you all the available stat for the particular iRule execution such that CPU clock cycle, latency so on. It's really cool stuff.
- netadmindetail_NimbostratusThank you very much for all those reply guys.
- netadmindetail_NimbostratusI found out some interesting stats in the Analytics module.
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