Stefano L
Stefano L

Reputation: 1583

hystrix stream not responding

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.

Upvotes: 3

Views: 2414

Answers (2)

Mark Rotteveel
Mark Rotteveel

Reputation: 108994

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.

Upvotes: 3

Zii
Zii

Reputation: 45

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.

Upvotes: 1

Related Questions