Log-structured storage systems
AssigneeAdvanced New Technologies Co., Ltd.
InventorShikun Tian
Life of this patent
Estimating the term…
Abstract
Disclosed herein are methods, systems, and apparatus, including computer programs encoded on computer storage devices, for data processing. One of the methods includes maintaining, by a storage system, a plurality of storage devices that include at least a first tier storage device and a second tier storage device. The storage system receives a write request of a ledger data, determines whether a type of the ledger data is block data, and, in response to determining that the type of the ledger data is block data, writes the ledger data into the second tier storage device.
Claims21
A computer-implemented method comprising:
- maintaining, by a storage system, a plurality of storage devices, the plurality of storage devices comprising at least a first tier storage device and a second tier storage device;
- receiving a first write request of a first ledger data, wherein the first ledger data comprises one of blockchain transaction data, blockchain block data, blockchain index data, or blockchain state data generated by a blockchain network;
- determining whether a type of the first ledger data is blockchain block data, wherein the blockchain block data comprises at least one block in a blockchain, and the at least one block comprises one or more blockchain transactions and a hash value of a previous block in the blockchain;
- in response to determining that the type of the first ledger data is blockchain block data, writing the first ledger data into the second tier storage device, wherein the second tier storage device has a larger storage space than the first tier storage device;
- receiving a second write request of a second ledger data generated by the blockchain network;
- determining that a type of the second ledger data is not blockchain block data, wherein the type of the second ledger data is blockchain transaction data, blockchain index data, or blockchain state data;
- in response to determining that the type of the second ledger data is not blockchain block data, determining a usage level of the first tier storage device;
- determining whether the usage level of the first tier storage device is below a predetermined threshold;
- and
- in response to determining that the usage level of the first tier storage device is below the predetermined threshold, writing the second ledger data into the first tier storage device.
A non-transitory, computer-readable storage medium storing one or more instructions executable by a computer system to perform operations comprising:
- maintaining, by a storage system, a plurality of storage devices, the plurality of storage devices comprising at least a first tier storage device and a second tier storage device;
- receiving a first write request of a first ledger data, wherein the first ledger data comprises one of blockchain transaction data, blockchain block data, blockchain index data, or blockchain state data generated by a blockchain network;
- determining whether a type of the first ledger data is blockchain block data, wherein the blockchain block data comprises at least one block in a blockchain, and the at least one block comprises one or more blockchain transactions and a hash value of a previous block in the blockchain;
- in response to determining that the type of the first ledger data is blockchain block data, writing the first ledger data into the second tier storage device, wherein the second tier storage device has a larger storage space than the first tier storage device;
- receiving a second write request of a second ledger data generated by the blockchain network;
- determining that a type of the second ledger data is not blockchain block data, wherein the type of the second ledger data is blockchain transaction data, blockchain index data, or blockchain state data;
- and
- in response to determining that the type of the second ledger data is not blockchain block data, determining a usage level of the first tier storage device;
- determining whether the usage level of the first tier storage device is below a predetermined threshold;
- and
- in response to determining that the usage level of the first tier storage device is below the predetermined threshold, writing the second ledger data into the first tier storage device.
A storage system comprising:
- one or more processors;
- and
- one or more computer-readable memories coupled to the one or more processors and having instructions stored thereon that are executable by the one or more processors to perform operations comprising:
- maintaining, by the storage system, a plurality of storage devices, the plurality of storage devices comprising at least a first tier storage device and a second tier storage device;
- receiving a first write request of a first ledger data, wherein the first ledger data comprises one of blockchain transaction data, blockchain block data, blockchain index data, or blockchain state data generated by a blockchain network;
- determining whether a type of the first ledger data is blockchain block data, wherein the blockchain block data comprises at least one block in a blockchain, and the at least one block comprises one or more blockchain transactions and a hash value of a previous block in the blockchain;
- in response to determining that the type of the first ledger data is blockchain block data, writing the first ledger data into the second tier storage device, wherein the second tier storage device has a larger storage space than the first tier storage device;
- receiving a second write request of a second ledger data generated by the blockchain network;
- determining that a type of the second ledger data is not blockchain block data, wherein the type of the second ledger data is blockchain transaction data, blockchain index data, or blockchain state data;
- and
- in response to determining that the type of the second ledger data is not blockchain block data, determining a usage level of the first tier storage device;
- determining whether the usage level of the first tier storage device is below a predetermined threshold;
- and
- in response to determining that the usage level of the first tier storage device is below the predetermined threshold, writing the second ledger data into the first tier storage device.
Dependencies are inferred from the claim text.