Unlock instant, AI-driven research and patent intelligence for your innovation.

A method, device and system for storing data based on majority

A technology of data storage and majority, applied in the direction of digital data processing, transmission system, input/output process of data processing, etc., can solve the problem of temporary storage machine disk IO increase, fragmentation write operation failure, file loss, etc. question

Active Publication Date: 2020-02-07
GUIZHOU BAISHANCLOUD TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] 1. Files are temporarily stored on the device disk, and there will be a single point problem. Before the file is distributed to the storage device, if the device goes down or the disk storing the file fails, the file will be permanently lost;
[0010] 2. Temporarily storing received files and writing them to the disk and then asynchronously distributing them will lead to an increase in disk IO of the temporary storage machine. When the load is high, it will seriously affect the performance of the device;
[0011] 3. Write the master and multi-slave method, you need to maintain the master-slave relationship between the shards. When the master is abnormal, all write operations mapped to the shard will fail before a new master is elected.

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 method, device and system for storing data based on majority
  • A method, device and system for storing data based on majority
  • A method, device and system for storing data based on majority

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0070] Embodiment 1 of the present invention provides a data storage method based on the majority, such as figure 1 As shown, it is a schematic flow chart of the majority-based data storage method described in Embodiment 1 of the present invention, and the method may include the following steps:

[0071] Step 101: The front-end server receives the file upload request, and selects a file group from the file groups of the first preset number according to the file upload request, wherein each file group corresponds to the storage of the second preset number unit.

[0072] Step 102: Receive the data in the file, and according to the selected file group, upload the received data in the file to the storage unit of the second preset number corresponding to the selected file group.

[0073] Step 103: When it is determined that the upload of the data in the file is completed, and the physical information of the file returned by the storage units greater than or equal to the third pres...

Embodiment 2

[0094] Based on the same inventive concept as that of Embodiment 1 of the present invention, Embodiment 2 of the present invention takes the storage unit as the execution subject and provides a method for storing data based on majority faction. The schematic flow chart is as follows image 3 As shown, the method may include the following steps:

[0095] Step 301: the storage unit receives the data in the file uploaded by the front-end server.

[0096] Step 302: Send the physical information of the file to the front-end server after it is determined that the data in the file is received.

[0097] Further, for step 302, when it is determined that the data in the file has been received, send the physical information of the file to the front-end server, the specific behavior may be: when it is determined that the data in the file has been received, send the physical information to the front-end server The server sends the file physical information of SHA1, MD5, and SIZE.

[0098...

Embodiment 3

[0107] Based on the same inventive concept as that of Embodiment 1 of the present invention, Embodiment 3 of the present invention provides a front-end server. For the specific implementation of the front-end server, please refer to the relevant description in Embodiment 1 of the above-mentioned method. Structural diagram such as Figure 4 As shown, the front-end server mainly includes:

[0108] The receiving unit 41 is configured to receive a file upload request, and select a file group from a first preset number of file groups according to the file upload request, wherein each file group corresponds to a second preset number of files storage unit;

[0109] The upload unit 42 can be used to receive the data in the file, and according to the selected file group, upload the received data in the file to the storage unit of the second preset number corresponding to the selected file group superior;

[0110] The processing unit 43 can be used to determine that the upload of the...

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 discloses a method, device and system for storing data based on majority. In the method, the front-end server can select a file group from the file group with the first preset number according to the received file upload request, and store the The data in the received files are respectively uploaded to the storage unit of the second preset value number corresponding to the selected file group, and the uploading of the data in the file is determined to be completed, and the data of the third preset value number or more is received. When the physical information of the file is returned by the storage unit, the data is successfully written, and then the metadata information in the file is updated to the database. At this time, the file upload request is returned as successful. According to the technical solution of the present invention, by adopting the successful method of the majority to write files, there will be no single-point problem, and any failure of the copy device of the minority will not cause data loss. The content is transferred to each copy, which can reduce disk IO usage.

Description

technical field [0001] The present invention relates to the technical field of data storage, in particular to a method, device and system for data storage based on majority. Background technique [0002] In a large-scale distributed storage system, equipment downtime, network abnormalities, and disk failures can be seen everywhere. In order to solve these abnormal situations, distributed storage systems often store multiple redundant copies of data. Each copy of data is called a copy. In this way, when a device fails, data can be accessed from other devices. At the same time, when the data of a copy is lost, it can be recovered from other copies, ensuring the reliability of the data. [0003] Since multiple copies need to be written when writing data, there needs to be a way how to write multiple copies to count as a successful request. The existing methods for writing multiple copies are: [0004] 1. Temporary storage and asynchronous distribution methods [0005] On t...

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): H04L29/08G06F3/06
CPCH04L67/06H04L67/1097G06F3/0619G06F3/0643G06F3/067G06F3/06
Inventor 吴义谱张炎泼
Owner GUIZHOU BAISHANCLOUD TECH CO LTD