spring-cloud-dashboard icon indicating copy to clipboard operation
spring-cloud-dashboard copied to clipboard

Hystrix.stream

Open pakizito opened this issue 9 years ago • 4 comments

Good afternoon, I came across a strange problem with the dashboard, which is a big problem for me and I've done some investigations and found the probable cause. When I select an application, the dashboard queries the hystrix.stream on that instance to make enable or disable the button, but this have a huge impact on hystrix stream because the stream actually is never closed and then after some time I get a max reached on the poller of the hystrix metrics. From my investigation, I see that on the services.js there's a $http.head to the hystrix stream, and if there's a response, then the button is active, but this will make the stream open and never closed, reaching the limit of 5 quite easily. Do you have the same issue? Is there a way to cancel or abort that head call?

thank you very much.

With kind regards, Rodrigo

pakizito avatar Apr 03 '16 18:04 pakizito

I think I found a way to solve this issue. It seems that it's only possible to abort a connection via a plain ajax call, like with jquery: $.ajax(... I fixed the problem this way. Probably there're better ways to do it, but this way I control the connection and now all the Pollers are stopped. If you wish I can commit the changes I've made?

Thank you very much.

With kind regards, Rodrigo

pakizito avatar Apr 04 '16 08:04 pakizito

@pakizito , thanks a lot for your investigation.

Can you send your fix in a PR ?

VanRoy avatar Apr 06 '16 19:04 VanRoy

Will do now.

pakizito avatar Apr 07 '16 09:04 pakizito

Hi @pakizito , do you have any news about the fix of this issue ?

Thanks. Julien.

VanRoy avatar Jun 24 '16 15:06 VanRoy