我有问题,配置尤里卡副本:尤里卡复制品无法
尤里卡服务:
@EnableEurekaServer
@SpringBootApplication
public class DiscoveryService {
public static void main(String[] args) {
SpringApplication.run(DiscoveryService.class, args);
}
}
bootstrap.properties
spring.application.name=discovery
spring.cloud.config.uri=http://localhost:8888
我也有两个阳明文件
服务器1跑步8761
eureka.client.serviceUrl.defaultZone:http://localhost:8762/eureka/
eureka.client.registerWithEureka:false
eureka.client.fetchRegistry:false
服务器2 8762
eureka.client.serviceUrl.defaultZone:http://localhost:8761/eureka/
eureka.client.registerWithEureka:false
eureka.client.fetchRegistry:false
我可以输入两个仪表盘运行,但我看到这两个实例具有这样的:
registered-replicas http://localhost:8761/eureka/
unavailable-replicas http://localhost:8761/eureka/,
available-replicas
这是为什么?
你在哪里看到关于可用和不可用副本的信息?你有没有一个样本项目可以重现我们可以看到的问题? –