DATABASE MANAGEMENT SYSTEM FOR PROVIDING PARTIAL RE-SYNCHRONIZATION AND PARTIAL RE-SYNCHRONIZATION METHOD OF USING THE SAME
First Claim
Patent Images
1. A database management system (DBMS) for providing partial re-synchronization, the DBMS comprising:
- a log synchronization unit for asynchronously transmitting a log from a first node to a second node and performing a redo operation internally on a log received by the second node;
a partial page synchronization unit for checking which data pages in the first node are affected due to log operations performed on a GAP part of the first node and receiving corresponding data pages from the second node and overwriting the affected data pages in the first node with the corresponding data pages of the second node; and
a log re-synchronization unit, which is operated in the first node after a failed first node restarts, for comparing a sequence number of newly updated transaction log data in the second node to a sequence number of applying data pages in the first node and receiving the newly updated transaction log data whose update sequence number is greater than the sequence number of the applying data pages in the first node, wherein the first node acting as a master server is actively used to run the DBMS, while the second node acting as a slave server is in a standby node ready to take over if a failover occurs, and when the failed master server restarts, the first node performs partial page synchronization and log re-synchronization,wherein the GAP part represents a section from right after a point at which synchronization is performed last between the first node and the second node before a failover occurs in the first node to a point at which a log is recorded last in the first node before the failover occurs.
1 Assignment
0 Petitions
Accused Products
Abstract
Provided is a database management system (DBMS). The DBMS synchronizes an active node with a standby node and detects a point of time when last synchronization is performed between the active node and the standby node. Then, after the DBMS performs page synchronization from the detected point of time of the last synchronization to a point at which a failover occurs in the active node, the DBMS performs partial log synchronization by receiving a log from the standby node after the point of time of the last synchronization until the active node is recovered.
11 Citations
12 Claims
-
1. A database management system (DBMS) for providing partial re-synchronization, the DBMS comprising:
-
a log synchronization unit for asynchronously transmitting a log from a first node to a second node and performing a redo operation internally on a log received by the second node; a partial page synchronization unit for checking which data pages in the first node are affected due to log operations performed on a GAP part of the first node and receiving corresponding data pages from the second node and overwriting the affected data pages in the first node with the corresponding data pages of the second node; and a log re-synchronization unit, which is operated in the first node after a failed first node restarts, for comparing a sequence number of newly updated transaction log data in the second node to a sequence number of applying data pages in the first node and receiving the newly updated transaction log data whose update sequence number is greater than the sequence number of the applying data pages in the first node, wherein the first node acting as a master server is actively used to run the DBMS, while the second node acting as a slave server is in a standby node ready to take over if a failover occurs, and when the failed master server restarts, the first node performs partial page synchronization and log re-synchronization, wherein the GAP part represents a section from right after a point at which synchronization is performed last between the first node and the second node before a failover occurs in the first node to a point at which a log is recorded last in the first node before the failover occurs. - View Dependent Claims (2, 3)
-
-
4. A database management system (DBMS) for providing partial re-synchronization, the DBMS comprising:
-
a log synchronization unit for asynchronously transmitting a log from an active node to a standby node; a search unit for searching for a point at which synchronization is performed last between the active node and the standby node if a failover occurs in the active node; a log checking unit for checking whether at least a log, which is recorded after the point at which the synchronization is performed last in the active node, is present in the active node when the failover occurs; a partial page synchronization unit for checking which data pages in the active node are affected due to a log operation performed on the log that is checked by the log checking unit and overwriting the affected data pages in the active node with corresponding data pages in the standby node after the failed active node restarts; and a log re-synchronization unit, which is operated in the active node after the failed active node restarts, for comparing a sequence number of newly updated transaction log data in the standby node to a sequence number of applying data pages in the active node and receiving the newly updated transaction log data whose sequence number is greater than the sequence number of the applying data pages in the active node. - View Dependent Claims (5, 6, 7, 8, 9, 11)
-
-
10. A database management system (DBMS) for providing partial re-synchronization, the DBMS comprising:
-
an active node for communicating with a client and processing a requirement of the client; a standby node for asynchronously obtaining backup of data of the active node via communication with the active node and performing a transaction service instead of the active node if a failover occurs in the active node; a log synchronization unit that is implemented in a standby node and performs a redo operation by asynchronously receiving a log from the active node; a partial page synchronizing unit that is implemented in the active node and overwrites data pages affected by log operations committed during a GAP part with corresponding data pages from the standby node ; and a log re-synchronization unit, which is operated in the active node after a failed active node restarts, for comparing a sequence number of newly updated transaction log data in the standby node to a sequence number of applying data pages in the active node and receiving, in the active node, the newly updated transaction log data whose update sequence number is greater than the sequence number of the applying data pages. wherein the active node acting as a master server is actively used to run the DBMS, while the standby node acting as a slave server is ready to take over if a failure occurs, and the partial page synchronizing unit and the log re-synchronization unit are configured to operate after the failed active node restarts.
-
-
12. A method of partially synchronizing a log, which is performed by a database management system (DBMS), the method comprising:
-
asynchronously transmitting a log from an active node to a standby node and performing a redo operation internally on a log received by the second node, which is performed by a log synchronization unit; checking whether at least a log, which is recorded after a point at which the synchronization is performed last in the active node, is present when a failover occurs; replacing data pages affected by log operations done to the at least a log in the active node with corresponding data pages from the standby node; comparing a sequence number of newly updated transaction log data in the standby node to a sequence number of applying data pages in the active node, which is performed by a log re-synchronization unit, wherein the log re-synchronization unit is operated in the active node after the failed active node restarts; and receiving, in the active node, the newly updated transaction log data whose sequence number is greater than the sequence number of the applying data pages.
-
Specification