【发布时间】:2018-04-15 18:59:32
【问题描述】:
我尝试使用以下配置文件以点对点感知方式启动 Eureka 服务。
#profile 1:
spring:
application:
name: service-registry
profiles: p1
server:
port: 8761
eureka:
dashboard:
enabled: false
override: true
enableselfPresentation: true
shouldUseDns: true
instance:
appname: ${spring.application.name}
instanceId: ${random.value}
client:
registerWithEureka: false
fetchRegistry: false
#profile 2:
spring:
application:
name: service-registry
profiles: p2
server:
port: 8762
eureka:
dashboard:
enabled: false
override: true
enableselfPresentation: true
shouldUseDns: true
instance:
appname: ${spring.application.name}
instanceId: ${random.value}
client:
registerWithEureka: false
fetchRegistry: false
使用这些配置文件启动 eureka 后,在端口 8761 的 eureka 仪表板中,我看到 DS 副本为 localhost:8761 但不是 localhost:8762 并在 localhost:8762 DS 副本上作为 localhost:8761 如何将 localhost:8761 的副本复制为 localhost:8762,反之亦然
【问题讨论】:
标签: spring-cloud netflix-eureka spring-cloud-netflix