Automatic operation and maintenance system, method and equipment, medium and program product
By introducing the orchestration execution layer and the command pipeline layer into the automated operation and maintenance system, asynchronous tasks and high-risk command interception are implemented, which solves the problems of low efficiency and poor security in automated operation and maintenance of large-scale public cloud nodes, and improves operation and maintenance efficiency and security. .
Patent Information
- Application Number
- CN202410994869.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-24
AI Technical Summary
Existing automated operation and maintenance technology has low efficiency and poor security in large-scale public cloud nodes. It cannot effectively intercept high-risk instructions, lacks flexible rollback mechanism and indicator monitoring, and cannot support the orchestration of parallel tasks, branch tasks, and cyclic tasks, resulting in Low operation and maintenance efficiency and insufficient security.
An automated operation and maintenance system is designed, including the orchestration execution layer and the command pipeline layer. It intercepts processes through asynchronous tasks and high-risk instructions, supports parallel, branched, and cyclic task orchestration, sets long link listening mode, and provides online logs, indicator monitoring, and calls. Chain tracking enables asynchronous execution and risk management of operation and maintenance workflows.
It improves the efficiency and safety of automated operation and maintenance, supports complex operation and maintenance scenarios of large-scale nodes, reduces the risk of human intervention, realizes the interception of high-risk instructions and fault self-healing capabilities, and improves operation and maintenance efficiency and safety and reliability.
Smart Images

Figure CN118740588A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of cloud computing technology, and in particular to an automated operation and maintenance system, method, device, medium, and program product. Background Art
[0002] The existing automated operation and maintenance technologies are all based on Ansible tools for automated operation and maintenance. The operations are irreversible and cannot be rolled back. High-risk commands cannot be intercepted. The operation and maintenance risk factor for large-scale nodes is high, the security and reliability are poor, and manual intervention is required. In addition, Ansible tools do not support rolling execution. When facing high-risk operation and maintenance operations, there is no flexible rollback mechanism, and the adaptability cannot be guaranteed. When dealing with complex operation and maintenance scenarios, the serial task flow in the Ansible tool cannot be fully covered, that is, it is necessary to pre-set multiple Ansible-Playbooks orchestration tasks in advance and run multiple tasks. When the node scale expands to the order of 100,000, repetitive work backlogs are serious and the operation and maintenance efficiency is extremely low. The cloud management platform integrated with Ansible tools does not support the orchestration of parallel tasks, branch tasks, convergence tasks, and cyclic tasks. It cannot achieve automation for complex public cloud operation and maintenance scenarios. The observability and measurability are low in efficiency. There is a lack of indicator monitoring and call chain tracking mechanisms, and it does not support the active reporting and statistics of public cloud node operation and maintenance data. Summary of the invention
[0003] Embodiments of the present invention provide an automated operation and maintenance system, method, device, medium and program product to solve the problems of low efficiency and poor security of automated operation and maintenance of large-scale nodes in existing public clouds.
[0004] In order to solve the above-mentioned technical problems, the present invention is achieved as follows:
[0005] In a first aspect, an embodiment of the present invention provides an automated operation and maintenance system, including:
[0006] Orchestrate the execution layer and command pipeline layer;
[0007] The orchestration execution layer is used to orchestrate the operation and maintenance operation process according to the atomic capabilities corresponding to the operation and maintenance operation instructions configured in the atomic capability layer, wherein each step in the operation and maintenance operation process is an asynchronous task and an interception process of high-risk instructions is set for each step in the operation and maintenance operation process, and the operation and maintenance operation process is sent down to the command pipeline layer; wherein each operation and maintenance scenario corresponds to an operation and maintenance operation process;
[0008] The command pipeline layer includes: a general agent node and a subagent node configured at a terminal; the general agent node is used to receive the operation and maintenance work process sent by the orchestration execution layer, and send it to at least one corresponding subagent node; the subagent node is used to execute the operation and maintenance work process, and feed back the execution result to the corresponding general agent node; wherein a long link monitoring mode is set for the general agent node and the subagent node, and the monitoring content is centrally stored.
[0009] Optionally, also include:
[0010] The atomic capability layer is used to solidify at least one preset operation and maintenance instruction into a corresponding atomic capability, and review the atomic capability and publish it in the orchestration execution layer.
[0011] Optionally, also include:
[0012] The operation and maintenance scenario layer is used to manage the operation and maintenance work processes corresponding to the operation and maintenance scenarios arranged in the orchestration execution layer, and provide an interface to the external system.
[0013] In a second aspect, an embodiment of the present invention provides an automated operation and maintenance method, applying the automated operation and maintenance system as described in any one of the first aspects, including:
[0014] In the orchestration execution layer, the operation and maintenance operation process is arranged according to the atomic capabilities corresponding to the operation and maintenance operation instructions configured in the atomic capability layer, wherein each step in the operation and maintenance operation process is an asynchronous task, and an interception process of high-risk instructions is set for each step; wherein each operation and maintenance scenario corresponds to an operation and maintenance operation process;
[0015] The operation and maintenance work process is sent down to the command pipeline layer; the command pipeline layer includes: a general agent node and a subagent node configured at the terminal; the general agent node is used to receive the operation and maintenance work process sent down by the orchestration execution layer, and send it down to at least one corresponding subagent node; the subagent node is used to execute the operation and maintenance work process, and feedback the execution result to the corresponding general agent node; wherein, a long link monitoring mode is set for the general agent node and the subagent node, and the monitoring content is centrally stored.
[0016] Optionally, before arranging the operation and maintenance process according to the operation and maintenance operation instructions configured in the atomic capability layer, the process further includes:
[0017] At least one preset operation and maintenance instruction is solidified into a corresponding atomic capability, and the atomic capability corresponding to the operation and maintenance instruction is reviewed and released.
[0018] Optionally, also include:
[0019] The operation and maintenance workflow corresponding to the operation and maintenance scenarios arranged in the orchestration execution layer is managed, and an interface is provided to the external system.
[0020] Optionally, after arranging the operation and maintenance process in the orchestration execution layer according to the atomic capability corresponding to the operation and maintenance operation instruction configured in the atomic capability layer, the process further includes:
[0021] Provide online logs, indicator monitoring and call chain tracking for each step in the operation and maintenance workflow.
[0022] Optionally, after arranging the operation and maintenance process in the orchestration execution layer according to the atomic capability corresponding to the operation and maintenance operation instruction configured in the atomic capability layer, the process further includes:
[0023] A risk level attribute is set for the operation and maintenance work process, and the operation and maintenance work process is processed according to the corresponding risk level attribute.
[0024] Optionally, after arranging the operation and maintenance process in the orchestration execution layer according to the atomic capability corresponding to the operation and maintenance operation instruction configured in the atomic capability layer, the process further includes:
[0025] For each step in the operation and maintenance workflow, a rolling execution strategy is set according to a fixed number of nodes, a percentage or a specific expression.
[0026] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps in the automated operation and maintenance method described in any one of the first aspects.
[0027] In a fourth aspect, an embodiment of the present invention provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps in the automated operation and maintenance method as described in any one of the first aspects are implemented.
[0028] In a fifth aspect, an embodiment of the present invention provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps in the automated operation and maintenance method as described in any one of the first aspects.
[0029] In the present invention, by constructing an automated operation and maintenance system architecture, the operation and maintenance work process is orchestrated in the orchestration execution layer according to the atomic capabilities corresponding to the operation and maintenance operation instructions configured in the atomic capability layer, and each step in the operation and maintenance work process is set as an asynchronous task and an interception process for high-risk instructions is set for each step in the operation and maintenance work process; a long link monitoring mode is set in the general agent node of the command pipeline layer and the subagent node configured in the terminal, and the monitoring content is centrally stored, and asynchronous task design and high-risk instruction interception are performed on the orchestration execution layer and the command pipeline layer, thereby improving the efficiency and safety of automated operation and maintenance of the system, and solving the problems of low efficiency and poor security of automated operation and maintenance of large-scale nodes in the existing public cloud. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0031] Figure 1 It is a structural diagram of an automated operation and maintenance system provided by an embodiment of the present invention;
[0032] Figure 2 It is a structural diagram of an orchestration execution layer of an automated operation and maintenance system provided by an embodiment of the present invention;
[0033] Figure 3 is a schematic diagram of a visualization canvas of the structure of an automated operation and maintenance system provided by an embodiment of the present invention;
[0034] Figure 4 This is a schematic diagram of the interaction between the orchestration execution layer and the command pipeline layer of an automated operation and maintenance system provided by an embodiment of the present invention;
[0035] Figure 5 is a flow chart of an automated operation and maintenance method provided by an embodiment of the present invention;
[0036] Figure 6 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0037] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments 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.
[0038] Please refer to Figure 1 , an embodiment of the present invention provides an automated operation and maintenance system, including:
[0039] Orchestration execution layer 2 and command pipeline layer 1;
[0040] The orchestration execution layer 2 is used to orchestrate the operation and maintenance operation process according to the atomic capabilities corresponding to the operation and maintenance operation instructions configured in the atomic capability layer 3, wherein each step in the operation and maintenance operation process is an asynchronous task and an interception process of high-risk instructions is set for each step in the operation and maintenance operation process, and the operation and maintenance operation process is sent down to the command pipeline layer 1; wherein each operation and maintenance scenario corresponds to an operation and maintenance operation process;
[0041] In the embodiment of the present invention, please refer to Figure 2 The orchestration execution layer 2 takes the process engine as its core capability, supplemented by functions such as visualization canvas, asynchronous tasks, process control, process analysis, context management and execution engine to drive large-scale node automated operation and maintenance; it supports the orchestration of parallel tasks, branch tasks, convergence tasks and cyclic tasks, covering all operation and maintenance scenarios of the public cloud. Each operation and maintenance scenario corresponds to an orchestration process. Each step in the process supports the interception of high-risk instructions. Each step internally calls the interface service provided by the command pipeline layer 1 (including HTTP, TCP private protocol, GRPC and other protocol family communications) to send instructions to the corresponding node for execution; and independent processes support combined nesting and calling, such as the combination of fault discovery process and fault handling process to complete a full-process operation and maintenance scenario of fault self-healing; among them, logs are provided for each process step in the orchestration execution layer 2 based on the OpenTelemetry protocol, so as to meet the observability of the call link, and the internal operation data reporting and statistics based on the private protocol are convenient for system service operation analysis, and improve the efficiency and security of system automated operation and maintenance.
[0042] Specifically, the visual canvas supports users to complete the process arrangement by dragging and dropping; supports the arrangement of parallel tasks, branch tasks, convergence tasks, and loop tasks; supports quick copying of a step; supports direct nested references between processes; supports canvas beautification; supports quick preview and other functions; please refer to Figure 3, a complete public cloud batch node problem automation process orchestrated by a visual canvas includes: setting the process start, delimiting the problem, triggering the computing, storage, network, and application layers to start parallel problem checking through the capabilities of the parallel gateway; dynamically transferring the problem inspection results in each layer through the capabilities of the branch gateway; after all the processing results of the four layers of computing, storage, network, and application are aggregated to the convergence gateway, the process continues to flow downward; connecting one of the branches of the branch gateway to the loop start node, using the branch gateway to implement the loop task, and if the problem is not recovered, looping the problem processing steps until all four layers of problems are recovered and the process ends.
[0043] The process control includes process parsing and context management; the process supports the configuration of global parameters to provide them for each step; the output parameters and input parameters of each step can also reference each other; the parameters in the process support encrypted storage; the parameters in the process can be used as variable references, and support references through the "${key}" method; the branch tasks in the process support binary operators such as "==, !=, >, >=, <, <=, in, notin" and keyword syntax such as "and, or, True / true, False / false", and are parsed in real time by the process engine's parser during task execution; the branch gateway task can be used with a single-select drop-down box variable to ensure that there is only one branch hit, and the parallel gateway task can be used with a multi-select drop-down box variable to achieve multiple branch hits.
[0044] The asynchronous task is to set the execution of each step in the process engine as an asynchronous task. Through the setting of asynchronous tasks, the resource occupation of tasks with long execution time can be effectively released; the asynchronous task channel can be built with Celery as the core component according to actual needs. When the task execution fails or the connection is interrupted during the execution process, Celery will automatically try to re-execute the task to meet the high availability mechanism and improve the efficiency and safety of system automation operation and maintenance.
[0045] When processing large-scale parallel tasks, the execution engine sends an execution signal, so that the command pipeline layer 1 receives the execution signal and starts execution, thereby improving the efficiency and safety of system automation operation and maintenance.
[0046] The command pipeline layer 1 includes: a general agent node and a subagent node configured at the terminal; the general agent node is used to receive the operation and maintenance work process sent by the orchestration execution layer 2, and send it to at least one corresponding subagent node; the subagent node is used to execute the operation and maintenance work process, and feedback the execution result to the corresponding general agent node; wherein, a long link monitoring mode is set for the general agent node and the subagent node, and the monitoring content is centrally stored.
[0047] In the embodiment of the present invention, based on the architecture of the general agent node and the sub-agent node configured in the terminal, that is, Proxy+Agent, firstly, Agent is installed on the nodes of all servers, network devices, security devices or application systems, and then 5-10 nodes are selected as Proxy and the task server (Task Server) is deployed. The Task Server has the ability to execute remote job tasks (such as Bash, Perl, Bat, PowerShell, Python, SQL, etc.). The Proxy and the Agent establish a long connection for communication, set the long link monitoring mode, and store the monitoring content centrally; the orchestration execution layer sends the instruction of the job execution task, and after the Proxy receives the instruction, it sends it to the corresponding Agent node, and finally completes the execution action of the task once at the actual node.
[0048] Specifically, the specific interaction flow chart between the orchestration execution layer 2 and the command pipeline layer 1 is as follows: Figure 4 As shown, the orchestration execution layer orchestrates the operation and maintenance workflow according to the atomic capabilities corresponding to the operation and maintenance instructions configured in the atomic capability layer; the orchestration execution layer integrates a security mechanism with high-risk instruction interception and risk level judgment functions: as well as a review mechanism before triggering the process execution; each step supports rolling execution to minimize the impact of failures; all steps provide online logs, indicator monitoring and call chain tracking based on the OpenTelemetry protocol; wherein, the scripts and instructions in each step of the operation and maintenance workflow are fully scanned to detect whether they contain high-risk instructions; as long as there are steps involving high-risk instructions, the expert review mechanism is triggered, and the entire process is packaged and transferred to the operation and maintenance experts. Only the processes that have passed the professional review of the operation and maintenance can interact with the command pipeline layer; in addition to intercepting high-risk instructions, the operation and maintenance workflow can also set risk level attributes separately, among which the query process defaults to low The default risk is medium for operation-related processes and high for change-related processes. Before the execution of processes with medium and high risk attributes, the review mechanism is triggered by default. The entire process is packaged and transferred to the operation and maintenance experts. Only the processes that have passed the professional review can interact with the command pipeline layer. For each step in the operation and maintenance workflow, a rolling execution strategy can be set according to a fixed number of nodes, a percentage, or a specific expression. In large-scale node operation and maintenance scenarios, setting a rolling execution strategy can avoid the impact on services due to excessive concurrency, and can also gradually observe the effect after execution, thereby increasing the safety and reliability of automated operation and maintenance. The orchestration execution layer is connected to logs based on the OpenTelemetry protocol throughout the entire process, from step orchestration, high-risk instruction scanning, risk level setting, expert review to rolling execution, which can facilitate and quickly track the call chain, facilitate system service operation analysis, and improve the efficiency and safety of system automated operation and maintenance.
[0049] The execution engine in the orchestration execution layer generates an execution task request and initiates the request to the command pipeline layer in the form of an asynchronous task. After receiving the request, the command pipeline layer places the execution signal in the message queue.
[0050] After the general proxy node Proxy (Task Server) in the command pipeline layer consumes the execution signal in the message queue, it synchronizes the request to other proxies and executes the task request synchronously.
[0051] The general proxy node Proxy (Task Server) sends the instruction to the corresponding sub-agent node Agent;
[0052] The sub-agent node Agent triggers the execution action, and after completing the execution of the instruction on the node, it returns the result of the instruction execution to the main agent node Proxy;
[0053] The general proxy node Proxy receives the result of the instruction execution and then stores the result persistently in the DB.
[0054] After the general proxy node Proxy completes the result storage, it will notify the command pipeline layer master service, and the command pipeline layer master service will push the execution results to the execution engine in the orchestration execution layer; among them, all steps in the command pipeline layer provide online logs, indicator monitoring and call chain tracking based on the OpenTelemetry protocol, which can conveniently and quickly track the call chain, facilitate system service operation analysis, and improve the efficiency and security of system automation operation and maintenance.
[0055] In an embodiment of the present invention, by constructing an automated operation and maintenance system architecture, the operation and maintenance work process is orchestrated in the orchestration execution layer according to the atomic capabilities corresponding to the operation and maintenance operation instructions configured in the atomic capability layer, and each step in the operation and maintenance work process is set as an asynchronous task and an interception process for high-risk instructions is set for each step in the operation and maintenance work process; in the general agent node of the command pipeline layer and the subagent node configured in the terminal, the subagent node is set with a long link monitoring mode, and the monitoring content is centrally stored, and asynchronous task design and high-risk instruction interception are performed on the orchestration execution layer and the command pipeline layer, thereby improving the efficiency and safety of automated operation and maintenance of the system, and solving the problems of low efficiency and poor security of automated operation and maintenance of large-scale nodes in the existing public cloud.
[0056] In the embodiment of the present invention, optionally, the method further includes:
[0057] The atomic capability layer 3 is used to solidify at least one preset operation and maintenance instruction into a corresponding atomic capability, and review the atomic capability and publish it in the orchestration execution layer 2.
[0058] In the embodiment of the present invention, please refer to Figure 1The atomic capability layer 3 integrates atomic capabilities of multiple dimensions such as the OS layer, middleware layer, application environment layer, database layer, and business application layer. All atoms are scripts, and all scripts are instructions; that is, the operation and maintenance personnel solidify the accumulated series of operation and maintenance operation instructions into corresponding atomic capabilities, namely OS management capabilities, middleware management capabilities, environment management capabilities, database management capabilities, and business management capabilities. All atomic capabilities will be published on the system after being reviewed by operation and maintenance experts, and the risks of executing atomic capabilities on nodes will be evaluated in advance to reduce operation and maintenance safety risks; after the atoms are published to the system, they are integrated into the process steps of the orchestration execution layer 2. The atomic capabilities are configured once and reused permanently, reducing the time cost of communication and coordination among multiple roles.
[0059] In the embodiment of the present invention, optionally, the method further includes:
[0060] The operation and maintenance scenario layer 4 is used to manage the operation and maintenance work processes corresponding to the operation and maintenance scenarios arranged in the orchestration execution layer 2, and provide an interface to the external system.
[0061] In an embodiment of the present invention, the operation and maintenance scenario layer 4 manages the operation and maintenance work processes corresponding to the operation and maintenance scenarios orchestrated in the orchestration execution layer 2, and encapsulates various daily operation and maintenance operations through the integration of the atomic capability layer and the orchestration execution layer, such as automatic inspection, acceptance deployment, automatic backup, deployment and installation, daily inspection, file backup, monitoring management, fault diagnosis, fault self-healing and operation analysis.
[0062] In addition, the operation and maintenance scenario layer 4 provides a native interface for external systems (such as monitoring platforms, alarm platforms, and acceptance platforms, etc.) to remotely call and execute corresponding operation and maintenance operations; and all operation and maintenance operation instructions are black boxes to users, limiting users' temporary intervention in operation instructions, and realizing automated operation and maintenance through scenario modes, which greatly reduces the incidence of human-induced failures and improves the efficiency and safety of automated operation and maintenance.
[0063] Please refer to Figure 5 The embodiment of the present invention provides an automated operation and maintenance method, which is applied as follows Figure 1 The automated operation and maintenance system described in the specification includes:
[0064] Step 51: In the orchestration execution layer, an operation and maintenance operation process is arranged according to the atomic capabilities corresponding to the operation and maintenance operation instructions configured in the atomic capability layer, wherein each step in the operation and maintenance operation process is an asynchronous task, and an interception process of high-risk instructions is set for each step; wherein each operation and maintenance scenario corresponds to an operation and maintenance operation process;
[0065] In the embodiment of the present invention, the orchestration execution layer 2 takes the process engine as the core capability, supplemented by functions such as visualization canvas, asynchronous tasks, process control, process analysis, context management and execution engine to drive large-scale node automated operation and maintenance; supports the orchestration of parallel tasks, branch tasks, convergence tasks, and cyclic tasks, covering all operation and maintenance scenarios of the public cloud, and each operation and maintenance scenario corresponds to an orchestration process. Each step in the process supports the interception of high-risk instructions, and each step internally calls the interface service provided by the command pipeline layer 1 (including HTTP, TCP private protocol, GRPC and other protocol family communications) to send instructions to the corresponding node for execution; and independent processes support combined nesting and calling, such as the combination of fault discovery process and fault handling process, to complete a full-process operation and maintenance scenario of fault self-healing; wherein, logs are also provided for each process step in the orchestration execution layer 2 based on the OpenTelemetry protocol, thereby meeting the observability of the call link, and the internal operation data reporting and statistics based on the private protocol are convenient for system service operation analysis, and the efficiency and safety of system automated operation and maintenance are improved.
[0066] Step 52: Send the operation and maintenance process to the command pipeline layer; the command pipeline layer includes: a general agent node and a subagent node configured at the terminal; the general agent node is used to receive the operation and maintenance process sent by the orchestration execution layer, and send it to at least one corresponding subagent node; the subagent node is used to execute the operation and maintenance process, and feedback the execution result to the corresponding general agent node; wherein, a long link monitoring mode is set for the general agent node and the subagent node, and the monitoring content is centrally stored.
[0067] In an embodiment of the present invention, the command pipeline layer is based on a general agent node and a subagent node configured on a terminal, that is, a Proxy+Agent architecture. First, Agent is installed on all nodes of servers, network devices, security devices or application systems. Then, 5-10 nodes are selected as Proxy and a task server (Task Server) is deployed. Task Server has remote job task execution capabilities (such as Bash, Perl, Bat, PowerShell, Python, SQL, etc.). Proxy and Agent establish a long connection for communication, set a long link monitoring mode, and centrally store the monitoring content; the orchestration execution layer sends instructions for job execution tasks. After receiving the instructions, the Proxy sends them to the corresponding Agent node, and finally completes the execution action of a task at the actual node.
[0068] Specifically, the specific interaction flow chart between the orchestration execution layer 2 and the command pipeline layer 1 is as follows: Figure 4As shown, the orchestration execution layer orchestrates the operation and maintenance workflow according to the atomic capabilities corresponding to the operation and maintenance instructions configured in the atomic capability layer; the orchestration execution layer integrates a security mechanism with high-risk instruction interception and risk level judgment functions: as well as a review mechanism before triggering the process execution; each step supports rolling execution to minimize the impact of failures; all steps provide online logs, indicator monitoring and call chain tracking based on the OpenTelemetry protocol; wherein, the scripts and instructions in each step of the operation and maintenance workflow are fully scanned to detect whether they contain high-risk instructions; as long as there are steps involving high-risk instructions, the expert review mechanism is triggered, and the entire process is packaged and transferred to the operation and maintenance experts. Only the processes that have passed the professional review of the operation and maintenance can interact with the command pipeline layer; in addition to intercepting high-risk instructions, the operation and maintenance workflow can also set risk level attributes separately, among which the query process defaults to low The default risk is medium for operation-related processes and high for change-related processes. Before the execution of processes with medium and high risk attributes, the review mechanism is triggered by default. The entire process is packaged and transferred to the operation and maintenance experts. Only the processes that have passed the professional review can interact with the command pipeline layer. For each step in the operation and maintenance workflow, a rolling execution strategy can be set according to a fixed number of nodes, a percentage, or a specific expression. In large-scale node operation and maintenance scenarios, setting a rolling execution strategy can avoid the impact on services due to excessive concurrency, and can also gradually observe the effect after execution, thereby increasing the safety and reliability of automated operation and maintenance. The orchestration execution layer is connected to logs based on the OpenTelemetry protocol throughout the entire process, from step orchestration, high-risk instruction scanning, risk level setting, expert review to rolling execution, which can facilitate and quickly track the call chain, facilitate system service operation analysis, and improve the efficiency and safety of system automated operation and maintenance.
[0069] The execution engine in the orchestration execution layer generates an execution task request and initiates the request to the command pipeline layer in the form of an asynchronous task. After receiving the request, the command pipeline layer places the execution signal in the message queue.
[0070] After the general proxy node Proxy (Task Server) in the command pipeline layer consumes the execution signal in the message queue, it synchronizes the request to other proxies and executes the task request synchronously.
[0071] The general proxy node Proxy (Task Server) sends the instruction to the corresponding sub-agent node Agent;
[0072] The sub-agent node Agent triggers the execution action, and after completing the execution of the instruction on the node, it returns the result of the instruction execution to the main agent node Proxy;
[0073] The general proxy node Proxy receives the result of the instruction execution and then stores the result persistently in the DB.
[0074] After the general proxy node Proxy completes the result storage, it will notify the command pipeline layer master service, and the command pipeline layer master service will push the execution results to the execution engine in the orchestration execution layer; among them, all steps in the command pipeline layer provide online logs, indicator monitoring and call chain tracking based on the OpenTelemetry protocol, which can conveniently and quickly track the call chain, facilitate system service operation analysis, and improve the efficiency and security of system automation operation and maintenance.
[0075] In an embodiment of the present invention, by constructing an automated operation and maintenance system architecture, the operation and maintenance work process is orchestrated in the orchestration execution layer according to the atomic capabilities corresponding to the operation and maintenance operation instructions configured in the atomic capability layer, and each step in the operation and maintenance work process is set as an asynchronous task and an interception process for high-risk instructions is set for each step in the operation and maintenance work process; in the general agent node of the command pipeline layer and the subagent node configured in the terminal, the subagent node is set with a long link monitoring mode, and the monitoring content is centrally stored, and asynchronous task design and high-risk instruction interception are performed on the orchestration execution layer and the command pipeline layer, thereby improving the efficiency and safety of automated operation and maintenance of the system, and solving the problems of low efficiency and poor security of automated operation and maintenance of large-scale nodes in the existing public cloud.
[0076] In the embodiment of the present invention, optionally, before arranging the operation and maintenance process according to the operation and maintenance operation instructions configured in the atomic capability layer, the method further includes:
[0077] At least one preset operation and maintenance instruction is solidified into a corresponding atomic capability, and the atomic capability corresponding to the operation and maintenance instruction is reviewed and released.
[0078] In the embodiment of the present invention, please refer to Figure 1 The atomic capability layer 3 integrates atomic capabilities of multiple dimensions such as the OS layer, middleware layer, application environment layer, database layer, and business application layer. All atoms are scripts, and all scripts are instructions; that is, the operation and maintenance personnel solidify the accumulated series of operation and maintenance operation instructions into corresponding atomic capabilities, namely OS management capabilities, middleware management capabilities, environment management capabilities, database management capabilities, and business management capabilities. All atomic capabilities will be published on the system after being reviewed by operation and maintenance experts, and the risks of executing atomic capabilities on nodes will be evaluated in advance to reduce operation and maintenance safety risks; after the atoms are published to the system, they are integrated into the process steps of the orchestration execution layer 2. The atomic capabilities are configured once and reused permanently, reducing the time cost of communication and coordination among multiple roles.
[0079] In the embodiment of the present invention, optionally, the method further includes:
[0080] The operation and maintenance workflow corresponding to the operation and maintenance scenarios arranged in the orchestration execution layer is managed, and an interface is provided to the external system.
[0081] In an embodiment of the present invention, the operation and maintenance scenario layer 4 manages the operation and maintenance work processes corresponding to the operation and maintenance scenarios orchestrated in the orchestration execution layer 2, and encapsulates various daily operation and maintenance operations through the integration of the atomic capability layer and the orchestration execution layer, such as automatic inspection, acceptance deployment, automatic backup, deployment and installation, daily inspection, file backup, monitoring management, fault diagnosis, fault self-healing and operation analysis.
[0082] In addition, the operation and maintenance scenario layer 4 provides a native interface for external systems (such as monitoring platforms, alarm platforms, and acceptance platforms, etc.) to remotely call and execute corresponding operation and maintenance operations; and all operation and maintenance operation instructions are black boxes to users, limiting users' temporary intervention in operation instructions, and realizing automated operation and maintenance through scenario modes, which greatly reduces the incidence of human-induced failures and improves the efficiency and safety of automated operation and maintenance.
[0083] In the embodiment of the present invention, optionally, after the orchestration execution layer arranges the operation and maintenance operation process according to the atomic capability corresponding to the operation and maintenance operation instruction configured in the atomic capability layer, the process further includes:
[0084] Provide online logs, indicator monitoring and call chain tracking for each step in the operation and maintenance workflow.
[0085] In the embodiment of the present invention, each step supports rolling execution to minimize the impact of failures; all steps provide online logs, indicator monitoring and call chain tracking based on the OpenTelemetry protocol; it is convenient for system service operation analysis, and is more conducive to tracking call chains and analyzing failure scenarios.
[0086] In the embodiment of the present invention, optionally, after the orchestration execution layer arranges the operation and maintenance operation process according to the atomic capability corresponding to the operation and maintenance operation instruction configured in the atomic capability layer, the process further includes:
[0087] A risk level attribute is set for the operation and maintenance work process, and the operation and maintenance work process is processed according to the corresponding risk level attribute.
[0088] In an embodiment of the present invention, the scripts and instructions in each step of the operation and maintenance work process will be fully scanned to detect whether they contain high-risk instructions; as long as there are steps involving high-risk instructions, the expert review mechanism will be triggered, and the entire process will be packaged and transferred to the operation and maintenance experts. Only the process that has passed the professional review of the operation and maintenance can interact with the command pipeline layer; in addition to intercepting high-risk instructions, the operation and maintenance work process can also set risk level attributes separately, among which the query process defaults to low risk, the operation process defaults to medium risk, and the change process defaults to high risk; the review mechanism will be triggered by default before the execution of the process with medium and high risk attributes, and the entire process will be packaged and transferred to the operation and maintenance experts. Only the process that has passed the professional review of the operation and maintenance can interact with the command pipeline layer, thereby improving the security capabilities of automated operation and maintenance.
[0089] In the embodiment of the present invention, optionally, after the orchestration execution layer arranges the operation and maintenance operation process according to the atomic capability corresponding to the operation and maintenance operation instruction configured in the atomic capability layer, the process further includes:
[0090] For each step in the operation and maintenance workflow, a rolling execution strategy is set according to a fixed number of nodes, a percentage or a specific expression.
[0091] In an embodiment of the present invention, each step in the operation and maintenance workflow can set a rolling execution strategy according to a fixed number of nodes, a percentage, and a specific expression. In a large-scale node operation and maintenance scenario, setting a rolling execution strategy can avoid the impact on the service due to excessive concurrency, and can also gradually observe the effect after execution, thereby increasing the safety and reliability of automated operation and maintenance. The orchestration execution layer is from step orchestration, high-risk instruction scanning, risk level setting, expert review to rolling execution. The entire process is connected to the log based on the OpenTelemetry protocol, which can conveniently and quickly track the call chain, facilitate system service operation analysis, and improve the efficiency and safety of system automated operation and maintenance.
[0092] The embodiment of the present invention provides an electronic device 60, see Figure 6 As shown, Figure 6 This is a principle block diagram of an electronic device 60 according to an embodiment of the present invention, including a processor 61, a memory 62, and a program or instruction stored in the memory 62 and executable on the processor 61. When the program or instruction is executed by the processor, the steps in any one of the automated operation and maintenance methods of the present invention are implemented.
[0093] An embodiment of the present invention provides a readable storage medium, on which programs or instructions are stored. When the programs or instructions are executed by a processor, the various processes of an embodiment of an automated operation and maintenance method such as any one of the above-mentioned items are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0094] The present application also provides a computer program product, including computer instructions, which, when executed by a processor, implement the above Figure 5 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.
[0095] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0096] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of this disclosure are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information and network security.
[0097] It should be noted that, in this article, the terms "include", "comprises" or any other variations 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 sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0098] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0099] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a service classification device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0100] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. An automated operation and maintenance system, characterized in that: include: Orchestrate the execution layer and command pipeline layer; The orchestration execution layer is used to orchestrate the operation and maintenance operation process according to the atomic capabilities corresponding to the operation and maintenance operation instructions configured in the atomic capability layer, wherein each step in the operation and maintenance operation process is an asynchronous task and an interception process of high-risk instructions is set for each step in the operation and maintenance operation process, and the operation and maintenance operation process is sent down to the command pipeline layer; wherein each operation and maintenance scenario corresponds to an operation and maintenance operation process; The command pipeline layer includes: a general agent node and a subagent node configured at a terminal; the general agent node is used to receive the operation and maintenance work process sent by the orchestration execution layer, and send it to at least one corresponding subagent node; the subagent node is used to execute the operation and maintenance work process, and feed back the execution result to the corresponding general agent node; wherein a long link monitoring mode is set for the general agent node and the subagent node, and the monitoring content is centrally stored.
2. The automated operation and maintenance system according to claim 1, characterized in that: Also includes: The atomic capability layer is used to solidify at least one preset operation and maintenance instruction into a corresponding atomic capability, and review the atomic capability and publish it in the orchestration execution layer.
3. The automated operation and maintenance system according to claim 1, characterized in that: Also includes: The operation and maintenance scenario layer is used to manage the operation and maintenance work processes corresponding to the operation and maintenance scenarios arranged in the orchestration execution layer, and provide an interface to the external system.
4. An automated operation and maintenance method, characterized in that: The automated operation and maintenance system according to any one of claims 1 to 3 includes: In the orchestration execution layer, the operation and maintenance operation process is arranged according to the atomic capabilities corresponding to the operation and maintenance operation instructions configured in the atomic capability layer, wherein each step in the operation and maintenance operation process is an asynchronous task, and an interception process of high-risk instructions is set for each step; wherein each operation and maintenance scenario corresponds to an operation and maintenance operation process; The operation and maintenance work process is sent down to the command pipeline layer; the command pipeline layer includes: a general agent node and a subagent node configured at the terminal; the general agent node is used to receive the operation and maintenance work process sent down by the orchestration execution layer, and send it down to at least one corresponding subagent node; the subagent node is used to execute the operation and maintenance work process, and feedback the execution result to the corresponding general agent node; wherein, a long link monitoring mode is set for the general agent node and the subagent node, and the monitoring content is centrally stored.
5. The automated operation and maintenance method according to claim 4, characterized in that: Before arranging the operation and maintenance process according to the operation and maintenance operation instructions configured in the atomic capability layer, the method further includes: At least one preset operation and maintenance instruction is solidified into a corresponding atomic capability, and the atomic capability corresponding to the operation and maintenance instruction is reviewed and released.
6. The automated operation and maintenance method according to claim 4, characterized in that: Also includes: The operation and maintenance workflow corresponding to the operation and maintenance scenarios arranged in the orchestration execution layer is managed, and an interface is provided to the external system.
7. The automated operation and maintenance method according to claim 4, characterized in that: After the operation and maintenance process is arranged in the orchestration execution layer according to the atomic capabilities corresponding to the operation and maintenance operation instructions configured in the atomic capability layer, the process further includes: Provide online logs, indicator monitoring and call chain tracking for each step in the operation and maintenance workflow.
8. The automated operation and maintenance method according to claim 4, characterized in that: After the operation and maintenance process is arranged in the orchestration execution layer according to the atomic capabilities corresponding to the operation and maintenance operation instructions configured in the atomic capability layer, the process further includes: A risk level attribute is set for the operation and maintenance work process, and the operation and maintenance work process is processed according to the corresponding risk level attribute.
9. The automated operation and maintenance method according to claim 4, characterized in that: After the operation and maintenance process is arranged in the orchestration execution layer according to the atomic capabilities corresponding to the operation and maintenance operation instructions configured in the atomic capability layer, the process further includes: For each step in the operation and maintenance workflow, a rolling execution strategy is set according to a fixed number of nodes, a percentage or a specific expression.
10. An electronic device, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps in the automated operation and maintenance method as described in any one of claims 4 to 9.
11. A readable storage medium, characterized in that: The readable storage medium stores programs or instructions, and when the programs or instructions are executed by the processor, the steps in the automated operation and maintenance method as described in any one of claims 4 to 9 are implemented.
12. A computer program product, characterized in that It comprises computer instructions, which, when executed by a processor, implement the steps in the automated operation and maintenance method as described in any one of claims 4 to 9.
Citation Information
Patent Citations
Operation and maintenance job scheduling engine of hierarchical control mode
CN108492006A
Heterogeneous system automatic operation and maintenance method based on abstract service atomic operation
CN110430073A
Remote operation and maintenance method and system, storage medium and electronic equipment
CN110851253A
Security operation and maintenance instruction blocking device and method based on industrial control system
CN113311809A
Distributed IT automatic operation and maintenance system
CN116723077A
Cited By
Operation and maintenance task workflow arrangement system in distributed graph database
CN120822815A
