Hystrix HystrixTimeoutException 超时 不生效 yml 配置 解决

有多种解决 办法 ,不建议关闭 Hystrix

错误示范 yml

hystrix:
  command:
    test:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 60000

正确 示范 案例yml

# yml
hystrix:
  command.default.execution.isolation.thread.timeoutInMilliseconds: 5000

正确 示范 案例 properties

hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=5000

https://github.com/spring-cloud/spring-cloud-netflix/issues/1864
hystrix.command.IChongQingService#getCompleteServices(Integer,Integer,Integer,String,String).execution.isolation.thread.timeoutInMilliseconds=20000
hystrix.command.IChongQingService#queryavailableservice(Integer).execution.isolation.thread.timeoutInMilliseconds=20000
hystrix.command.IChongQingService#editorHealthRecords(RequestHealthRecords).execution.isolation.thread.timeoutInMilliseconds=20000
hystrix.command.IChongQingService#queryCrowd(Integer).execution.isolation.thread.timeoutInMilliseconds=20000
hystrix.command.IChongQingService#QueryOrgByUser(String).execution.isolation.thread.timeoutInMilliseconds=20000

你可能感兴趣的:(遇到问题解决问题,Hystrix,spring,cloud,微服务架构,java)