Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turn off Hystrix functionality

Tags:

hystrix

I am integrating Hystrix in an application. That application is already in production and we will be testing out hystrix integration work in sandbox before we will push it to production. My question is that is there any way to turn on/off hystrix functionality using some configuration setting?

like image 386
yousafsajjad Avatar asked Mar 18 '16 17:03

yousafsajjad


People also ask

How do I disable Hystrix?

If you want, you can disable Hystrix as a whole by adding hystrix. enabled = false to your application.

Does Netflix still use Hystrix?

Hystrix Status. Hystrix is no longer in active development, and is currently in maintenance mode. Hystrix (at version 1.5. 18) is stable enough to meet the needs of Netflix for our existing applications.

What has replaced Hystrix?

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

Is Hystrix a circuit breaker?

It makes more sense for the service to back off and give calls to the callee service after some time or share default response. Netflix Hystrix, Resilince4j are two well-known circuit breakers which are used to handle such situations.


1 Answers

There is no single setting for this. You'll need to set multiple parameters to disable Hystrix.

See https://github.com/Netflix/Hystrix/wiki/Configuration for the configuration options:

hystrix.command.default.execution.isolation.strategy=SEMAPHORE
hystrix.command.default.execution.isolation.semaphore.maxConcurrentRequests=100000 # basically 'unlimited'
hystrix.command.default.execution.timeout.enabled=false 
hystrix.command.default.circuitBreaker.enabled=false
hystrix.command.default.fallback.enabled=false

Please double check your version of Hystrix for the available parameters.

like image 92
ahus1 Avatar answered Nov 17 '22 06:11

ahus1