File processing method and device, equipment and storage medium
A file processing and file technology, applied in file systems, electronic digital data processing, special data processing applications, etc., can solve the problems of low upload efficiency, long time, and large memory footprint, and achieve the effect of improving upload efficiency.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0070] figure 1 It shows a flow chart of a file processing method provided by Embodiment 1 of the present application, as shown in figure 1 As shown, the file processing method includes the following steps:
[0071] Step S101: When receiving the upload request from the client that carries the file to be uploaded, according to the name of the file to be uploaded and the number of file node servers, use the first hash remainder method to determine the The first target file node server for the uploaded file.
[0072] Specifically, the above file processing method is applied to the application server in the background. When the client needs to upload a file to the application server for storage, it sends an upload request to the main shard server to indicate that the file needs to be uploaded, and at the same time makes the upload request carry For the file to be uploaded, when the main shard server receives the upload request carrying the file to be uploaded, determine the name...
Embodiment 2
[0115] figure 2 It shows a flow chart of another file processing method provided by Embodiment 2 of the present application, such as figure 2 As shown, the file processing method includes the following steps:
[0116] Step S401: When receiving the download request sent by the client, according to the name of the file to be downloaded and the number of file node servers, use the fourth hash remainder method to determine the second target file node server storing the file to be downloaded , wherein the download request carries the name of the file to be downloaded.
[0117] Step S402: According to the name of the file to be downloaded and the number of space slices included in the second target file node server, use the fifth hash remainder method to determine the A second target space slice of the file to be downloaded is described.
[0118] Specifically, for the specific description of step S401 and step S402, refer to the above description of step S101 and step S102, whi...
Embodiment 3
[0137] Figure 5 It shows a schematic structural diagram of a file processing device provided in Embodiment 3 of the present application, as shown in Figure 5 As shown, the above-mentioned file processing device includes:
[0138] The first determining module 501 is configured to use the first hash remainder method to determine the user according to the name of the file to be uploaded and the number of file node servers when receiving the upload request sent by the client and carrying the file to be uploaded. Store the first target file node server of the file to be uploaded;
[0139] The second determining module 502 is configured to determine the first target file using a second hash remainder method according to the name of the file to be uploaded and the number of space slices included in the node server of the first target file The node server is used to store the first target space fragment of the file to be uploaded;
[0140] The third determination module 503 is co...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


