Peers in non-AWS datacenter not replicating each other

71 views
Skip to first unread message

medha.d...@ampush.com

unread,
Jul 19, 2015, 9:50:45 PM7/19/15
to eureka_...@googlegroups.com
I have two Eureka servers and they are not able locate each other or replicate the registry to each other.
Could you please point out what configuration am I missing? Or how else to fix it?

Thanks
M

Here is service.properties for sever1 which runs tomcat inside docker on port 9176:
eureka.region=default
eureka.peerNodeConnectTimeoutMs=2000
eureka.peerNodeReadTimeoutMs=2000
eureka.datacenter=MyOwn

eureka.name=server2localservice

eureka.vipAddress=server2local.mydomain.net

eureka.port=8020

eureka.preferSameZone=true
eureka.shouldUseDns=false
eureka.serviceUrl.default=http://<hostip>:9175/eureka/v2/

AND for server2 which runs tomcat inside docker on port 9175:

eureka.region=default
eureka.peerNodeConnectTimeoutMs=2000
eureka.peerNodeReadTimeoutMs=2000
eureka.datacenter=MyOwn

eureka.name=server1localservice
eureka.vipAddress=server1local.mydomain.net

eureka.port=8010

eureka.preferSameZone=true
eureka.shouldUseDns=false
eureka.serviceUrl.default=http://<hostip>:9176/eureka/v2/

Both the servers have client.properties with urls:
eureka.serviceUrl.default=http://<hostip>:9175/eureka/v2/,http://<hostip>:9176/eureka/v2/

Reply all
Reply to author
Forward
0 new messages