com.netflix.zuul.exception.ZuulException: Hystrix Readed time out
生活随笔
收集整理的這篇文章主要介紹了
com.netflix.zuul.exception.ZuulException: Hystrix Readed time out
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
通過API網關路由來訪問用戶服務,zuul默認路由規則 :http://zuul的Host地址:zuul端口/要調用的服務名/服務方法地址
瀏覽器中打開http://127.0.0.1:8000/wallet/system/hello/1
報錯:
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Tue Aug 07 17:49:01 CST 2018
There was an unexpected error (type=Gateway Timeout, status=504).
com.netflix.zuul.exception.ZuulException: Hystrix Readed time out
這個錯誤是應為zuul的默認超時時間比較小,我們配置下zuul的超時時間,因zuul啟用了ribbon的負載均衡,還需要設置ribbon的超時時間,注意ribbon的超時時間要小于zuul超時時間 。
總結
以上是生活随笔為你收集整理的com.netflix.zuul.exception.ZuulException: Hystrix Readed time out的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java.lang.IllegalSta
- 下一篇: node-sass 下载失败 解决方案