Forum Discussion
Philipp_Stadler
Nimbostratus
Hi,
do you really want to know the RTT, in my opinion this is only a TCP-related metric and this might not be useful for you (because maybe only the server is overloaded and TCP RTT will not increase very much).
So maybe you want to measure response time:
when HTTP_REQUEST_SEND {
set time_start [clock clicks -milliseconds]
}
when HTTP_RESPONSE {
set server_latency [expr {[clock clicks -milliseconds] - $time_start}]
do anything you want with $server_latency
}
If server load increases also the $server_latency will increase and you can make comparison to max allowed value.
Philipp
Philipp_Stadler
Feb 17, 2014Nimbostratus
oh, I forgot to mention that you can check the selected pool member with LB::server (https://clouddocs.f5.com/api/irules/LB__server.html) within HTTP_RESPONSE.