Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A local storage method and system based on redirection and log mixing

A local storage and redirection technology, applied in file systems, file system types, instruments, etc., can solve problems such as the impact of storage system performance, and achieve the effect of ensuring atomicity and improving concurrent write performance

Active Publication Date: 2022-08-05
深圳市杉岩数据技术有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In order to solve the technical problem in the prior art that in order to ensure the atomicity of local transactions, the performance of the storage system will be greatly affected, the present invention proposes a local storage method and system based on redirection and log mixing

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A local storage method and system based on redirection and log mixing
  • A local storage method and system based on redirection and log mixing
  • A local storage method and system based on redirection and log mixing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] In order to have a clearer understanding of the technical features, objects and effects of the present invention, the specific embodiments of the present invention will now be described with reference to the accompanying drawings.

[0050] like image 3 As shown, the local storage method based on redirection and log mixing proposed by the embodiment of the present invention specifically includes the following steps:

[0051] S1. When a data writing request is received, the location information corresponding to the requested data in the data disk of the storage device is searched through metadata information.

[0052] S2. Determine whether it is the initial write or the data block unit aligned overwrite according to the location information. The initial write refers to the data area written by this transaction that has not been written before, and the data block aligned coverage refers to this transaction. The written area has been written before but this area is aligne...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention proposes a local storage method and system based on redirection and log mixing. The method includes three scenarios: 1) initial write or data block unit alignment overwrite scenario, data is asynchronously written to a storage device data disk, and after writing is returned The metadata is encapsulated into an entry of the local log, and then the local log is written asynchronously by sharding. After the log is successfully placed on the disk, it is synchronized to the memory cache of the KV database, and then the response of the write operation is returned to the upper layer; 2) Non-data block unit alignment coverage In the writing scenario, first encapsulate the data and metadata into an entry of the local log, then write the local log in shards, and then write the memory cache after writing the local log, and then the write operation can return; 3) In the mixed scenario, write the data block first The unit-aligned part of the data, and then write the metadata and the data of the non-data block unit-aligned part to the local log, and then return the response of the write operation, and then write the non-data block unit-aligned overwrite part of the data to the storage device data disk.

Description

technical field [0001] The invention relates to the field of distributed storage, in particular to a local storage method and system based on redirection and log mixing. Background technique [0002] When distributed storage writes local transactions, the atomicity of local transactions needs to be guaranteed. The atomicity of local transactions means that a transaction is either completely executed or not executed, which means that all tasks of the transaction must be executed correctly. If there is a task If the execution fails, the entire transaction will be terminated, and the previous changes made to the transaction will not take effect. If the changes in the transaction are successfully executed, the entire transaction will be completed, and the changes made to the data by the transaction are permanent. , Overwriting is generally guaranteed by redirecting writing or writing pre-logs. Currently, there are two main approaches: [0003] (1) The approach of FileStore (a l...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/172G06F16/18G06F16/16
CPCG06F16/172G06F16/1815G06F16/162Y02D10/00
Inventor 文刘飞陈建立陈坚
Owner 深圳市杉岩数据技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products