【SpringCloud】05. High availability of Eureka
•
Java
1. Simple situation
2. In order to achieve high availability of Eureka, multiple Eureka can register with each other.
3. We need to modify two points:
3.1 Eureka Client
In the client configuration file, configure all Eureka server addresses respectively
eureka:
client:
service-url:
defaultZone: http://192.168.93.1:8761/eureka/,http://192.168.93.1:8762/eureka/,http://192.168.93.1:8763/eureka/
3.2 Eureka Server
For example, we need three Eureka servers
In the configuration file of each server, modify its registration address to make it register in pairs.
As shown in the figure above:
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码