File uploading and searching method of distributed file system

A distributed file and file upload technology, applied in transmission systems, electrical components, etc., to achieve the effect of large degrees of freedom, high concurrency and high security features

Inactive Publication Date: 2014-12-10
SICHUAN CHANGHONG ELECTRIC CO LTD
5 Cites 25 Cited by

AI-Extracted Technical Summary

Problems solved by technology

[0007] The technical problem to be solved by the present invention is: for the above existing problems, the present invention provides a new file upload a...
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

Abstract

The invention discloses a file uploading and searching method of a distributed file system, relates to the distributed file system and aims at providing a distributed file system based file uploading and searching method capable of realizing rapid positioning of an object file. The technical key points are that: a client sends out a file uploading request to a load balancing server; the load balancing server receives the file uploading request and generates a file storing name to ensure that the file name can directly locate the storage position of the file; the load balancing server distributes a file server used for storing the uploaded file for the client, and returns the file storing name and the address of the file server to the client; the client visits the file server based on the address, sends the file and the file storing name to the file server, and the like.

Application Domain

Technology Topic

Image

  • File uploading and searching method of distributed file system
  • File uploading and searching method of distributed file system
  • File uploading and searching method of distributed file system

Examples

  • Experimental program(1)

Example Embodiment

[0031] All the features disclosed in this specification, or all disclosed methods or steps in the process, except for mutually exclusive features and/or steps, can be combined in any manner.
[0032] Any feature disclosed in this specification, unless specifically stated, can be replaced by other equivalent or equivalent alternative features. That is, unless otherwise stated, each feature is just one example of a series of equivalent or similar features.
[0033] Such as figure 1 , The file upload method of the distributed file system provided by the present invention includes:
[0034] Step 1: The client sends a file upload request to the load balancing server. In other embodiments, the load balancing server may be a resolution server.
[0035] Step 2: The load balancing server receives the file upload request and generates a file save name for the uploaded file. In other embodiments, this step is that the load balancing server generates a name in file service (NFS) for the file according to the file attribute information in the request. The file save name is used for naming the file on the file server side and is invisible to the user.
[0036] Step 3: The load balancing server allocates a file server for saving the uploaded file to the client; and returns the file save name NFS and the address of the file server to the client.
[0037] Step 4: The client accesses the file server according to the address, and sends the file and the file save name NFS to the file server.
[0038] Step 5: The file server allocates a storage path for the file according to its own file storage directory, saves the file under the storage path, and renames the file to the file storage name NFS.
[0039] Step 6: After the file upload is completed, the file server returns a message indicating that the upload is successful to the load balancing server and returns the file storage path and file save name NFS to the load balancing server.
[0040] Step 7: The load balancing server combines the file server address, file storage path, and file storage name for encryption and encoding to obtain a character string, and uses the character string as the file access name of the uploaded file. NFC (Name of File in Client) ) Return to the client. In other embodiments, the load balancing server uses the original file attributes, the assigned file server address and storage path, and the storage name NFS in the file server as the three encrypted and encoded information sources S1, S2, and S3. Encrypt and encode S1, S2, and S3 to obtain three intermediate strings M1, M2, and M3 composed of numbers and letters, and then combine M1, M2, and M3 together to unify the encryption and encoding to become the file access that is finally returned to the client Named NFC, encryption is implemented using the existing DES encryption algorithm.
[0041] Step 8: The client displays the file access name NFC to the user.
[0042] In other embodiments, the file save name also includes the current time. The file attributes include at least file type and file size.
[0043] The file servers are divided into multiple groups, and each file server group has a number of file servers, and the file servers in the same group backup each other's data. The so-called mutual data backup means that the file servers in the same group regularly synchronize their own files with other file servers in the same group, so that the files on the file servers in the same group are the same and are mutually backup.
[0044] Then in this embodiment, in step 7, the load balancing server combines the file server grouping information, the file server address, the file storage path, and the file storage name for encryption and encoding to obtain a character string, and use the character string as The file access name of the uploaded file is returned to the client.
[0045] Such as image 3 In another embodiment, the file server stores the files uploaded by the client in a three-layer tree file structure. First, create one hundred folders numbered from 00 to 99 under the file storage location of the file server (first level), and then create one hundred folders from 00 to 99 under each folder (second level ), and then create one hundred folders from 00 to 99 under the inner folders in the second layer (third layer) to form 1 million root folders, each root folder (ie the lowest folder) At least one file can be stored under the file, depending on the overall load of the file server.
[0046] The tree-shaped directory under the file server is checked for existence when the file server starts to run. If it does not exist, it means that the file server is running the server file storage service for the first time, and a three-level file directory is created in the above-mentioned manner. If it exists, read the storage status of the folder in the log file into the memory as a basis for monitoring the usage of its file storage directory, so as to allocate a suitable storage path for the file uploaded from the client.
[0047] Such as figure 2 A specific embodiment of the file search method of the distributed file system provided by the present invention includes:
[0048] Step 1: The client initiates an access request to the load balancing server and sends the file access name NFC to the load balancing server; more specifically, the access request is a file download, update, etc. request.
[0049] Step 2: The load balancing server parses the file access name NFC to obtain the file server address, file storage path, and file save name; and returns the file server address, file storage path, and file save name to the client. More specifically, the load balancing server first parses the file access name NFC into three independent intermediate strings M1, M2, and M3, and then parses the three intermediate strings separately to obtain the source file attributes, file server address and storage path, The three sets of information S1, S2, and S3 of the file name NFS in the file server are returned to the client.
[0050] Step 3: The client finds the corresponding file on the file server according to the file server address, file storage path and file save name. Further complete the file download, view and update operations.
[0051] For the embodiment where the file server is grouped, the information obtained by the load balancing server parsing the file access name NFC in step 2 also includes the grouping information of the file server.
[0052] The present invention is not limited to the foregoing specific embodiments. The present invention extends to any new feature or any new combination disclosed in this specification, and any new method or process step or any new combination disclosed.
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

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
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

Similar technology patents

Robot

Owner:SEIKO EPSON CORP

Classification and recommendation of technical efficacy words

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