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

Voting node configuration method and system

A configuration method and node technology, applied in the computer field, can solve problems such as unable to configure voting nodes, and achieve the effect of automatic configuration and good work performance

Active Publication Date: 2021-07-02
SOUTH CENTRAL UNIVERSITY FOR NATIONALITIES
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The main purpose of the present invention is to provide a voting node configuration method and system, aiming to solve the technical problem that the prior art cannot effectively configure voting nodes in distributed clusters

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
  • Voting node configuration method and system
  • Voting node configuration method and system
  • Voting node configuration method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0063] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0064] The embodiment of the present invention provides a voting node configuration method, refer to figure 1 , figure 1 It is a schematic flowchart of the first embodiment of the voting node configuration method of the present invention.

[0065] In this embodiment, the voting node configuration method includes the following steps:

[0066] Step S10: The master node sends parameter collection tasks to each slave node in the distributed cluster every preset time period;

[0067] It should be noted that the execution subject of the method in this embodiment can be the Leader server (i.e. the master node) in the distributed application program coordination service (Zookeeper) cluster, and the master node in the distributed cluster is the entire ZooKeeper cluster working mechanism Core. The slave nodes are other node...

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 voting node configuration method and system, comprising: a master node regularly sends parameter collection tasks to slave nodes in a distributed cluster; slave nodes collect performance index parameters and feed them back to the master node; the master node is based on a preset combination algorithm Calculate the weight of each performance index parameter to obtain the index weight corresponding to each performance index parameter; calculate the voting ability corresponding to each slave node according to the index weight and the parameter value corresponding to each performance index parameter; and then determine the distribution according to the preset allowable downtime number The number of voting nodes corresponding to the formula cluster, and select the corresponding voting node according to the number of voting nodes and voting ability. Since the voting ability of each slave node is calculated according to the performance index parameters of the slave nodes and the weight of the performance index parameters determined by the combination algorithm, and then the voting nodes are screened according to the voting ability, so that the selected slave nodes can be guaranteed to have a higher Work performance, realizing the automatic configuration of voting nodes.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a voting node configuration method and system. Background technique [0002] At present, the message broadcast mode in distributed clusters (such as ZooKeeper clusters) basically adopts the "more than half" strategy. This strategy is a trade-off between availability and consistency in ZooKeeper, which ensures that even if less than half of the servers in the cluster go down, the cluster Services are still available. In a distributed cluster, when the master node server frequently initiates transactional requests, since ZooKeeper processes transactional operations sequentially, the master node server will process the next request only after the current transactional operation is completed. ZooKeeper cluster scale Once it is larger, the more votes need to reach half, the longer it takes to get more votes, and the lower the performance of transactional operations. [0003] Howev...

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): H04L12/24H04L29/08
CPCH04L41/0803H04L67/10
Inventor 帖军黄坤李子茂宋中山尹帆马尧罗均
Owner SOUTH CENTRAL UNIVERSITY FOR NATIONALITIES