Method for mirroring a log file by threshold driven synchronization
First Claim
1. A method of mirroring log data from a primary storage subsystem to a secondary storage subsystem, the method comprising:
- initiating a transaction in response to receiving a write instruction;
determining a value of the transaction;
adding the value of the transaction to a cumulative value of transaction values since a most recent synchronous mirroring;
performing an asynchronous mirroring of the log data when the cumulative value does not exceed a damage threshold, andperforming a synchronous mirroring of the log data when the cumulative value exceeds the damage threshold, andwherein the value of the transaction is an indicator of one or more of a monetary value of the transaction and a transaction data quantity.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for of accelerating database log hardening using specific per block data protection and damage control is provided. A per write specification is implemented to determine when database log data is mirrored synchronously or asynchronously. Synchronous mirroring is performed upon reaching a predetermined threshold, based on one or more parameters such as transaction value, both individual and cumulative, and the quantity of data written since the last synchronous mirroring. As data is added to the database log, it is written specifying asynchronous mirroring to the primary log file. Once a threshold is met, a write specifying synchronous mirroring is performed to both the primary and secondary log files, thereby hardening the log file in both primary and secondary storage subsystem.
17 Citations
24 Claims
-
1. A method of mirroring log data from a primary storage subsystem to a secondary storage subsystem, the method comprising:
-
initiating a transaction in response to receiving a write instruction; determining a value of the transaction; adding the value of the transaction to a cumulative value of transaction values since a most recent synchronous mirroring; performing an asynchronous mirroring of the log data when the cumulative value does not exceed a damage threshold, and performing a synchronous mirroring of the log data when the cumulative value exceeds the damage threshold, and wherein the value of the transaction is an indicator of one or more of a monetary value of the transaction and a transaction data quantity. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A computer program product for mirroring log data from a primary storage subsystem to a secondary storage subsystem, comprising:
-
a non-transitory computer usable medium having computer usable code embodied therewith, the computer program product comprising; computer usable code configured for initiating a plurality of transactions of a mirroring operation; computer usable code configured for determining a value of each transaction; computer usable code configured for adding the value of each transaction to a cumulative value of transaction values since a most recent synchronous mirroring; computer usable code configured for asynchronously mirroring of the log data when the cumulative value does not exceed a damage threshold for at least one of the transactions; and computer usable code configured for synchronously mirroring the log data when the cumulative value exceeds the damage threshold for at least a different one of the transactions, wherein the value of the transaction is an indicator of one or more of a monetary value of the transaction and a transaction data quantity. - View Dependent Claims (10, 11, 12, 13, 14, 15)
-
-
16. A method of mirroring database transaction log data from a primary storage subsystem to a secondary storage subsystem, the method comprising:
-
receiving database transaction log data from a log hardening module configured to determine whether a write instruction to the primary storage subsystem specifies either asynchronous or synchronous mirroring; initializing a damage counter in response to receiving the log data from the log hardening module; initiating several transactions; upon initiating each transaction, determining a value of the transaction; upon determining the value of each transaction, updating the damage counter based on the value of the transaction to a cumulative value of the transactions processed after a most recent synchronous mirroring; performing a synchronous mirroring of the database transaction log data in response to determining that a value of the damage counter for the transaction is greater than a damage threshold; and performing an asynchronous mirroring of the log data when the cumulative value does not exceed a damage threshold. - View Dependent Claims (17, 18, 19, 20)
-
-
21. A method of mirroring log data from a primary storage subsystem to a secondary storage subsystem, the method comprising:
-
opening a log file comprising the log data; setting a physical data threshold in response to opening the log file; initiating a transaction; determining whether the physical data threshold is reached; performing an asynchronous mirroring of the log data in response to determining the physical data threshold is not yet reached; and performing a synchronous mirroring of the log data in response to determining the physical data threshold is reached; and initializing a physical data threshold counter in response to opening the log file, the physical data threshold counter indicates a cumulative quantity of data transferred since a most recent synchronous mirroring, wherein the step of performing the synchronous mirroring comprises the step of updating the secondary storage subsystem with log data received after the most recent synchronous mirroring. - View Dependent Claims (22, 23, 24)
-
Specification