请教下eureka+zuul在多机房中是怎么部署和配置的?

请教下eureka+zuul在多机房中是怎么部署和配置的?
已邀请:

tietang - hah

赞同来自:





[code]请参考以下配置:
https://github.com/Netflix/eureka/issues/748[/code]




[code]client:
registerWithEureka: true
fetchRegistry: true
useDnsForFetchingServiceUrls: true
eurekaServerDNSName: eureka.local
eurekaServerURLContext: eureka
region: cn-east-1
availabilityZones:
cn-east-1: cn-east-1a,cn-east-1b,cn-east-1c
preferSameZoneEureka: true
serviceUrl:
#defaultZone: http://${eureka.instance.hostname:localhost}:${server.port:8761}/eureka/
# defaultZone: http://peer2:8761/eureka/
cn-east-1a: http://peer1:8761/eureka/
cn-east-1b: http://peer2:8761/eureka/
cn-east-1c: http://peer3:8761/eureka/
[/code]

要回复问题请先登录注册