Eureka Issue: replicas is not working

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/yexianyi/article/details/91870249

Problem:

When we create 3-nods Eureka server and register them with each other, you may find the replica is not working.

Reason:

Each of node must have an unique "eureka.instance.hostname". Different Eureka Server Port number is not enough to distingwish node server.

Solution:

You have to config an ip mapping on your system, if you are trying to create these 3 node servers on the same host.

For example,

vi /etc/hosts

192.168.1.10   peer1
192.168.1.10   peer2
192.168.1.10   peer3

展开阅读全文

没有更多推荐了,返回首页