hystrix stream not responding

2.3k views Asked by At

I am using spring-cloud-starter-hystrix:1.2.3.RELEASE in a Spring Boot application. I have 1 HystrixCommand, that I can execute successfully. After that I called

localhost:8080/hystrix.stream

however this Request loads forever and doesn't respond. On Google I cannot find anything about this.

2

There are 2 answers

5
Mark Rotteveel On

This happens if no command has been executed yet and therefor there are no metrics to publish in the stream.

The 'workaround' is to execute a Hystrix command.

This happens in Hystrix 1.5.8 and earlier. The behavior was changed in Hystrix 1.5.9 that was released yesterday. It will now publish a ping message if there are no metrics to publish.

This change was made to fix a bug where the stream would not detect closed connections when there were no metrics to publish. See Hystrix bug 1430 for more information.

0
Zii On

Make sure you have the @EnableHystrixDashboard annotation added to the dashboard application. Then go to http://{dashboard-application:port}/hystrix.stream. On this page you will be asked to enter the URL of Hystrix application which is annotated with @EnableCircuitBreaker and of which you want to monitor the stream.