Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for cluster election

A cluster and module selection technology, applied in the field of communication, can solve problems such as electing a leader node, failing to correctly elect a leader node, and the failure of a distributed storage system to work normally, achieving high availability and robustness, maintaining external availability, The effect of improving the ability to cope with abnormal environments

Active Publication Date: 2021-08-24
NEW H3C TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the traditional way, a consistent distributed algorithm (such as paxos) is usually used to elect a Leader node from the Monitor nodes. When using a consistent distributed algorithm, more than half of the Monitor nodes need to be in the available state. Once the number of Monitor nodes in the available state If it does not reach half of the total number, the Leader node cannot be elected from the Monitor nodes, resulting in the failure of the distributed storage system to work normally
[0004] For example, a distributed storage system includes 3 Monitor nodes. If 2 or 3 Monitor nodes are available, a consistent distributed algorithm can be used to elect a Leader node from the Monitor nodes. Once 2 Monitor nodes fail, the available The number of Monitor nodes in the state (ie 1) does not reach half of the total number (ie 3), so the Leader node cannot be correctly elected

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 device for cluster election
  • Method and device for cluster election
  • Method and device for cluster election

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, rather than limiting the present application. As used in this application and the claims, the singular forms "a", "the" and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term "and / or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.

[0020] It should be understood that although the embodiments of the present application may use terms such as first, second, and third to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of the present application, first information may also be called second information, and similarly, second ...

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 present application provides a method and device for cluster election, the method comprising: obtaining the first number of available Monitor nodes in a distributed storage system; if the first number is less than or equal to half of the total number of Monitor nodes, then The Leader election mode of the distributed storage system is switched from the cluster mode to the independent mode; when the Leader election mode of the distributed storage system is the independent mode, a specific strategy is used to elect the leader of the distributed storage system from available Monitor nodes Leader node. Through the technical solution of the application, the high availability and robustness of the distributed storage system can be guaranteed, the ability of the distributed storage system to deal with abnormal environments can be improved, and the external availability of the distributed storage system can be maintained.

Description

technical field [0001] The present application relates to the field of communication technologies, and in particular to a method and device for cluster election. Background technique [0002] With the advent of the era of big data, more and more distributed systems have emerged, and distributed storage systems (such as Ceph, etc.) to store. The distributed storage system includes multiple Monitor nodes. The Monitor nodes are used to maintain the health status of the entire cluster, provide consistent decision-making, and are the managers of the cluster status. Moreover, a Monitor node can be elected from the Monitor nodes as the Leader (primary) node, and the Leader node is responsible for managing, maintaining, and publishing the status information of the cluster. If the Leader node is unavailable, re-elect a Monitor node from the remaining Monitor nodes as the Leader node. [0003] In the traditional way, a consistent distributed algorithm (such as paxos) is usually use...

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
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/08
CPCH04L67/1051H04L67/1097
Inventor 顾雷雷陆强
Owner NEW H3C TECH CO LTD