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

Distributed file storage method based on ShardingSphere and Fastdfs

A distributed file and file storage technology, applied in file systems, file metadata retrieval, file/folder operations, etc., can solve problems such as access performance degradation, difficulty in expanding file storage space, and difficulty in system file sharing.

Pending Publication Date: 2022-06-24
中电万维信息技术有限责任公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] With the advent of the era of big data, the number of Internet pictures, files, and videos is also increasing at an explosive rate. The processing of files has become a huge challenge for various business systems. In traditional web applications, all functions and files are on the same platform. On the server, after the number of files reaches a certain level, there are a series of problems such as serious decline in access performance, difficulty in expanding file storage space, and difficulty in file sharing between systems.

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
  • Distributed file storage method based on ShardingSphere and Fastdfs
  • Distributed file storage method based on ShardingSphere and Fastdfs
  • Distributed file storage method based on ShardingSphere and Fastdfs

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] The detailed operation steps and principles of the present invention are further described with reference to the above-mentioned figures.

[0019] A distributed file storage method based on ShardingSphere and Fastdfs, comprising the following steps:

[0020] Step 1. Call the file storage interface to transfer the file and file meta information to the intermediate service layer application. The intermediate service layer application connects externally with the client, including the interface for adding, deleting, and querying files, and internally connects the database and the Fastdfs system. handle business logic;

[0021] Step 2. The intermediate service layer application uploads the file to the Fastdfs cluster. The Fastdfs cluster consists of N groups of nodes. The value range of N is determined according to the growth of the file. N≥3, each group has one master and one backup. Add nodes to the cluster to expand the cluster. The Fastdfs cluster will record the amoun...

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 relates to the technical field of data storage, in particular to a distributed file storage method based on ShardingSphere and Fastdfs (Fastdfs). The invention provides a distributed file storage method based on ShardSphere and Fastdfs, a distributed file storage architecture is formed by integrating components of a sub-library, a sub-table, a database and the Fastdfs, a file service API (Application Program Interface) is developed on the basis of the architecture, functions of storage, query, deletion and the like are provided, the storage function mainly uses a Fastdfs cluster to realize distributed storage of massive files, and the distributed file storage method has the advantages of being simple in structure, convenient to operate and high in practicability. And the query and deletion function mainly realizes the query and deletion of the file through massive file meta-information stored in the ShardingSphere and Mysql cluster. Distributed storage realized by the method mainly comprises a file data storage cluster based on Fastdfs, a database cluster based on ShardingSphere middleware and Mysql file meta-information storage, and a cluster based on Nginx and application service, and distributed expansion and load balancing can be realized from a data layer and a service layer.

Description

technical field [0001] The invention relates to the technical field of data storage, in particular to a distributed file storage method based on ShardingSphere and Fastdfs. Background technique [0002] With the advent of the era of big data, the number of Internet pictures, files, and videos has also increased at an explosive rate. The processing of files has become a huge challenge for various business systems. All functions and files in traditional web applications are on the same computer. On the server, after the number of files reaches a certain level, there are a series of problems such as serious degradation of access performance, difficulty in expanding file storage space, and difficulty in sharing files between systems. As a lightweight distributed file system, Fastdfs has the characteristics of high performance, scalability, load balancing, etc. It is suitable for storage of small and medium files in a big data environment; ShardingSphere is a relational database ...

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): G06F16/182G06F16/16G06F16/14
CPCG06F16/182G06F16/148G06F16/162G06F16/164Y02D10/00
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