Fault self-recovery method and system

By atomizing and arranging operation and maintenance actions into task templates, combined with the AI ​​platform and private data protocols, automated fault response is achieved, solving the problem of limited operation and maintenance efficiency improvement in existing technologies, reducing labor costs and improving fault management. Restore efficiency.

CN118674402APending Publication Date: 2024-09-20SHENZHEN LANYOU TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410795069.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Existing technologies still require manual intervention when facing specific operation and maintenance scenarios, which limits the improvement of operation and maintenance efficiency. Moreover, it is difficult to achieve automated fault response for highly repetitive and regular operation and maintenance work, which increases labor costs.

Method used

By atomizing operation and maintenance actions into components and orchestrating them into task templates for handling faults, the service platform and probe service are used to implement automated fault response based on real-time task queues, and the AI ​​platform and visual orchestration module are combined to automatically generate task templates, using private data protocols. Communicate to achieve self-healing of faults.

Benefits of technology

It realizes automated fault response, reduces human operation and maintenance costs, and improves the intelligence level of system operation and maintenance and fault recovery efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118674402A
    Figure CN118674402A
Patent Text Reader

Abstract

The invention discloses a fault self-healing method and system, and belongs to the technical field of intelligent operation and maintenance. According to the scheme, daily operation and maintenance work is combed, operation and maintenance actions capable of being automatically executed are atomized and solidified into standard components, operation and maintenance action components are arranged into different task templates according to common faults, and after a service platform reads fault warning information, real-time tasks are generated according to fault types and the task templates, so that the real-time tasks are obtained. Real-time task information is stored in a real-time task queue, probes deployed in all operation and maintenance target servers monitor the real-time task queue, when it is judged that the server has a to-be-executed task, task details are obtained through a service platform to execute a fault recovery task, and the task execution condition is fed back to the service platform. According to the scheme, fault self-healing is realized, the manual operation and maintenance cost is reduced, and the intelligent level of system operation and maintenance and the fault recovery efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent operation and maintenance technology, and in particular to a fault self-healing method and system. Background Art

[0002] Today's intelligent operation and maintenance technology is advancing rapidly, which has put forward higher requirements on how to efficiently and intelligently schedule task execution and accelerate business service recovery. Although the current automated operation and maintenance has covered many basic operations, simple operation and maintenance processing in certain specific situations still requires manual intervention, which not only consumes human resources, but also limits the further improvement of operation and maintenance efficiency. Therefore, it is urgent to comprehensively sort out the operation and maintenance work with high repetitiveness and strong regularity in order to realize automated fault response, fundamentally reduce the cost of human operation and maintenance, and improve the intelligence level of system operation and maintenance and the efficiency of fault recovery. Summary of the invention

[0003] The technical problem to be solved by the present invention is: in view of the above-mentioned defects of the prior art, a fault self-healing method and system are provided to realize automatic fault response.

[0004] To achieve the above object, the present invention provides a fault self-healing method, which comprises the following steps:

[0005] Step S1, atomize the operation and maintenance actions and solidify them into operation and maintenance action components;

[0006] Step S2, arranging the operation and maintenance action components into task templates for handling various faults for common faults, and entering personalized information of each action component, wherein the personalized information includes the IP address of the operation and maintenance target server;

[0007] Step S3, after the service platform reads the fault alarm information, it generates a real-time task according to the fault type and the task template, and saves the real-time task information to the real-time task queue;

[0008] Step S4, the probe service deployed on each operation and maintenance target server monitors the real-time task queue, and when the server where the probe service is located has a task to be executed, the task details information is obtained through the service platform;

[0009] Step S5, the probe service executes the fault recovery task according to the task detail information, and sends the task execution progress and results to the service platform, and the service platform displays the task execution process in real time.

[0010] Preferably, the operation and maintenance action component includes a visualization unit and an executable unit; the visualization unit is used for task scheduling, and the executable unit is used for operation and maintenance action execution.

[0011] Preferably, with the help of a visual job orchestration module, the operation and maintenance action components are orchestrated into task templates for handling various faults by manual dragging.

[0012] Preferably, in step S2, the visualized operation and maintenance action components are automatically arranged into task templates for handling various faults through the AI ​​platform.

[0013] Preferably, the real-time task queue is redis, and the key value of each data item in redis includes the IP address of the operation and maintenance target server corresponding to the real-time task.

[0014] Preferably, the probe service and the service platform communicate using a private data protocol based on TCP.

[0015] Preferably, the message of the private data protocol includes a 10-byte message header and a variable-length message body, the message header includes a 2-byte magic number, a 4-byte packet length, and a 4-byte check code, and the message body includes encrypted and compressed binary message content.

[0016] Preferably, after step S5, the step further includes:

[0017] The service platform checks whether the fault is recovered and records the task execution result and the inspection result.

[0018] The present invention also provides a fault self-healing system, the system comprising a service platform and a probe service, wherein:

[0019] The service platform includes a component module, a visual orchestration engine, and a real-time task generation module;

[0020] The component module is used to provide operation and maintenance action components;

[0021] The visual orchestration engine is used to orchestrate the operation and maintenance action components into an operation and maintenance task template;

[0022] The real-time task generation module generates a real-time task according to the received fault information and the operation and maintenance task template, and saves the real-time task information to the real-time task queue;

[0023] The probe service is deployed on each operation and maintenance target server and communicates with the service platform through a private data protocol based on TCP; after the probe service monitors the real-time task queue for new tasks to be executed, it obtains a task detail request through the service platform, executes fault recovery tasks according to the task details, and feeds back the task execution status to the service platform.

[0024] Preferably, the service platform further includes a capability exposure interface, and the capability exposure interface exposes the capability of the service platform to an external system.

[0025] The present invention has the following beneficial effects: the solution sorts out daily operation and maintenance work, atomizes the automatically executable operation and maintenance actions, solidifies them into standard components, and arranges the operation and maintenance action components into different task templates for common faults. After the service platform reads the fault alarm information, it generates real-time tasks according to the fault type and task template, saves the real-time task information to the real-time task queue, and the probes deployed on each operation and maintenance target server monitor the real-time task queue. When it is determined that the server has tasks to be executed, the task details are obtained through the service platform to execute the fault recovery task, and the task execution status is fed back to the service platform. The solution of the present invention realizes self-healing of faults, reduces the cost of manpower operation and maintenance, and improves the intelligence level of system operation and maintenance and the efficiency of fault recovery. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0027] Figure 1 A schematic diagram of the steps of a fault self-healing method provided by an embodiment of the present invention.

[0028] Figure 2 A schematic diagram of a fault self-healing method flow chart provided in an embodiment of the present invention.

[0029] Figure 3 A schematic diagram of the service platform and probe service processing flow and interaction protocol provided in an embodiment of the present invention.

[0030] Figure 4 A schematic diagram of the service platform and probe service message structure provided in an embodiment of the present invention.

[0031] Figure 5 A block diagram of a fault self-healing system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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.

[0033] The embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings of the specification. It should be understood that the embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0034] The present invention is suitable for automatically processing the automatically executable operation and maintenance work of the operation and maintenance object, so as to automatically solve the corresponding operation and maintenance faults and realize fault self-healing.

[0035] Today, intelligent operation and maintenance technologies are advancing rapidly, which has put forward higher requirements on how to efficiently and intelligently schedule task execution and accelerate business service recovery. In this environment, the automation level of operation and maintenance business has been significantly improved. With the continuous enhancement of instant fault response and self-recovery capabilities, there are a large number of potential intelligent processing opportunities hidden in complex operation and maintenance scenarios. In order to make full use of these opportunities, it is necessary to deeply explore the programmable and regular tasks in operation and maintenance activities, encapsulate them into standardized operation and maintenance components, and combine them with advanced intelligent orchestration technology to build a comprehensive system framework that can autonomously learn, adaptively schedule and execute fault self-healing tasks.

[0036] Therefore, there is an urgent need to comprehensively sort out the operation and maintenance work with high repetitiveness and regularity, and through systematic analysis, transform these work modes into standardized modules and integrate them into the intelligent operation and maintenance system to achieve intelligent orchestration of automated fault response and self-healing capabilities, fundamentally reduce the cost of manpower operation and maintenance, and improve the intelligence level of system operation and maintenance and the efficiency of fault recovery.

[0037] like Figure 1-2 As shown, an embodiment of the present invention provides a fault self-healing method, the method comprising the following steps:

[0038] Step S1, atomize the operation and maintenance action and solidify it into an operation and maintenance action component. The operation and maintenance action component includes a visualization unit and an executable unit; the visualization unit is used for task scheduling, and the executable unit is used for operation and maintenance action execution.

[0039] Step S1 specifically includes:

[0040] Step S11, establish componentization standards. In some embodiments of the present invention, componentization standards are defined according to the classification of operation and maintenance objects->operation and maintenance components->component actions. For example, common redis operations are hierarchically classified and defined according to "middleware->redis components->start / stop / restart redis operations". The componentization standard of operation and maintenance objects->operation and maintenance components->component actions is suitable for mainstream operation and maintenance modes, which increases the scope of application of the solution of the present invention.

[0041] Step S12, comprehensively combing the daily operation and maintenance actions of the operation and maintenance object, and mining the operation and maintenance work that can be automatically executed. In practical applications, the focus is on comprehensively combing the operation and maintenance work with high repetitiveness and strong regularity, and mining the operation and maintenance actions that can be automatically executed.

[0042] Step S13, solidify the automatically executable operation and maintenance work according to the component standard. Specifically includes:

[0043] The operation of the operation and maintenance object is solidified into an executable unit, imported into the service platform, and provided as a component to the service platform or the operation and maintenance target server for calling. In some embodiments of the present invention, the operation of the operation and maintenance object is written into code or script and compiled into an executable file. Directly solidifying the operation of the operation and maintenance object into an executable unit can greatly improve the efficiency of the execution of the operation and maintenance action.

[0044] Solidify the actions in the component into standard visualization units in an atomic manner and import them into the visualization orchestration module.

[0045] In some embodiments of the present invention, automation components are generated for operation and maintenance objects such as network devices, storage devices, security devices, terminal devices, databases, application servers, virtualization platforms, middleware, log servers, etc., greatly increasing the coverage of automated operation and maintenance.

[0046] Step S2, for common faults, the operation and maintenance action components are arranged into task templates for handling various faults, and personalized information of each action component is entered, wherein the personalized information includes the IP address of the operation and maintenance target server.

[0047] The task template is a predefined fault recovery task chain, and the personalized information is the target operation and maintenance object information corresponding to the operation and maintenance action or the parameter information required for the operation and maintenance action. Each operation and maintenance action corresponds to a task node in the task template. Some operation and maintenance actions can specify the IP address of the operation and maintenance target server when generating the task template. Different operation and maintenance actions usually require different personalized information. In the embodiment of the present invention, the personalized information also includes an email address, an SQL statement, and a timeout period.

[0048] In some embodiments of the present invention, with the help of a visual job arrangement module, visual operation and maintenance action components are arranged into task templates for handling various faults by manual dragging.

[0049] The present invention does not limit the implementation of the visual arrangement module. In some embodiments of the present invention, the visual operation arrangement module is developed based on Alibaba's open source G6 visualization engine. The embodiments of the present invention can also be developed based on other visual arrangement engines.

[0050] In some other embodiments of the present invention, the visual operation and maintenance action components are automatically arranged into task templates for handling various faults through the AI ​​platform. The interface of the AI ​​platform receives fault information and calls the visual arrangement module to automatically generate task templates according to the fault type.

[0051] Manual dragging of the visual job orchestration module or automatic generation of task templates by the AI ​​platform reduces the difficulty of task orchestration, thereby lowering the skill threshold for operation and maintenance operators and improving the level of operation and maintenance intelligence.

[0052] In some embodiments of the present invention, the task template and the corresponding personalized information are saved in a MySQL database. In other embodiments of the present invention, the task template and the corresponding personalized information are saved in other databases. In still other implementations, the task template and the corresponding personalized information are saved as a text file and stored in a specific directory of the service platform.

[0053] Step S3: After the service platform reads the fault alarm information, it generates a real-time task according to the fault type and the task template, and saves the real-time task information to the real-time task queue.

[0054] In some embodiments of the present invention, the service platform subscribes to alarm information from the alarm platform and generates real-time tasks according to the fault type. In other embodiments of the present invention, the service platform provides an open interface for the external alarm platform to call the interface of the service platform and generate real-time tasks according to the fault type.

[0055] In some embodiments of the present invention, the service platform obtains the task template and the corresponding personalized information from the MySQL database according to the fault type to generate a real-time task, and saves the real-time task information to the real-time task queue. When generating a real-time task, the IP address of the operation and maintenance target server can also be specified.

[0056] In the embodiment of the present invention, when generating a task template and generating a real-time task, the IP address of the operation and maintenance target server can be specified, and the operation and maintenance job and task can be directly bound to the operation and maintenance target server.

[0057] Step S4, the probe service deployed on each operation and maintenance target server monitors the real-time task queue, and when the server where the probe service is located has a task to be executed, the task details information is obtained through the service platform.

[0058] In the embodiment of the present invention, the probe service runs in the operation and maintenance target server as a background service, supporting various platforms such as Windows, Linux, Mac, etc., thereby realizing cross-platform automatic operation and maintenance.

[0059] like Figure 3As shown, in some embodiments of the present invention, the real-time task queue is redis, and the key value of each data item in the redis includes the IP address of the operation and maintenance target server corresponding to the real-time task. After the service platform generates a real-time task, it combines fixed characters and the IP address of the operation and maintenance target server into a key in a form similar to "xxx-task:ip", and uses the content of the real-time task as the value to write the real-time task information into redis. The probe service monitors the key value of redis in real time. After discovering that a new key value containing its own IP address appears in redis, it can be determined that there is a new task to be executed, and a request to query task details is sent to the service platform. The service platform obtains the task details from redis and returns them to the probe service.

[0060] like Figure 4 As shown, in some embodiments of the present invention, a TCP-based private data protocol is used for communication between the probe service and the service platform. The message of the private data protocol includes a 10-byte message header and a variable-length message body, the message header includes a 2-byte magic number, a 4-byte packet length, and a 4-byte checksum, and the message body includes encrypted and compressed binary message content. The private data service establishes a private communication channel between the probe service and the service platform, and reduces the transmission of some unnecessary data packets by compressing the message content, focusing on business data transmission, and improving communication efficiency and security. Among them, the magic number is a fixed character agreed upon by the communicating parties, which is used to confirm the validity of the data packet at the first time. The present invention does not particularly limit the encryption and compression methods of the message. It should be understood that the message structure of the private data protocol is not limited to Figure 4 The structure shown.

[0061] The probe service monitors the key value of redis, and then obtains task details from the service platform through a private communication protocol between the service platform and the service platform, thereby improving the real-time performance of task processing.

[0062] It should be noted that the real-time task queue may also be implemented in other ways besides redis, and the present invention does not limit this.

[0063] Step S5, the probe service executes the fault recovery task according to the task detail information, and sends the task execution progress and results to the service platform, and the service platform displays the task execution process in real time.

[0064] In some embodiments of the present invention, the probe service downloads the executable unit of the operation and maintenance action from the service platform according to the task details information, and executes the executable unit. Specifically, the built-in execution engine of the probe service is responsible for executing the set steps. For example: the current task is to restart redis. This process may involve downloading the component executable unit from the server (the executable unit may be a compressed package of files such as sh, exe, jar, binary files, etc.), decompressing the executable unit, and executing the component command, such as: sh lyagent_redis restart or service redis restart.

[0065] During the process of executing the task, the probe service feeds back the task execution progress to the service platform in real time, and the service platform displays the task execution process in real time through a visual interface.

[0066] In some embodiments of the present invention, the step S5 further includes:

[0067] The service platform checks whether the fault is recovered and records the task execution result and the inspection result.

[0068] In some embodiments of the present invention, the service platform confirms the fault recovery status by generating a real-time task to check whether the fault is recovered, and records the task execution result and the check result in a database or a log file.

[0069] like Figure 5 As shown, an embodiment of the present invention further provides a fault self-healing system, the system comprising a service platform and a probe service, wherein:

[0070] The service platform includes a component module, a visual orchestration engine, and a real-time task generation module;

[0071] The component module is used to provide operation and maintenance action components; by combing the actions of daily operation and maintenance objects, the operation and maintenance actions that can be automatically executed are discovered and solidified into operation and maintenance action components. Each of the operation and maintenance action components includes a visualization unit and an executable unit; the visualization unit is used for task scheduling, and the executable unit is used for operation and maintenance action execution.

[0072] The visual orchestration engine is used to orchestrate the operation and maintenance action components into an operation and maintenance task template. In some embodiments of the present invention, the operation and maintenance task template is manually generated through the visual orchestration engine. In other embodiments of the present invention, the visual orchestration engine is called by the AI ​​platform to automatically generate the task template.

[0073] The real-time task generation module generates a real-time task according to the received fault information and the operation and maintenance task template, and saves the real-time task information to the real-time task queue.

[0074] The probe service is deployed on each operation and maintenance target server and communicates with the service platform through a private data protocol based on TCP; after the probe service monitors the real-time task queue for new tasks to be executed, it obtains a task detail request through the service platform, executes fault recovery tasks according to the task details, and feeds back the task execution status to the service platform.

[0075] In some embodiments of the present invention, the service platform further includes a capability exposure interface, and the capability exposure interface exposes the capability of the service platform to an external system.

[0076] The present invention has the following beneficial effects: the scheme combs daily operation and maintenance work, atomizes the automatically executable operation and maintenance actions, solidifies them into standard components, arranges the operation and maintenance action components into different task templates for common faults, generates real-time tasks according to the fault type and task template after the service platform reads the fault alarm information, saves the real-time task information to the real-time task queue, and the probes deployed on each operation and maintenance target server monitor the real-time task queue. When it is determined that the server has tasks to be executed, the task details are obtained through the service platform to execute the fault recovery task, and the task execution status is fed back to the service platform. The scheme of the present invention realizes the self-healing of faults on various platforms such as Windows, Linux, Mac, etc., and the fault handling is safe and efficient, reduces the cost of human operation and maintenance, and improves the intelligent level of system operation and maintenance and the efficiency of fault recovery.

[0077] The above are only specific implementations of the present invention, which cannot be used to limit the scope of the present invention. Equivalent changes made by ordinary technicians in this technical field based on this creation, as well as changes known to technicians in this field, should still fall within the scope of the present invention.

Claims

1. A fault self-healing method, characterized in that: The method comprises the following steps: Step S1, atomize the operation and maintenance actions and solidify them into operation and maintenance action components; Step S2, arranging the operation and maintenance action components into task templates for handling various faults for common faults, and entering personalized information of each action component, wherein the personalized information includes the IP address of the operation and maintenance target server; Step S3, after the service platform reads the fault alarm information, it generates a real-time task according to the fault type and the task template, and saves the real-time task information to the real-time task queue; Step S4, the probe service deployed on each operation and maintenance target server monitors the real-time task queue, and when the server where the probe service is located has a task to be executed, the task details information is obtained through the service platform; Step S5, the probe service executes the fault recovery task according to the task detail information, and sends the task execution progress and results to the service platform, and the service platform displays the task execution process in real time.

2. The fault self-healing method according to claim 1, characterized in that: The operation and maintenance action component includes a visualization unit and an executable unit; the visualization unit is used for task scheduling, and the executable unit is used for operation and maintenance action execution.

3. The fault self-healing method according to claim 1, characterized in that: In the step S2, with the help of a visual job arrangement module, the operation and maintenance action components are arranged into task templates for handling various faults by manual dragging.

4. The fault self-healing method according to claim 1, characterized in that: In step S2, the visualized operation and maintenance action components are automatically arranged into task templates for handling various faults through the AI ​​platform.

5. The fault self-healing method according to claim 1, characterized in that: The real-time task queue is redis, and the key value of each data item in redis includes the IP address of the operation and maintenance target server corresponding to the real-time task.

6. The fault self-healing method according to claim 1, characterized in that: The probe service and the service platform communicate with each other using a private data protocol based on TCP.

7. The fault self-healing method according to claim 6, characterized in that: The message of the private data protocol includes a 10-byte message header and a variable-length message body, wherein the message header includes a 2-byte magic number, a 4-byte packet length, and a 4-byte check code, and the message body includes encrypted and compressed binary message content.

8. The fault self-healing method according to claim 1, characterized in that: After step S5, the following steps are also included: The service platform checks whether the fault is recovered and records the task execution result and the inspection result.

9. A fault self-healing system, characterized in that: The system includes a service platform and a probe service, wherein: The service platform includes a component module, a visual orchestration engine, and a real-time task generation module; The component module is used to provide operation and maintenance action components; The visual orchestration engine is used to orchestrate the operation and maintenance action components into an operation and maintenance task template; The real-time task generation module generates a real-time task according to the received fault information and the operation and maintenance task template, and saves the real-time task information to the real-time task queue; The probe service is deployed on each operation and maintenance target server and communicates with the service platform through a private data protocol based on TCP; after the probe service monitors the real-time task queue for new tasks to be executed, it obtains a task detail request through the service platform, executes fault recovery tasks according to the task details, and feeds back the task execution status to the service platform. 10 . The fault self-healing system according to claim 9 , wherein the service platform further comprises a capability exposure interface, and the capability exposure interface exposes the capability of the service platform to an external system.