A node log download method, device, equipment and medium
By downloading logs directly through child nodes in distributed storage technology, the problem of excessive load on the main node is solved, achieving faster log download time and better user experience.
Patent Information
- Application Number
- CN202210753530.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-29
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2042-06-29
AI Technical Summary
In the existing distributed storage technology, the load pressure on the master node to process non-master node logs is too high, resulting in long log download time and reduced user experience.
By receiving the download request, determine the node list of logs to be downloaded, and enable the WEB service of the sub-node to directly download the logs to be downloaded through the WEB service, thereby dispersing the load pressure of the main node and eliminating the process of collecting and compressing all logs on the main node. time.
It reduces the load pressure on the master node, shortens the log download time, and improves the user experience.
Smart Images

Figure CN115118706B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of distributed storage technology, and in particular to a node log downloading method, device, equipment and medium. Background Art
[0002] With the increasing amount of computer data, in the existing storage management solutions of distributed storage technology, only the master node in the server can support WEB services. When users need to download logs recorded on non-master nodes (generally also called child nodes), they need to copy the logs on the non-master nodes to the master node, compress the collected non-master nodes into a log at the master node, and then download the compressed log to the client through the master node's WEB service. At this time, the load pressure on the master node to process the logs is too large, and the log download time is too long, which reduces the user experience.
[0003] In view of the above-mentioned problems, finding out how to improve user experience is a problem that technicians in this field are trying their best to solve. Summary of the invention
[0004] The purpose of this application is to provide a node log downloading method, device, equipment and medium, which are used to reduce the excessive load pressure on the master node, eliminate the processing time of collecting all logs on the master node and compressing them, and improve the user experience.
[0005] In order to solve the above technical problems, the present application provides a node log downloading method, which is applied to the server, including:
[0006] Receive download request;
[0007] Determine a node list of the log to be downloaded according to the download request, wherein the node list stores child nodes corresponding to the log to be downloaded;
[0008] Enable the WEB service of the child node according to the node list;
[0009] Download the logs to be downloaded through the WEB service.
[0010] Preferably, after determining the node list of the log to be downloaded according to the download request, and before starting the WEB service of the child node according to the node list, the method further includes:
[0011] Create a download task based on the child nodes stored in the node list;
[0012] Determine whether the download task is successfully established;
[0013] If yes, a log summary directory is generated, which is used to store all logs to be downloaded;
[0014] If not, the process returns to the step of determining a node list of logs to be downloaded according to the download request.
[0015] Preferably, after generating the log summary directory, the following is further included:
[0016] Compress the log summary directory.
[0017] Preferably, after starting the WEB service of the child node according to the node list and before downloading the log to be downloaded through the WEB service, the method further includes:
[0018] Set the preset progress of the download task;
[0019] Determine whether the progress of the download task has reached the preset progress;
[0020] If yes, then proceed to the step of downloading the log to be downloaded through the WEB service;
[0021] If not, then end.
[0022] Preferably, after downloading the log to be downloaded through the WEB service, the method further includes:
[0023] Determine whether the logs to be downloaded have been downloaded;
[0024] If yes, shut down the WEB service;
[0025] If not, return to the step of downloading the log to be downloaded through the WEB service.
[0026] In order to solve the above technical problems, the present application also provides a node log downloading method, which is applied to the client and includes:
[0027] Send a download request to determine a node list of logs to be downloaded according to the download request, so as to start the WEB service of the sub-node according to the node list, wherein the node list stores the sub-nodes corresponding to the logs to be downloaded;
[0028] Receive the logs to be downloaded through the WEB service.
[0029] In order to solve the above technical problems, the present application also provides a node log downloading device, which is applied to the server, including:
[0030] A first receiving module, used for receiving a download request;
[0031] A determination module, used to determine a node list of logs to be downloaded according to a download request, wherein the node list stores child nodes corresponding to the logs to be downloaded;
[0032] The enable module is used to enable the WEB service of the child node according to the node list;
[0033] The download module is used to download the logs to be downloaded through the WEB service.
[0034] In addition, the node log download device applied to the server also includes the following modules:
[0035] A creation module, used to create a download task according to the child nodes stored in the node list;
[0036] The first judgment module is used to judge whether the download task is successfully established;
[0037] If yes, the generation module is entered to generate a log summary directory, which is used to store all logs to be downloaded;
[0038] If not, return to the determination module.
[0039] Compression module, used to compress the log summary directory.
[0040] The setting module is used to set the preset progress of the download task;
[0041] The second judgment module is used to judge whether the progress of the download task reaches the preset progress;
[0042] If yes, then enter the download module;
[0043] If not, then end.
[0044] The third judgment module is used to judge whether the log to be downloaded has been downloaded;
[0045] If yes, then enter the shutdown module to shut down the WEB service;
[0046] If not, return to the download module.
[0047] In order to solve the above technical problems, the present application also provides a node log downloading device, which is applied to a client and includes:
[0048] A sending module, used to send a download request, and to determine a node list of logs to be downloaded according to the download request, so as to start the WEB service of the sub-node according to the node list, wherein the node list stores the sub-nodes corresponding to the logs to be downloaded;
[0049] The second receiving module is used to receive the log to be downloaded through the WEB service.
[0050] In order to solve the above technical problems, the present application also provides a node log downloading device, including:
[0051] Memory for storing computer programs;
[0052] The processor is used to point to the computer program to implement the steps of the node log downloading method.
[0053] In order to solve the above technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned method for downloading all node logs are implemented.
[0054] A node log downloading method provided by the present application is applied to the server, including: receiving a download request; determining a node list of logs to be downloaded according to the download request, wherein the node list stores the subnodes corresponding to the logs to be downloaded; opening the WEB service of the subnode according to the node list; and downloading the logs to be downloaded through the WEB service. Since the download node log can only be downloaded through the WEB service, the WEB service of the subnode is opened through the node list, and the logs to be downloaded of the corresponding subnodes are directly downloaded through the subnodes, and the load pressure of the main node processing the logs is distributed to each subnode, thereby reducing the excessive load pressure of the main node, and at the same time eliminating the processing time of collecting all logs in the main node and compressing them, thereby improving the user experience.
[0055] The present application also provides a node log downloading device, equipment and medium, with the same effect as above. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. 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 any creative work.
[0057] Figure 1 A flow chart of a node log downloading method applied to a server provided in an embodiment of the present application;
[0058] Figure 2 A flow chart of a node log downloading method applied to a client provided in an embodiment of the present application;
[0059] Figure 3 A structural diagram of a node log downloading device applied to a server provided in an embodiment of the present application;
[0060] Figure 4 A structural diagram of a node log downloading device applied to a client provided in an embodiment of the present application;
[0061] Figure 5 A structural diagram of a node log downloading device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0062] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0063] The core of this application is to provide a node log downloading method, device, equipment and medium, which can reduce the excessive load pressure of the master node, eliminate the processing time of collecting all logs on the master node and compressing them, and improve the user experience.
[0064] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0065] Figure 1 The following is a flow chart of a node log download method applied to a server provided in an embodiment of the present application. Figure 1 As shown, the node log download method is applied to the server and includes:
[0066] S10: Receive a download request.
[0067] It should be noted that a download request can establish multiple download requests at one time, or only establish one download request at one time. However, a download request can only be established once. If you want to increase the number of download requests, you need to start from the beginning. The download request in this embodiment can be represented by binary data, and there is no limitation on the number of binary bits, which can be 1 bit, 2 bits, 4 bits, 8 bits, etc.; it can also be represented by text, which can be "download successful", "start downloading", etc. Among them, when binary data is used to represent the download request, according to the order of the number of bits of the above binary data, it can be "0", "01", "0110", "11011001", etc. It should be noted that the above-listed binary data and text forms are only a few forms of expression in many embodiments, and do not limit the representation method of the download request. Its implementation method can be determined according to the specific implementation scenario.
[0068] S11: Determine a node list of logs to be downloaded according to the download request.
[0069] The node list stores the child nodes corresponding to the log to be downloaded. Similar to the download request mentioned above, the node list can record the child nodes by enumeration or by selection. The child nodes can be represented by binary data, and there is no limit on the number of binary bits, which can be 2, 4, 8, etc.; they can also be represented by text, which can be "the first child node", "the child node of the log to be downloaded", etc. When binary data is used to represent the download request, according to the order of the number of description bits of the above binary data, it can be "11", "0110", "11011001", etc. It can be understood that when the number of child nodes is small and binary data is used to represent the child nodes, 2 bits of binary data can only represent 4 child nodes, and n bits of binary data can represent 2. n It should be noted that the binary data and text forms listed above are only several forms of expression in many embodiments, and do not limit the way of recording subnodes, and the implementation method can be determined according to the specific implementation scenario.
[0070] S12: Enable the WEB service of the child node according to the node list.
[0071] In this application, the information about opening the subnode can be triggered by binary data, and there is no limit on the number of binary bits, which can be 1 bit, 2 bits, 4 bits, 8 bits, etc.; it can also be expressed in text form, which can be words such as "open", "start", etc. Among them, when binary data is used to represent the download request, according to the order of the number of bits described in the above binary data, it can be "0", "01", "0110", "11011001", etc. It should be noted that the above-listed binary data and text forms are only a few forms of expression in many embodiments, and do not limit the information of opening the subnode. Its implementation method can be determined according to the specific implementation scenario.
[0072] S13: Download the log to be downloaded through the WEB service.
[0073] A node log downloading method provided by the present application is applied to the server, including: receiving a download request; determining a node list of logs to be downloaded according to the download request, wherein the node list stores the sub-nodes corresponding to the logs to be downloaded; opening the WEB service of the sub-node according to the node list; and downloading the logs to be downloaded through the WEB service. Since the downloaded node logs can only be downloaded through the WEB service, the WEB service of the sub-node is opened through the node list, so that the logs to be downloaded of the corresponding sub-nodes can be directly downloaded through the sub-nodes, and the load pressure of the main node processing the logs is distributed to each sub-node, thereby reducing the excessive load pressure of the main node, and at the same time eliminating the processing time of collecting all logs in the main node and compressing them, thereby improving the user experience. It should be noted that the node log downloading method provided by the present application can download node logs in parallel for multiple sub-nodes.
[0074] Based on the above embodiment, as a more preferred embodiment, after determining the node list of the log to be downloaded according to the download request, before starting the WEB service of the child node according to the node list, it also includes:
[0075] Create a download task based on the child nodes stored in the node list;
[0076] Determine whether the download task is successfully established;
[0077] If yes, a log summary directory is generated, which is used to store all logs to be downloaded;
[0078] If not, the process returns to the step of determining a node list of logs to be downloaded according to the download request.
[0079] In the present embodiment, the child nodes stored in the node list are used to establish download tasks, rather than all child nodes, in order to save storage space and reduce resource consumption. Secondly, by judging whether the download task is successfully established, it is possible to avoid wasting resources when the download task is not successfully established. It should also be noted that in order to facilitate the management of the download tasks corresponding to multiple child nodes, multiple download tasks can be collected into a task group. The log summary directory can also store the IP information of all logs to be downloaded, and open the WEB service of the child node according to the IP information.
[0080] Based on the above embodiment, as a more preferred embodiment, after generating the log summary directory, the method further includes:
[0081] Compress the log summary directory.
[0082] Since the ultimate goal is to download the node logs, in order to leave more storage space for the node logs, the log summary directory needs to be compressed. This avoids the situation where the node log storage space is insufficient due to the uncompressed log summary directory, the node log cannot be obtained, and the node log cannot be downloaded.
[0083] Based on the above embodiment, as a more preferred embodiment, after starting the WEB service of the child node according to the node list and before downloading the log to be downloaded through the WEB service, it also includes:
[0084] Set the preset progress of the download task;
[0085] Determine whether the progress of the download task has reached the preset progress;
[0086] If yes, then proceed to the step of downloading the log to be downloaded through the WEB service;
[0087] If not, then end.
[0088] In order to enable users to intuitively understand the progress of the download task, a preset progress is set. It should be noted that, taking the preset progress of 40% as an example, the first 40% of the tasks are to collect the node logs of child nodes and compress the node logs. Regardless of the size of the node log, 40% of the tasks compress the node log. In order to compress larger node logs, the largest node log among all child nodes can be calculated in advance, and the preset progress can be set based on the size of the largest node log.
[0089] Based on the above embodiment, as a more preferred embodiment, after downloading the log to be downloaded through the WEB service, the method further includes:
[0090] Determine whether the logs to be downloaded have been downloaded;
[0091] If yes, shut down the WEB service;
[0092] If not, return to the step of downloading the log to be downloaded through the WEB service.
[0093] In this embodiment, in order to reduce the power consumption during the download process, it is necessary to determine whether the log to be downloaded has been downloaded. It is understandable that by setting a preset time, it is possible to determine whether the log to be downloaded has been downloaded in a polling manner; it is also possible to determine whether the download is complete in real time. It should be noted that the preset time can be set to 1s, 1min, etc. The preset time mentioned above is only a few of the many embodiments, and does not limit the preset time. The implementation method can be determined according to the specific implementation scenario. At the same time, shutting down the WEB service means that even if there are node logs that need to be downloaded, they cannot be downloaded because the WEB service is shut down.
[0094] In addition, when a fault occurs: the WEB service is shut down and the node log cannot be downloaded, but some node logs have not been downloaded yet, you can record the download progress and continue downloading according to the previous progress after the fault is corrected.
[0095] Figure 2 The following is a flow chart of a node log downloading method applied to a client provided in an embodiment of the present application. Figure 2 As shown, the node log download method is applied to the client and includes:
[0096] S20: Send a download request.
[0097] According to the download request, the node list of the log to be downloaded is determined, so as to enable the WEB service of the child node according to the node list, wherein the child node corresponding to the log to be downloaded is stored in the node list. It should be noted that the download request in this embodiment can be represented by binary data, and the number of bits of the binary is not limited, which can be 1 bit, 2 bits, 4 bits, 8 bits, etc.; it can also be represented by text, which can be "download successful", "start downloading", etc. Among them, when binary data is used to represent the download request, according to the order of the number of bits of the description of the above binary data, it can be "0", "01", "0110", "11011001", etc. It should be noted that the above-listed binary data and text forms are only several forms of expression in many embodiments, and do not limit the representation method of the download request. The implementation method can be determined according to the specific implementation scenario.
[0098] The node list stores the child nodes corresponding to the log to be downloaded. Similar to the download request mentioned above, the node list can record the child nodes by enumeration or by selection. The child nodes can be represented by binary data, and there is no limit on the number of binary bits, which can be 2, 4, 8, etc.; they can also be represented by text, which can be "the first child node", "the child node of the log to be downloaded", etc. When binary data is used to represent the download request, according to the order of the number of description bits of the above binary data, it can be "11", "0110", "11011001", etc. It can be understood that when the number of child nodes is small and binary data is used to represent the child nodes, 2 bits of binary data can only represent 4 child nodes, and n bits of binary data can represent 2. n It should be noted that the binary data and text forms listed above are only several forms of expression in many embodiments, and do not limit the way of recording subnodes, and the implementation method can be determined according to the specific implementation scenario.
[0099] In this application, the information about opening the subnode can be triggered by binary data, and there is no limit on the number of binary bits, which can be 1 bit, 2 bits, 4 bits, 8 bits, etc.; it can also be expressed in text form, which can be words such as "open", "start", etc. Among them, when binary data is used to represent the download request, according to the order of the number of bits described in the above binary data, it can be "0", "01", "0110", "11011001", etc. It should be noted that the above-listed binary data and text forms are only a few forms of expression in many embodiments, and do not limit the information of opening the subnode. Its implementation method can be determined according to the specific implementation scenario.
[0100] S21: receiving the log to be downloaded through the WEB service.
[0101] A node log downloading method provided by the present application is applied to a client, and includes: sending a download request, for determining a node list of logs to be downloaded according to the download request, so as to enable the WEB service of the child node according to the node list, wherein the child node corresponding to the log to be downloaded is stored in the node list; receiving the log to be downloaded downloaded through the WEB service. Since the download node log can only be downloaded through the WEB service, the WEB service of the child node is enabled through the node list, so that the log to be downloaded of the corresponding child node is directly downloaded through the child node, and the load pressure of the main node processing the log is dispersed to each child node, thereby reducing the excessive load pressure of the main node, and at the same time eliminating the processing time of collecting all logs in the main node and compressing them, thereby improving the user experience.
[0102] In the above embodiments, the node log downloading method is described in detail, and the present application also provides an embodiment corresponding to the node log downloading device. It should be noted that the present application describes the embodiments of the device part from two perspectives, one is based on the functional module perspective, and the other is based on the hardware perspective.
[0103] Figure 3 This is a structural diagram of a node log downloading device applied to a server provided in an embodiment of the present application. Figure 3 As shown, the present application also provides a node log downloading device, which is applied to the server, including:
[0104] A first receiving module 30, used for receiving a download request;
[0105] A determination module 31, configured to determine a node list of logs to be downloaded according to a download request, wherein the node list stores child nodes corresponding to the logs to be downloaded;
[0106] The enabling module 32 is used to enable the WEB service of the child node according to the node list;
[0107] The download module 33 is used to download the log to be downloaded through the WEB service.
[0108] In addition, the node log download device also includes the following modules:
[0109] A creation module, used to create a download task according to the child nodes stored in the node list;
[0110] The first judgment module is used to judge whether the download task is successfully established;
[0111] If yes, the generation module is entered to generate a log summary directory, which is used to store all logs to be downloaded;
[0112] If not, return to the determination module.
[0113] Compression module, used to compress the log summary directory.
[0114] The setting module is used to set the preset progress of the download task;
[0115] The second judgment module is used to judge whether the progress of the download task reaches the preset progress;
[0116] If yes, then enter the download module;
[0117] If not, then end.
[0118] The third judgment module is used to judge whether the log to be downloaded has been downloaded;
[0119] If yes, then enter the shutdown module to shut down the WEB service;
[0120] If not, return to the download module.
[0121] Since the download node log can only be downloaded through the WEB service, the WEB service of the child node is enabled through the node list, so that the corresponding child node’s log to be downloaded can be downloaded directly through the child node, and the load pressure of the main node processing logs can be distributed to each child node, thereby reducing the excessive load pressure on the main node and eliminating the processing time of collecting all logs in the main node and compressing them, thereby improving the user experience.
[0122] Figure 4 This is a structural diagram of a node log downloading device applied to a client provided in an embodiment of the present application. Figure 4 As shown, the present application also provides a node log downloading device, which is applied to a client and includes:
[0123] The sending module 40 is used to send a download request, and is used to determine a node list of logs to be downloaded according to the download request, so as to start the WEB service of the sub-node according to the node list, wherein the node list stores the sub-nodes corresponding to the logs to be downloaded;
[0124] The second receiving module 41 is used to receive the log to be downloaded through the WEB service.
[0125] Since the download node log can only be downloaded through the WEB service, the WEB service of the child node is enabled through the node list, so that the corresponding child node’s log to be downloaded can be downloaded directly through the child node, and the load pressure of the main node processing logs can be distributed to each child node, thereby reducing the excessive load pressure on the main node and eliminating the processing time of collecting all logs in the main node and compressing them, thereby improving the user experience.
[0126] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.
[0127] Figure 5 A node log download device structure diagram provided in an embodiment of the present application, such as Figure 5 As shown, the node log download device includes:
[0128] A memory 50, for storing computer programs;
[0129] The processor 51 is used to implement the steps of the node log downloading method mentioned in the above embodiment when executing the computer program.
[0130] The node log downloading device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer, or a desktop computer.
[0131] Among them, the processor 51 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 51 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 51 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 51 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 51 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0132] The memory 50 may include one or more computer-readable storage media, which may be non-transitory. The memory 50 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 50 is at least used to store the following computer program, wherein, after the computer program is loaded and executed by the processor 51, the relevant steps of the node log download method disclosed in any of the aforementioned embodiments can be implemented. In addition, the resources stored in the memory 50 may also include an operating system and data, etc., and the storage method may be short-term storage or permanent storage. Among them, the operating system may include Windows, Unix, Linux, etc. The data may include, but is not limited to, a node log download method, etc.
[0133] In some embodiments, the node log downloading device may also include a display screen, an input and output interface, a communication interface, a power supply, and a communication bus.
[0134] Those skilled in the art will understand that Figure 5 The structure shown in does not constitute a limitation on the node log downloading device and may include more or fewer components than shown in the figure.
[0135] The node log downloading device provided in the embodiment of the present application includes a memory 50 and a processor 51. When the processor 51 executes the program stored in the memory 50, it can implement the node log downloading method.
[0136] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above method embodiment is implemented, which may be a method corresponding to the server, or a method corresponding to the client, or steps recorded in the methods corresponding to the server and the client.
[0137] It is understandable that if the method in the above embodiment 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 technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory), ROM, random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.
[0138] The above is a detailed introduction to a node log downloading method, device, equipment and medium provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
[0139] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A node log downloading method, characterized in that: Applied to the server, including: Receive download request; Determine a node list of the log to be downloaded according to the download request, wherein the node list stores the child nodes corresponding to the log to be downloaded; Enable the WEB service of the child node according to the node list; Download the log to be downloaded through the WEB service; After determining the node list of logs to be downloaded according to the download request and before starting the WEB service of the child node according to the node list, the method further includes: Establishing a download task according to the child node stored in the node list; Determining whether the download task is successfully established; If yes, a log summary directory is generated, wherein the log summary directory is used to store all the logs to be downloaded; If not, return to the step of determining a node list of logs to be downloaded according to the download request; After the log summary directory is generated, it also includes: Compressing the log summary directory; After starting the WEB service of the child node according to the node list and before downloading the log to be downloaded through the WEB service, the method further includes: Setting a preset progress of the download task; wherein the preset progress is the capacity of the largest node log among all the child nodes; when the progress of the download task is from 0 to the preset progress, collecting the node logs of the child nodes and compressing the node logs; Determining whether the progress of the download task reaches the preset progress; If yes, then proceed to the step of downloading the log to be downloaded through the WEB service; If not, then end; After downloading the log to be downloaded through the WEB service, the method further includes: Determine whether the log to be downloaded has been downloaded; If yes, shut down the WEB service; If not, return to the step of downloading the log to be downloaded through the WEB service; The method further includes: when a failure occurs in which the WEB service is closed and the downloading of the log to be downloaded cannot be continued, recording the download progress of the sub-node, and continuing the downloading according to the download progress after the failure is eliminated.
2. A node log downloading method, characterized in that: Applied to the client, including: Sending a download request, used to determine a node list of logs to be downloaded according to the download request, so as to enable a WEB service of a sub-node according to the node list, wherein the node list stores the sub-nodes corresponding to the logs to be downloaded; Receiving the log to be downloaded through the WEB service; After determining the node list of logs to be downloaded according to the download request and before starting the WEB service of the child node according to the node list, the method further includes: Establishing a download task according to the child node stored in the node list; Determining whether the download task is successfully established; If yes, a log summary directory is generated, wherein the log summary directory is used to store all the logs to be downloaded; If not, return to the step of determining a node list of logs to be downloaded according to the download request; After the log summary directory is generated, it also includes: Compressing the log summary directory; After starting the WEB service of the child node according to the node list and before receiving the log to be downloaded through the WEB service, the method further includes: Setting a preset progress of the download task; wherein the preset progress is the capacity of the largest node log among all the child nodes; when the progress of the download task is from 0 to the preset progress, collecting the node logs of the child nodes and compressing the node logs; Determining whether the progress of the download task reaches the preset progress; If yes, then enter the step of receiving the log to be downloaded through the WEB service; If not, then end; After receiving the log to be downloaded through the WEB service, the method further includes: Determine whether the log to be downloaded has been downloaded; If yes, shut down the WEB service; If not, returning to the step of receiving the log to be downloaded through the WEB service; The method further includes: when a failure occurs in which the WEB service is closed and the downloading of the log to be downloaded cannot be continued, recording the download progress of the sub-node, and continuing the downloading according to the download progress after the failure is eliminated.
3. A node log downloading device, characterized in that: Applied to the server, including: A first receiving module, used for receiving a download request; A determination module, configured to determine a node list of logs to be downloaded according to the download request, wherein the node list stores child nodes corresponding to the logs to be downloaded; An enabling module, used to enable the WEB service of the sub-node according to the node list; A download module, used for downloading the log to be downloaded through the WEB service; Also includes: An establishing module, used for establishing a download task according to the child nodes stored in the node list; A first judging module is used to judge whether the download task is successfully established; if so, enter the generating module; if not, return to the determining module; A generation module, used for generating a log summary directory, wherein the log summary directory is used for storing all the logs to be downloaded; Also includes: A compression module, used to compress the log summary directory; Also includes: A setting module, used to set a preset progress of the download task; wherein the preset progress is the capacity of the largest node log among all the child nodes; when the progress of the download task is from 0 to the preset progress, the node logs of the child nodes are collected and compressed; The second judgment module is used to judge whether the progress of the download task reaches the preset progress; if so, enter the download module; if not, end; Also includes: The third judgment module is used to judge whether the log to be downloaded has been downloaded; if so, enter the closing module; if not, return to the downloading module; A closing module, used to close the WEB service; The method further includes: when a failure occurs in which the WEB service is closed and the downloading of the log to be downloaded cannot be continued, recording the download progress of the sub-node, and continuing the downloading according to the download progress after the failure is eliminated.
4. A node log downloading device, characterized in that: Applied to the client, including: A sending module, used for sending a download request, and for determining a node list of logs to be downloaded according to the download request, so as to enable a WEB service of a sub-node according to the node list, wherein the sub-node corresponding to the logs to be downloaded is stored in the node list; A second receiving module, used for receiving the log to be downloaded through the WEB service; Wherein, after determining the node list of the log to be downloaded according to the download request and before starting the WEB service of the child node according to the node list, it also includes: Establishing a download task according to the child node stored in the node list; Determining whether the download task is successfully established; If yes, a log summary directory is generated, wherein the log summary directory is used to store all the logs to be downloaded; If not, return to the step of determining a node list of logs to be downloaded according to the download request; After the log summary directory is generated, it also includes: Compressing the log summary directory; After starting the WEB service of the child node according to the node list and before receiving the log to be downloaded through the WEB service, the method further includes: Setting a preset progress of the download task; wherein the preset progress is the capacity of the largest node log among all the child nodes; when the progress of the download task is from 0 to the preset progress, collecting the node logs of the child nodes and compressing the node logs; Determining whether the progress of the download task reaches the preset progress; If yes, then enter the step of receiving the log to be downloaded through the WEB service; If not, then end; After receiving the log to be downloaded through the WEB service, the method further includes: Determine whether the log to be downloaded has been downloaded; If yes, shut down the WEB service; If not, returning to the step of receiving the log to be downloaded through the WEB service; The method further includes: when a failure occurs in which the WEB service is closed and the downloading of the log to be downloaded cannot be continued, recording the download progress of the sub-node, and continuing the downloading according to the download progress after the failure is eliminated.
5. A node log downloading device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the node log downloading method as claimed in claim 1 or 2 when executing the computer program.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the node log downloading method as claimed in claim 1 or 2 are implemented.
