Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Introduction to the principle of Eureka

2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

The main content of this article is "introduction to the principle of Eureka". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "introduction to the principles of Eureka".

Https://blog.csdn.net/JinXYan/article/details/90721953

Zookeeper guarantees CP in a cloud-deployed environment

It is highly probable that zk cluster will lose its master node due to network problems.

Although the service can eventually be restored

But the long-term unavailability of registration caused by the long election time cannot be tolerated.

Eureka guarantees AP, in the Eureka platform

If more than 85% of the nodes do not have a normal heartbeat within 15 minutes

Then Eureka thinks there is a network failure between the client and the registry.

The following situations occur at this point:

It will not paralyze the entire registration service like zookeeper does.

Eureka no longer removes services from the registration list that should expire because they haven't received a heartbeat for a long time.

Eureka can still accept registration and query requests for new services, but will not be synchronized to other nodes (that is, ensuring that the current node is still available)

When the network is stable, the new registration information of the current instance will be synchronized to other nodes

Therefore, Eureka can well deal with the situation in which some nodes lose contact due to network failure.

Synchronization of service registry is completed between multiple Eureka Server through P2P replication.

If a server goes down, Eureka will not have the process of electing leader similar to ZooKeeper.

The client request will automatically switch to the new Eureka node

When the down server is restored, Eureka will bring it into the server cluster management again.

For it, all it needs to do is synchronize some new service registration information.

So you no longer have to worry about the risk of being removed from the Eureka server cluster when "lagging" servers are restored.

Eureka also has a self-protection mechanism.

At this point, I believe you have a deeper understanding of the "introduction to the principle of Eureka", you might as well come to the actual operation! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report