unavailable-replicas

 配置了集群,但是在注册中心显示另外的几个集群地址是不可用的:

1 首先需要再host中添加服务名映射,如果应映射了再看是否在yml中配置了prefer-ip-address这个注解,如果配置了去掉集群地址就可用了:
springcloud中eureka集群unavailable-replicas

2  下面这两个配置要么注释掉,要么设置 为true即可

fetch-registry: true # 获取注册信息
register-with-eureka: true #注册信息到eureka

相关文章:

  • 2022-01-16
  • 2021-06-18
  • 2021-09-21
  • 2022-01-01
  • 2021-06-25
  • 2021-10-09
  • 2021-08-02
猜你喜欢
  • 2021-07-17
  • 2021-10-07
  • 2022-12-23
  • 2018-11-11
  • 2021-05-25
  • 2022-12-23
  • 2021-10-13
相关资源
相似解决方案