Distributed file storage system and method based on Nginx + MinIO + Redis
A distributed file and storage system technology, which is applied in the field of distributed file storage system based on Nginx+MinIO+Redis, can solve the problems of large memory space occupation, low query performance, unsuitable for business, etc., to improve utilization rate, good Effect of cache hit ratio, good query performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0056] figure 1 It is an architecture diagram of a distributed file storage system based on Nginx+MinIO+Redis, in the embodiment of the present invention, a distributed file storage system based on Nginx+MinIO+Redis, the system includes:
[0057] The system includes a database and middleware; the middleware includes:
[0058] The picture processing module is used to perform a thumbnail operation on the picture based on the http_image_filter_module module in Nginx; the abbreviated operation includes scaling the picture with a specified width and height;
[0059] a storage module, used for distributed storage of file data based on the MinIO cluster; the storage module includes a file upload unit, a cache compression unit and a cache replacement unit;
[0060] The query module is used to perform file query operations on distributed cached files based on Redis cluster;
[0061] Delete module for performing delete operations on distributed files.
[0062] The invention provides ...
Embodiment 2
[0098] In an embodiment of the technical solution of the present invention, a distributed file storage method based on Nginx+MinIO+Redis is provided, the method is used for the query module, and the method includes:
[0099] Generate Key according to the query conditions entered by the user, and query Redis;
[0100] Determine whether there is a file in Redis, if there is no file in Redis, get the file md5, query MinIO according to the file md5, and return the file;
[0101] If there is a file in Redis, update the query times of the file; return the file decompressed by Gzip algorithm and decoded by Base64.
Embodiment 3
[0103] In an embodiment of the technical solution of the present invention, a distributed file storage method based on Nginx+MinIO+Redis is provided, the method is used for the deletion module, and the method includes:
[0104] Query Redis according to the deletion condition, and get the md5 of the file;
[0105] Determine whether there is a file cache in Redis. If there is a file cache in Redis, perform a simultaneous delete operation to delete the cache on Redis and the file on MinIO respectively;
[0106] When there is no file cache in Redis, delete the file saved on MinIO according to the file md5;
[0107] It is judged whether the file deletion is successful. When the file deletion is successful, an end command is generated.
[0108]The functions that can be realized by the distributed file storage method based on Nginx+MinIO+Redis are all completed by computer equipment, and the computer equipment includes one or more processors and one or more memories, and the one or ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com