Zookeeper-based Leader selection method

A server and node technology, applied in electrical components, transmission systems, etc., can solve problems such as system design and architectural design defects, system process design incompatibility, and inconvenience

Inactive Publication Date: 2015-12-30
JIANGSU NONGMUREN E COMMERCE
View PDF3 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the website mainly has the following problems in the process of use: 1. The system process design does not meet the requirements of the

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Zookeeper-based Leader selection method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] In order to make the technical means, creative features, goals and effects achieved by the present invention easy to understand, the present invention will be further described below in conjunction with specific embodiments.

[0021] ZooKeeper is a distributed, open source distributed application coordination service, an open source implementation of Google's Chubby, and an important component of Hadoop and Hbase. It is a software that provides consistent services for distributed applications. Its functions include: configuration maintenance, name service, distributed synchronization, group service, etc.

[0022] The goal of ZooKeeper is to encapsulate complex and error-prone key services, and provide users with a simple and easy-to-use interface and a system with high performance and stable functions.

[0023] The principle of Zookeeper is based on the FastPaxos algorithm. The Paxos algorithm has the problem of livelock, that is, when there are multiple proposers submi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a Zookeeper-based Leader selection method. The method comprises the following steps: 1, one EPHEMERAL directory node is created on each server, each server is numbered by the directory node, and a server with a current minimum number is selected as a Leader; and 2, when the server with the minimum number dies, because of the EPHEMERAL nodes, the node corresponding to the dead server is also deleted, another node with a minimum number reoccurs in a current node list, and the node is selected as a current Leader so that the problem of a single-point fault easily generated by a single Leader is prevented through dynamic selection of the Leader. According to the invention, process reengineering and optimization are carried out on a conventional platform; and the connection relation of system expansion is fully considered, and the employed technology and system structure can ensure future upgrading or seamless connection expansion of a service information system.

Description

technical field [0001] The invention relates to a method for realizing Leader election based on Zookeeper, which belongs to the technical field of electronic commerce. Background technique [0002] With the development of China's economy and the improvement of people's living standards, people's demand for food has greatly increased, and they are paying more and more attention to food safety. At the same time, with the acceleration of social processes, people are getting more and more busy. It is compressed again and again, and the time spent on buying healthy food is even less, and there is even less experience in how to choose "safe food" and "healthy food". Therefore, how to make it easier for residents to buy healthy, fresh, and safe agricultural products has become the focus of the majority of residents, and it is also the focus of the country. Many policies have been introduced, which shows that the government attaches great importance to the food industry. In this e...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L29/08
CPCH04L67/1044H04L67/1048H04L67/1051
Inventor 吴宪国鲁洋均
Owner JIANGSU NONGMUREN E COMMERCE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products