Method and apparatus for constructing, submitting and monitoring center node of distributed system

A distributed system and central node technology, applied in the field of distributed systems, can solve problems such as no central node or central node, and can not meet the requirements of distributed systems, so as to achieve the effect of easy management and guaranteed data consistency

Active Publication Date: 2013-02-13
BEIJING SOHU NEW MEDIA INFORMATION TECH
View PDF3 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

There is no central node or the ability of the central node is weak,

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
  • Method and apparatus for constructing, submitting and monitoring center node of distributed system
  • Method and apparatus for constructing, submitting and monitoring center node of distributed system
  • Method and apparatus for constructing, submitting and monitoring center node of distributed system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0054] see figure 1 , which shows the flow of the method for constructing the central node of the distributed system according to the embodiment of the present application. This example includes:

[0055] Step S101: the node sends an election message to the distributed system, and the election message includes the election round and the message request number;

[0056] The election process of the distributed system is started by sending an election message to select a central node (Leader) to manage the distributed system. The node will send an election message to the distributed system to start the election process after receiving certain triggers. The triggers here include but are not limited to: all nodes in the distributed system (such as Zookeeper server) have just started, and there is no central node; A new node joins, and the new node is in the initialization state (Looking state); the existing central node in the distributed system fails due to various reasons (Lead...

Embodiment 2

[0078] The foregoing embodiments propose a method for constructing a central node of a distributed system, through which a more stable central node can be constructed, and various specific applications can be implemented based on this central node. see figure 2 , which shows the flow of a data request submission method based on the central node of the distributed system. The process includes:

[0079] Step S201: start the counter, and set the initial value of the counter to 0;

[0080] Step S202: forwarding the data request message received by the non-central node to the central node;

[0081] The non-central node is in the following position and cannot make a decision on the received data request, so it needs to forward the request to the central node (Leader). The central node of this embodiment is constructed according to the method of the foregoing embodiments, that is, the central node is constructed in the following manner: each node sends an election message to the ...

Embodiment 3

[0089] Based on the central node of the distributed system constructed in the first embodiment, the node monitoring operation of the distributed nodes can also be performed. see image 3 , Figure 4 ,in: image 3 This figure shows the flow of the monitoring method based on the central node of the distributed system, Figure 4 A schematic diagram showing types of registered nodes. The process of this embodiment includes:

[0090] Step S301: Register the monitoring node in the distributed system, the monitoring node configuration directory and status directory;

[0091] The nodes under the configuration directory and status directory included in the registered monitoring node can be domain name service nodes (NameService) and data service nodes (DataService). The specific registration process can be implemented as follows:

[0092] For registering NameService:

[0093] (1) Establish a configuration directory / Conf / NameService / (NameServiceID) directory in the distributed sy...

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 embodiment of the invention discloses a construction method of a center node of a distributed system. The method comprises the following steps of: starting an election process by sending an election message, comparing an election round and a message request number of a node which receives the election message, and carrying out updating by adopting a large election round and a large message request number; forming a recommending message of the center node according to the updated election round and message request number, and sending the recommending message to the distributed system; and counting the recommending of the center node in the recommending message by the node, and setting the node having a recommending number reaching a preset threshold value as the center node. The embodiment of the invention further discloses a data request submitting method and a monitoring method based on the center node of the distributed system, and apparatuses of the data request submitting method and the monitoring method based on the center node of the distributed system. The center node constructed by the embodiment of the invention is stable.

Description

technical field [0001] The present application relates to the technical field of distributed systems, in particular to a method for constructing a central node of a distributed system, a data submission method and a monitoring method based on the central node of a distributed system, and their corresponding devices. Background technique [0002] Distributed systems are software systems that support distributed processing, and their main application is to perform tasks on a multiprocessor architecture interconnected by a communication network. According to different usage scenarios, distributed systems usually include distributed operating systems, distributed programming languages ​​and their compilation (interpretation) systems, distributed file systems, and distributed database systems. Compared with centralized systems, distributed systems have higher stability, automatic data recovery capabilities and good resistance to single-point collapse. However, these capabilities...

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): G06F9/46
Inventor 宋鹏
Owner BEIJING SOHU NEW MEDIA INFORMATION TECH
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