Multi-server parallel execution method and device, electronic equipment and storage medium

By using a pre-built execution platform and dedicated task channel in multi-server parallel execution, the client and server are decoupled, achieving both security and controllability, and solving the difficulty of balancing security and controllability in the existing technology. problems and improve the security and controllability of the execution process.

CN118535262APending Publication Date: 2024-08-23INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410524352.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-28
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In the process of parallel execution of multiple servers, it is difficult for the existing technology to take into account both security and controllability. The client control method is easily affected by abnormal factors, while the server control method has reduced process controllability.

Method used

By calling the pre-built execution platform, a dedicated task channel is created, and server execution instructions are issued to multiple execution servers to achieve parallel execution. The client and server are decoupled through the execution platform to ensure client controllability and avoid client Influence of abnormal factors.

Benefits of technology

During the parallel execution of multiple servers, both security and controllability are achieved, ensuring that the execution process is not affected by client abnormal factors, improving work efficiency and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535262A
    Figure CN118535262A
Patent Text Reader

Abstract

The invention provides a multi-server parallel execution method and device, electronic equipment and a storage medium, a pre-constructed execution platform is called, and the execution platform is used for receiving a server execution instruction issued by a client; based on the execution platform, obtaining the server execution instruction, and based on the server execution instruction, creating a special task channel of each execution server corresponding to the server execution instruction; and based on the special task channel, issuing the server execution instruction to each execution server corresponding to the special task channel, so that each execution server executes the server execution instruction in parallel to obtain each parallel execution result. The security and the controllability are both considered in the multi-server parallel execution process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of server execution technology, and in particular to a multi-server parallel execution method, device, electronic device and storage medium. Background Art

[0002] With the development of cloud computing and big data technology, computing power has evolved from simple vertical expansion to batch and clustered horizontal expansion. In the entire cycle of computing power implementation and maintenance, operating multiple batch servers has become the norm.

[0003] It is known from the related technology that in the process of operating multiple batch servers, it is necessary to establish session connections for all servers, and then start executing the established content in each session connection to achieve parallel execution between servers. Among them, the execution of session connections is divided into two methods: client control and server-side control. The client-side control method allows users to have control, but it will be affected by abnormal factors on the client and lacks security; the server-side control method is decoupled from the client and will not be affected by abnormal factors on the client, but the process controllability is reduced.

[0004] Therefore, finding a multi-server parallel execution method that can balance security and controllability has become a research hotspot. Summary of the invention

[0005] The present invention provides a multi-server parallel execution method, device, electronic device and storage medium, which achieves a balance between security and controllability in the multi-server parallel execution process.

[0006] The present invention provides a multi-server parallel execution method, the method comprising: calling a pre-built execution platform, wherein the execution platform is used to receive a server execution instruction issued by a client; based on the execution platform, the server execution instruction is obtained, and based on the server execution instruction, a dedicated task channel of each execution server corresponding to the server execution instruction is created; based on the dedicated task channel, the server execution instruction is issued to each execution server corresponding to the dedicated task channel, so that each execution server executes the server execution instruction in parallel to obtain each parallel execution result.

[0007] According to a multi-server parallel execution method provided by the present invention, after obtaining each parallel execution result, the method also includes: sending each parallel execution result to the execution platform; aggregating the parallel execution results based on the execution platform to obtain the aggregated parallel execution results of each execution server; and displaying the aggregated parallel execution results when the execution platform receives an execution result query instruction issued by the client.

[0008] According to a multi-server parallel execution method provided by the present invention, when the execution platform receives the execution result query instruction issued by the client, before displaying the summarized parallel execution results, the method also includes: creating an execution result query interface for the execution platform; and receiving the execution result query instruction issued by the client based on the execution result query interface.

[0009] According to a multi-server parallel execution method provided by the present invention, before obtaining the server execution instruction based on the execution platform, the method also includes: creating a simulation terminal for the execution platform to obtain a simulation terminal corresponding to the execution platform; configuring simulation terminal parameters for the simulation terminal to obtain a configured remote desktop environment of the simulation terminal; obtaining the server execution instruction based on the execution platform specifically includes: obtaining the server execution instruction based on the configured remote desktop of the simulation terminal corresponding to the execution platform; before issuing the server execution instruction to each of the execution servers corresponding to the dedicated task channel based on the dedicated task channel, the method also includes: starting a platform daemon process corresponding to the server execution instruction in the simulation terminal based on the server execution instruction; issuing the server execution instruction to each of the execution servers corresponding to the dedicated task channel based on the dedicated task channel specifically includes: issuing the server execution instruction to each of the execution servers corresponding to the dedicated task channel based on the dedicated task channel when the platform daemon process is running.

[0010] According to a multi-server parallel execution method provided by the present invention, the execution platform is constructed in the following manner: any one execution server is determined as a target execution server among the multiple execution servers; based on the target execution server, a graphical desktop process is created to obtain a graphical user interface of a simulation terminal corresponding to the target execution server; based on the graphical user interface of the simulation terminal, a desktop environment corresponding to the simulation terminal is initialized, and the simulation terminal with the desktop environment is used as the execution platform.

[0011] According to a multi-server parallel execution method provided by the present invention, the dedicated task channel is created in the following manner: using a simulated terminal and a secure shell protocol as a carrier, a framework interface of the execution platform is constructed; based on the framework interface and the server execution instructions, a dedicated task channel of each execution server corresponding to the server execution instruction is created.

[0012] According to a multi-server parallel execution method provided by the present invention, after the server execution instruction is sent to each of the execution servers corresponding to the dedicated task channel, the method also includes: traversing each of the execution servers to monitor whether there is an unexecuted server whose execution has not been started in each of the execution servers; when the existence of the unexecuted server is detected, creating a dedicated task channel corresponding to the unexecuted server for the unexecuted server; calling the dedicated task channel corresponding to the unexecuted server, and sending the server execution instruction to the unexecuted server, so that the unexecuted server executes the server execution instruction.

[0013] The present invention also provides a multi-server parallel execution device, which includes: a calling module, which is used to call a pre-built execution platform, wherein the execution platform is used to receive server execution instructions issued by a client; a processing module, which is used to obtain the server execution instructions based on the execution platform, and create a dedicated task channel for each execution server corresponding to the server execution instruction based on the server execution instruction; an execution module, which is used to issue the server execution instruction to each execution server corresponding to the dedicated task channel based on the dedicated task channel, so that each execution server executes the server execution instruction in parallel to obtain each parallel execution result.

[0014] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the multi-server parallel execution method as described in any one of the above is implemented.

[0015] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the multi-server parallel execution method as described in any one of the above is implemented.

[0016] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the multi-server parallel execution method as described above is implemented.

[0017] The multi-server parallel execution method, device, electronic device and storage medium provided by the present invention call a pre-built execution platform; based on the execution platform, obtain the server execution instruction, and create a dedicated task channel of each execution server corresponding to the server execution instruction based on the server execution instruction; based on the dedicated task channel, send the server execution instruction to each execution server corresponding to the dedicated task channel, so that each execution server executes the server execution instruction in parallel to obtain each parallel execution result. The client is decoupled from the multiple execution servers through the execution platform, so that under the premise of ensuring the controllability of the client, the execution process of the execution server can be unaffected by abnormal factors of the client, and the balance of security and controllability in the multi-server parallel execution process is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 This is one of the flow charts of the multi-server parallel execution method provided by the present invention;

[0020] Figure 2 This is the second flow chart of the multi-server parallel execution method provided by the present invention;

[0021] Figure 3 It is a flow chart of sending a server execution instruction to each execution server corresponding to a dedicated task channel based on a dedicated task channel provided by the present invention;

[0022] Figure 4 It is a schematic diagram of the process of building an execution platform provided by the present invention;

[0023] Figure 5 It is a schematic diagram of the topology for implementing the multi-server parallel execution method provided by the present invention;

[0024] Figure 6 It is a logic diagram for realizing the multi-server parallel execution method provided by the present invention;

[0025] Figure 7 It is a structural schematic diagram of a multi-server parallel execution device provided by the present invention;

[0026] Figure 8 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0028] The multi-server parallel execution method provided by the present invention realizes that the client always has centralized control by building an execution platform. In addition, a desktop terminal simulator and an SSH connection are used as a carrier interface to build a dedicated task channel to push and execute predetermined content; the dedicated task channel is used to schedule all execution servers to start execution, thereby realizing parallel execution among multiple execution servers.

[0029] Figure 1 This is one of the flow charts of the multi-server parallel execution method provided by the present invention.

[0030] The following will be combined Figure 1 The multi-server parallel execution method provided by the present invention is described.

[0031] In an exemplary embodiment of the present invention, Figure 1 It can be known that the multi-server parallel execution method may include steps 110 to 130, and each step will be introduced below.

[0032] In step 110, a pre-built execution platform is called.

[0033] In one embodiment, a pre-built execution platform may be called, wherein the execution platform may be used to receive a service execution instruction issued by a client. The client may be considered as an execution terminal of an operating user. The execution platform is a platform decoupled from the client and the execution server.

[0034] In step 120, based on the execution platform, a server execution instruction is obtained, and based on the server execution instruction, a dedicated task channel of each execution server corresponding to the server execution instruction is created.

[0035] In one embodiment, a server execution instruction issued by a client can be obtained based on an execution platform, and further, a dedicated task channel for each execution server corresponding to the server execution instruction can be created based on the server execution instruction, so that the server execution instruction can be issued to each execution server through the corresponding dedicated task channel, thereby improving work efficiency.

[0036] In step 130, based on the dedicated task channel, the server execution instruction is sent to each execution server corresponding to the dedicated task channel, so that each execution server executes the server execution instruction in parallel to obtain each parallel execution result.

[0037] In another embodiment, the server execution instruction can be sent to each execution server corresponding to the dedicated task channel by means of a dedicated task channel, so that each execution server executes the server execution instruction in parallel to obtain each parallel execution result. In this embodiment, the client is decoupled from multiple execution servers through the execution platform, so that the execution process of the execution server can be unaffected by abnormal factors of the client while ensuring the controllability of the client, thereby achieving a balance between security and controllability in the multi-server parallel execution process.

[0038] The multi-server parallel execution method provided by the present invention calls a pre-built execution platform; based on the execution platform, a server execution instruction is obtained, and based on the server execution instruction, a dedicated task channel of each execution server corresponding to the server execution instruction is created; based on the dedicated task channel, the server execution instruction is sent to each execution server corresponding to the dedicated task channel, so that each execution server executes the server execution instruction in parallel to obtain each parallel execution result. The client is decoupled from the multiple execution servers through the execution platform, so that under the premise of ensuring the controllability of the client, the execution process of the execution server can be unaffected by abnormal factors of the client, and the balance of security and controllability in the multi-server parallel execution process is achieved.

[0039] Figure 2 This is the second flow chart of the multi-server parallel execution method provided by the present invention.

[0040] The following will be combined Figure 2 The process of another multi-server parallel execution method provided by the present invention is described.

[0041] In an exemplary embodiment of the present invention, after obtaining the parallel execution results, Figure 2 It can be known that the multi-server parallel execution method may include steps 210 to 230, and each step will be introduced below.

[0042] In step 210, each parallel execution result is sent to the execution platform.

[0043] In step 220, the parallel execution results are aggregated based on the execution platform to obtain the aggregated parallel execution results of each execution server.

[0044] In step 230, when the execution platform receives the execution result query instruction sent by the client, the aggregated parallel execution results are displayed.

[0045] In one embodiment, the obtained parallel execution results of each execution server may be sent to the execution platform. Further, the parallel execution results may be aggregated based on the execution platform to obtain the aggregated parallel execution results of each execution server.

[0046] In another embodiment, when the execution platform receives the execution result query instruction issued by the client, the summarized parallel execution results can be displayed. In another example, the execution platform receives the execution result query instruction issued by the client by receiving the execution result query instruction issued by the client through an interface created by the execution platform. During the application process, the summarized parallel execution results can be directly displayed on the execution platform, and the summarized parallel execution results can also be sent to a preset location for display according to user needs.

[0047] In yet another exemplary embodiment of the present invention, Figure 2 The above embodiment is used as an example for explanation. When the execution platform receives the execution result query instruction sent by the client, before displaying the summarized parallel execution results (corresponding to step 230), the multi-server parallel execution method may further include the following steps:

[0048] Create an execution result query interface for the execution platform;

[0049] The execution result query instruction sent by the client is received based on the execution result query interface.

[0050] In one embodiment, an execution result query interface can be created for the execution platform; further, an execution result query instruction issued by the client can be received based on the execution result query interface. Through this embodiment, the function of the execution platform can be improved, so that the execution result query instruction can be implemented based on the execution platform to display the summarized parallel execution results.

[0051] In yet another embodiment, the client may be connected to a dedicated remote desktop marked by the execution platform through VNC or remote KVM, on which basis manual query and process control may be performed.

[0052] Figure 3 It is a flow chart of sending server execution instructions to each execution server corresponding to the dedicated task channel based on the dedicated task channel provided by the present invention.

[0053] The following will be combined Figure 3 The process of sending the server execution instruction to each execution server corresponding to the dedicated task channel based on the dedicated task channel is described.

[0054] In an exemplary embodiment of the present invention, Figure 3It can be seen that, based on the dedicated task channel, sending the server execution instruction to each execution server corresponding to the dedicated task channel may include steps 310 to 350, and each step will be introduced below.

[0055] In step 310, a simulation terminal is created for the execution platform to obtain a simulation terminal corresponding to the execution platform.

[0056] In step 320, simulated terminal parameters are configured for the simulated terminal to obtain a configured remote desktop environment of the simulated terminal.

[0057] In one embodiment, a simulated terminal can be created for the execution platform to obtain a simulated terminal corresponding to the execution platform. In the application process, a panel, a file manager, a window manager, etc. can be created as needed to fill the simulated terminal and complete the creation of a dedicated system remote desktop environment (referred to as remote desktop), that is, to configure simulated terminal parameters for the simulated terminal and obtain the configured remote desktop environment of the simulated terminal.

[0058] In step 330, a server execution instruction is obtained based on the configured remote desktop of the simulated terminal corresponding to the execution platform.

[0059] In step 340, based on the server execution instruction, a platform daemon process corresponding to the server execution instruction is started in the simulation terminal.

[0060] In step 350, when the platform daemon process is running, based on the dedicated task channel, the server execution instruction is sent to each execution server corresponding to the dedicated task channel.

[0061] In another embodiment, the server execution instruction can be obtained based on the configured remote desktop of the simulation terminal corresponding to the execution platform. Further, based on the server execution instruction, the platform daemon process corresponding to the server execution instruction is started in the simulation terminal. In this embodiment, by starting the platform daemon process corresponding to the server execution instruction in the simulation terminal, the security of the simulation terminal can be ensured, thereby laying the foundation for safely sending the server execution instruction to each execution server corresponding to the dedicated task channel.

[0062] In another embodiment, the server execution instruction can be sent to each execution server corresponding to the dedicated task channel based on the dedicated task channel when the platform daemon is running. Through this embodiment, it is ensured that the server execution instruction will not be tampered with or interfered by other factors, thereby improving the security of the parallel execution process of multiple execution servers.

[0063] Figure 4 It is a flow chart of constructing an execution platform provided by the present invention.

[0064] The following will be combined Figure 4 Describes the process of building an execution platform.

[0065] In an exemplary embodiment of the present invention, Figure 4 It can be seen that building the execution platform may include steps 410 to 430, and each step will be introduced below.

[0066] In step 410, any one execution server is determined from among a plurality of execution servers as a target execution server.

[0067] In step 420, a graphical desktop process is created based on the target execution server to obtain a graphical user interface of a simulated terminal corresponding to the target execution server.

[0068] In step 430, based on the graphical user interface of the simulated terminal, a desktop environment corresponding to the simulated terminal is initialized, and the simulated terminal with the desktop environment is used as an execution platform.

[0069] In one embodiment, any execution server can be determined from multiple execution servers as a target execution server, and a tag is specified to create an X Window graphic desktop, that is, based on the target execution server, a graphic desktop process is created to obtain a graphical user interface of a simulated terminal corresponding to the target execution server.

[0070] Furthermore, based on the graphical user interface of the simulated terminal, the desktop environment corresponding to the simulated terminal is initialized, and the simulated terminal with the desktop environment is used as the execution platform. During the application process, the basic simulated terminal can be filled with panels, file managers, window managers, etc. as needed to complete the creation of a dedicated system remote desktop environment (referred to as remote desktop), and the simulated terminal with the desktop environment is used as the execution platform.

[0071] In another exemplary embodiment of the present invention, a dedicated task channel may be created in the following manner:

[0072] Using the simulated terminal and secure shell protocol as carriers, a framework interface for the execution platform is constructed;

[0073] Based on the framework interface and the server execution instructions, a dedicated task channel for each execution server corresponding to the server execution instructions is created.

[0074] In one embodiment, a Linux desktop terminal emulator and a secure shell protocol SSH can be used as carriers to provide a framework interface function, that is, to construct a framework interface of an execution platform. Further, based on the framework interface and the server execution instruction, a dedicated task channel of each execution server corresponding to the server execution instruction is created. Through this embodiment, the construction of a dedicated task channel corresponding to each execution server can be realized, laying a foundation for the efficient transmission of server execution instructions.

[0075] In yet another exemplary embodiment of the present invention, Figure 1 The embodiment described above is used as an example for explanation. After the server execution instruction is sent to each execution server corresponding to the dedicated task channel (corresponding to step 130), the multi-server parallel execution method further includes the following steps:

[0076] Traverse each execution server and monitor whether there is an unexecuted server that has not started execution in each execution server;

[0077] In the case where the existence of an unexecuted server is detected, a dedicated task channel corresponding to the unexecuted server is created for the unexecuted server;

[0078] The dedicated task channel corresponding to the unexecuted server is called, and the server execution instruction is sent to the unexecuted server, so that the unexecuted server executes the server execution instruction.

[0079] In one embodiment, each execution server can be traversed to determine whether the execution of the established content is completely completed, that is, to monitor whether there is an unexecuted server that has not started execution among the execution servers. If it is detected that there is an unexecuted server, a dedicated task channel corresponding to the unexecuted server is created for the unexecuted server, and the dedicated task channel corresponding to the executed server is called to send the server execution instruction to the unexecuted server so that the unexecuted server executes the server execution instruction. Through this embodiment, it can be ensured that each execution server can complete the corresponding server execution instruction.

[0080] Figure 5 It is a schematic diagram of the topology for implementing the multi-server parallel execution method provided by the present invention; Figure 6 It is a logical schematic diagram for realizing the multi-server parallel execution method provided by the present invention.

[0081] In order to further introduce the multi-server parallel execution method provided by the present invention, Figure 5 and Figure 6 Provide explanation.

[0082] In one embodiment of the present invention, Figure 5It can be known that the multi-server parallel execution method provided by the present invention can decouple the client from multiple execution servers (including execution server 1 to execution server N) by constructing a platform device, that is, an execution platform, so as to ensure that under the premise of the controllability of the client, the execution process of the execution server can be unaffected by abnormal factors of the client, and achieve the balance between security and controllability in the multi-server parallel execution process. Among them, the execution platform can create a graphical interface, and create corresponding dedicated task channels (including dedicated task channels 1 to dedicated task channels N) through the graphical interface. In the application process, the server execution instruction can be sent to each execution server corresponding to the dedicated task channel, for example, the server execution instruction is sent to each execution server 1 corresponding to the dedicated task channel 1, and the server execution instruction is sent to each execution server N corresponding to the dedicated task channel N, so that each execution server executes the server execution instruction in parallel to obtain each parallel execution result.

[0083] In another embodiment of the present invention, Figure 6 It can be seen that the multi-server parallel execution method can be applied to a multi-service parallel execution device, wherein the multi-service parallel execution device can include a platform device (corresponding to an execution platform), a script device, and an execution device, and each device uses a script to organize and edit the process content to achieve automation.

[0084] During the application process, the platform device can be initialized and created, push instructions can be scheduled, status information can be collected and summarized, and a query control interface can be provided. In the process of initializing the platform device, it can be connected to any execution server, a tag can be specified to create an X Window graphical desktop, and panels, file managers, window managers, etc. can be created as needed to fill in the basic simulation terminal and complete the creation of a dedicated system remote desktop environment (referred to as remote desktop). Further, the platform daemon process can be started in the created basic simulation terminal. In the platform daemon process, the collection and summary function can be started, the script device can be called to generate a script, the execution device can be started, and an operation window can be provided for manual process control. In the script, it can be considered as the execution information obtained according to the server execution instruction.

[0085] In another embodiment, during the execution of the platform guard, the status information of each task channel can be continuously collected and summarized, and the output information and status can be provided as a display window as a manual query object for process status viewing, content backtracking, etc. Among them, a dedicated remote desktop marked by the platform device can be connected via VNC or remote KVM, on which basis manual query and process control can be performed.

[0086] In another embodiment, the script device can be used to edit and integrate server information, task channels, and predetermined content to output a scheduling script. In the script editing process, server information, task channels, and predetermined content can be integrated to output a scheduling script. Each target server corresponds to a key-value record (server information: task channel: predetermined content). The script has two functions: on the one hand, it provides data, task channel initialization parameters, and the final execution of predetermined content; on the other hand, it provides functions, task channel initialization function, and execution startup function.

[0087] The server information in the diagram may include IP address, host name and other information, which are used to initialize the session, mark the associated task channel, and set content. The set content refers to the operation content that the target server is scheduled to perform.

[0088] In another embodiment, the task channel and the initialized session can be initialized, so that a dedicated task channel of each execution server corresponding to the server execution instruction can be obtained, so that the server execution instruction can be sent to each execution server corresponding to the dedicated task channel, so that each execution server executes the server execution instruction in parallel to obtain parallel execution results.

[0089] In another embodiment, in the process of initializing the task channel, predefined functions are used to reference parameters to implement the functions, covering two parts: initializing the terminal and initializing the session. The terminal configuration is referenced to create an independent session terminal for the target server; in the independent terminal, the password-free processing is completed, the connection configuration is initialized, and the SSH reliable session connection is established; the target service is associated to push the established content.

[0090] In another embodiment, the execution device is used to schedule all servers, create and start independent task flows, and realize parallel execution. In the process of parsing the script, a record in the script can be taken to parse and separate parameters and predefined functions. Further, it is determined whether there is an execution server that has not started execution (corresponding to an unexecuted server). If there is an unexecuted server, a dedicated task channel corresponding to the unexecuted server can be created for the unexecuted server; the dedicated task channel corresponding to the unexecuted server is called, and the server execution instruction is sent to the unexecuted server, so that the unexecuted server executes the server execution instruction.

[0091] If all execution servers complete the execution, they can exit the dedicated task channel to recycle resources and the device function ends.

[0092] Through the aforementioned embodiments, the functions of the launch end and the control end are merged based on the execution platform, and the function is moved up and integrated, which will not be affected by abnormal factors on the client, and parallel execution between servers is achieved. The process is traceable and controllable, taking into account both security and controllability; the process script automation is achieved, which saves time and effort and has high scalability.

[0093] In addition, we use remote desktop technology as the base to create a platform, extract and merge the initiator and control terminals, use the desktop terminal simulator and SSH connection as carriers, create independent task channels for the target server, and bind the task channel to the server, thereby achieving parallel execution between servers. The execution platform serves as a unified window, receives and saves status information, protects the execution environment and execution process, is not affected by abnormalities on the client side, ensures execution security and integrity, and provides control, status query, online traceability and other functions.

[0094] According to the above description, the multi-server parallel execution method provided by the present invention calls a pre-built execution platform; based on the execution platform, a server execution instruction is obtained, and based on the server execution instruction, a dedicated task channel of each execution server corresponding to the server execution instruction is created; based on the dedicated task channel, the server execution instruction is sent to each execution server corresponding to the dedicated task channel, so that each execution server executes the server execution instruction in parallel to obtain each parallel execution result. The client is decoupled from multiple execution servers through the execution platform, so that under the premise of ensuring the controllability of the client, the execution process of the execution server can be unaffected by abnormal factors of the client, achieving a balance between security and controllability in the multi-server parallel execution process.

[0095] Based on the same concept, the present invention also provides a multi-server parallel execution device.

[0096] The multi-server parallel execution device provided by the present invention is described below. The multi-server parallel execution device described below and the multi-server parallel execution method described above can be referenced to each other.

[0097] Figure 7 It is a structural schematic diagram of the multi-server parallel execution device provided by the present invention.

[0098] In an exemplary embodiment of the present invention, Figure 7 It can be known that the multi-server parallel execution device may include a calling module 710, a processing module 720 and an execution module 730, and each module will be introduced below.

[0099] The calling module 710 may be configured to call a pre-built execution platform, wherein the execution platform is used to receive a server execution instruction sent by a client;

[0100] The processing module 720 may be configured to obtain the server execution instruction based on the execution platform, and create a dedicated task channel of each execution server corresponding to the server execution instruction based on the server execution instruction;

[0101] The execution module 730 may be configured to send the server execution instruction to each execution server corresponding to the dedicated task channel based on the dedicated task channel, so that each execution server executes the server execution instruction in parallel to obtain each parallel execution result.

[0102] In an exemplary embodiment of the present invention, the execution module 730 may also be configured to:

[0103] Sending each of the parallel execution results to the execution platform;

[0104] Aggregating the parallel execution results based on the execution platform to obtain aggregated parallel execution results of each execution server;

[0105] When the execution platform receives the execution result query instruction sent by the client, the summarized parallel execution results are displayed.

[0106] In an exemplary embodiment of the present invention, the execution module 730 may also be configured to:

[0107] Creating an execution result query interface for the execution platform;

[0108] An execution result query instruction sent by the client is received based on the execution result query interface.

[0109] In an exemplary embodiment of the present invention, the execution module 730 may also be configured to:

[0110] Creating a simulation terminal for the execution platform to obtain a simulation terminal corresponding to the execution platform;

[0111] Configuring simulation terminal parameters for the simulation terminal to obtain a configured remote desktop environment of the simulation terminal;

[0112] The processing module 720 may obtain the server execution instruction based on the execution platform in the following manner:

[0113] acquiring the server execution instruction based on the configured remote desktop of the simulated terminal corresponding to the execution platform;

[0114] The execution module 730 may also be configured to:

[0115] Based on the server execution instruction, starting a platform daemon process corresponding to the server execution instruction in the simulation terminal;

[0116] The execution module 730 may implement, based on the dedicated task channel, sending the server execution instruction to each of the execution servers corresponding to the dedicated task channel in the following manner:

[0117] When the platform daemon process is running, based on the dedicated task channel, the server execution instruction is sent to each of the execution servers corresponding to the dedicated task channel.

[0118] In an exemplary embodiment of the present invention, the calling module 710 can construct and obtain the execution platform in the following manner:

[0119] Determine any one execution server from the plurality of execution servers as a target execution server;

[0120] Based on the target execution server, a graphical desktop process is created to obtain a graphical user interface of a simulated terminal corresponding to the target execution server;

[0121] Based on the graphical user interface of the simulation terminal, a desktop environment corresponding to the simulation terminal is initialized, and the simulation terminal with the desktop environment is used as the execution platform.

[0122] In an exemplary embodiment of the present invention, the processing module 720 may construct the dedicated task channel in the following manner:

[0123] Using the simulated terminal and secure shell protocol as carriers, constructing the framework interface of the execution platform;

[0124] Based on the framework interface and the server execution instruction, a dedicated task channel of each execution server corresponding to the server execution instruction is created.

[0125] In an exemplary embodiment of the present invention, the execution module 730 may also be configured to:

[0126] Traversing the execution servers, and monitoring whether there is an unexecuted server among the execution servers that has not started execution;

[0127] In the case where the existence of the unexecuted server is detected, creating a dedicated task channel corresponding to the unexecuted server for the unexecuted server;

[0128] The dedicated task channel corresponding to the unexecuted server is called, and the server execution instruction is sent to the unexecuted server, so that the unexecuted server executes the server execution instruction.

[0129] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute a multi-server parallel execution method, the method comprising: calling a pre-built execution platform, wherein the execution platform is used to receive a server execution instruction issued by a client; based on the execution platform, obtaining the server execution instruction, and creating a dedicated task channel of each execution server corresponding to the server execution instruction based on the server execution instruction; based on the dedicated task channel, issuing the server execution instruction to each execution server corresponding to the dedicated task channel, so that each execution server executes the server execution instruction in parallel to obtain each parallel execution result.

[0130] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the 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, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0131] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the multi-server parallel execution method provided by the above-mentioned methods, and the method includes: calling a pre-built execution platform, wherein the execution platform is used to receive a server execution instruction issued by a client; based on the execution platform, obtaining the server execution instruction, and creating a dedicated task channel for each execution server corresponding to the server execution instruction based on the server execution instruction; based on the dedicated task channel, issuing the server execution instruction to each execution server corresponding to the dedicated task channel, so that each execution server executes the server execution instruction in parallel to obtain each parallel execution result.

[0132] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the multi-server parallel execution method provided by the above-mentioned methods, the method comprising: calling a pre-built execution platform, wherein the execution platform is used to receive a server execution instruction issued by a client; based on the execution platform, obtaining the server execution instruction, and creating a dedicated task channel for each of the execution servers corresponding to the server execution instruction based on the server execution instruction; based on the dedicated task channel, issuing the server execution instruction to each of the execution servers corresponding to the dedicated task channel, so that each of the execution servers executes the server execution instruction in parallel to obtain each parallel execution result.

[0133] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0134] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0135] It is further understood that, although the operations are described in a specific order in the accompanying drawings in the embodiments of the present invention, it should not be understood as requiring the operations to be performed in the specific order or serial order shown, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.

[0136] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these 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 invention.

Claims

1. A multi-server parallel execution method, characterized in that: The method comprises: Invoking a pre-built execution platform, wherein the execution platform is used to receive server execution instructions issued by the client; Based on the execution platform, the server execution instruction is obtained, and based on the server execution instruction, a dedicated task channel of each execution server corresponding to the server execution instruction is created; Based on the dedicated task channel, the server execution instruction is sent to each execution server corresponding to the dedicated task channel, so that each execution server executes the server execution instruction in parallel to obtain each parallel execution result.

2. The multi-server parallel execution method according to claim 1, characterized in that: After obtaining the parallel execution results, the method further includes: Sending each of the parallel execution results to the execution platform; Aggregating the parallel execution results based on the execution platform to obtain aggregated parallel execution results of each execution server; When the execution platform receives the execution result query instruction sent by the client, the aggregated parallel execution results are displayed.

3. The multi-server parallel execution method according to claim 2, characterized in that: When the execution platform receives the execution result query instruction issued by the client, before displaying the aggregated parallel execution results, the method further includes: Creating an execution result query interface for the execution platform; An execution result query instruction sent by the client is received based on the execution result query interface.

4. The multi-server parallel execution method according to claim 1, characterized in that: Before obtaining the server execution instruction based on the execution platform, the method further includes: Creating a simulation terminal for the execution platform to obtain a simulation terminal corresponding to the execution platform; Configuring simulation terminal parameters for the simulation terminal to obtain a configured remote desktop environment of the simulation terminal; The obtaining of the server execution instruction based on the execution platform specifically includes: acquiring the server execution instruction based on the configured remote desktop of the simulated terminal corresponding to the execution platform; Before issuing the server execution instruction to each of the execution servers corresponding to the dedicated task channel based on the dedicated task channel, the method further includes: Based on the server execution instruction, starting a platform daemon process corresponding to the server execution instruction in the simulation terminal; The sending, based on the dedicated task channel, the server execution instruction to each of the execution servers corresponding to the dedicated task channel specifically includes: When the platform daemon process is running, the server execution instruction is sent to each of the execution servers corresponding to the dedicated task channel based on the dedicated task channel.

5. The multi-server parallel execution method according to any one of claims 1 to 4, characterized in that: The execution platform is constructed in the following manner: Determining any one execution server from the plurality of execution servers as a target execution server; Based on the target execution server, a graphical desktop process is created to obtain a graphical user interface of a simulated terminal corresponding to the target execution server; Based on the graphical user interface of the simulated terminal, a desktop environment corresponding to the simulated terminal is initialized, and the simulated terminal with the desktop environment is used as the execution platform.

6. The multi-server parallel execution method according to claim 5, characterized in that: The dedicated task channel is created in the following way: Using the simulated terminal and secure shell protocol as carriers, a framework interface of the execution platform is constructed; Based on the framework interface and the server execution instruction, a dedicated task channel of each execution server corresponding to the server execution instruction is created.

7. The multi-server parallel execution method according to claim 1, characterized in that: After sending the server execution instruction to each of the execution servers corresponding to the dedicated task channel, the method further includes: Traversing the execution servers and monitoring whether there is an unexecuted server among the execution servers that has not started execution; In the case of detecting the existence of the unexecuted server, creating a dedicated task channel corresponding to the unexecuted server for the unexecuted server; The dedicated task channel corresponding to the unexecuted server is called, and the server execution instruction is sent to the unexecuted server, so that the unexecuted server executes the server execution instruction.

8. A multi-server parallel execution device, characterized in that: The device comprises: A calling module, configured to call a pre-built execution platform, wherein the execution platform is configured to receive a server execution instruction issued by a client; a processing module, configured to obtain the server execution instruction based on the execution platform, and create, based on the server execution instruction, a dedicated task channel for each of the execution servers corresponding to the server execution instruction; The execution module is used to send the server execution instruction to each execution server corresponding to the dedicated task channel based on the dedicated task channel, so that each execution server executes the server execution instruction in parallel to obtain each parallel execution result.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the multi-server parallel execution method according to any one of claims 1 to 7 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the multi-server parallel execution method according to any one of claims 1 to 7 is implemented.