How to config multiple Eureka Servers from client in Spring Cloud

后端 未结 1 1894
不知归路
不知归路 2020-12-08 04:36

From the spring doc, I see we can have peer eureka server together, so for Eureka1, in application.yml, I can have:

spring:
  profiles: peer1
eureka:
  insta         


        
相关标签:
1条回答
  • 2020-12-08 04:54

    Use a comma separated list of peers in eureka.client.serviceUrl.defaultZone.

    eureka.client.serviceUrl.defaultZone=http://<peer1host>:<peer1port>/eureka,http://<peer2host>:<peer2port>/eureka
    
    0 讨论(0)
提交回复
热议问题