A method and system for managing archive files and a computer-readable storage medium
By separating the upload servers for archive files and non-archive files, and using different networks for uploading on the client side, the problem of low archive file transmission efficiency is solved, efficient file transmission and storage is achieved, and server pressure is reduced.
Patent Information
- Application Number
- CN202111564030.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-20
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-12-20
AI Technical Summary
In the context of large-scale Internet applications, during the upload and download process of archive files such as pictures and videos, file transmission seriously affects the processing capabilities of the business system, resulting in low transmission efficiency of the archive system in complex scenarios.
By deploying the upload servers for archive files and non-archive files separately, and using different networks for upload on the client side, it is ensured that the archive file transfer server and the business system server do not share the same network, thereby improving transmission efficiency. Optional measures include load balancing and archive file partitioning to reduce server pressure.
It effectively improves the transmission efficiency of archive files, avoids the impact on the business system when files are uploaded, and reduces the disk pressure on the storage server in high-concurrency and high-quality file scenarios.
Smart Images

Figure CN114374683B
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of archive management, and in particular, relates to an archive file management method, system and computer-readable storage medium. Background Art
[0002] In the context of large-scale Internet applications, uploading and downloading of files such as pictures, videos, and documents are an indispensable part. In the past, the way to upload files was usually to share servers and networks with other non-archive businesses. This resulted in the serverless network bandwidth being fully occupied during the file upload process, and other parallel businesses being affected.
[0003] Especially nowadays, when the quality of image and video resources is becoming more and more refined, the file size is becoming larger and larger, and the concurrency of application services is becoming higher and higher, the file transfer process has seriously affected the processing capacity of the business system and caused file transfer problems in the archive system in various complex scenarios. Summary of the invention
[0004] The embodiments of the present application provide an archive file management method, system and computer-readable storage medium, which can solve the problem of archive file transmission in various complex scenarios of the archive system and improve the efficiency of archive file transmission.
[0005] In a first aspect, a method for managing archive files is provided, the method being applied to an archive file management system, the system comprising a client, an archive file transfer server and an archive file storage server, the method comprising: the client receiving a first file, the first file comprising an archive file and a non-archival file; the client uploading the archive file to the archive file transfer server via a first network; the client uploading the non-archival file to a business system server via a second network; the archive file transfer server sending the archive file to the archive file storage server; the archive file storage server storing the archive file.
[0006] The method provided by the first aspect is that the client uploads archive files to the archive file transmission server through the first network, and uploads non-archival files to the business system service through the second network. The method deploys the server for uploading archive files and the server for uploading non-archival files separately, and the archive files and non-archival files are not shared on the same network when the client uploads them, thereby improving the efficiency of uploading archive files.
[0007] Optionally, when there are multiple archive file storage servers, the archive file storage server stores the archive file, including: dividing the archive file into multiple files; and storing the multiple files on multiple archive file storage servers. In this implementation, the archive file is divided when storing the archive file, which can achieve fast storage, and the divided multiple archive files are stored on multiple archive file storage servers, reducing the disk pressure of the archive file storage server.
[0008] Optionally, when there are multiple clients and multiple archive file transfer servers, the multiple archive file transfer servers include a master server and a slave server, and the method includes: a first client among the multiple clients sends a first archive transfer request to the master server, and the first client is any one of the multiple clients; based on the first archive transfer request, the master server determines the address of the first archive file transfer server corresponding to the first archive transfer request according to the load size of the multiple archive file transfer servers, and sends the address of the first archive file transfer server to the first client; the client uploads the archive file to the archive file transfer server through the first network, including: the first client uploads the archive file to the first archive file transfer server through the first network. In this implementation, when the first client among the multiple clients sends the archive transfer request to the master server, the master server sends the address of the first archive file transfer server to the first client according to the load size of the multiple archive file transfer servers, which can ensure the load balancing of the multiple archive file transfer servers. For example, the address of the archive file transfer server with the smallest load can be sent to the first client, so that the first client gives the address of the transmission service with the smallest load, that is, relatively idle, to the client, thereby balancing the load of multiple archive file transfer servers and improving the efficiency of archive file transmission.
[0009] Optionally, a second client among the multiple clients sends a second file transfer request to the main server; based on the second file transfer request, the main server determines the address of the second file transfer server corresponding to the second file transfer request according to the load size of the multiple file transfer servers, and sends the address to the first client; the second client uploads the archive file to the second file transfer server through the third network. In this implementation, the second client uploads the archive file to the second file transfer server through the third network, and different networks are used when multiple clients upload archive files to different archive transfer servers, which ensures that the upload tasks do not affect each other and improves the efficiency of uploading archive files.
[0010] Optionally, when there is only one archive file storage server, the archive file storage server stores archive files, including: the archive file storage server stores archive files transmitted by multiple archive file transmission servers. In this implementation, when the concurrency of the client is high, but the quality of the archive files is low, the archive files transmitted by multiple archive file transmission servers can be stored in one archive file storage server, saving archive file storage servers.
[0011] Optionally, when there are multiple archive file storage servers, the archive file storage servers store archive files, including: dividing all archive files on multiple archive file transfer servers into multiple files; and storing the multiple files on multiple archive file storage servers. In this implementation, when the concurrent amount of archive files is large and the quality of the archive files is high, the memory occupied when storing the archive files is large. When storing the archive files, the archive files are divided to achieve fast storage, and the divided multiple archive files are stored on multiple archive file storage servers, reducing the disk pressure of the archive file storage server.
[0012] Optionally, when the slave server and the client establish an archive file transfer task, the slave server sends information to the master server to increase the weight; when the slave server completes the archive file transfer task, the slave server sends information to the master server to reduce the weight; the master server maintains a service list based on the information to increase the weight or the information to reduce the weight, and the service list includes weight information of multiple archive file transfer servers, and the weight information is used to indicate the load size of multiple archive file transfer servers. In this implementation, the master server can dynamically maintain the service list based on the weight information sent by the slave server, and when the client sends a request to the master server, the master server can determine which server address needs to be sent to the client based on the information in the current service list.
[0013] In a second aspect, a device is provided, which includes a unit for executing each step in the above first aspect or any possible implementation manner of the first aspect.
[0014] According to a third aspect, a device is provided, comprising at least one processor and a memory, wherein the at least one processor is used to execute the method in the above first aspect or any possible implementation manner of the first aspect.
[0015] According to a fourth aspect, a device is provided, comprising at least one processor and an interface circuit, wherein the at least one processor is used to execute the method in the above first aspect or any possible implementation of the first aspect.
[0016] In a fifth aspect, an archive file management system is provided, the system comprising a client, an archive file transfer server and an archive file storage server, the system being used to execute the method in the above first aspect or any possible implementation of the first aspect.
[0017] According to a sixth aspect, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the computer program is used to execute the method in the first aspect or any possible implementation of the first aspect.
[0018] In a seventh aspect, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed, it is used to execute the method in the first aspect or any possible implementation of the first aspect.
[0019] In an eighth aspect, a chip or an integrated circuit is provided, which includes: a processor, configured to call and run a computer program from a memory, so that a device equipped with the chip or the integrated circuit executes the method in the first aspect or any possible implementation of the first aspect.
[0020] It can be understood that the beneficial effects of the second to eighth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.
[0021] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0022] The method provided by the present application is that the client uploads archive files to the archive file transmission server through the first network, and uploads non-archival files to the business system service through the second network. The method deploys the server for uploading archive files and the server for uploading non-archival files separately, and the archive files and non-archival files are not shared on the same network when the client uploads them, thereby improving the efficiency of uploading archive files. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0024] Figure 1 This is a schematic diagram of a management system applicable to archive files provided in an embodiment of the present application;
[0025] Figure 2 is a schematic flow chart of an archive file management method provided in an embodiment of the present application;
[0026] Figure 3 It is a schematic diagram of a single transmission service and a single storage service mode provided in an embodiment of the present application;
[0027] Figure 4 It is a schematic diagram of a multi-transmission service and a single storage service mode provided in an embodiment of the present application;
[0028] Figure 5 It is a schematic diagram of service registration and load strategy provided in an embodiment of the present application;
[0029] Figure 6 It is a schematic diagram of a single transmission service and multiple storage service modes provided in an embodiment of the present application;
[0030] Figure 7 Schematic diagram of the multi-transmission service and multi-storage service mode provided by the embodiment of the present application
[0031] Figure 8 It is a schematic diagram of the archive file management system provided in the embodiment of the present application. DETAILED DESCRIPTION
[0032] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0033] First, before introducing the method and system provided by the present application, it is necessary to explain some of the terms that will be mentioned below. When the present application mentions the terms "first" or "second" and other ordinal numbers, unless they do express the meaning of order according to the context, it should be understood that they are only used for distinction.
[0034] The terms "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other implementations or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0035] Unless otherwise specified, the " / " in this document generally indicates that the objects before and after the association are in an "or" relationship. For example, A / B can mean A or B. The term "and / or" is only a description of the association relationship between the objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of this application, "multiple" means two or more.
[0036] In order to illustrate the technical solution provided by the present application, a specific embodiment is provided below for illustration.
[0037] First, the management system of archive files applicable to the archive file management method provided in this application is specifically introduced. Figure 1 A schematic diagram of a management system for archive files provided in an embodiment of the present application is shown. Figure 1 As shown, the system includes: a client 110, an archive file transmission server 120 and an archive file storage server 130.
[0038] The client 110 may be a terminal device, which includes but is not limited to a mobile terminal such as a smart phone, a tablet computer, a wearable device, etc., and may also be a desktop computer, a robot, or a server, etc. This embodiment of the application is not limited. Figure 1 The client 110 is taken as an example of a tablet computer.
[0039] It should be noted that the client 110 is used to upload a first file, and the first file may be an archive file or a non-archive file.
[0040] It should also be noted that the client may be one or more.
[0041] The client 110 may upload archive files to the archive file transmission server 120 , and the client may also upload non-scheme files to the business system manager 140 .
[0042] The archive file transmission server 120 receives the archive files uploaded by the client. When there are multiple clients concurrently transmitting archive files, the system may include multiple archive file transmission servers.
[0043] The archive file storage server 130 receives the archive files sent by the archive file transmission server. When the archive files are of high quality and occupy a large amount of memory, the system may include multiple archive file storage servers.
[0044] Combine the following Figure 1 The system schematic diagram shown provides a detailed introduction to the archive file management method provided in the embodiment of the present application. Figure 2FIG. 1 is a schematic flow chart of a method for managing archive files provided in an embodiment of the present application. Figure 2 As shown, the archive file management method includes: S210 to S240.
[0045] S210: The client receives a first file, where the first file includes an archive file and a non-archive file;
[0046] In an embodiment of the present application, a first file may be received or saved on a client, and the first file may include an archive file and a non-archive file.
[0047] It should be noted that the archive file can be in the form of pictures, videos, documents, etc.
[0048] Non-archival files can be business-related data that the business system needs to process.
[0049] S220: The client uploads the archive file to the archive file transmission server through the first network.
[0050] In an embodiment of the present application, when the first file on the client is an archive file, the client uploads the archive file to the archive file transmission server through the first network.
[0051] It should be noted that the first network may be a wired network or a wireless network. For example, it may be a local area network or a wide area network, such as the Internet. The wireless network includes Bluetooth or WIFI.
[0052] S230: The client uploads the non-archive file to the business system server via the second network.
[0053] In step S230, in order to ensure that the non-archival files do not occupy the same network and server as the archival files during the upload process, the non-archival files are uploaded to the business system server through the second network.
[0054] It should be noted that the second network may be a wired network or a wireless network. For example, it may be a local area network or a wide area network, such as the Internet. The wireless network includes Bluetooth or WIFI.
[0055] It should also be noted that the second network and the first network are different networks, and the archive file transfer server and the business system server are different servers.
[0056] S240. The archive file transfer server sends the archive file to the archive file storage server for storage.
[0057] After the client uploads the archive file to the archive file transfer server in step 220, the archive file transfer server may send the archive file to the archive file storage server for storage.
[0058] According to the method provided in the embodiment of the present application, the client uploads archive files to the archive file transmission server through the first network, and uploads non-archive files to the business system service through the second network. The method deploys the server for uploading archive files and the server for uploading non-archive files separately, and the archive files and non-archive files are not shared on the same network when the client uploads them, thereby improving the efficiency of uploading archive files.
[0059] The above steps S210-S240 introduce how the client, archive file transfer server and archive file storage server upload and store archive files in the archive file management system. When the archive file transfer system includes different numbers of clients, archive file transfer servers and archive file storage servers, the user can formulate the required multiple modes in the archive file transfer system according to the needs, and the multiple modes can realize the switching of different configurations, wherein the mode specifically includes: stand-alone mode, cluster mode, master server and slave server. The following specifically introduces the archive file management method provided by the embodiment of the present application for different application scenarios.
[0060] In the first case, there is only one client uploading archive files in the system, and the archive file concurrency is low, which means that the number of archive files that need to be transmitted is small, the archive files are of low quality and occupy little memory. In this case, a single transmission service and single archive storage service model can be adopted.
[0061] Figure 3 A schematic diagram showing a single transmission service and a single storage service mode provided by an embodiment of the present application is shown. Figure 3 It can be seen that in a scenario with a small concurrency, the client sends the archive file to the archive file transfer server through the first network, and the archive file transfer server can further send the archive file to the archive file storage server for storage.
[0062] Optionally, the archive file transfer server and the archive file storage server can be in the same local area network, which can improve the efficiency of file storage.
[0063] The client sends the non-archive file to the business system server through the second network, and the first network and the second network are different networks.
[0064] In this scenario, the archive service and business service are deployed separately and the network is allocated separately. During the process of uploading archive files from the client to the archive file transfer server, the business service bandwidth is not occupied, ensuring the normal operation of the business service and the efficiency of uploading archive files.
[0065] In the second case, when the number of archive files to be transmitted is large, the client sends archive files at a high concurrency, but the archive files are of low quality and occupy less memory, a service model of multiple transmission services and single archive storage can be adopted.
[0066] In an embodiment of the present application, when multiple clients need to concurrently send multiple archive files, but the quality of the archive files is low and the memory occupied is small, the archive file management system may include multiple clients and multiple archive file transfer servers, the multiple archive file transfer servers include a master server and a slave server, and the archive file management system may also include a storage server.
[0067] First, after the user selects this service mode, the first client among multiple clients sends the first file transfer request to the main server, the slave server sends registration information to the main server, and the main server creates a service list, which is used to accept the registration request of the slave server. The service list includes the basic information and weight information of the slave server. The weight information is used to indicate the load size of multiple archive file transfer servers. The service list will check the heartbeat status of the slave server based on the basic information of the slave server, and will also maintain the weight information of the slave server based on the transmission information fed back by the slave server.
[0068] Optionally, when the master server performs heartbeat detection according to the service list, the master server will periodically send heartbeats to the slave server based on the basic information of the slave server in the service list to detect whether the heartbeat status of the slave server is normal. When the heartbeat of the slave server is abnormal, the master server will take the slave server in the abnormal state offline and will not provide the service address of the server to the outside world.
[0069] Specifically, the master server will periodically send a heartbeat message to the slave server. After receiving the heartbeat message, the slave server will periodically send a heartbeat response message to the master server. When the master server receives the heartbeat response message, it can be determined that the slave server is in an available state. If the master server does not receive the heartbeat response message within a period of time, it can be determined that the slave server is in an unavailable state. When the slave server is in an unavailable state, the master server will take it offline and will not provide the client with the address of the unavailable server.
[0070] Optionally, when the master server maintains weight information based on the service list, the master server may increase the weight based on information that the slave server will send to the master server after establishing the transmission, or decrease the weight based on information that the slave server sends to the master server after completing the transmission.
[0071] When a first client among the multiple clients sends a first file transfer request to the main server, the main server determines the address of the first file transfer server corresponding to the first file transfer request according to the load sizes of the multiple file transfer servers, and sends the address of the first file transfer server to the first client. Then, the first client uploads the archive file to the first archive transfer server through the first network.
[0072] It should be noted that the first client may be any one of multiple clients.
[0073] Optionally, as a possible implementation manner, the main server queries the service list, and when the weight information of a certain server is displayed to be the smallest, the service address of the server can be sent to the client.
[0074] This implementation method can ensure load balancing of multiple archive file transmission servers. For example, the address of the archive file transmission server with the smallest load can be sent to the first client, so that the first client can give the address of the transmission service with the smallest load, that is, relatively idle, to the client, thereby balancing the load of multiple archive file transmission servers and improving the efficiency of archive file transmission.
[0075] When a second client among multiple clients sends a second file transfer request to the main service, the main server determines the address of the second archive file transfer server corresponding to the second file transfer request based on the load size of the multiple archive file transfer servers, and sends the address to the second client; the second client uploads the archive file to the second archive file transfer server through the third network.
[0076] It should be noted that the second client may be any one of a plurality of clients, and the second client and the first client are different clients.
[0077] It should also be noted that the first network and the third network are different networks, which can improve the efficiency of uploading archive files.
[0078] In other words, when there are multiple clients, the weight information of the service list is checked according to the order in which the multiple clients send requests, and then the service addresses of the servers corresponding to the weight information are sent to the multiple clients in sequence. Then, after the client receives the service address sent by the main server, it sends the archive files on the client to the service address. Finally, the archive files received by the multiple transmission servers are sent to the storage server for storage.
[0079] Exemplary, combined Figure 4 and Figure 5 The multi-transmission service and single storage service modes provided in the embodiments of the present application are introduced in detail. Figure 4A schematic diagram showing a multi-transmission service and a single storage service mode provided by an embodiment of the present application is shown. Figure 5 A schematic diagram of the service registration and load strategy provided by the embodiment of the present application is shown. Figure 4 and Figure 5 It can be seen that the archive file management system includes three clients and three archive file transfer servers, the three archive file transfer servers include a master server and two slave servers, and the system also includes a storage server.
[0080] from Figure 5 As can be seen in the figure, when the user selects the mode of multiple transmission services and single storage service, the two slave servers send registration requests to the master server respectively. The master server creates a service list in the master server according to the registration request of the slave server. The service list includes the basic information of the slave server and the transmission information of the slave service. Whenever the slave server establishes an archive file transmission task, it will notify the master server to increase the weight information of the slave server; whenever the slave server completes the transmission, it will notify the master server to reduce the weight information. Therefore, the master server can maintain and query the weight information of the slave server in the service list.
[0081] from Figure 5 It can also be seen that when client 1 sends a file transfer request to the main server, the main server queries the weight information of each server in the service list. Figure 5 It can be seen that the weight of the master server is 1, the weight of slave server 1 is 0, and the weight of slave server 2 is 2. Since the weight of slave service 1 is the smallest and is 0, it means that slave server 1 currently has no transmission service. The master server sends the service address of slave service 1 to the client, that is, the service address of slave server 1 is the optimal service address. At this time, the master service increases the weight information of slave server 1 in the service list information. Similarly, when client 2 sends a file transfer request to the master server, the master server sends the service address of the master server to client 2, and increases the weight information of the master server in the service list information. That is, slave servers 1 and 2 send transmission information to the master server during the transmission process, and the master server can dynamically maintain its own weight information and the weight information of the slave service.
[0082] Furthermore, the master server may detect the heartbeat status of slave server 1 and slave server 2 according to the basic information of the slave servers in the service list.
[0083] Specifically, in an embodiment of the present application, the master server will periodically send heartbeat messages to slave server 1 and slave server 2 at a fixed time. After slave server 1 and slave server 2 receive the heartbeat messages, they will periodically send heartbeat response messages to the master server. When the master server receives the heartbeat response messages from slave server 1 and slave server 2, it can be determined that the slave server is in an available state. If the master server does not receive a heartbeat response message sent by a slave server within a period of time, it can be determined that the slave server is in an unavailable state. According to the heartbeat state of slave server 1 and slave server 2, it is judged whether slave server 1 and slave server 2 are in an abnormal state. For example, within a period of time, slave server 1 does not send a heartbeat response message to the master server, which means that slave server 1 is in an unavailable state, and the main service will go offline from slave server 1, and the master server will not send the address of slave server 1 to the client.
[0084] In the third case, when the number of archive files that need to be transferred is small, the concurrency of the archive files is low, but the quality of the archive files is high, and the archive files occupy a lot of memory, a single transmission service and multiple storage service mode can be used.
[0085] In the embodiment of the present application, the number of archive files that need to be concurrent is small, but the quality of the archive files is high. For example, if the definition of a video or a picture is high, it means that the archive files occupy a large amount of memory. In this case, when saving the archive files, the archive files need to be divided and stored to reduce the disk pressure of the storage server. The archive file management system may include a client, an archive file transmission server, and multiple archive file storage servers.
[0086] When the user selects single transfer service and multiple storage services, the client directly sends the archive file to the archive file transfer server, and then the archive file transfer server sends the archive file to multiple archive file storage servers for storage.
[0087] Optionally, as a possible implementation method, the archive file received on the archive file transfer server can be uploaded to the archive file storage server of the Minio framework, and the archive file storage server can divide the archive file into multiple file blocks and then store them on multiple archive file storage servers respectively.
[0088] For example, Figure 6The schematic diagram of the single transmission service and multi-storage service mode provided by the embodiment of the present application is shown. It can be seen from the figure that the client uploads the archive file to the archive file transmission server, and then the archive file transmission server uploads the archive file to the archive file storage server of the Minio framework. The archive file storage server of the Minio framework uses its own logic to divide the archive file into three file blocks and store them on three archive file storage servers. In this mode, the archive is divided and stored, which can reduce the disk pressure of the storage server.
[0089] In the fourth case, when the concurrency of archive files is high and the quality of archive files is also high, it means that the memory occupied by archive files will be larger, then multiple transmission services and multiple storage services modes can be adopted.
[0090] In an embodiment of the present application, when the concurrency of archive files is high, the archive file management system includes multiple clients and multiple archive file transfer servers, the multiple archive file transfer servers include a master server and a slave server, and the archive file system includes multiple archive file storage servers.
[0091] When the user selects this mode, multiple clients in the archive file management system upload archive files to multiple archive file transfer servers respectively. The specific transmission process can be referred to the specific description of the multi-transmission service in the second case above, which will not be repeated here. Then, the multiple archive file transfer servers send the uploaded archive files to multiple archive file storage servers for storage.
[0092] Optionally, as a possible implementation method, the archive file received on the transmission server can be uploaded to the storage server of the Minio framework, and the storage server can divide the archive file into multiple file blocks and then store them on multiple storage servers respectively.
[0093] This mode combines the advantages of multiple transmission services with multiple storage services. The transmission nodes perform load balancing and handle high-concurrency transmission requirements. At the same time, high-quality archives under high concurrency are segmented and quickly stored.
[0094] For example, Figure 7 The schematic diagram of the multi-transmission service and multi-storage service mode provided by the embodiment of the present application is shown. It can be seen from the figure that multiple clients upload archive files to multiple archive file transmission servers, and then multiple archive file transmission servers upload all archive files to the archive file storage server of the Minio framework. The archive file storage server of the Minio framework uses its own logic to divide the archive file into three file blocks and store them on three archive file storage servers. In this mode, the archives are divided and stored, which can reduce the disk pressure of the storage server.
[0095] In summary, the archive file management method provided in the embodiment of the present application has been specifically introduced. The management system provided in the embodiment of the present application is introduced below. Figure 8 A schematic block diagram of a management system for archive files provided in an embodiment of the present application is shown. Figure 8 It can be seen that the archive file management system 800 includes: a client 810, an archive file transmission server 820 and an archive file storage server 830. The client 810, the archive file transmission server 820 and the archive file storage server 830 are used to execute the methods corresponding to each client or server in the above examples. The specific execution method and beneficial effects can be found in the above description, which will not be repeated here.
[0096] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned archive file management method can be implemented.
[0097] An embodiment of the present application provides a computer program product, which, when executed on a system, enables the system to implement the above-mentioned archive file management method.
[0098] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0099] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0100] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0101] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0102] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0103] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0104] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0105] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for managing archive files, characterized in that: The method is applied to a management system of archive files, the system comprising a client, an archive file transmission server and an archive file storage server, and the method comprises: The client receives a first file, where the first file includes an archive file and a non-archive file; the archive file is a picture, a video or a document; The client uploads the archive file to the archive file transmission server through the first network; The client uploads the non-archive file to the business system server via the second network; The archive file transmission server sends the archive file to the archive file storage server; The archive file storage server stores the archive file; When there are multiple clients and multiple archive file transmission servers, the multiple archive file transmission servers include a master server and a slave server, and the method includes: A first client among the multiple clients sends a first file transfer request to the main server, the first client being any one of the multiple clients; Based on the first file transfer request, the main server determines the address of the first file transfer server corresponding to the first file transfer request according to the load sizes of the multiple file transfer servers, and sends the address of the first file transfer server to the first client; The client uploading the archive file to the archive file transmission server through the first network includes: The first client uploads the archive file to the first archive file transmission server through the first network; The method further comprises: When the slave server establishes an archive file transmission task with the client, the slave server sends a weight-increasing message to the master server; When the slave server completes the archive file transmission task, the slave server sends a weight reduction message to the master server; The main server maintains a service list according to the information of increasing weight or the information of decreasing weight, and the service list includes weight information of the multiple archive file transfer servers, and the weight information is used to indicate the load size of the multiple archive file transfer servers.
2. The method according to claim 1, characterized in that When there are multiple archive file storage servers, the archive file storage servers store the archive files, including: Splitting the archive file into multiple files; The multiple files are stored on the multiple archive file storage servers respectively.
3. The method according to claim 1, characterized in that The method further comprises: A second client among the plurality of clients sends a second file transfer request to the main server; Based on the second file transfer request, the main server determines the address of the second archive file transfer server corresponding to the second file transfer request according to the load sizes of the multiple archive file transfer servers, and sends the address to the first client; The second client uploads the archive file to the second archive file transmission server through the third network.
4. The method according to claim 3, characterized in that: When there is one archive file storage server, the archive file storage server stores the archive file, including: The archive file storage server stores the archive files transmitted by the multiple archive file transmission servers.
5. The method according to claim 3, characterized in that: When there are multiple archive file storage servers, the archive file storage servers store the archive files, including: Splitting all archive files on the plurality of archive file transfer servers into a plurality of files; The multiple files are stored on the multiple archive file storage servers respectively.
6. A management system for archive files, characterized in that: The management system comprises: a client, an archive file transmission server and an archive file storage server, and the system is used to execute the method as claimed in any one of claims 1 to 5.
7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
8. A chip, characterized in that: include: A processor, configured to call and run a computer program from a memory, so that a device equipped with the chip executes a method as claimed in any one of claims 1 to 5.
