com.netflix.zuul.exception.ZuulException: Hystrix Readed time out 解决方法

zuul集成了ribbon 和hystrix

如果调用的远程服务没有正常返回结果,又没有设置熔断机制,就会上述错误。

因为redis的docker忘记启动了。

正常调用的情况就不会出现该错误,所有还要设置熔断机制,不然超时的参数时间怎么设置也没用

zuul:
 host:
    connect-timeout-millis: 15000 #HTTP连接超时要比Hystrix的大
    socket-timeout-millis: 60000   #socket超时

#ribbon 随服务启动,不使用lazy load
ribbon:
  eager-load:
    enabled: true


hystrix:
  command:
    default:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 60000
原文地址:https://www.cnblogs.com/land-fill/p/13469482.html