eureka注册中心配置高可用

  sre

5fcb688d907f49107.jpg_fo742.jpg

eureka启动时增加两个参数:
--eureka.client.register-with-eureka=true
--eureka.client.service-url.defaultZone=http://eureka-registry-01:8761/eureka/,http://eureka-registry-02:8761/eureka/,http://eureka-registry-03:8761/eureka/
微服务启动时增加参数:
--eureka.client.service-url.defaultZone=http://eureka-registry-01:8761/eureka/,http://eureka-registry-02:8761/eureka/,http://eureka-registry-03:8761/eureka/

LEAVE A COMMENT

Captcha Code