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

Primary and secondary copy election method, system, computer equipment and storage medium

A master copy, computer program technology, applied in the computer field, can solve the problems of reducing the reliability of elections, unable to elect a master copy, etc., and achieve the effect of improving reliability

Active Publication Date: 2022-03-08
深圳华锐分布式技术股份有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when the number of replicas is less than half due to a failure, the primary replica cannot be elected, which reduces the reliability of the election. In order to improve the reliability of the election, more replicas need to be deployed, which increases the complexity and cost of deployment.

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
  • Primary and secondary copy election method, system, computer equipment and storage medium
  • Primary and secondary copy election method, system, computer equipment and storage medium
  • Primary and secondary copy election method, system, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0053] The primary and secondary copy election method provided by this application can be applied to such as figure 1 shown in the application environment. Such as figure 1 As shown, the business cluster 110 communicates with the management cluster 120 through the network. The business cluster 110 includes multiple replicas 112, and the roles of the replicas 112 include primary replicas, candidate primary replicas, and backup replicas. Such as figure 1 As shown, the management cluster 120 may also include multiple replicas 122 . It can be understood that when the serve...

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 application relates to a method, system, computer equipment and storage medium for electing master and backup copies. The method includes: each copy in the business cluster that satisfies the election condition elects a candidate master copy from the business cluster; the candidate master copy sends an arbitration request to the management cluster; the arbitration request is used to instruct the management When the dynasty of the candidate master copy is the same as that of the candidate master copy, update the dynasty of the business cluster, and determine the candidate master copy as the master copy of the updated dynasty; after determining the master copy of the updated dynasty, remove the master Each replica other than the replica sends a dynasty join request to the master replica; when the corresponding replica meets the dynasty join condition according to the dynasty join request, the master replica determines the replica that satisfies the dynasty join condition as the backup copy of the updated dynasty. This method can ensure the reliability of the master and backup replica election without increasing the replica deployment cost.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method, system, computer equipment and storage medium for electing a primary and secondary copy. Background technique [0002] With the development of computer technology, technical systems based on computer technology are widely used in all walks of life, and some application scenarios have high requirements for the usability of technical systems, such as financial transaction scenarios such as securities, insurance and banking. The availability of business systems can be improved by adopting multi-copy redundancy. In multi-copy redundancy, it is necessary to elect a primary copy from multiple copies, and the primary copy provides external functions and organizes data and status among multiple copies. Synchronize. [0003] Currently, a majority voting mechanism is usually used to elect the master replica from multiple replicas. However, when the number of replica...

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): G06F16/23G06F16/27
CPCG06F16/2365G06F16/27
Inventor 赵楠龚锋恒邹胜苗咏
Owner 深圳华锐分布式技术股份有限公司
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