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

Data backup method, device and apparatus and storage medium

A data backup and backup technology, applied in the database field, can solve the problems of increasing the network consumption of the distributed system, reducing the recovery efficiency of the standby node, and increasing the risk of the standby node recovery system.

Pending Publication Date: 2020-10-30
SHANGHAI DAMENG DATABASE
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

These additional data transfers increase network consumption in distributed systems, reduce the efficiency of standby node recovery, and increase system risk during standby node recovery

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
  • Data backup method, device and apparatus and storage medium
  • Data backup method, device and apparatus and storage medium
  • Data backup method, device and apparatus and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] figure 1 It is a flow chart of a data backup method provided by Embodiment 1 of the present invention. This embodiment is applicable to data backup in a database. figure 2 A structural diagram of a distributed database system is provided. The log sequence number (Log Sequence Number, LSN) of each log in the database system is an increasing sequence, which can facilitate log management. figure 2 In the distributed database system architecture, the database service node generates the original log and sends it to the central node; the central node converts the original log and distributes it to the corresponding storage node. figure 2 The working logic of the central node in the distributed database system architecture is as follows: receive the original log sent by the database service node, and notify the database service node to continue execution after archiving; perform parsing and conversion of the log asynchronously with the database service node, and convert it ...

Embodiment 2

[0034] image 3 It is a flowchart of a data backup method provided by Embodiment 2 of the present invention. The technical solution of this embodiment is further refined on the basis of the above-mentioned technical solution, and specifically mainly includes the following steps:

[0035] Step S210, when it is detected that the backup node is switched from the failure state to the working state, the data control information of each storage node storing data and the serial number values ​​of each receiving log of the backup node are obtained.

[0036] Step S220, determining the permanent log serial number value in each of the data control information.

[0037] In this embodiment, the permanent log serial number value can be understood as the log serial number value of the log data that the storage node has flushed the modified data to achieve permanent storage. The storage node receives the log data sent by the master node, redoes the log data, and flashes the modified data th...

Embodiment 3

[0074] Figure 5 A structure diagram of a data backup device provided by Embodiment 3 of the present invention, the device includes: an acquisition module 31 and a sending module 32 .

[0075] Wherein, the acquisition module 31 is used to obtain the data control information of each storage node storing data and the serial number values ​​of each receiving log of the backup node when it is detected that the standby node is switched from the fault state to the working state; the sending module 32 is used to After determining the data backup serial number value according to each of the data control information and the received log serial number value, sending the log data whose log serial number value is greater than the data backup serial number value to the standby node.

[0076] The embodiment of the present invention provides a data backup device, which solves the problem of resource loss caused by sending all the data and control information generated by the master node to t...

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 invention discloses a data backup method, device and apparatus and a storage medium, and the method comprises: obtaining the data control information of each storage node for storing data and each receiving log serial number value of the standby node when a condition that the standby node is switched from a fault state to a working state is monitored; and determining a data backup serial number value according to each piece of data control information and the received log serial number value, and sending the log data of which the log serial number value is greater than the data backup serial number value to a standby node. The problem of resource loss caused by the fact that all data and control information generated in the period from failure of the standby node to recovery of normal work are all sent to the standby node during data backup is solved. The log data sent to the standby node is determined according to the data backup serial number value, the effect that stored permanent data do not need to be transmitted and backed up again is achieved, network consumption in the system and system risks in the recovery period of the standby node are reduced, andthe recovery efficiency of the standby node is improved.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of databases, in particular to a data backup method, device, equipment and storage medium. Background technique [0002] A common distributed database system architecture is a centralized copy control architecture. In this distributed database, the central node is responsible for all data copy-related control operations. Therefore, the security of the central node is particularly important. Active backup is a common way to ensure data security. When the central node in the active node mode fails, the central node in the standby node mode can switch to the active node mode and continue to provide services. [0003] Using the current general master-standby node mode, the central node in the master node mode will send all data and control information related to replica data synchronization to the central node in the standby node mode. If the backup node fails, when it recovers, in ord...

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
IPC IPC(8): G06F11/14G06F16/27
CPCG06F11/1451G06F16/27Y02D10/00
Inventor 王攀郭琰韩朱忠
Owner SHANGHAI DAMENG DATABASE
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