Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method and device for determining a leader node

A technology of leading nodes and determining methods, which is applied in the field of computer networks, can solve problems such as the unavailability of ceph clusters, and the ratio does not meet the preset election conditions, and achieve the effect of increasing the probability of meeting the preset election conditions and reducing the probability of unavailability

Active Publication Date: 2021-06-18
NEW H3C TECH CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, during the operation of the ceph cluster, the downtime of the monitor nodes may cause the ratio of the total number of monitor nodes sending election request messages to the total number of all monitor nodes in the ceph cluster to be less than or equal to the preset threshold, that is, , in the ceph cluster, the proportion of the nodes that actually participate in the election to the nodes that can participate in the election does not meet the preset election conditions
At this time, the monitor node will not determine the leader node in the ceph cluster, which will cause the ceph cluster to be unavailable

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
  • A method and device for determining a leader node
  • A method and device for determining a leader node
  • A method and device for determining a leader node

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0096] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0097] The application provides a method and device for determining a leader node, which can be applied to the first monitor node in the ceph cluster, where the first monitor node can be any monitor node in the ceph cluster, and the ceph cluster can also include other A monitor node and a non-monitor node. The non-monitor node can be a storage node or an application node.

[0098] see figure 1 , figure 1 A framework diagram of a networking architecture provided in the embodiment o...

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 present application provides a method and device for determining the leader node, which is applied to the first monitor node in the ceph cluster. When the election time is reached, if there is currently a failed monitor node in the ceph cluster, the other Each monitor node and preset non-monitor node sends the first election request message, according to the election request message sent by other monitor nodes and the election response message sent by the preset non-monitor node received within the first preset time period to determine whether the preset election conditions are met, and if the preset election conditions are met, the leader node is determined from the monitor nodes that send the election request message according to the preset election rules. Based on the above processing, the first monitor node can send a first election request message to the preset non-monitor node to request assistance in determining the leader node, which can increase the probability of meeting the preset election conditions and reduce the probability that the ceph cluster is unavailable.

Description

technical field [0001] The present application relates to the field of computer networks, in particular to a method and device for determining a leader node. Background technique [0002] Ceph cluster is a distributed storage system with high reliability and scalability. The nodes in the Ceph cluster can be divided into monitor (monitor) nodes and non-monitor nodes. A Ceph cluster usually includes multiple monitor nodes. During the operation of the Ceph cluster, it is necessary to determine a monitor node from multiple monitor nodes as a leader (leader), which can be called a leader node. The leader node and other monitor nodes jointly manage and maintain the state of the ceph cluster. [0003] In the prior art, when the election time is reached, each monitor node in the Ceph cluster can send an election request message to other monitor nodes in the Ceph cluster. Then, the monitor node can determine that the election request message sent by other monitor nodes has been re...

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/08H04L12/24
CPCH04L41/0668H04L41/0695H04L67/10H04L67/1097
Inventor 杨潇顾雷雷
Owner NEW H3C TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products