'How is the jenkins slave response time calculated?

My Jenkins slaves are online. It's the response time showing in node list that puzzles me how the response time is calculated. Some response time is higher than 18000ms. some is normal around 50-60ms. I ping'ed from the slave server to jenkins master. The result is normal and never be like higher than 18000ms. I need to display the slave response time to our system users so that they can at least know their network status quo, network performance, now the bizzare ping result is far different lower than the response time showing in jenkins ndoe list.

  1. Can someone explain me how that response time is calculated ?
  2. Or can someone direct me to the source code jenkins slave response time is calculated, is it different from ping ?


Solution 1:[1]

  1. Can someone explain me how that response time is calculated ?
  2. Or can someone direct me to the source code jenkins slave response time is calculated, is it different from ping ?

The response time is different from a normal ping time.

  • Ping is the latency between two nodes for the data to travel.
  • Worker response time is the time to get a response to a command sent from the controller (earlier called master) to a worker (earlier called slave) which goes through the Jenkins remoting layer.
    Thus, it is a kind of ping through the remoting layer.

Why response time is shown high?

Jenkins has a set time period in which it checks for the response time with workers.
Now, if this time overlapped with the time when the worker is running intensive operations then the response to the commands might be delayed.
You can use the "Refresh status" button on http:///computer to calculate this time on-demand & check.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Prasad Tamgale