设置hystrix的熔断时间

hystrix的熔断时间默认为1秒,这对于一个要部署的服务器来说太短了,所以可以把这个时间设置大一点

这个时间设置在yml中没有提示,下面是设置的代码:

hystrix:
  command:
    default:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 5000 # 设置hystrix的超时时间为5000ms

 

posted @ 2019-11-08 10:42  饶一一  阅读(5203)  评论(0编辑  收藏  举报