CN113507516A - File service method, access server, computer device and storage medium - Google Patents

File service method, access server, computer device and storage medium Download PDF

Info

Publication number
CN113507516A
CN113507516A CN202110762232.0A CN202110762232A CN113507516A CN 113507516 A CN113507516 A CN 113507516A CN 202110762232 A CN202110762232 A CN 202110762232A CN 113507516 A CN113507516 A CN 113507516A
Authority
CN
China
Prior art keywords
file
server
application server
uploaded
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110762232.0A
Other languages
Chinese (zh)
Inventor
朱大卫
柳彤
刘志乐
黄顺
李思之
邓周
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Haifu Yitong Technology Co ltd
Original Assignee
Shenzhen Haifu Yitong Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Haifu Yitong Technology Co ltd filed Critical Shenzhen Haifu Yitong Technology Co ltd
Priority to CN202110762232.0A priority Critical patent/CN113507516A/en
Publication of CN113507516A publication Critical patent/CN113507516A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to a file service method, an access server, a computer device and a storage medium. The method is applied to an access server, the access server is connected with a source server, the access server is also connected with server clusters, each server cluster comprises at least one application server and at least one file server, and the method comprises the following steps: receiving a file transmission request sent by a source server; if the file transmission request comprises a file uploading request, then: and acquiring information of a target server cluster from the file transmission request, and sending a file to be uploaded to a target application server in the target server cluster, so that the target application server stores the file to be uploaded to the file server, and the target application server allocates unique identification information to the file to be uploaded. The file service method and the file service device can improve the efficiency of file service.

Description

File service method, access server, computer device and storage medium
Technical Field
The present application relates to the field of data processing, and in particular, to a file service method, an access server, a computer device, and a storage medium.
Background
With the development of the internet, a single server cannot meet the requirements of high concurrency, high performance and high availability of the internet, so that a multi-server cluster deployment mode is the current mainstream mode.
In the prior art, files may be distributed on different servers in the same cluster or on different servers in different clusters, and if a certain server needs to acquire file data from another server, a file path from the current server to a destination server needs to be acquired, and the files are downloaded according to the file path. Similarly, the whole path is also required to be acquired from a certain server to the destination server. In addition, the file structure may be different on different servers, and thus the flow, parameters, etc. required when uploading and downloading files from the current server to the destination server may also be different.
Therefore, the file service system in the prior art needs to be constructed for many times, and the path for uploading and downloading files is complex to obtain, which results in low efficiency of the file service system in the prior art.
Disclosure of Invention
To solve the above technical problem or at least partially solve the above technical problem, the present application provides a file service method, an access server, a computer device, and a storage medium.
In a first aspect, the present application provides a file service method, where the method is applied to an access server, where the access server is connected to an origin server, the access server is further connected to server clusters, each server cluster includes at least one application server and at least one file server, and the method includes:
receiving a file transmission request sent by a source server, wherein the file transmission request comprises a file uploading request and/or a file downloading request;
if the file transmission request comprises a file uploading request, then:
obtaining the information of the destination server cluster from the file transmission request,
sending a file to be uploaded to a destination application server in the destination server cluster so that the destination application server stores the file to be uploaded to the file server,
and enabling the target application server to distribute unique identification information to the file to be uploaded.
In this embodiment of the application, after the file to be uploaded is sent to the destination application server in the destination server cluster, the method further includes:
and receiving the unique identification information of the file to be uploaded, which is sent by the target application server.
In this embodiment of the application, before receiving the file transmission request sent by the source server, the method further includes:
and acquiring the file rules of the connected server clusters, wherein the file rules comprise file uploading rules and file downloading rules.
In this embodiment of the application, the sending the file to be uploaded to the destination application server in the destination server cluster includes:
and converting the uploading file into an intermediate uploading file according to the file rule of the target server cluster, and sending the file to be uploaded to the target application server in an output stream form.
In this embodiment of the present application, the enabling the destination application server to store the uploaded file in the file server includes:
if the application server comprises at least two file servers, enabling the application server to select one or more file servers as target file servers according to a preset storage rule;
and enabling the target application server to store the file to be uploaded to the target file server.
In this embodiment of the application, if the file transmission request includes a request for downloading a file, then:
acquiring unique identification information of a file to be downloaded from the file downloading request;
sending the unique identification information to the target application server, so that the target application server obtains a corresponding target file server according to the unique identification information and obtains the file to be downloaded from the target file server;
and receiving the file to be downloaded sent by the target application server.
In this embodiment of the present application, enabling the destination application server to obtain a corresponding destination file server according to the unique identification information and obtain a file to be downloaded from the destination file server includes:
enabling the target application server to acquire a target file server storing a file to be downloaded corresponding to the unique identification information according to the unique identification information;
and enabling the target application server to acquire the file to be downloaded from the target file server.
In a second aspect, an access server is provided, where the access server is connected to an origin server, and the access server is further connected to server clusters, where each server cluster includes at least one application server and at least one file server, and the access server includes:
the system comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a file transmission request sent by a source server, and the file transmission request comprises a file uploading request and/or a file downloading request;
an obtaining unit, configured to obtain information of a destination server cluster from the file transmission request if the file transmission request includes a file uploading request,
a processor, configured to send a file to be uploaded to a destination application server in the destination server cluster, so that the destination application server stores the file to be uploaded to the file server,
the processor is further used for enabling the target application server to distribute unique identification information to the file to be uploaded.
In a third aspect, a computer device is provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above method when executing the computer program.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that the computer program is executed by a processor to perform the steps of the above-mentioned method.
The file service method, the access server, the computer equipment and the storage medium comprise the following steps: the method is applied to an access server, the access server is connected with a source server, the access server is also connected with server clusters, each server cluster comprises at least one application server and at least one file server, and the method comprises the following steps: receiving a file transmission request sent by a source server, wherein the file transmission request comprises a file uploading request and/or a file downloading request; if the file transmission request comprises a file uploading request, then: and acquiring information of a target server cluster from the file transmission request, and sending a file to be uploaded to a target application server in the target server cluster, so that the target application server stores the file to be uploaded to the file server, and the target application server allocates unique identification information to the file to be uploaded. In the embodiment of the application, the access server, the application server and the file server are adopted to construct the file service system, the file transmitter request sent by the source server is sent to the application server through the access server, and the application server and the file server belong to the same server cluster, and a file service architecture which is relatively complete in the application server and the file server can be considered between the application server and the file server.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a diagram illustrating an application environment of a file service method according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a document service method according to an embodiment of the present application;
fig. 3 is a schematic view illustrating an application scenario of a file service method in an embodiment of the present application;
fig. 4 is a block diagram illustrating a structure of an access server in an embodiment of the present application;
fig. 5 is a diagram showing an internal structure of a computer device in the embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
FIG. 1 is a diagram of an application environment of a file serving method in one embodiment. Referring to fig. 1, the file service method is applied to a file service system. The file service system includes an access server 110 and a cluster of servers 120. Access server 110 and server cluster 120 are connected by a network. The access server 110 may specifically be a desktop terminal or a mobile terminal, and the mobile terminal may specifically be at least one of a mobile phone, a tablet computer, a notebook computer, and the like. The server cluster 120 is implemented as a server cluster composed of a plurality of servers.
As shown in FIG. 2, in one embodiment, a file serving method is provided. The present embodiment is mainly applied to the access server 110 in fig. 1 in this way. Referring to fig. 1 and 2, the file service method is applied to an access server 110, where the access server 110 is connected to an origin server, the access server is further connected to server clusters 120, each server cluster 120 includes at least one application server and at least one file server, and the method includes:
step 210, receiving a file transmission request sent by a source server, wherein the file transmission request comprises a file uploading request and/or a file downloading request;
step 220, if the file transmission request includes a file uploading request, then:
obtaining the information of the destination server cluster from the file transmission request,
step 230, sending the file to be uploaded to a destination application server in the destination server cluster, so that the destination application server stores the file to be uploaded to the file server,
step 240, the destination application server allocates unique identification information to the file to be uploaded.
After the file to be uploaded is sent to the destination application server in the destination server cluster, the method further includes:
and receiving the unique identification information of the file to be uploaded, which is sent by the target application server.
In the embodiment of the application, the unique identification information of the uploaded file is distributed by the application server and is sent to the access server by the application server. And after receiving the unique identification information, the access server associates and stores the file to be uploaded and the unique identification information for subsequent use.
In the embodiment of the application, the server cluster includes an application server and a file server, and the application server may be any server in the server cluster, and has a function of an external interface of the server cluster to receive various requests including a file transmission request and the like. The file server may be any server or servers in a cluster of servers that function to store files.
In other embodiments of the present application, the application server and the file server may be the same server; or the application server can also store files and has the function of a file server.
In this embodiment, the source server is another server outside the destination server cluster in this embodiment, but the source server may be a certain server in another server cluster outside the destination server cluster. Therefore, the embodiment of the application can realize the file transmission between the server and the server cluster and also realize the file transmission between different server clusters.
In the embodiment of the application, the access server, the application server and the file server are adopted to construct the file service system, the file transmitter request sent by the source server is sent to the application server through the access server, and the application server and the file server belong to the same server cluster, and a file service architecture which is relatively complete in the application server and the file server can be considered between the application server and the file server.
In this embodiment of the application, before receiving the file transmission request sent by the source server, the method further includes:
and acquiring the file rules of the connected server clusters, wherein the file rules comprise file uploading rules and file downloading rules.
The file rules include file uploading rules and file downloading rules, which may be file division size, file header, file packet size, file transmission format, etc., and the file rules of different servers and different server clusters may be different, and the file rules of different servers in the same server cluster may also be different. In the embodiment of the present application, although the file rules of different servers in the server cluster may be different, the access server may still obtain the file rules.
In an implementation of the present application, in step 230, the sending the file to be uploaded to the destination application server in the destination server cluster includes:
and converting the uploading file into an intermediate uploading file according to the file rule of the target server cluster, and sending the file to be uploaded to the target application server in an output stream form.
In the embodiment of the present application, the output stream may refer to a form of file transmission, and may be in a form of any output stream in the prior art. The specific form of the output stream is also determined by the file rules. Because the file sent by the access server to the target application server is in accordance with the file rule of the server cluster, the efficiency of file transmission is improved.
In this embodiment of the present application, in step 230, the causing the destination application server to store the uploaded file in the file server includes:
if the application server comprises at least two file servers, enabling the application server to select one or more file servers as target file servers according to a preset storage rule;
and enabling the target application server to store the file to be uploaded to the target file server.
The server cluster may include a plurality of file servers, and the application server may select one or more file servers as destination servers according to a preset storage rule. The preset storage rule may be to select the file server according to the size of the remaining storage space, the proportion of the remaining storage space, the load of the file server, the transmission efficiency between the application server and the file server, the total data volume of the uploaded files, backup storage, and the like. These rules may be a single rule or may be a plurality of rules acting in concert.
In an embodiment of the present application, the preset storage rule may be that a file server with the smallest load is selected as a destination file server from file servers whose remaining storage space size is greater than 2 times of the total data volume of the uploaded files and whose remaining storage space proportion is greater than 10%.
In an embodiment of the application, the preset storage rule may also be that the uploaded file is divided into a plurality of sub-uploaded files, and the sub-uploaded files are stored in a plurality of file servers, so that distributed storage is realized.
In an embodiment of the application, the preset storage rule may further select any file server as a recovery period of the backup destination file after selecting a certain file server as a destination file server for storing the uploaded file, and store a backup file of the uploaded file.
The preset storage rule may also be any possible rule in the prior art, and is not described herein in detail.
In the embodiment of the present application, the file transmission includes uploading a file and downloading a file, and thus the file transmission request may also include an upload file request and a download file request.
In this embodiment of the application, if the file transmission request includes a request for downloading a file, then:
acquiring unique identification information of a file to be downloaded from the file downloading request;
sending the unique identification information to the target application server, so that the target application server obtains a corresponding target file server according to the unique identification information and obtains the file to be downloaded from the target file server;
and receiving the file to be downloaded sent by the target application server.
In the implementation of the application, the access server stores the unique identification information of the uploaded file, so that the uploaded file can be downloaded from the file server through the unique identification information.
In the implementation of the present application, receiving a file to be downloaded sent by the application server includes:
and receiving the file to be downloaded sent by the application server in an input stream mode according to a file downloading rule.
The input flow and the output flow are similar, and reference is made to the above description of the output flow, which is not repeated here.
In this embodiment of the present application, enabling the destination application server to obtain a corresponding destination file server according to the unique identification information and obtain a file to be downloaded from the destination file server includes:
enabling the target application server to acquire a target file server storing a file to be downloaded corresponding to the unique identification information according to the unique identification information;
and enabling the target application server to acquire the file to be downloaded from the target file server.
Similar to the above embodiments, the file server for storing the file may be one, or may be a plurality of distributed storages, or may be a primary and secondary storage manner. If the file server for storing the file is one, acquiring the file from the file server; if the distributed storage is adopted, the distributed storage needs to be acquired from a plurality of file servers; if the storage mode is a primary storage mode, the storage mode can be acquired from a file server in the primary storage. In the embodiment of the present application, there is a certain correspondence between the manner of acquiring the file to be downloaded and the manner of uploading the file, and details are not repeated again.
According to the method, a set of file service framework does not need to be created for each file server, so that time cost can be saved, system resource consumption can be reduced, and efficiency can be improved.
FIG. 2 is a flowchart illustrating a file serving method according to an embodiment. It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
Fig. 3 is a schematic diagram of an application scenario in an embodiment of the application, and as shown in fig. 3, a source server sends a file uploading request to an access server, the access server sends a file to be uploaded to a destination application server in a destination server cluster, and the destination application server allocates file servers according to a preset storage rule and stores the file to be uploaded in a destination file server. The destination application server also assigns a file ID to the uploaded file and sends the file ID to the access server.
And the source server sends a file downloading request to the access server, wherein the file downloading request comprises the ID of the file to be downloaded. And the access server sends a file downloading request to the application server.
The application server acquires a file server storing the file to be downloaded according to the ID of the file to be downloaded, acquires the file to be downloaded from the file server, and finally sends the file to be downloaded to the access server; and the access server sends the file to be downloaded to the source server.
In an embodiment of the present application, the source server may be a server of company a, and the server cluster may be a server cluster of company B, since service architectures inside company a and company B may be different, if a file of company B is uploaded or downloaded from company a, in the prior art, the service architecture needs to be re-established. In the method of the embodiment of the application, the access server can be a server of company A, or can be a server provided by other service organizations; the application server in company B may be a server providing an external interface, as described above. The server cluster of company B can interconnect inside due to the consideration of confidentiality, security, etc., but needs external interface through the application service area. The method for transmitting the files between the company A server and the company B server cluster can realize file uploading and file downloading without newly building a file framework through the unique identification mark of the file, the file uploading request, the file downloading request and the like.
Corresponding to the file service method, the present application further provides an access server, as shown in fig. 4, where the access server is connected to a source server, the access server is further connected to server clusters, each server cluster includes at least one application server and at least one file server, and the access server includes:
a receiving unit 410, configured to receive a file transmission request sent by a source server, where the file transmission request includes a file uploading request and/or a file downloading request;
an obtaining unit 420, configured to obtain information of the destination server cluster from the file transmission request if the file transmission request includes a file uploading request,
a processor 430, configured to send a file to be uploaded to a destination application server in the destination server cluster, so that the destination application server stores the file to be uploaded to the file server,
the processor 430 is further configured to enable the destination application server to assign unique identification information to the file to be uploaded.
In this application, the receiving unit 410 is further configured to:
and after the file to be uploaded is sent to a target application server in the target server cluster, receiving the unique identification information of the file to be uploaded sent by the target application server.
In an embodiment of the present application, the obtaining unit is further configured to:
and before receiving a file transmission request sent by a source server, acquiring a file rule of the connected server cluster, wherein the file rule comprises a file uploading rule and a file downloading rule.
In an embodiment of the present application, the processor is further configured to:
and converting the uploading file into an intermediate uploading file according to the file rule of the target server cluster, and sending the file to be uploaded to the target application server in an output stream form.
In an embodiment of the present application, the processor is further configured to:
if the application server comprises at least two file servers, enabling the application server to select one or more file servers as target file servers according to a preset storage rule;
and enabling the target application server to store the file to be uploaded to the target file server.
In an embodiment of the present application, the processor is further configured to:
if the file transmission request comprises a file downloading request, acquiring unique identification information of a file to be downloaded from the file downloading request;
sending the unique identification information to the target application server, so that the target application server obtains a corresponding target file server according to the unique identification information and obtains the file to be downloaded from the target file server;
and receiving the file to be downloaded sent by the target application server.
The processor is further configured to:
enabling the target application server to acquire a target file server storing a file to be downloaded corresponding to the unique identification information according to the unique identification information;
and enabling the target application server to acquire the file to be downloaded from the target file server.
According to the embodiment of the application, a set of file service framework does not need to be created for each file server, so that the time cost can be saved, the system resource consumption is reduced, and the efficiency is improved.
FIG. 5 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be the access server 110 in fig. 1. As shown in fig. 5, the computer apparatus includes a processor, a memory, a network interface, an input device, and a display screen connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by a processor, causes the processor to implement a file serving method. The internal memory may also have stored therein a computer program that, when executed by the processor, causes the processor to perform a file serving method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: the method is applied to an access server, the access server is connected with a source server, the access server is also connected with server clusters, each server cluster comprises at least one application server and at least one file server, and the method comprises the following steps: receiving a file transmission request sent by a source server, wherein the file transmission request comprises a file uploading request and/or a file downloading request; if the file transmission request comprises a file uploading request, then: and acquiring information of a target server cluster from the file transmission request, and sending a file to be uploaded to a target application server in the target server cluster, so that the target application server stores the file to be uploaded to the file server, and the target application server allocates unique identification information to the file to be uploaded. The file service method and the file service device can improve the efficiency of file service.
In an embodiment, the processor executes the computer program to implement the steps of the above method, which are not described herein again.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: the method is applied to an access server, the access server is connected with a source server, the access server is also connected with server clusters, each server cluster comprises at least one application server and at least one file server, and the method comprises the following steps: receiving a file transmission request sent by a source server, wherein the file transmission request comprises a file uploading request and/or a file downloading request; if the file transmission request comprises a file uploading request, then: and acquiring information of a target server cluster from the file transmission request, and sending a file to be uploaded to a target application server in the target server cluster, so that the target application server stores the file to be uploaded to the file server, and the target application server allocates unique identification information to the file to be uploaded. The file service method and the file service device can improve the efficiency of file service.
In an embodiment, the computer program, when executed by the processor, further implements the steps of the above method, which are not described herein again.
In one embodiment, a computer program product or computer program is provided that includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the steps of: the method is applied to an access server, the access server is connected with a source server, the access server is also connected with server clusters, each server cluster comprises at least one application server and at least one file server, and the method comprises the following steps: receiving a file transmission request sent by a source server, wherein the file transmission request comprises a file uploading request and/or a file downloading request; if the file transmission request comprises a file uploading request, then: and acquiring information of a target server cluster from the file transmission request, and sending a file to be uploaded to a target application server in the target server cluster, so that the target application server stores the file to be uploaded to the file server, and the target application server allocates unique identification information to the file to be uploaded. The file service method and the file service device can improve the efficiency of file service.
In an embodiment, the computer program product or the computer program when executed further implements the steps of the above method, which are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A file service method is applied to an access server, the access server is connected with a source server, the access server is also connected with server clusters, each server cluster comprises at least one application server and at least one file server, and the method comprises the following steps:
receiving a file transmission request sent by a source server, wherein the file transmission request comprises a file uploading request and/or a file downloading request;
if the file transmission request comprises a file uploading request, then:
obtaining the information of the destination server cluster from the file transmission request,
sending a file to be uploaded to a destination application server in the destination server cluster so that the destination application server stores the file to be uploaded to the file server,
and enabling the target application server to distribute unique identification information to the file to be uploaded.
2. The method of claim 1, wherein after sending the file to be uploaded to the destination application server in the destination server cluster, the method further comprises:
and receiving the unique identification information of the file to be uploaded, which is sent by the target application server.
3. The method of claim 1, wherein before receiving the file transfer request from the source server, the method further comprises:
and acquiring the file rules of the connected server clusters, wherein the file rules comprise file uploading rules and file downloading rules.
4. The method of claim 3, wherein sending the file to be uploaded to the destination application server in the destination server cluster comprises:
and converting the uploading file into an intermediate uploading file according to the file rule of the target server cluster, and sending the file to be uploaded to the target application server in an output stream form.
5. The method of claim 3, wherein the causing the destination application server to store the uploaded file to a file server comprises:
if the application server comprises at least two file servers, enabling the application server to select one or more file servers as target file servers according to a preset storage rule;
and enabling the target application server to store the file to be uploaded to the target file server.
6. The method of claim 1, wherein if the file transfer request comprises a download file request:
acquiring unique identification information of a file to be downloaded from the file downloading request;
sending the unique identification information to the target application server, so that the target application server obtains a corresponding target file server according to the unique identification information and obtains the file to be downloaded from the target file server;
and receiving the file to be downloaded sent by the target application server.
7. The method according to claim 1, wherein enabling the destination application server to obtain a corresponding destination file server and a file to be downloaded from the destination file server according to the unique identification information comprises:
enabling the target application server to acquire a target file server storing a file to be downloaded corresponding to the unique identification information according to the unique identification information;
and enabling the target application server to acquire the file to be downloaded from the target file server.
8. An access server, wherein the access server is connected to an origin server, the access server is further connected to server clusters, each server cluster includes at least one application server and at least one file server, and the access server includes:
the system comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a file transmission request sent by a source server, and the file transmission request comprises a file uploading request and/or a file downloading request;
an obtaining unit, configured to obtain information of a destination server cluster from the file transmission request if the file transmission request includes a file uploading request,
a processor, configured to send a file to be uploaded to a destination application server in the destination server cluster, so that the destination application server stores the file to be uploaded to the file server,
the processor is further used for enabling the target application server to distribute unique identification information to the file to be uploaded.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 7 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202110762232.0A 2021-07-06 2021-07-06 File service method, access server, computer device and storage medium Pending CN113507516A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110762232.0A CN113507516A (en) 2021-07-06 2021-07-06 File service method, access server, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110762232.0A CN113507516A (en) 2021-07-06 2021-07-06 File service method, access server, computer device and storage medium

Publications (1)

Publication Number Publication Date
CN113507516A true CN113507516A (en) 2021-10-15

Family

ID=78011388

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110762232.0A Pending CN113507516A (en) 2021-07-06 2021-07-06 File service method, access server, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN113507516A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338654A (en) * 2021-12-31 2022-04-12 中国电信股份有限公司 File transmission method, storage service distribution method, device, equipment and medium
CN114374683A (en) * 2021-12-20 2022-04-19 上海金仕达软件科技有限公司 Archive file management method and system and computer readable storage medium
CN115348258A (en) * 2022-08-17 2022-11-15 中国建设银行股份有限公司贵州省分行 File transmission method, device and system and electronic equipment
CN116760824A (en) * 2023-08-18 2023-09-15 安擎计算机信息股份有限公司 Test file distribution method and device for aging test

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104731516A (en) * 2013-12-18 2015-06-24 腾讯科技(深圳)有限公司 Method and device for accessing files and distributed storage system
US20150304392A1 (en) * 2012-10-31 2015-10-22 China Unionpay Co., Ltd. File transmission method and system thereof
CN109951514A (en) * 2019-01-16 2019-06-28 平安科技(深圳)有限公司 Document handling method, system and computer equipment based on cloud storage

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150304392A1 (en) * 2012-10-31 2015-10-22 China Unionpay Co., Ltd. File transmission method and system thereof
CN104731516A (en) * 2013-12-18 2015-06-24 腾讯科技(深圳)有限公司 Method and device for accessing files and distributed storage system
CN109951514A (en) * 2019-01-16 2019-06-28 平安科技(深圳)有限公司 Document handling method, system and computer equipment based on cloud storage

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114374683A (en) * 2021-12-20 2022-04-19 上海金仕达软件科技有限公司 Archive file management method and system and computer readable storage medium
CN114338654A (en) * 2021-12-31 2022-04-12 中国电信股份有限公司 File transmission method, storage service distribution method, device, equipment and medium
CN115348258A (en) * 2022-08-17 2022-11-15 中国建设银行股份有限公司贵州省分行 File transmission method, device and system and electronic equipment
CN116760824A (en) * 2023-08-18 2023-09-15 安擎计算机信息股份有限公司 Test file distribution method and device for aging test

Similar Documents

Publication Publication Date Title
CN113507516A (en) File service method, access server, computer device and storage medium
WO2021142609A1 (en) Information reporting method, apparatus and device, and storage medium
US20170034272A1 (en) Data transfer priority levels
CN107786621B (en) User information management method, access processing method, device and system
CN108287758A (en) A kind of application resource management method, application method and device
US10142313B2 (en) System and method for authenticating user using contact list
KR101198437B1 (en) Method, apparatus and computer program product for providing context triggered distribution of context models
CN110688598A (en) Service parameter acquisition method and device, computer equipment and storage medium
US20200153889A1 (en) Method for uploading and downloading file, and server for executing the same
CN111723148A (en) Data storage method and device, storage medium and electronic device
CN113411404A (en) File downloading method, device, server and storage medium
US9832322B1 (en) Techniques to transform network resource requests to zero rated network requests
CN112423281B (en) Wireless module upgrading method, device, computer equipment and storage medium
CN112822061A (en) Method and system for exposing service to outside by edge node
CN111885184A (en) Method and device for processing hot spot access keywords in high concurrency scene
JP2010272090A (en) Device, program and method for managing processing request destination
CN112035402A (en) File storage method and device and terminal equipment
US20160037509A1 (en) Techniques to reduce bandwidth usage through multiplexing and compression
CN111538507A (en) Gray scale distribution method, device, equipment and readable storage medium
CN115934354A (en) Online storage method and device
CN113590994A (en) Data processing method, data processing device, computer equipment and storage medium
CN115118612A (en) Resource quota management method and device, computer equipment and storage medium
KR102156656B1 (en) System and method for creating stack of virtual machine
CN108733805B (en) File interaction method, system, computer equipment and storage medium
CN110659288A (en) Case statement calculation method, system, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination