Spring-cloud-netflix: Hystrix command properties not working

Created on 28 Aug 2017  路  6Comments  路  Source: spring-cloud/spring-cloud-netflix

hystrix.command.* properties are not taking effect. Due to default time out always the fallback method is getting called. STS also does not recognise these properties. Does the service need to be registered to eureka for hystrix command properties to work? Cant i override the fallback timeout configuration with just hystrix-starter jar?

screen shot 2017-08-28 at 12 44 49 pm

Most helpful comment

I think your syntax is slightly incorrect. Here is what I am using:

hystrix:
    serviceA:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 10000
    serviceB:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 10000

All 6 comments

I think your syntax is slightly incorrect. Here is what I am using:

hystrix:
    serviceA:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 10000
    serviceB:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 10000

@indrabasak Hi I am not using eureka.. I am just using spring-cloud-hystrix-starter. I just have one service and i don't want to use service discovery.

serviceA and serviceB are just _HystrixCommandKey_. Replace them with the names of your HystrixCommandKey. Please post your configuration (YAML file) before I make any further comment.

I have the same error with Spring Cloud Dalston.SR3 version.
I have the following hystrix dependency corresponding to this version:

<dependency>
聽聽聽聽聽聽聽聽 <groupId>org.springframework.cloud</groupId>
聽聽聽聽聽聽聽聽 <artifactId>spring-cloud-starter-hystrix</artifactId>
</dependency>

The only hystrix properties available are:

hystrix:
聽聽 metrics:
聽聽聽聽 enabled: foo
聽聽聽聽 polling-interval-ms: foo

I wanted to set the isolation metrics beyond the default of 1000ms, for example:
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 15000
But it does not work, it does not recognize these commands .. What to do?

@christianf2029 please open a separate issue

Ready @ryanjbaxter.

Was this page helpful?
0 / 5 - 0 ratings