Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable Hystrix DEBUG level logging

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

like image 362
pijushcse Avatar asked Feb 23 '18 17:02

pijushcse


People also ask

How do I enable hystrix logging?

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.

How do I enable hystrix dashboard in spring boot?

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.

Is hystrix still supported?

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.

What has replaced Hystrix?

Akka, Envoy, Istio, Zuul, and Polly are the most popular alternatives and competitors to Hystrix.


1 Answers

I think I found the answer. Adding below line generates Hystrix DEBUG level logging.

logging:
  level:
   com.netflix.hystrix: DEBUG
like image 55
pijushcse Avatar answered Oct 04 '22 22:10

pijushcse