Microservice failure automated self-healing closed loop system and method

By building a closed-loop system within a microservice system, and combining distributed data collection, causal reasoning, and knowledge graphs, a closed loop from root cause localization to self-healing is achieved. This solves the problems of microservice fault recovery relying on manual intervention and the lack of security in self-healing solutions, thereby improving fault recovery efficiency and system self-evolution capabilities.

CN123185048APending Publication Date: 2026-11-27SHENGSHI BOMING CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611425563.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-15
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In a microservice architecture, fault recovery relies on manual intervention. Existing self-healing solutions lack security guarantees, cannot continuously accumulate operational knowledge, and the system lacks self-evolution capabilities, resulting in long fault recovery cycles, the risk of secondary faults, and the occurrence of repeated faults.

Method used

It adopts a closed-loop system that includes distributed observable data acquisition, causal reasoning engine, operation and maintenance knowledge graph construction and dynamic updating, root cause localization and reasoning, automated self-healing decision-making and execution, effect verification, knowledge accumulation and model iteration. This system achieves a closed loop from root cause localization to self-healing recovery. It ensures security through gray-scale execution and atomic rollback mechanisms, and uses knowledge graphs and causal graphs for strategy optimization and system self-evolution.

Benefits of technology

It achieves a closed loop from root cause localization to self-healing recovery, shortens fault recovery time by 75%, reduces invalid alarm interference by 85%, improves the accuracy of strategy matching and the system's self-evolution capability, and ensures the safety and reliability of self-healing operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185048A_ABST
    Figure CN123185048A_ABST
Patent Text Reader

Abstract

The application discloses a kind of microservice fault automation self-healing closed loop method and system, it is related to microservice intelligent operation and maintenance technical field.The method includes: the calling chain data of microservice system, performance index data and log data are collected;Causal directed graph and multilevel operation and maintenance knowledge graph containing strategy layer are built;In response to system exception, execute causal reverse tracing and locate root cause;Matching self-healing strategy, using progressive gray execution strategy executes, record state snapshot before execution, each gray stage is verified in real time, when verification fails, trigger atomic rollback;Quantitative evaluation is implemented to self-healing effect;According to the evaluation result, update strategy priority and calibrate causal directed graph edge weight.The application realizes fault self-healing closed loop, guarantees self-healing safety by gray execution and atomic rollback, realizes system self-evolution by knowledge automatic deposit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer software technology, specifically to the field of intelligent operation and maintenance technology for microservice systems, and particularly to a closed-loop system and method for automated self-healing of microservice faults. Background Technology

[0002] In a microservice architecture, the execution of a single business request requires the coordinated processing of multiple service nodes. While providing high availability and elastic scalability, this architecture increases the complexity of system operation and maintenance. When a system failure occurs, the anomaly in the underlying service propagates along the call chain, triggering multiple upper-level alarms, creating an alarm storm that makes it difficult for operations personnel to accurately identify the root cause of the failure from a large number of alarm messages.

[0003] Currently, the fault diagnosis and recovery mechanisms of microservice systems mainly face the following technical challenges: (i) Fault recovery relies on manual intervention. Currently, after detecting system anomalies, the operation and maintenance system still requires personnel to perform fault recovery operations. Chinese patent application CN120179509A proposes a microservice fault location method based on causal inference and knowledge graphs. However, its technical process stops at outputting a candidate set of root causes, without addressing the automated recovery process after root cause location. This functional breakpoint between root cause location and fault recovery leads to a long fault recovery cycle.

[0004] (ii) Existing self-healing solutions employ a full-scale execution mode, lacking a security guarantee mechanism. Some existing solutions propose automated recovery methods based on rule or policy libraries. Their policy execution uses a full-scale push mode, meaning that after confirming the fault type, recovery operations are performed simultaneously on all faulty instances. This mode has the following problems: if the self-healing strategy has logical flaws or does not match the current system state, it may lead to an expansion of the fault scope or trigger secondary faults. Furthermore, existing solutions do not save the system state before executing the self-healing operation, making it difficult for the system to quickly recover to its pre-execution state after self-healing failure.

[0005] (iii) Operational knowledge cannot be continuously accumulated. Experiences and solutions generated during fault handling are scattered across documents, work order systems, or the experience of operations and maintenance personnel, failing to form structured, reusable knowledge assets. Some solutions construct knowledge graphs to assist in fault localization, but these graphs are statically constructed or can only achieve incremental updates at the service topology level, lacking mechanisms for recording, evaluating, and providing feedback on the effectiveness of self-healing strategies. The system cannot accumulate experience from fault handling and cannot distinguish the differences in effectiveness between different strategies.

[0006] (iv) The system lacks self-evolution capabilities. Existing technical solutions are unidirectional processes, including data collection, analysis and diagnosis, result output or recovery execution, with the process ending at the completion of the recovery action. The system lacks a reverse feedback path from execution effect to strategy optimization and then to model improvement, making it impossible to judge the effectiveness and potential side effects of self-healing strategies, nor can it transform successful or unsuccessful experiences into the system's own knowledge accumulation.

[0007] To address the above problems, this invention provides a closed-loop system and method for automated self-healing of microservice faults. Summary of the Invention

[0008] This invention aims to solve the following technical problems existing in current microservice fault diagnosis and recovery technologies: (i) There is a functional breakpoint between root cause localization and self-healing recovery, and manual intervention is required for fault recovery; (ii) Existing self-healing solutions adopt a full execution mode, which lacks gray-scale execution and rollback mechanisms, and there is a risk of secondary failures; (iii) The system cannot accumulate knowledge from fault handling, and similar faults may occur repeatedly; (iv) The system lacks a reverse feedback path from execution effect to strategy optimization and does not have the ability to self-evolve.

[0009] To achieve the above-mentioned objectives, this invention provides a microservice fault automated self-healing closed-loop system, comprising the following seven functional modules: (a) Distributed Observable Data Acquisition Module This module is used to collect call chain data, time-series performance metrics, and application logs from microservice systems to build an observable data foundation.

[0010] Specifically, a distributed tracing tool is used to acquire call chain data from the microservice system, recording call relationships, response times, status codes, and exception information between service nodes. A monitoring system collects multi-dimensional time-series metrics for each service, including CPU utilization, memory utilization, network I / O throughput, disk I / O throughput, request latency percentiles, error rate, and throughput. A log collection component gathers application logs from each service node, extracting exception stack traces and error codes. The data preprocessing unit converts these three types of data into standardized call event representations and constructs a call chain topology graph.

[0011] (ii) Causal Reasoning Engine This module is used to mine causal relationships between services and metrics from monitoring data based on time-series causal discovery algorithms, and to construct a causal directed graph.

[0012] Specifically, partial correlation analysis is used to measure the correlation between various performance indicators of microservices, eliminating spurious correlations introduced by third-party variables and generating an initial indicator dependency graph. A structural causal model is used to infer the direction of causal relationships between indicators, and the Granger causality test is used to determine the causal direction of time-series indicator data. The inferred causal relationships are represented in the form of a directed graph, where nodes represent microservices or performance indicators, and directed edges represent causal relationships, with the direction pointing from cause to effect. Principal component analysis is used to map the causal relationships at the indicator level to the service level, constructing a service-level dependency graph. The causal graph evolves dynamically using an incremental update strategy.

[0013] (III) Operation and Maintenance Knowledge Graph Construction and Dynamic Update Module This module is used to structure and organize service dependencies, causal links, historical failure cases, and self-healing strategies to build a multi-level operation and maintenance knowledge graph.

[0014] The knowledge graph comprises the following four-layer architecture: Time-series metrics layer: Stores real-time performance metrics time-series data for each service node; Indicator Causality Layer: Stores the causal relationships between indicators output by the causal inference engine; Service interaction layer: Stores the calling dependencies between microservices; Strategy Layer: Stores a set of self-healing strategies corresponding to each fault cause node. Each strategy entry includes strategy type, execution parameters, preconditions, risk level, historical execution count, historical success count, most recent execution time, and side effect flags.

[0015] (iv) Root Cause Locating and Reasoning Module This module is used to input abnormal events into the causal reasoning engine and knowledge graph when system anomalies are detected, and to perform reverse tracing on the causal directed graph to locate the root cause node.

[0016] Specifically, system anomaly alarms are acquired through a monitoring and alarm system; the acquired alarm data is associated with a knowledge graph to obtain the graph nodes and edges associated with the alarms, and an initial fault subgraph is constructed; starting from the abnormal service node, the fault subgraph is traversed in the opposite direction of the causal edges, and a random walk algorithm with restart is used to walk on the fault subgraph to calculate the score of each candidate root cause node; the candidate root cause nodes are sorted by combining the causal path length, causal strength and historical fault frequency, and the candidate node with the highest score is determined as the fault root cause and output, and the fault propagation path is also output.

[0017] (v) Automated self-healing decision-making and execution module This module is used to match recovery solutions from the strategy layer of the knowledge graph based on the identified root cause type, and ensures the safety of the self-healing operation through gray-scale execution and atomic rollback mechanisms.

[0018] (5.1) Matching self-healing strategies After the root cause localization module outputs the root cause results, the module performs policy matching in the policy layer of the knowledge graph, taking into account the following factors: the degree of matching between the root cause type and the policy's applicable conditions; whether the current system state meets the policy's preconditions for execution; the policy's historical success rate, i.e., the ratio of successful executions to total executions; the policy's risk level; and the policy's side effect markers.

[0019] The self-healing solution includes the following operation types: service instance restart, traffic switching, rate limiting and degradation, elastic scaling, dynamic configuration adjustment, and database connection pool reset.

[0020] (5.2) System status snapshot record before execution Before the self-healing solution is executed, the system records a snapshot of the current system state. This snapshot includes: current service configuration parameters; current traffic allocation strategy; current instance list and the running status of each instance; and baseline key performance indicators, namely, error rate, response latency P95, and throughput within the most recent time window before execution. This snapshot provides data support for the atomic rollback operation.

[0021] (5.3) Gray-scale execution strategy The self-healing solution employs a gradual, phased execution strategy: Self-healing operations are performed on target instances representing 5% to 10% of the total instances; after execution, changes in system metrics are observed within a preset time window, and the current core metrics are compared with the baseline before execution; if the core metrics return to normal and no new anomalies are detected, the verification is passed, and the execution scope is expanded to 30%; after another successful verification, it is expanded to 60%; and finally, to 100%. Real-time effect verification is performed at each stage. If verification fails at any stage, the phased process is terminated and an atomic rollback is triggered.

[0022] (5.4) Atomic rollback triggering conditions The self-healing module terminates grayscale execution and triggers atomic rollback when any of the following conditions are met: (1) After the self-healing operation is performed, the core service level agreement indicators deteriorate beyond the preset threshold compared to the baseline before the operation; (2) After the self-healing operation is executed, a new abnormal alarm appears, and it is confirmed by causal reasoning that it was induced by this self-healing operation; (3) The self-healing operation was not completed within the preset timeout window; (4) During the grayscale execution process, the real-time effect verification of any stage failed.

[0023] (5.5) Atomic rollback mechanism A rollback operation is an atomic operation, meaning that the operation can be either completely completed or not executed at all.

[0024] Specifically, based on the system state snapshot recorded before execution, the rollback is performed in the following order: (1) restore the service configuration parameters to the snapshot record value; (2) restore the traffic allocation ratio to the snapshot record value; (3) restore the instance state to the snapshot record state; (4) verify the consistency between the system state and the snapshot record state after the rollback is completed.

[0025] (vi) Effect Verification Module This module is used to perform a multi-dimensional quantitative evaluation of the self-healing process after each self-healing operation is completed.

[0026] Specifically, the evaluation is conducted from the following dimensions: degree of fault elimination, i.e. whether the core indicators have returned to the normal baseline range; recovery time, i.e. the total time taken from the occurrence of the fault to the completion of recovery; side effect assessment, i.e. whether the self-healing operation has a negative impact on other components of the system; and gray-scale process data, i.e. the trajectory of indicator changes in each gray-scale stage.

[0027] Based on the evaluation results, the self-healing effect is divided into three levels: completely successful, partially successful, and unsuccessful.

[0028] (vii) Knowledge Accumulation and Model Iteration Module This module is used to automatically and structurally feed back complete information about each failure, the self-healing process, and the effect evaluation results to the knowledge graph and causal reasoning engine.

[0029] (7.1) Automatic injection of fault cases The complete information of this failure will be written into the knowledge graph. This complete information includes: failure characteristics, i.e., abnormal indicators, alarm information, occurrence time range, and duration; root cause localization results and causal propagation path; the self-healing plan and operating parameters executed; indicator change data at each stage during the gray-scale execution; recovery effect evaluation results; whether rollback was triggered and rollback execution details. The above information is automatically collected and generated by the system.

[0030] (7.2) Automatic optimization of the strategy library Based on the recovery effect evaluation results, update the statistical characteristics of the corresponding strategies in the strategy library: for completely successful strategies, the execution count and success count are incremented, and the matching priority is increased; for partially successful strategies, the execution count is incremented, and side effect feature tags are recorded; for failed strategies, the execution count is incremented, and the matching priority is decreased; for strategies with consecutive failures reaching a preset threshold, they are marked as requiring manual review.

[0031] (7.3) Automatic calibration of cause-effect graph The actual propagation path of this fault is compared with the propagation path predicted by the causal graph: if the propagation path predicted by the causal graph is consistent with the actual observation, the weight of the corresponding causal edge is increased; if the causal graph fails to predict the edge in the actual propagation path, the causal edge is added; if the causal graph predicts a causal path that did not actually occur, the weight of the corresponding causal edge is weakened.

[0032] (7.4) The model is iterated periodically. The data generated from each fault handling is stored in the sample library as training samples, and the root cause localization model and policy matching model are retrained or fine-tuned at preset intervals.

[0033] (viii) Closed-loop collaboration mechanism between modules The seven modules described above form a self-healing closed loop as follows: After a fault occurs, the data acquisition module collects data, the causal reasoning engine constructs a causal graph, the knowledge graph provides knowledge support, the root cause localization module locates the root cause of the fault, the self-healing decision-making and execution module matches and executes a strategy, the effect verification module verifies the self-healing effect, and the knowledge accumulation module feeds back the verification results to the knowledge graph and the causal reasoning engine. This forms a cycle of localization → recovery → verification → learning → re-localization.

[0034] Compared with the prior art, the present invention has the following beneficial effects: (i) A closed loop from root cause localization to self-healing recovery has been achieved. The root cause localization result triggers strategy matching and execution. Compared with CN120179509A, the process of this invention extends to self-healing execution, effect verification, and knowledge accumulation, and the average fault recovery time is expected to be shortened by 75%.

[0035] (ii) Ensuring the safety of self-healing operations through gray-scale execution and atomic rollback mechanisms. The self-healing operation adopts a progressive gray-scale execution strategy, with real-time effect verification for each execution stage. A snapshot of the system state is recorded before execution, and the system can be restored to the state before execution if self-healing fails.

[0036] (III) Automatic knowledge accumulation and system self-evolution are achieved through automatic optimization of the strategy library and automatic calibration of the causal graph. The strategy library adjusts the priority of strategies based on the execution effect. The causal graph calibrates the edge weights based on the comparison results between the actual propagation path and the predicted path.

[0037] (iv) Reduced interference from invalid alarms. By linking root cause localization with knowledge graphs, the accuracy of alarm noise reduction and clustering is improved, and the interference from invalid alarms is expected to be reduced by 85%.

[0038] (v) The system's capabilities improve with runtime. As the number of system failures accumulates, the number of cases in the knowledge graph increases, the accuracy of the cause-effect graph improves, and the accuracy of strategy matching increases. Attached Figure Description

[0039] Figure 1 This is a schematic diagram of the overall system architecture of the present invention; Figure 2 This is a schematic diagram illustrating the workflow of the causal reasoning engine of this invention; Figure 3 This is a schematic diagram of the four-layer architecture of the operation and maintenance knowledge graph of this invention; Figure 4 This is a schematic diagram of the workflow of the root cause localization and reasoning module of the present invention; Figure 5 This is a schematic diagram of the workflow of the automated self-healing decision-making and execution module of the present invention; Figure 6 This is a schematic diagram of the closed-loop feedback mechanism of the present invention.

[0040] Figure label: 101. Distributed Observable Data Acquisition Module; 102. Causal Inference Engine; 103. Operation and Maintenance Knowledge Graph Construction and Dynamic Update Module; 104. Root Cause Localization and Inference Module; 105. Automated Self-Healing Decision-Making and Execution Module; 106. Effect Verification Module; 107. Knowledge Accumulation and Model Iteration Module; 201. Steps for Extracting Time-Series Data of Performance Indicators; 202. Data Preprocessing Steps; 203. Partial Correlation Analysis Steps; 204. Granger Causality Test Steps; 205. Steps for Constructing a Directed Causal Graph; 206. Principal Component Analysis Mapping Steps; 301. Time-series measurement layer; 302, Indicator causal layer; 303, Service interaction layer; 304, Strategy layer; 401, Capture system anomaly alarm steps; 402, Construct initial fault subgraph steps; 403, Random walk traversal with restart steps; 404, Calculate comprehensive score of each node steps; 405, Output root cause node and propagation path steps; 501, Strategy layer matching self-healing strategy steps; 502, Generate self-healing operation sequence steps; 503, Record system state snapshot steps; 504, Gray-scale phase execution steps; 505, Real-time effect verification steps; 507, Trigger atomic rollback steps. Detailed Implementation

[0041] To enable those skilled in the art to better understand the technical solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings.

[0042] (I) System Deployment Architecture This invention is deployed on the operations and maintenance side of a microservice system, running as an independent intelligent operations and maintenance platform. Each module is deployed using a microservice architecture, with asynchronous communication between modules achieved through message queues. The knowledge graph is stored in a graph database, and time-series data is stored in a time-series database.

[0043] (II) Specific Implementation Methods of the Causal Reasoning Engine Step S201: Extract time series data of performance indicators of each service node from the time series database within the past preset time period.

[0044] Step S202: Preprocess each time series, including missing value imputation, outlier removal and data smoothing.

[0045] Step S203: Use partial correlation analysis to calculate the partial correlation coefficients between each indicator and eliminate spurious correlations introduced by third-party variables.

[0046] Step S204: Use the Granger causality test to determine the causal direction of the retained relevant index pairs. For time series X and Y, construct two prediction models: Model 1 uses the historical values ​​of Y to predict the future values ​​of Y; Model 2 uses the historical values ​​of X and Y together to predict the future values ​​of Y. If the prediction accuracy of Model 2 is better than that of Model 1, then X is determined to be a Granger cause of Y.

[0047] Step S205: Construct the determination result into a directed causal graph, with the edge weights determined by the causal strength.

[0048] Step S206: Use principal component analysis to map the causal relationships at the indicator level to the service level.

[0049] (III) Specific Implementation Methods for Knowledge Graph Construction Step S301: Extract the call relationships between services from the service registry and call chain data, and build a service interaction layer.

[0050] Step S302: Inject the causal relationships output by the causal reasoning engine into the knowledge graph to construct the indicator causal layer.

[0051] Step S303: Extract fault cases from historical fault work orders and maintenance records to build a strategy layer.

[0052] Step S304: Adopt an incremental update strategy to update the service interaction layer based on the call chain data, and trigger incremental recalculation of the causal layer based on the accumulated new monitoring data.

[0053] Step S305: Import the completed knowledge graph into a graph database for storage.

[0054] (iv) Specific implementation methods of root cause localization Step S401: The monitoring and alarm system obtains system abnormal alarms.

[0055] Step S402: Associate the alarm data with the knowledge graph, obtain the graph nodes and edges associated with the alarms, and construct the initial fault subgraph.

[0056] Step S403: Starting from the abnormal service node, traverse the fault subgraph using a random walk algorithm with restart, walking in the opposite direction of the causal edges.

[0057] Step S404: Calculate the overall score for each visited node, which takes into account the frequency of visits, causal strength, and path length.

[0058] Step S405: Output the node with the highest score as the root cause, and output the fault propagation path at the same time.

[0059] (V) Specific Implementation Methods of Self-Healing Decision-Making and Execution Step S501: Based on the root cause localization results, match the recovery plan in the strategy layer of the knowledge graph.

[0060] Step S502: Generate a self-healing operation sequence, wherein the operation sequence includes operation type, operation parameters, execution order and dependency conditions.

[0061] Step S503: Record a system status snapshot before execution. The snapshot includes current service configuration parameters, traffic allocation ratio, instance list and health status, and core indicator baseline.

[0062] Step S504: Perform self-healing on target instances that account for 5% to 10% of the total number of instances.

[0063] Step S505: Observe the changes in system indicators within the preset time window after execution, and compare the current indicators with the baseline recorded in step S503.

[0064] Step S506: If the core indicators return to normal and there are no new abnormal alarms, the verification is considered successful; if the core indicators deteriorate beyond the baseline by more than the preset threshold, or if new abnormal alarms appear, the verification is considered unsuccessful.

[0065] Step S507: If the verification fails, perform an atomic rollback based on the snapshot recorded in step S503.

[0066] Step S508: If the verification passes, expand the execution scope to 30% and repeat steps S505 to S507.

[0067] Step S509: Proceed to the 60% and 100% stages in sequence, and perform the same verification and rollback logic in each stage.

[0068] Step S510: After all grayscale stages are completed, confirm that the self-healing operation is complete.

[0069] (vi) Specific implementation methods for effect verification Step S601: After the self-healing process is completed, the effect is evaluated in four dimensions: self-fault elimination degree, recovery time, side effect assessment, and gray-scale process data.

[0070] Step S602: Based on the evaluation results, mark the self-healing effect as completely successful, partially successful, or unsuccessful.

[0071] (vii) Specific Implementation Methods of Knowledge Accumulation and Model Iteration Step S701: Inject the complete information of this fault into the knowledge graph.

[0072] Step S702: Update the strategy library based on the effectiveness evaluation level.

[0073] Step S703: Compare the actual fault propagation path with the predicted path of the causal graph and calibrate the edge weights of the causal graph.

[0074] Step S704: Store the fault handling data from this incident as training samples in the sample database.

Claims

1. A closed-loop method for automated self-healing of microservice faults, characterized in that, It includes the following steps: Obtain call chain data, performance metrics data, and log data from the microservice system; Based on the performance index data, causal relationship inference is performed to construct a causal directed graph of the microservice system; Based on the call chain data, the causal directed graph, historical fault cases and self-healing strategies, a multi-level operation and maintenance knowledge graph is constructed. The knowledge graph includes at least a service interaction layer, an indicator causal layer and a strategy layer. In response to the detection of a system anomaly, causal reverse tracing is performed based on the aforementioned operation and maintenance knowledge graph to locate the root cause node of the fault. Based on the identified root cause type, a self-healing strategy is matched from the strategy layer of the knowledge graph to generate a self-healing solution. Before executing the self-healing scheme, a system state snapshot is recorded. The self-healing scheme is executed using a progressive gray-scale execution strategy. After each gray-scale stage is completed, real-time effect verification is performed. If the verification passes, the next gray-scale stage is entered. If the verification fails, an atomic rollback is triggered. The system is restored to its state before execution based on the system state snapshot. The self-healing effect is evaluated quantitatively from multiple dimensions, and the priority of the corresponding self-healing strategy in the strategy layer is updated based on the evaluation results. The actual propagation path of this fault is compared with the propagation path predicted by the causal directed graph, and the edge weights of the causal directed graph are calibrated based on the comparison results.

2. The method according to claim 1, characterized in that, The progressive grayscale execution strategy includes: performing self-healing operations on instances accounting for 5% to 10% of the total number of target instances; after verification, expanding the execution range according to a preset gradient until 100%; if verification fails at any stage, execution is terminated and a rollback is triggered.

3. The method according to claim 1, characterized in that, The atomic rollback is an atomic operation that includes: restoring the service configuration to the snapshot record value, restoring the traffic allocation to the snapshot record ratio, restoring the instance state to the snapshot record state, and verifying the consistency between the system state after the rollback and the snapshot record state.

4. The method according to claim 1, characterized in that, The adjustment of edge weights in causal directed graphs based on the comparison results includes: if the propagation path predicted by the causal directed graph is consistent with the actual observation, the weight of the corresponding causal edge is increased; if the causal directed graph fails to predict the edges in the actual propagation path, a new causal edge is added; if the causal directed graph predicts a causal path that did not actually occur, the weight of the corresponding causal edge is weakened.

5. The method according to claim 1, characterized in that, Each self-healing strategy entry in the strategy layer includes: strategy type, execution parameters, preconditions, risk level, historical execution count, historical success count, and side effect flag.

6. A microservice fault automated self-healing closed-loop system, characterized in that, Include: The distributed observable data acquisition module is used to collect call chain data, performance index data, and log data of the microservice system. A causal reasoning engine is used to infer causal relationships based on the performance index data and construct a causal directed graph. The operation and maintenance knowledge graph construction and dynamic update module is used to construct and dynamically update a multi-level operation and maintenance knowledge graph based on the call chain data, the causal directed graph, historical fault cases and self-healing strategies. The knowledge graph includes at least a service interaction layer, an indicator causal layer and a strategy layer. The root cause localization and reasoning module is used to perform causal reverse tracing based on the operation and maintenance knowledge graph to locate the root cause of the fault in response to the detection of system anomalies. The automated self-healing decision and execution module is used to match self-healing strategies based on root cause type, record system state snapshots before execution, execute the self-healing plan using a gradual gray-scale execution strategy, and trigger atomic rollback when verification fails. The effect verification module is used to perform multi-dimensional quantitative evaluation of the self-healing effect. The knowledge accumulation and model iteration module is used to update the priority of the self-healing strategy in the strategy layer based on the evaluation results, compare the actual propagation path of this fault with the propagation path predicted by the causal directed graph, and calibrate the edge weights of the causal directed graph based on the comparison results.

7. The system according to claim 6, characterized in that, The knowledge accumulation and model iteration module is also used to inject the complete information of this fault into the knowledge graph as a new case. The complete information includes fault characterization, root cause localization results, the self-healing plan and parameters executed, indicator change data of each gray stage, recovery effect evaluation results, whether rollback is triggered and rollback execution details.

8. The system according to claim 6, characterized in that, The automated self-healing decision and execution module performs real-time effect verification at each stage of gray-scale execution by comparing the current core service level agreement indicators with the baseline recorded before execution. When the error rate rises above the preset threshold or a new abnormal alarm occurs, it is determined that the verification has failed.

9. The system according to claim 6, characterized in that, The causal reasoning engine uses the Granger causality test to determine the causal direction of time series index data, and uses principal component analysis to map the causal relationships at the index level to the service level.

Citation Information

Patent Citations

  • Microservice fault positioning method and device based on causal inference and knowledge graph

    CN120179509A