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

Data storage method and device

A data storage and data block technology, applied in the computer field, can solve the problems of complex implementation, unavailable servers, low availability, etc., and achieve the effect of improving availability

Active Publication Date: 2021-09-21
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in this way, when the network in the computer room is disconnected, data loss or server unavailability may occur, resulting in low availability
Some distributed file systems use multiple copies to be stored in multiple computer rooms, and a distributed protocol is used to select a master copy for reading and writing. When the inter-network is disconnected, the client is unavailable and the availability is low

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0085] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

[0086] figure 1 It is a schematic diagram showing the architecture of a distributed file system according to an exemplary embodiment. The framework of the distributed file system may include a client (Client), a naming node (NameNode) and a plurality of data nodes (DataNode) respectively deployed in the server.

[0087] Wherein, the client can provide a file read and write interface....

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 disclosure relates to a data storage method and device. The method is applied to a server deployed with a named node in a distributed file system, and the distributed file system also includes a client and M data nodes in different computer rooms. The method includes: receiving a data block creation request from a client; determining a data node that can carry a copy of the data block according to the computer room identifier and status information of the data node and the client computer room identifier; creating a data block copy of the data block; sending data to the client The attribute information of the block, so that the client writes the file according to the attribute information. According to the embodiment of the present disclosure, according to the state of the data node and the identification of the computer room, it is possible to determine the data node that can carry the copy of the data block, create the copy of the data block and send the attribute information of the data block to the client, so that the client can write the file to Multiple data nodes realize data storage in multiple computer rooms and improve the availability of the distributed file system.

Description

technical field [0001] The present disclosure relates to the field of computer technology, in particular to a data storage method and device. Background technique [0002] With the continuous development of Internet technology, the demand for information storage is increasing, and people are increasingly using distributed file systems to store data. In order to improve the availability of data, a multi-computer room architecture is usually adopted, that is, the server carrying the data is placed in multiple computer rooms, and the data is stored on the servers in multiple computer rooms in the form of multiple copies. When a single computer room fails or the network is unreachable , you can access the required data through other computer rooms. [0003] In related technologies, some distributed file systems adopt a mode of one main computer room and multiple backup computer rooms. The client writes data to the main computer room and asynchronously or synchronously writes th...

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/185G06F16/182
CPCG06F16/119G06F16/122G06F16/182
Inventor 郭军徐飞明
Owner BEIJING XIAOMI MOBILE SOFTWARE CO LTD