APPARATUS AND METHOD OF MANAGING DATABASES OF ACTIVE NODE AND STANDBY NODE OF MAIN MEMORY DATABASE MANAGEMENT SYSTEM
First Claim
1. An apparatus for managing a database of an active node of a main memory database management system (MMDBMS) that is replicated from the active node to a standby node, the apparatus comprising:
- a memory logging unit that records a database log to which a sequence number is sequentially allocated in a log buffer of a memory of the active node;
a replicating unit that replicates the database log to the standby node;
a disk flushing unit that periodically flushes the database log to a disk of the active node; and
a recovering unit that, when failure of the active node occurs;
transmits a sequence number of a last recovered log that is finally recovered to the standby node,receives at least one replication log belonging to a transaction comprising a lost log recorded after the last recovered log from the standby node, andrecovers the database of the active node based on the at least one replication log.
1 Assignment
0 Petitions
Accused Products
Abstract
Databases of an active node and a standby node of a main memory database management system (MMDBMS) are managed so as to prevent loss of a transaction caused by failure of any one of the active node or the standby node. The MMDBMS is configured to prevent data mismatch between the active node and the standby node when failure of any one of the active node and the standby node occurs. In case of failure of one of the nodes, log information from the other node is obtained to recover the failed node.
23 Citations
20 Claims
-
1. An apparatus for managing a database of an active node of a main memory database management system (MMDBMS) that is replicated from the active node to a standby node, the apparatus comprising:
-
a memory logging unit that records a database log to which a sequence number is sequentially allocated in a log buffer of a memory of the active node; a replicating unit that replicates the database log to the standby node; a disk flushing unit that periodically flushes the database log to a disk of the active node; and a recovering unit that, when failure of the active node occurs; transmits a sequence number of a last recovered log that is finally recovered to the standby node, receives at least one replication log belonging to a transaction comprising a lost log recorded after the last recovered log from the standby node, and recovers the database of the active node based on the at least one replication log. - View Dependent Claims (2, 3, 4)
-
-
5. A computer-implemented method of managing a database of an active node of a main memory database management system (MMDBMS) that is replicated from the active node to a standby node, the method comprising:
-
recording a database log to which a sequence number is sequentially allocated in a log buffer of a memory of the active node; replicating the database log to the standby node; periodically storing the database log in a disk of the active node; and receiving, from the standby node, a sequence number of a database log corresponding to a replication log flushed to a disk of the standby node. - View Dependent Claims (6, 7, 8)
-
-
9. A non-transitory computer readable storage medium storing a computer program product including computer instructions configured to cause a processor of a computer to manage a database of an active node of a main memory database management system (MMDBMS) that is replicated from the active node to a standby node, the computer program product comprising:
-
a memory logging unit configured to record a database log to which a sequence number is sequentially allocated in a log buffer of a memory of the active node; a replicating unit configured to replicate the database log to the standby node; a disk flushing unit configured to periodically flush the database log to a disk of the active node; and a recovering unit configured to; responsive to failure of the active node, transmit a sequence number of a last recovered log that is finally recovered to the standby node; receive, from the standby node, at least one replication log belonging to a transaction comprising a lost log recorded after the last recovered log; and recover the database of the active node based on the at least one replication log. - View Dependent Claims (10, 11)
-
-
12. An apparatus for managing a database of a standby node of a main memory database management system (MMDBMS) that is replicated from an active node to the standby node, the apparatus comprising:
-
a memory logging unit that allows a database log to which a sequence number is sequentially allocated to be replicated thereto from the active node, and records changes to the database which occur during a transaction performed based on the database log as a replication log to a log buffer of a memory of the standby node; a disk flushing unit that periodically flushes the replication log to a disk of the standby node; a log flush reporting unit that periodically reports a sequence number of a database log corresponding to the flushed replication log to the active node; and a recovering unit that, when failure of the standby node occurs; receives a recovery-replication log obtained by replicating a database log after a database log having a sequence number that is finally reported from the active node, and recovers the database of the standby node based on the replication log for recovery. - View Dependent Claims (13, 14)
-
-
15. A computer-implemented method of managing a database of a standby node of a main memory database management system (MMDBMS) that is replicated from an active node to the standby node, the method comprising:
-
allowing a database log to which a sequence number is sequentially allocated to be replicated from the active node; recording changes to the database which occur during a transaction performed based on the database log as a replication log to a log buffer of a memory of the standby node; storing the replication log and a sequence number of a database log corresponding to the replication log in a transaction table in units of transaction; periodically flushing the replication log to a disk of the standby node; and periodically reporting a sequence number of a database log corresponding to the replication log flushed to the disk to the active node. - View Dependent Claims (16, 17)
-
-
18. A non-transitory computer readable storage medium storing a computer program product including computer instructions configured to cause a processor of a computer to manage a database of a standby node of a main memory database management system (MMDBMS) that is replicated from an active node to the standby node, the computer program product comprising:
-
a memory logging unit configured to allow a database log to which a sequence number is sequentially allocated to be replicated thereto from the active node, and record changes to the database which occur during a transaction performed based on the database log as a replication log to a log buffer of a memory of the standby node; a disk flushing unit configured to periodically flush the replication log to a disk of the standby node; a log flush reporting unit configured to periodically report a sequence number of a database log corresponding to the flushed replication log to the active node; and a recovering unit that is configured to; responsive to a failure of the standby node, receive a recovery-replication log obtained by replicating a database log after a database log having a sequence number that is finally reported from the active node, and recover the database of the standby node based on the replication log for recovery. - View Dependent Claims (19, 20)
-
Specification