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

Multi-file batch packaging method under distributed file system and storage medium

A distributed file and multi-file technology, applied in the field of web service packaging, can solve the problems of large disk IO on the client side, performance degradation of client service, mixed code logic, etc., to reduce file IO operations, improve packaging efficiency and reliable packaging sexual effect

Inactive Publication Date: 2019-05-24
FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The disadvantage of this method is that when users package and download, it is mixed with their own business service code logic
Specifically, a large number of packaging requests will cause a large number of disk IOs on the client, resulting in a decrease in client service performance, and long-term packaging operations may also cause request timeouts

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
  • Multi-file batch packaging method under distributed file system and storage medium
  • Multi-file batch packaging method under distributed file system and storage medium
  • Multi-file batch packaging method under distributed file system and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0056] Please refer to figure 2, the present embodiment provides a file packaging method under the distributed file system, including:

[0057] S1: After receiving a packaging request corresponding to more than two target files, the client generates a corresponding packaging description file.

[0058] The client refers to any device that can send packaging requests to the packaging server.

[0059] Specifically, including:

[0060] 1.1. After the user checks multiple scattered file information to be packaged on the client terminal, a package service request is generated;

[0061] 1.2. After receiving the packaging service request initiated by the user, the client will list the target file information list corresponding to the current packaging request (generally corresponding to a large number of scattered files or folders) based on its own business needs; finally, according to the client system The listed target file list generates the corresponding packaging description ...

Embodiment 2

[0092] This embodiment corresponds to Embodiment 1, and provides a file packaging system under a distributed file system, including a client, a packaging server, and a distributed file system.

[0093] The client is specifically used for:

[0094] 1. Receive the packaging service request corresponding to the user;

[0095] 2. Combined with its own business needs, list the file list required by the current user request (usually a large number of scattered files or folders);

[0096] 3. Generate a resource packaging description file recognizable by the packaging service according to the file list listed by the system, which includes the compressed package type, the generated file name (namely the compressed package file name), the source file path, and the target file path; wherein, the The resource packaging description file is a description file in json format;

[0097] 4. After sending the packaging description file to the packaging service, obtain a UUID returned by the pa...

Embodiment 3

[0111] This embodiment corresponds to Embodiment 1, and provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the file under the distributed file system described in Embodiment 1 above can be realized. The steps involved in the packaging method. The specific steps will not be repeated here, please refer to the description of Embodiment 1 for details.

[0112]Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM) and the like.

[0113] In summary, the file packaging method and storage medium under the distributed file system provided by the present invention separate the download business of multiple files from the client business service, and hand it over to an independent packaging server for realization, and at the same time improve the package download service. Efficiency and packaged reliab...

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 provides a multi-file batch packaging method under distributed file system and storage medium, and the method comprises the steps: receiving a packaging request corresponding to more than two target files by a client, and generating a corresponding packaging description file; enabling The client to send the packaging description file to a packaging server; enabling The packaging server side to obtain the more than two target files from the distributed file system according to the source file path in the packaging description file; enabling The packaging server to package the morethan two target files to generate corresponding packages; And enabling the packaging server to upload the compressed packet to the distributed file system and returns the download address of the distributed file system corresponding to the compressed packet to the client. According to the invention, the downloading services of multiple files are stripped from the client service and are realized by the independent packaging server, and the packaging downloading efficiency and the packaging reliability are improved at the same time.

Description

technical field [0001] The invention relates to the field of web service packaging, in particular to a multi-file batch packaging method and a storage medium under a distributed file system. Background technique [0002] With the development of the Internet, the amount of files that need to be stored is increasing. At present, most enterprises choose to store files in the distributed file system for file reading and writing. In many scenarios, users need to package and download selected files in batches. [0003] The packaging method in the prior art needs to be realized through the business service of the client itself. Specifically, when processing a packaging request, the business service itself needs to complete the downloading, compression, and storage of related files. The disadvantage of this method is that when users package and download, it is mixed with their own business service code logic. Specifically, a large number of packaging requests will cause a large n...

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): H04L29/08G06F16/182
Inventor 刘德建张志毅郭玉湖
Owner FUJIAN TIANQUAN EDUCATION TECH 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