alibaba / Sentinel

A powerful flow control component enabling reliability, resilience and monitoring for microservices. (面向云原生微服务的高可用流控防护组件)
https://sentinelguard.io/
Apache License 2.0
22.46k stars 8.04k forks source link

How to disable Hystrix while using Sentinel #2175

Open hooverhe opened 3 years ago

hooverhe commented 3 years ago

More than one implementation of @EnableCircuitBreaker (now relying on @Conditionals to pick one): [com.alibaba.cloud.sentinel.custom.SentinelCircuitBreakerConfiguration, org.springframework.cloud.netflix.hystrix.HystrixCircuitBreakerConfiguration]

The version of spring boot and cloud:

<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.8.RELEASE</version>

<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Hoxton.SR10</version>

If I exclude those Hystrix dependencies, the application will throw exception. How to disable Hystrix while using Sentinel?

sczyh30 commented 3 years ago

Hi, you may submit an issue in https://github.com/alibaba/spring-cloud-alibaba

jdami commented 3 years ago

use @SpringBootApplication and @EnableDiscoveryClient replace the @SpringCloudApplication.