Forum Discussion
telsonalva
Nov 22, 2021Nimbostratus
Calculate time taken for an HTTP request-response
Hi All, Need help with my iRules, basically i am trying to calculate the time take when the F5 receives a request and sends it to the client. This gives me the time for how long the request took on ...
jaikumar_f5
MVP
I use the below snippet for troubleshooting latency stuffs.
when HTTP_REQUEST {
set http_request_time [clock clicks -milliseconds]
}
when HTTP_REQUEST_SEND {
set irule_proc_time [expr {[clock clicks -milliseconds] - $http_request_time}]
}
when HTTP_RESPONSE {
log local0. "Irule-proc-time=$irule_proc_time;Response Time-taken:[expr {[clock clicks -milliseconds] - $http_request_time}]ms"
}
Capture for every URI and its content length, see which is causing time to load longer.
telsonalva
Nov 22, 2021Nimbostratus
Thanks, its the same logic that i have, i do not understand how the time taken on LB1 can be lesser than LB2 when the request flows from LB1->LB2.
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