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

File reading and writing method, device and equipment and computer readable storage medium

A reading and writing method and file reading technology, applied in computing, file system, file access structure, etc., can solve problems such as limited bandwidth and slow file reading speed

Active Publication Date: 2019-06-25
SANGFOR TECH INC
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, in the actual application of distributed storage technology, it is necessary to read and write files. When reading a file, it usually reads a copy of the file randomly from the sub-volume, and the copy of the file is distributed on different sub-volumes of different hosts. When reading, there are file copies stored in the local computer room, and file copies are read from other computer rooms, and the bandwidth between computer rooms is limited. When the amount of data transmission is large, the data transmission delay is high, which will resulting in slower reading of the file

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
  • File reading and writing method, device and equipment and computer readable storage medium
  • File reading and writing method, device and equipment and computer readable storage medium
  • File reading and writing method, device and equipment and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0048] Such as figure 1 as shown, figure 1 It is a schematic structural diagram of a file reading and writing device in the hardware operating environment involved in the solution of the embodiment of the present invention.

[0049] The file reading and writing device in the embodiment of the present invention may be a terminal device such as a PC equipped with a virtualization platform or a server (such as an X86 server).

[0050] Such as figure 1 As shown, the file reading and writing device may include: a processor 1001 , such as a CPU, a network interface 1004 , a user interface 1003 , a memory 1005 , and a communication bus 1002 . Wherein, the communication bus 1002 is used to realize connection and communication between these components. The user interface 1003 may include a display screen (Display), an inpu...

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 file reading and writing method which comprises the following steps: when a triggered file reading request is monitored, obtaining a copy storage routing group of a corresponding file according to the file reading request, and determining a first host for triggering the file reading request; Judging whether a replica storage route belonging to the first host exists in thereplica storage route group or not; If the replica storage route belonging to the first host exists in the replica storage route group, reading a file replica from the first host; And if the replicastorage route belonging to the first host does not exist in the replica storage route group, reading a file replica across a machine room. The invention further discloses a file reading and writing device and equipment and a computer readable storage medium. According to the invention, the bandwidth utilization rate between machine rooms can be reduced, and the file reading speed is improved.

Description

technical field [0001] The invention relates to the technical field of distributed storage, in particular to a file reading and writing method, device, equipment and computer-readable storage medium. Background technique [0002] With the advent of the big data era, distributed storage applications are becoming more and more widespread. In a distributed storage environment, there are multiple storage devices, and each storage device has multiple volumes. A file may have different numbers of file copies for data security and file access efficiency. File copies need to be evenly distributed on different volumes of different hosts, which can avoid the situation that the file cannot be accessed due to the failure of the storage node, and can also Avoid the increase of user access delay due to high traffic. [0003] At present, in the actual application of distributed storage technology, it is necessary to read and write files. When reading a file, it usually reads a copy of the...

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): G06F16/13G06F16/11G06F16/172
CPCY02D10/00
Inventor 姚凯张国军
Owner SANGFOR TECH INC