Zookeeper learning notes

1, Introduction to ZooKeeper ZooKeeper Description: it is a distributed, open source distributed application coordination service ZooKeeper's goal is to encapsulate complex and error prone key services and provide users with simple and easy-to-use interfaces and systems with efficient performance and stable functions. ZooKeeper features: 1. ...

Posted by danleighton on Tue, 18 Jan 2022 10:04:41 +0100

ZooKeeper Leader election mechanism source code analysis election core method lookForLeader()

Business logic analysis of election core method lookForLeader() After knowing the role of important classes and member variables related to the election, let's start to analyze the method lookForLeader(), which actually executes the election logic: 1) Preparations for the election 2) Throw yourself as the initial leader 3) Loop exchange vo ...

Posted by degsy on Sun, 16 Jan 2022 22:11:51 +0100

What is zookeeper from the perspective of use

Zookeeper zookeeper action effect: Middleware provides coordination services, assists in computing, assists in managing storage and other functionsActing on the distributed system and giving full play to its advantages, it can serve big dataSupport java and provide client Api of java and c language characteristic: Consistency: data consist ...

Posted by irishmike2004 on Thu, 13 Jan 2022 16:24:47 +0100

Nacos multi environment isolation and configuration synchronization management

preface This article mainly introduces you to configuration management and service isolation in Nacos multi environment from the following points What is the Namespace of Nacos Business status and pain points Introduction to environmental isolation scheme Configure synchronization management scheme What is the Namespace of Nacos Nacos is a p ...

Posted by dannel77 on Thu, 13 Jan 2022 11:39:30 +0100

Distributed coordination component ZooKeeper

01. Get to know ZooKeeper ZooKeeper is a sub project under the Apache Hadoop project. It is a tree directory service. ZooKeeper is translated as the zoo keeper, who is used to manage Hadoop (elephant) and hive (bee). ZooKeeper is a distributed, open source coordination service for distributed applications. The main functions provided by Zo ...

Posted by Seraskier on Mon, 10 Jan 2022 12:58:46 +0100

Dubbo quick start

1.Dubbo official website Dubbo official website home page 2. Click the document to have an in-depth understanding of dubbo; 3. Introduction to Dubbo 4. Dubbo architecture 5.Dubbo quick start 5.1 installation of zookeeper Zookeeper is a registered software officially provided by Dubbo (1) JDK installation 1) Before installing Zookeeper, you n ...

Posted by taddis on Wed, 05 Jan 2022 19:30:28 +0100

Based on the case of custom RPC based on Netty, the transformation is carried out. Implementation of simple service registration and discovery mechanism based on Zookeeper

Modification version required: 1. Start two servers to automatically register IP and port information with Zookeeper 2. When the client starts, it obtains the node information of all service providers from Zookeeper, and the client establishes a connection with each server 3. After a server goes offline, the Zookeeper registration list will ...

Posted by MP145 on Tue, 04 Jan 2022 00:27:46 +0100

An accident tells you which of zookeeper and nacos is better for the registration center

preface In distributed systems, registry plays an important role and is an indispensable member of service discovery and client load balancing. In addition to the basic functions of the registry, its stability, availability and robustness have a significant impact on the smooth operation of the whole distributed system. As a mainstream distrib ...

Posted by venky_lb on Mon, 03 Jan 2022 15:38:41 +0100

Dubbo has a memory leak

[premise] The content described in this article is based on Dubbo version 2.7.3 [text] As shown above, in the previous article com. alibaba. There is a memory leak in fastjson In this article, we explained that there is a memory leak in threadLocals of threads. Look closely at the figure above. There is another place where 662.19KB of memor ...

Posted by Renich on Sun, 02 Jan 2022 08:18:22 +0100

ZooKeeper source code analysis 13 Leader election

1, run method of QuorumPeer Above Just preparing for the Leader election, but it hasn't triggered the election process. In the start method, after calling startLeaderElection(), the QuorumPeer thread will start. Next we'll start with his run method. public void run() { try { while (running) { switch (ge ...

Posted by spooke2k on Sun, 02 Jan 2022 06:14:24 +0100