'Eureka unavailable-replicas
I have two eureka instances in my PC(win10) And the proterties file as follows: application-home1.properties
server.port=8881
eureka.instance.hostname="home1"
eureka.client.service-url.defaultZone=http://home2:8882/eureka/
spring.application.name="home"
eureka.client.register-with-eureka=true
eureka.client.fetch-registry=true
eureka.server.wait-time-in-ms-when-sync-empty=5
eureka.instance.prefer-ip-address=false
application-home2.properties
server.port=8882
eureka.instance.hostname="home2"
eureka.client.service-url.defaultZone=http://home1:8881/eureka/
spring.application.name="home"
eureka.client.register-with-eureka=true
eureka.client.fetch-registry=true
eureka.server.wait-time-in-ms-when-sync-empty=5
eureka.instance.prefer-ip-address=false
I have already add the home1,home2 in my host file , but it also report unavailable-replicas enter image description here
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
