【发布时间】:2023-10-28 00:55:01
【问题描述】:
我已经使用功能区(没有尤里卡)配置了 zuul 2 个实例,如下所示:
zuul.retryable=true
zuul.routes.simple-ms-app.serviceId: client
client.ribbon.listOfServers=http://localhost:7788,http://localhost:8877
当7788 & 8877 两个实例都启动并运行时,一切正常。
当listOfServers 中的第一个实例关闭时,请求会出现以下错误:
com.netflix.zuul.exception.ZuulException: Forwarding error
我正在使用以下版本配置:
spring-boot : 2.0.7.RELEASE
spring-cloud: Finchley.SR2
如果有人遇到过类似问题并设法找到解决方案,请在此处分享。
谢谢。
【问题讨论】:
标签: spring-boot spring-cloud netflix-zuul spring-cloud-netflix netflix-ribbon