Data restoration method and system
First Claim
1. A data restoration method, the method comprising:
- after a transaction is submitted, saving a generated transaction log to a buffer of a current node;
registering, at the current node, an address of a buffer of one or more backup nodes, the one or more backup nodes being different than the current node;
backing up the transaction log to the buffer of the registered address of the one or more backup nodes;
writing the transaction log backed up in the buffer of the one or more backup nodes into a transaction log file in a disk, wherein the transaction log file in the disk is used for restoring data of the current node; and
restoring, based on the transaction log file in the disk, lost data of the current node when a data loss event occurs in the current node.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the present invention disclose a data restoration method, including: after a transaction is submitted, saving a generated transaction log to a buffer of a current node, and backing up the transaction log to a buffer of at least one backup node except the current node; writing the transaction log saved in the buffer of the current node or the transaction log backed up in the buffer of the backup node into a transaction log file in a disk, where the transaction log file in the disk is used for restoring data of the current node; and restoring, based on the transaction log file in the disk, lost data of the current node when a data loss event occurs in the current node. By means of the present invention, a risk of system data can be reduced, and durability, safety, and reliability of the system data can be improved.
-
Citations
14 Claims
-
1. A data restoration method, the method comprising:
-
after a transaction is submitted, saving a generated transaction log to a buffer of a current node; registering, at the current node, an address of a buffer of one or more backup nodes, the one or more backup nodes being different than the current node; backing up the transaction log to the buffer of the registered address of the one or more backup nodes; writing the transaction log backed up in the buffer of the one or more backup nodes into a transaction log file in a disk, wherein the transaction log file in the disk is used for restoring data of the current node; and restoring, based on the transaction log file in the disk, lost data of the current node when a data loss event occurs in the current node. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A data restoration system, comprising:
-
a computing hardware; and a non-transitory computer-readable storage medium including computer-executable instructions executed by the computing hardware to perform, on the data restoration system, the method comprising; after a transaction is submitted, saving a generated transaction log to a buffer of a current node; registering, at the current node, an address of a buffer of one or more backup nodes, the one or more backup nodes being different than the current node; backing up the transaction log to the buffer of the registered address of the one or more backup nodes; writing the transaction log backed up in the buffer for backing up the transaction log into a transaction log file in a disk, wherein the transaction log file in the disk is used for restoring data of the current node; and restoring, when a data loss event occurs in the current node, lost data of the current node based on the transaction log file in the disk. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
Specification