Netflix / Hystrix

Hystrix is a latency and fault tolerance library designed to isolate points of access to remote systems, services and 3rd party libraries, stop cascading failure and enable resilience in complex distributed systems where failure is inevitable.
24.09k stars 4.7k forks source link

It doesn't work, configuration in 'application-xxx.yml' #2024

Closed alibbbian closed 2 years ago

alibbbian commented 2 years ago

org.springframework.cloud:spring-cloud-starter-netflix-hystrix:2.2.6.RELEASE org.springframework.boot:spring-boot-starter-parent:2.5.7 spring-cloud.version=2020.0.4

application-dev.yml : hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 8000

not work

System.setProperty("hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds", "8000");

it works, and any other way?

retozigerlig commented 2 years ago

I'm facing the same issue. Defining the value via yaml does not work, defining it via environment variable works.

alibbbian commented 2 years ago

I'm facing the same issue. Defining the value via yaml does not work, defining it via environment variable works.

my problem is less this:

<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-archaius</artifactId>

add this, now it works