服务器为空列表,Spring Zuul服务器空列表

我目前已经设置了一个springbootzuul服务器、一个springbooteureka服务器和一个Python Flask微服务。你知道吗

python微服务在注册和向springboot Eureka服务器发送心跳方面没有问题,甚至出现在http://localhost:8761/的“Instances currently registered with Eureka”下

这个问题发生在我启动Zuul服务器(打开了eager-loading)并得到这个结果时DynamicServerListLoadBalancer for client myservice initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=myservice,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:org.springframework.cloud.netflix.ribbon.eureka.DomainExtractingServerList@446a5aa5

另一方面,Zuul服务器能够找到自己DynamicServerListLoadBalancer for client 3102-ZUUL-SERVER initialized: DynamicServerListLoadBalancer: NFLoadBalancer:name=3102-ZUUL-SERVER,current list of Servers=[192.168.99.1:8762],Load balancer stats=Zone stats: {defaultzone=[Zone:defaultzone; Instance count:1; Active connections count: 0; Circuit breaker tripped count: 0; Active connections per server: 0.0;]

我已经尝试使用Postman向http://localhost:8761/eureka/apps/发送请求,并且能够检索如下所示的信息

myservice

YOLO8889:8889

localhost

myservice

localhost

UP

UNKNOWN

8889

7002

1

MyOwn

30

90

1573932309374

1573932959485

0

1573932308869

false

1573932309374

1573932308869

ADDED

由于list of Servers为空,每次我试图通过Zuul访问服务时,Zuul服务器都会抛出一个异常Load balancer does not have available server for client。你知道吗

如何让Zuul获取python服务的IP地址?你知道吗

谢谢你!你知道吗

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值