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

Small file storing and positioning method and system

A positioning method and positioning system technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve problems such as poor scalability and single point of failure, and achieve the effect of solving single point of failure and scalability

Inactive Publication Date: 2017-11-17
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF7 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to propose a small file storage positioning method and system to solve the need for the central metadata server to provide positioning services in the small file storage system in the prior art, and in order to ensure the availability and fault tolerance of the system, it is necessary to Files are saved in multiple copies, causing the client to interact with the server at least twice every time it reads and writes. The first time is for large file positioning, and the second time is for actual data reading and writing; and the cluster may There is a single point of failure and poor scalability

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
  • Small file storing and positioning method and system
  • Small file storing and positioning method and system
  • Small file storing and positioning method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] 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.

[0041] Please refer to the attached figure 1 , figure 1 It is a schematic flowchart of a method for storing and locating small files provided by an embodiment of the present invention. Such as figure 1 As shown, the present invention discloses a method for storing and locating small files. Specifically, the method includes the following steps:

[0042] S101. Obtain the file name of the small file.

[0043] S102. Obtain the number corresponding to the store...

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 small file storing and positioning method and system. The method comprises the steps that the name of a small file is subjected to Hash calculation, the number of a stored large file corresponding to the small file is positioned; according to the number of the stored large file, magnetic disks of all copies of the small file in the stored large file are positioned by using a consistent Hash method; according to index files on the magnetic disks, the offset of the small file in the stored large file is determined, and accordingly the storing position of the small file is determined. Central element data serving nodes are removed in a small file storing system, positioning of the multiple copies of the small file is achieved in a decentralized framework, the problems about single-point faults and expandability are solved, and meanwhile, extra position query requests are removed.

Description

technical field [0001] The invention relates to the technical field of data storage, in particular to a method and system for storing and locating small files. Background technique [0002] The rapid development of the Internet has produced a large number of pictures, documents and other files. These files are characterized by small size (generally below 100KB) and huge number (hundreds of millions). The traditional POSIX interface file system has been difficult to meet the demand. This is the well-known problem of massive small files in the industry. [0003] For the problem of massive small files, the current common practice is to store small files in a traditional POSIX file. Since small files are stored on the disk in the form of combined storage, to locate a small file, in addition to the path of the physical large file , but also includes the offset of the small file in the large file, so simply using the traditional common hash method will not be able to locate the p...

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
IPC IPC(8): G06F17/30
CPCG06F16/113G06F16/137
Inventor 李杰辉牛立国
Owner BEIJING QIYI CENTURY SCI & TECH CO LTD
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