I have implemented Netflix OSS Hystrix in one of my Spring boot application. And configured some properties for the HystrixCommand. But how can I verify that those properties are really used by HystrixCommand. For example,
hystrix.threadpool.default.maxQueueSize=12
hystrix.threadpool.default.keepAliveTimeMinute=2
hystrix.command.default.execution.isolation.strategy=SEMAPHORE
How can I see that these properties are applied to HystrixCommand? Is there any way I can enable debug level logging for Hystrix?
TIA
First, we need to add the Spring Cloud Starter Hystrix dependency in our build configuration file. Now, add the @EnableHystrix annotation into your main Spring Boot application class file. The @EnableHystrix annotation is used to enable the Hystrix functionalities into your Spring Boot application.
To enable Hystrix dashboard, we only have to annotate our spring boot main class with @EnableHystrixDashboard . Following is the dependency information of Hystrix project. The Hystrix dashboard is avialable at http://localhost:9090/hystrix for client-service instance in our case.
In SpringOne 2019, Spring announced that Hystrix Dashboard will be removed from Spring Cloud 3.1 version which makes it officially dead. As the Circuit Breaker pattern has been advertised so heavily, many developers have either used it or want to use it, and now need a replacement.
Akka, Envoy, Istio, Zuul, and Polly are the most popular alternatives and competitors to Hystrix.
I think I found the answer. Adding below line generates Hystrix DEBUG level logging.
logging:
level:
com.netflix.hystrix: DEBUG
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With