我目前已经设置了一个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地址?你知道吗
谢谢你!你知道吗