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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com