Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问 我搭的eureka集群,为什么available-replicas是空的,但是服务间还是可以调通的,unavailable-replicas是有信息的反而?? #1

Open
SoftwareKing opened this issue Nov 7, 2018 · 1 comment

Comments

@SoftwareKing
Copy link
Member

Q:请问 我搭的eureka集群,为什么available-replicas是空的,但是服务间还是可以调通的,unavailable-replicas是有信息的反而??

A:1、eureka自身要注册上 2、注册上之后会判断client配置的eureka的serviceUrl上的地址跟 注册信息上的hostName或者ipAddr是否一致,不一致的话,就会在unavailable-replicas上。
通常情况下,在容器部署的eureka,其外部ip跟内部ip通常不一样,也会有这类不一致的情况。

@fxcjj
Copy link

fxcjj commented Jan 13, 2021

spring cloud hoxton版本测试。需要满足各项目的spring.application.name或者eureka.instance.appname必须一致,且eureka.instance.prefer-ip-address设置为false。
参考 https://github.com/fxcjj/eureka-ha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants