PARALLEL PROCESSING APPARATUS AND METHOD IN DATABASE MANAGEMENT SYSTEM FOR SYNCHRONOUS REPLICATION
First Claim
Patent Images
1. A parallel-processing apparatus for an active node in a database management system (DBMS) replicated into the active node and a standby node, the parallel-processing apparatus comprising:
- a transaction allocation unit configured to allocate a plurality of master transactions to a plurality of master-transaction replication threads which are executed in parallel;
a master-transaction replication parallel-processing unit configured to execute in parallel, processes for replicating master-transaction logs which log a change in a local database of the active node caused by the plurality of master transactions through the allocated plurality of master-transaction replication threads and transmitting replications of the master-transaction logs to the standby node, to allow a plurality of replicated transactions corresponding to the plurality of master transactions to be executed in the standby node;
a deadlock detection unit configured to detect a deadlock state between a plurality of pairs of the master transactions and the replicated transactions; and
a master-transaction control unit configured to cancel at least one of the plurality of pairs of the master transactions and the replicated transactions for which the deadlock state is detected.
1 Assignment
0 Petitions
Accused Products
Abstract
A parallel-processing apparatus and method provide for synchronous replication in a database management system (DBMS). During synchronous replication into the active node and the standby node in the DBMS, replications of transactions are parallelized in units of transactions, thereby improving a performance of the DBMS, guaranteeing atomicity and consistency of the transaction, and solving the deadlock state which may occur in parallel-processing.
57 Citations
20 Claims
-
1. A parallel-processing apparatus for an active node in a database management system (DBMS) replicated into the active node and a standby node, the parallel-processing apparatus comprising:
-
a transaction allocation unit configured to allocate a plurality of master transactions to a plurality of master-transaction replication threads which are executed in parallel; a master-transaction replication parallel-processing unit configured to execute in parallel, processes for replicating master-transaction logs which log a change in a local database of the active node caused by the plurality of master transactions through the allocated plurality of master-transaction replication threads and transmitting replications of the master-transaction logs to the standby node, to allow a plurality of replicated transactions corresponding to the plurality of master transactions to be executed in the standby node; a deadlock detection unit configured to detect a deadlock state between a plurality of pairs of the master transactions and the replicated transactions; and a master-transaction control unit configured to cancel at least one of the plurality of pairs of the master transactions and the replicated transactions for which the deadlock state is detected. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A parallel-processing apparatus for a standby node in a database management system (DBMS) replicated into an active node and the standby node, the parallel-processing apparatus comprising:
-
a replicated-transaction parallel-processing unit configured to execute in parallel, processes for receiving replications of master-transaction logs which log a change in a local database of the active node caused by the plurality of master transactions, from the active node and executing a plurality of replicated transactions which correspond to the plurality of master transactions on a local database of the standby node based on the replications of the master-transaction logs through a plurality of replicated-transaction execution threads which are executed in parallel; a deadlock detection unit configured to detect a deadlock state between a plurality of pairs of the master transactions and the replicated transactions; and a replicated-transaction control unit configured to process a task included in at least one of a plurality of pairs of master transactions and replicated transactions for which the deadlock state is detected as an execution failure. - View Dependent Claims (8, 9, 10)
-
-
11. A parallel-processing method in a database management system (DBMS) replicated into an active node and a standby node, the parallel-processing method comprising:
-
executing in parallel, processes for replicating master-transaction logs which log a change in a local database of the active node caused by a plurality of master transactions through a plurality of allocated master-transaction replication threads and transmitting replications of the master-transaction logs to the standby node; executing in parallel, processes for receiving replications of master-transaction logs which log a change in a local database of the active node caused by the plurality of master transactions, from the active node and executing a plurality of replicated transactions which correspond to the plurality of master transactions on a local database of the standby node based on the replications of the master-transaction logs through a plurality of replicated-transaction execution threads which are executed in parallel; detecting, by the standby node, a deadlock state between a plurality of pairs between the master transactions and the replicated transactions, processing a task included in at least one of the plurality of pairs between the master transactions and the replicated transactions for which the deadlock state is detected as an execution failure, and reporting the replicated transaction having the failing task to the active node; and cancelling, by the active node, the master transaction corresponding to the replicated transaction having the failing task. - View Dependent Claims (12, 13, 14, 15)
-
-
16. 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 an active node in a database management system (DBMS) replicated into the active node and a standby node, the computer program product comprising:
-
a transaction allocation unit configured to allocate a plurality of master transactions to a plurality of master-transaction replication threads which are executed in parallel; a master-transaction replication parallel-processing unit configured to execute in parallel, processes for replicating master-transaction logs which log a change in a local database of the active node caused by the plurality of master transactions through the allocated plurality of master-transaction replication threads and transmitting replications of the master-transaction logs to the standby node, to allow a plurality of replicated transactions corresponding to the plurality of master transactions to be executed in the standby node; a deadlock detection unit configured to detect a deadlock state between a plurality of pairs of the master transactions and the replicated transactions; and a master-transaction control unit configured to cancel at least one of the plurality of pairs of the master transactions and the replicated transactions for which the deadlock state is detected. - View Dependent Claims (17, 18)
-
-
19. 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 standby node in a database management system (DBMS) replicated into an active node and the standby node, the computer program product comprising:
-
a replicated-transaction parallel-processing unit configured to execute in parallel, processes for receiving replications of master-transaction logs which log a change in a local database of the active node caused by the plurality of master transactions, from the active node and executing a plurality of replicated transactions which correspond to the plurality of master transactions on a local database of the standby node based on the replications of the master-transaction logs through a plurality of replicated-transaction execution threads which are executed in parallel; a deadlock detection unit configured to detect a deadlock state between a plurality of pairs of the master transactions and the replicated transactions; and a replicated-transaction control unit configured to process a task included in at least one of a plurality of pairs of master transactions and replicated transactions for which the deadlock state is detected as an execution failure. - View Dependent Claims (20)
-
Specification