File storage method and device

A file storage and file technology, applied in the file system, file access structure, file system function, etc., can solve the problem of high write pressure on the underlying cluster

Inactive Publication Date: 2017-08-04
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to provide a method and device for file storage, with the purpose of solving the problem in the prior art that when the files are large and the number is small, using the small file aggregate write function will cause the writing pressure of the underlying cluster to be relatively high

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. 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.

[0033] See figure 1 , figure 1 A schematic flowchart of a specific implementation of the file storage method provided by the embodiment of the present invention, the method includes the following steps:

[0034] Step 101: Detect the directory attribute of the file to be stored, and judge whether the directory attribute is an aggregation attribute set in advance according to the application scenario.

[0035...

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 storage method and device. The method comprises the steps that by detecting directory attributes of storage files to be stored, whether the directory attributes are an aggregation attributes which are set according to application scenes in advance or not is judged; if yes, a file aggregation writing function is enabled, the storage files to be stored are stored to an aggregation file, when surplus storage space of OBJ objects in the aggregation file is equal to or smaller than a preset capacity, a plurality of storage files to be stored in the OBJ objects are written into a disk in batches, and the aggregation file comprises a plurality of OBJ objects; if not, the storage files to be stored are written into the disk. According to the file storage method and device, whether the directory attributes are the aggregation attributes or not is judged, so that it is determined that current files are file aggregation writing or ordinary non-aggregation writing, according to different scenes, the directory attributes are preset, and the file aggregation writing function is selectively enabled or disenabled so that the writing pressure of the cluster of the bottom layer can be reduced.

Description

technical field [0001] The invention relates to the field of file systems, in particular to a method and device for storing files. Background technique [0002] With the development of file system technology, the application of distributed storage file system is becoming more and more extensive. [0003] In a distributed storage file system, in order to cope with massive small file storage scenarios, small files are generally aggregated and written to the disk to reduce the number of times of writing to the disk and improve file writing performance. However, when the files are only large or the number is small, there is no need to use the file aggregation write function to realize file storage. [0004] When the files are large or the number is small, using the small file aggregate write function will make the writing pressure of the underlying cluster greater. Contents of the invention [0005] The purpose of the present invention is to provide a method and device for f...

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/13G06F16/17
Inventor 王小梅
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products