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

Metadata updating method and device and metadata server

A technology of a metadata server and an update method, applied in the storage field, can solve problems such as low efficiency of a file metadata recovery scheme

Active Publication Date: 2020-01-03
北京浪潮数据技术有限公司
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The purpose of this application is to provide a metadata update method, device, metadata server and readable storage medium to solve the problem of low efficiency of traditional file metadata recovery schemes

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
  • Metadata updating method and device and metadata server
  • Metadata updating method and device and metadata server
  • Metadata updating method and device and metadata server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] The core of the present application is to provide a metadata update method, device, metadata server and readable storage medium, which uses a binary search method to find the last written object of a target file, which significantly improves the efficiency of file metadata recovery.

[0042] In order to enable those skilled in the art to better understand the solution of the present application, the present application will be further described in detail below in conjunction with the drawings and specific implementation methods. Apparently, the described embodiments are only some of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0043] First, the application scenario of the embodiment of this application is introduced: in the process of using the distributed fi...

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 metadata updating method and device, a metadata server and a readable storage medium. According to the scheme, the metadata updating method comprises the steps of acquiring the file size of a locally recorded target file and a writable range section allocated to the target file; searching a last written object of the target file from the data management module by utilizing a binary search method according to the locally recorded file size and writable range section; and determining the real file size of the target file according to the finally written object, and updating the locally recorded file size. Visibly, according to the file size of the target file recorded on the metadata server and the writable range section allocated to the target file, the object which is finally written into the target file is searched by utilizing the binary search method, so that the problem of overlong consumed time caused by one-by-one search in a traditional scheme is avoided, and the file metadata recovery efficiency is remarkably improved.

Description

technical field [0001] The present application relates to the field of storage, and in particular to a method and device for updating metadata, a metadata server and a readable storage medium. Background technique [0002] During the use of the distributed file system, when the client writes data to the files in the cluster, the write data and the write metadata will be separated asynchronously, that is, the file data is written through the data management module. After writing, in the subsequent time, The client will use the method of updating metadata asynchronously to update metadata information such as file size cached in memory to MDS. [0003] However, while asynchronously updating metadata may improve performance, it may also cause incorrect file metadata size. For example, the data has been written to the data management module, but the client has not updated the new size information to the MDS. Where the client is located The cached file metadata information 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/182G06F16/21G06F16/23
CPCG06F16/182G06F16/23G06F16/219
Inventor 孙业宽
Owner 北京浪潮数据技术有限公司
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