-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HystrixDashboard - doesn't seem to display the right TPS #1251
Comments
Yeah, I definitely agree with your explanation. Thanks for the explanation. I'd be happy to review a PR for a fix here - this looks like a bug to me. |
Closed via #1253 |
What about TPS calculation for thread pool? Now it differs from calculation for commands. Should be the same. Please also see my comment: spring-cloud/spring-cloud-netflix#1113 (comment). We introduced incompatibility with Turbine. |
Which versions of hystrix and which versions of turbine (as spring cloud release) are not compatible? |
I am using the version 1.1.2.RELEASE of turbine stream and I think the dashboard has an issue. Let me know, if I am wrong or not.
Here is an example of the data that I got from the turbine stream
Here is the extracted interesting data:
propertyValue_metricsRollingStatisticalWindowInMilliseconds: 10000
reportingHosts: 17
-- As it is described this will get summed across instances in a clusterrequestCount: 2597
If I am looking the code in the
hystrixCommand.js
file I can find the following methodThe
convertAllAvg
method updates thepropertyValue_metricsRollingStatisticalWindowInMilliseconds
value in the following wayAfter this call, the
propertyValue_metricsRollingStatisticalWindowInMilliseconds
is set toMath.floor(10000 / 17) = 588
So now, the TPS is starting to be wrong.
(1) numberSeconds = 588 / 1000 = 0.588
(2) totalRequests = 2597
(3) ratePerSecond = 2597 / 0.588 = 4416
(4) ratePerSecondPerHost =
2597 / 0.588 / 17 = 259
It should be
(1) numberSeconds = 10000 / 1000 = 10
(2) totalRequests = 2597
(3) ratePerSecond = 2597 / 10 = 259.7
(4) ratePerSecondPerHost =
2597 / 10000 / 17 = 15.27
In conclusion we should remove the line
Let me know if I am wrong.
The text was updated successfully, but these errors were encountered: