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

Data storage method and apparatus

A technology of data storage and storage capacity, which is applied in the field of cloud storage to achieve the effect of improving scientificity

Active Publication Date: 2018-02-16
GUIZHOU BAISHANCLOUD TECH CO LTD
View PDF6 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention aims to solve the problems described above

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
  • Data storage method and apparatus
  • Data storage method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0064] figure 1 is a flow chart showing a data storage method according to Embodiment 1 of the present invention. This method is typically applied to servers used for storage, see figure 1 , the method includes:

[0065] Step 101, grouping the file storage areas, and setting the storage capacity of each group;

[0066] Step 102, receiving the file upload request sent by the client, the file upload request includes the file identification of the file to be uploaded and the check block of the file to be uploaded calculated according to the preset algorithm; determine the information of the file to be uploaded, including the file to be uploaded File ID, original data and check block of the file to be uploaded;

[0067] Step 103, determine the target group, including: determine the file identification range of each group, according to the file identification of the file to be uploaded and the file identification range of each group, the file identification range includes the gr...

Embodiment 2

[0086] figure 2is a schematic structural diagram showing a data storage device according to Embodiment 2 of the present invention. refer to figure 2 , the device includes:

[0087] The grouping module 201 is used for grouping the file storage area and setting the storage capacity of each group;

[0088] Upload request receiving module 202, for receiving the file upload request sent by the client, the file upload request includes the file identification of the file to be uploaded and the check block of the file to be uploaded calculated according to the preset algorithm;

[0089] The file information determination module 203 is used to determine the information of the file to be uploaded, including the file identification of the file to be uploaded, the original data and the check block of the file to be uploaded;

[0090] The target group determination module 204 is used to determine the target group, including: determining the file identification range of each group, acc...

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 invention discloses a data storage method and apparatus. The method comprises the following steps: grouping file storage areas, and setting storage capacity of each group; receiving a file uploading request sent by a client, wherein the file uploading request comprises a file identifier of a to-be-uploaded file and a check block of the to-be-uploaded file calculated according to a preset algorithm; determining the information of the to-be-uploaded file, wherein the information comprises the file identifier of the to-be-uploaded file, and the original data and the check block of the to-be-uploaded file; determining a target group comprising: determining the file identification range of the group, and using the group in which the file identification range contains the group of the file identifier of the to-be-uploaded file and the residual storage capacity is not smaller than the storage amount occupied by the information of the to-be-uploaded file as the target group according to the file identifier of the to-be-uploaded file and the file identification range of the group; and storing the information of the to-be-uploaded file in the target group. By adoption of the data storagemethod and apparatus, the scientificalness of the file management can be improved, and the storage speed is improved.

Description

technical field [0001] The present invention relates to the field of cloud storage, in particular to a data storage method and device. Background technique [0002] Existing distributed data storage systems generally use fixed data copies (such as 2 copies or 3 copies), and its main disadvantage is that for cold data stored in the data storage area with fewer access times, it also needs to occupy multiple copies of storage space. This makes it impossible to free up more storage space for hot data stored in the data storage node with a large number of visits, resulting in a low effective utilization of the storage space. [0003] In order to save the storage space occupied by cold data, in the prior art, an erasure coding (Erasure Coding) algorithm is used to encode the file content. When the file content is damaged, the code can be used to restore the file content, which reduces the cold data due to The storage space occupied by the store replica. [0004] When a user down...

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 Applications(China)
IPC IPC(8): H04L29/08H04L9/32G06F11/10
CPCH04L9/3239H04L67/06H04L67/1008H04L67/1097G06F11/1004H04L67/5682H04L67/63
Inventor 张炎泼
Owner GUIZHOU BAISHANCLOUD TECH CO LTD
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