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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com