Forum Discussion
Irule for getting total response time, server response time and server connection time
A few comments:
-
If you look at the actual order of events (on a v11 system), it should flow like this:
CLIENT_ACCEPTED HTTP_REQUEST LB_SELECTED SERVER_CONNECTED HTTP_REQUEST_SEND HTTP_RESPONSE HTTP_RESPONSE_RELEASE
Your connection_time measurement is taken from the current time at SERVER_CONNECTED minus the LB_SELECTED time, which should just be the time it took to establish the 3-way handshake with the server. Assuming the "total response time" you're referring to is the calculated upstream_time, then it is certainly possible that a server side 3-way handshake could take longer than the actual request/response to that server (unlikely but not impossible) as the two aren't really related. This is part of the charm of OneConnect.
- You won't get the same granularity, but the request logging profile will give you response size and response milliseconds (The elapsed time in milliseconds between receiving the request and sending the response) in an HSL logging profile without an iRule.
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