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

File reading method, apparatus and device

A file and device technology, applied in the field of distributed file systems, can solve problems such as the client's inability to immediately obtain read cache permissions, the inability of messages to arrive immediately, and the freeze.

Active Publication Date: 2018-02-16
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF11 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, due to the delay in the permission update of the client in the distributed file system, the message that the client releases the temporary read cache permission cannot reach the metadata server in the distributed system immediately, so that the metadata server cannot immediately know the client. The temporary read cache permission has been released, so that the client cannot obtain the read cache permission immediately, and it is in a waiting state and there is a freeze phenomenon

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 method, apparatus and device
  • File reading method, apparatus and device
  • File reading method, apparatus and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0043] The embodiment of the present invention discloses a method, device, device and computer-readable storage medium for reading files, so as to avoid the delay of authority update of the client in the distributed file system and improve the reading performance of the distributed file system.

[0044] see figure 1 , a method for reading a file provided by an embodiment of the present invention, comprising:

[0045] S101. Obtain the temporary read cache perm...

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 method, apparatus and device, and a computer readable storage medium. The method comprises the steps of obtaining a temporary reading cache permission of a target file; according to the temporary reading cache permission, obtaining attribute information of the target file, releasing the temporary reading cache permission, and immediately updating permissionsof currently owned all directory files to enable a distributed file system to send the reading cache permission of the target file; and obtaining the reading cache permission, and reading the target file by utilizing the reading cache permission. Through the method, the time delay and the waiting time of reading the file by a client can be effectively shortened; the reading performance and high storage availability of the distributed file system are improved; and the resource waste is avoided. Correspondingly, the invention discloses the file reading apparatus and device, and the computer readable storage medium, which also have the abovementioned technical effects.

Description

technical field [0001] The present invention relates to the technical field of distributed file systems, and more specifically, to a method, device, device and computer-readable storage medium for reading files. Background technique [0002] With the rapid development of the Internet and computer technology, the storage capacity of data files is gradually increasing, especially in the distributed file system, because the files are stored in different physical locations, when multiple clients access the distributed file system at the same time, the access efficiency is affected and storage business. [0003] At present, in the distributed file system, when multiple clients read and write the same file, the read client sends a request for the read cache permission of the file to the distributed file system. At this time, the system will grant the read client a temporary Read cache permission, so that the read client can obtain the attribute information of the file, and after ...

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): G06F17/30
CPCG06F16/172G06F16/182
Inventor 李长春
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More