A change risk assessment system based on influence propagation algorithm
By using a change risk assessment system based on the impact propagation algorithm, the system can acquire dynamic topology and performance data of IT systems in real time. Combined with change event analysis, it can automatically calculate risks and trigger resource regulation, solving the problem of lack of quantitative assessment of dynamic dependencies in existing technologies and achieving efficient operation and maintenance management.
Patent Information
- Application Number
- CN202611108754.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-24
- Publication Date
- 2026-11-27
AI Technical Summary
Existing IT systems lack consideration for the dynamic behavior of the system during runtime in change management, resulting in discrepancies between static dependency analysis results and actual impacts. Human experience increases subjectivity, making it difficult to accurately judge the impact of changes. Furthermore, the lack of pre-emptive quantitative assessment and automated risk mitigation measures leads to low operational efficiency.
A change risk assessment system based on the impact propagation algorithm is adopted. The system obtains dynamic topology data and performance indicators through the impact propagation model construction module, and combines the change event analysis module and the context-aware propagation engine to calculate the risk index in real time. When the risk exceeds the threshold, resource regulation is automatically triggered to achieve proactive defense.
Significantly shortens fault response time, improves change success rate and operational stability, reduces false alarms and missed alarms, and achieves precise control and automated risk mitigation.
Smart Images

Figure CN123178192A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer software operation and maintenance and system reliability management technology, and in particular to a change risk assessment system based on the impact propagation algorithm. Background Technology
[0002] In existing IT system operation and maintenance management, change risk assessment typically relies on static dependency analysis tools or the personal experience of operations personnel. A common practice is to generate a static dependency graph between system components by parsing configuration files, code structure, or service registration information, and then estimate the potential impact of changes based on this graph, combined with historical fault records or manual judgment. Some advanced systems also set simple performance indicator alarm thresholds after changes to notify operations personnel to intervene when anomalies occur. However, these methods generally lack consideration for the dynamic behavior of the system during runtime, making it difficult to accurately capture real-time dependency changes caused by resource contention, traffic fluctuations, and other factors in a microservice architecture.
[0003] The aforementioned existing technologies have significant limitations. Static dependency analysis cannot reflect dynamic information such as runtime call chain latency changes and instantaneous saturation of CPU or memory resources, leading to a large discrepancy between the assessment results and the actual impact, and making it prone to missed or false alarms. The introduction of human experience further exacerbates subjectivity and uncertainty, especially in large-scale distributed systems, where operations personnel find it difficult to accurately judge intuitively whether a local change will trigger cascading failures along complex call paths. In addition, existing solutions are mostly "post-event alerting" models, meaning that notifications are only triggered after changes are implemented and problems occur, lacking pre-emptive quantitative assessment and automated risk mitigation methods, resulting in delayed fault response and low operational efficiency.
[0004] Therefore, there is an urgent need to develop a new scheme that can acquire system runtime topology data and dynamic performance indicators in real time, and quantitatively assess change risks based on the impact propagation algorithm. Summary of the Invention
[0005] To improve existing methods and systems, a change risk assessment system based on the impact propagation algorithm is provided, including: The influence propagation model building module is configured to acquire runtime topology data and dynamic performance indicators of the target IT system, and build a dynamically weighted directed graph model, where nodes represent system entities and edge weights are updated in real time according to dynamic performance indicators. The change event receiving and analysis module is configured to receive change events and parse the attribute information of the change events. The attribute information includes at least the change type and the changed object. The context-aware propagation engine, connected to the influence propagation model building module and the change event receiving and analysis module, is configured to determine the corresponding propagation rules based on the change type. Starting from the change object, it executes the influence propagation algorithm in a dynamically weighted directed graph model according to the propagation rules and edge weights to calculate the risk index of each affected node. When the risk index of any affected node exceeds the safety threshold, it generates and issues resource control instructions to the orchestration controller of the target IT system.
[0006] In some embodiments, a causal inference engine is also included. The causal inference engine is configured to obtain a snapshot of the system state before and after the occurrence of the change event from the influence propagation model building module, construct a counterfactual scenario in which no change event has occurred and predict the system state under the counterfactual scenario, determine whether the system anomaly is caused by the change event by comparing the actual system state with the predicted system state under the counterfactual scenario, and identify the node where the system anomaly occurred.
[0007] In some embodiments, the causal inference engine is also configured to generate the most likely fault propagation path from the changed object to the abnormal node when it is determined that the anomaly is caused by a change event, by combining the affected nodes and their risk indices output by the context-aware propagation engine.
[0008] In some embodiments, an online learning module is also included, which is configured to collect the execution results of each change event from the context-aware propagation engine and use the execution results as feedback signals to employ a reinforcement learning algorithm to adjust online at least one of the weights of edges in the dynamically weighted directed graph model and a preset risk decay threshold and propagation depth limit used when executing the influence propagation algorithm.
[0009] In some embodiments, the context-aware propagation engine is also configured to prune the propagation path of the influence propagation algorithm based on a preset risk decay threshold and propagation depth limit when executing the influence propagation algorithm.
[0010] In some embodiments, the impact propagation model building module is configured to obtain runtime topology data from a distributed tracing system and dynamic performance metrics from a container orchestration platform. The runtime topology data includes real-time call relationships and call latency between service instances, and the dynamic performance metrics include CPU utilization, memory usage, and network I / O wait rate.
[0011] In some embodiments, the weight of an edge is calculated using a preset mapping function based on the degree of abnormality of call latency and dynamic performance metrics. The input to the mapping function is the call latency and dynamic performance metrics, and the output is the weight of the edge.
[0012] In some embodiments, the context-aware propagation engine is also configured to access a propagation rule base containing multiple rules, each defining the allowed scope, speed, and method of propagation for a specific change type, including configuration modification, code release, scaling up / down operations, and traffic scheduling.
[0013] In some embodiments, the causal inference engine employs a counterfactual reasoning method based on a structural causal model, where the structural causal model uses runtime topological data as the structural prior of the causal graph.
[0014] In some embodiments, the resource scaling instructions are custom metric update instructions for Kubernetes HorizontalPodAutoscaler or traffic weight adjustment instructions for Istio VirtualService.
[0015] This application provides a change risk assessment system based on an impact propagation algorithm, including an impact propagation model construction module, a change event receiving and analysis module, and a context-aware propagation engine. The impact propagation model construction module acquires runtime topology data and dynamic performance indicators of the target IT system, constructs a dynamically weighted directed graph model, where nodes represent system entities and edge weights are updated in real-time according to dynamic performance indicators. The change event receiving and analysis module receives change events and parses the change type and object. The context-aware propagation engine determines propagation rules based on the change type, executes the impact propagation algorithm in the graph model starting from the changed object, calculates the risk index of each affected node, and issues resource control instructions to the orchestration controller when the risk index exceeds a safety threshold. This system transforms the traditional passive alarm mode into a proactive defense mode. Through real-time dynamic modeling and quantitative risk assessment, it can automatically trigger control actions such as expansion, degradation, or rollback before the impact of a change spreads, significantly shortening fault response time and improving the change success rate and operational stability of the distributed system. Attached Figure Description
[0016] Figure 1 This is a system architecture diagram of the change risk assessment system based on the influence propagation algorithm proposed in this invention.
[0017] The diagram shows: 1. Change event receiving and analysis module; 2. Impact propagation model construction module; 3. Context-aware propagation engine; 4. Causal inference engine; 5. Online learning module; 6. Propagation rule base. Detailed Implementation
[0018] The following description is intended to disclose the invention and enable those skilled in the art to implement it. The preferred embodiments described below are merely examples, and other obvious variations will occur to those skilled in the art.
[0019] Firstly, this application provides a change risk assessment system based on an impact propagation algorithm, such as... Figure 1 As shown, it includes: The influence propagation model construction module 2 is configured to acquire runtime topology data and dynamic performance indicators of the target IT system, and construct a dynamically weighted directed graph model, where nodes represent system entities and edge weights are updated in real time according to dynamic performance indicators. The change event receiving and analysis module 1 is configured to receive change events and parse the attribute information of the change events. The attribute information includes at least the change type and the change object. The context-aware propagation engine 3, connected to the influence propagation model construction module 2 and the change event receiving and analysis module 1, is configured to determine the corresponding propagation rules based on the change type. Starting from the change object, it executes the influence propagation algorithm in a dynamically weighted directed graph model according to the propagation rules and edge weights to calculate the risk index of each affected node. When the risk index of any affected node exceeds the safety threshold, it generates and issues resource control instructions to the orchestration controller of the target IT system.
[0020] This embodiment provides a change risk assessment system based on the impact propagation algorithm. The system mainly comprises three core components: an impact propagation model construction module 2, a change event receiving and analysis module 1, and a context-aware propagation engine 3. These three modules work together to form a complete closed loop from data acquisition and event parsing to risk calculation and automatic control, aiming to address the shortcomings of existing operation and maintenance tools in lacking quantitative assessment of dynamic dependencies and real-time risks in change management.
[0021] The Impact Propagation Model Construction Module 2 is the foundational data layer of the entire system. Its purpose is to overcome the limitations of traditional static dependency analysis, as the runtime topology and resource load of modern distributed systems are constantly changing, and configuration files or registry centers alone cannot capture the true call latency and resource contention. This module is responsible for acquiring real-time runtime topology data and dynamic performance metrics of the target IT system. For example, it collects call relationships and latency between service instances from a distributed tracing system, and resource saturation data such as CPU, memory, and network I / O from a container orchestration platform. Based on this real-time data, it constructs a dynamically weighted directed graph model, where each node represents a system entity (such as a service instance or Pod), and the weight of each edge is updated in real-time according to the latest dynamic performance metrics. In this way, the graph model is no longer a static snapshot, but a dynamic image reflecting the current health status and resource pressure of the system. The direct benefit of this design is that subsequent risk assessments can be based on accurate runtime dependencies, avoiding false positives or negatives caused by outdated dependency information, and laying a solid data foundation for accurate risk quantification.
[0022] The Change Event Receiving and Analysis Module 1 serves as the system's entry point. Its purpose is to address the vast differences in the types and objects of changes, such as code releases, configuration modifications, scaling operations, and traffic scheduling. Each change has a distinct impact pattern and propagation scope, and without distinguishing these contexts, it's impossible to formulate targeted assessment strategies. This module receives externally initiated change events and parses out at least the attribute information of the change type and the object being changed. By structuring the change information, the system understands "what changes have occurred" and "where the changes occurred." This module provides necessary input parameters for the subsequent context-aware propagation engine, enabling it to select the most appropriate propagation rules based on the specific nature of the change, thus achieving refined risk assessment. Its benefits include significantly improved assessment flexibility and accuracy, avoiding a "one-size-fits-all" approach, and allowing for differentiated responses to different changes, thereby reducing unnecessary alarm interference.
[0023] The context-aware propagation engine 3 is the core computation and decision-making unit of this system. Connected to the first two modules, it is responsible for combining the real-time graph model and change events to execute the impact propagation algorithm. This engine is designed because simply having a dynamic graph model and change information is insufficient; a computational mechanism is also needed to simulate how the impact of changes propagates along the call chain within the system. Based on the change type provided by the change event receiving and analysis module 1, the engine matches the corresponding propagation rule from the pre-defined propagation rule library 6. For example, for configuration modification changes, the impact may only be allowed to propagate to the direct caller; while for code release changes, propagation along the complete call chain may be allowed. Then, starting with the changed object, it executes the impact propagation algorithm in the dynamically weighted directed graph model, based on the selected propagation rule and edge weights, progressively calculating the risk index of each affected node. This risk index combines the node's own vulnerability (reflected by its weights) and its distance from the change source, quantifying the probability or severity of each node being affected. More importantly, the engine also possesses proactive control capabilities: when the risk index of any affected node exceeds a preset safety threshold, it immediately generates and issues resource control instructions to the orchestration controller of the target IT system. These instructions can be Kubernetes HPA scaling requests, Istio VirtualService traffic degradation configurations, or direct rollback triggers. This design upgrades risk assessment from simple information output to automated risk mitigation, achieving a closed loop from "risk discovery" to "risk mitigation." Its beneficial effects are significant: on the one hand, operations personnel no longer need to manually monitor dashboards for judgment; the system can automatically take action before risks materialize, greatly shortening fault response time; on the other hand, because the control instructions are triggered based on a quantified risk index, blind operations are avoided, achieving precise control and minimizing unnecessary resource waste while ensuring system stability.
[0024] In summary, this embodiment establishes a dynamic graph model through the impact propagation model construction module 2, identifies the change context through the change event receiving and analysis module 1, and then performs differentiated impact propagation calculations and automatically issues control instructions through the context-aware propagation engine 3. These three modules are interconnected and together constitute a complete intelligent change risk assessment and control system. This system transforms the traditional passive alarm mode into a proactive defense mode, enabling IT operations teams to grasp the potential impact scope before changes go live and obtain automated protection before risks spiral out of control, thereby significantly improving the change success rate, operational stability, and operational efficiency of distributed systems.
[0025] In some embodiments, a causal inference engine 4 is also included. The causal inference engine 4 is configured to obtain a snapshot of the system state before and after the occurrence of the change event from the influence propagation model construction module 2, construct a counterfactual scenario in which no change event has occurred and predict the system state under the counterfactual scenario, determine whether the system anomaly is caused by the change event by comparing the actual system state with the predicted system state under the counterfactual scenario, and identify the node where the system anomaly occurs.
[0026] In this embodiment, the system further introduces a causal inference engine 4, which is connected to the impact propagation model construction module 2. This engine is specifically designed to solve a deeper problem: when a system anomaly occurs after a change is implemented, how to determine whether the anomaly is indeed caused by the change itself, rather than by other concurrent factors (such as sudden traffic spikes, hardware failures, or third-party service fluctuations). Traditional correlation analysis can only indicate that "an anomalies occurred after the change," but it cannot establish a causal relationship, easily leading to misjudgments by operations personnel and wasting a significant amount of troubleshooting time. The causal inference engine 4 is designed precisely for this purpose.
[0027] The causal inference engine 4 operates based on counterfactual reasoning. It first obtains snapshots of the system state before and after the change event from the influence propagation model building module 2. These snapshots contain time-series data of the performance metrics of all relevant nodes. Then, the engine constructs a hypothetical counterfactual scenario: what state the system should be in if the change event had never occurred. To predict the system state in this counterfactual scenario, the engine can utilize various techniques. For example, it can employ a structural causal model-based approach, using the system call chain topology as the structural prior of the causal graph, and training a model that can predict the evolution of each node's metrics over time using historical normal operation data. Another approach is to use time-series prediction models, such as vector autoregression models or long short-term memory networks, to extrapolate the expected metric range for each node in the future under the condition of no change, based on historical data before the change. The engine then compares the actual observed system state with the counterfactual predicted state node by node. If the actual metric of a node deviates significantly from the predicted range, and this deviation coincides with the change event in time, then it can be determined that the anomaly is likely caused by the change event, and the node where the anomaly occurred can be accurately identified.
[0028] Let's illustrate this with a specific application scenario. Suppose in a microservice e-commerce system, the operations team modifies the database connection pool parameters for the order service. A few minutes after the change goes live, the response time of the payment service suddenly increases dramatically. Traditional tools would only alert users to "high latency in payment service," but couldn't determine whether the issue stemmed from the change in the order service or a problem with the payment service itself. At this point, the causal inference engine 4 comes into play: it takes snapshots of the state of all services before and after the change, and using a previously trained causal model based on the call chain topology, predicts that if the connection pool parameters hadn't been modified, the payment service's response time should have remained within 200 milliseconds. However, the actual observed response time reached 800 milliseconds, significantly exceeding the predicted range. Simultaneously, by tracing the impact propagation path, the engine discovers that the database query latency of the order service increased after the change, leading to timeouts in calls to the payment service. Therefore, the engine determines that the anomaly in the payment service was caused by the change in the order service, identifying both the order service and the payment service as affected nodes.
[0029] Another example concerns resource scaling. The operations team horizontally scaled the recommendation service, adding a Pod replica. After scaling, the CPU utilization of the upstream gateway service actually increased. Causal inference engine 4, through counterfactual prediction, discovered that without scaling, the gateway's CPU utilization should have remained at 60%, but it actually reached 85%. Further analysis revealed that the scaling increased the recommendation service's processing capacity, resulting in more requests and thus increasing the gateway's burden. The engine therefore concluded that the increased gateway CPU utilization was indirectly caused by the scaling, rather than a gateway malfunction.
[0030] The benefits of Causal Inference Engine 4 are multifaceted. First, it fundamentally solves the attribution problem between changes and anomalies, upgrading operations personnel's judgment from "guessing" to "evidence-based reasoning," significantly reducing the false positive rate. Second, by accurately identifying anomaly nodes, it helps operations personnel quickly pinpoint the scope of the problem, avoiding a needle-in-a-haystack search across the entire system, thus significantly shortening the average fault recovery time. Third, this engine works in conjunction with the context-aware propagation engine 3: the propagation engine provides risk indices and possible propagation paths, while the causal inference engine 4 verifies afterward whether these paths actually caused the fault. The combination of the two forms a complete closed loop of "prediction before the event—verification after the event," making the entire change risk assessment system more reliable and intelligent. Finally, the introduction of the causal inference engine 4 also provides high-quality feedback labels for the subsequent online learning module 5, because only anomaly data with confirmed causal relationships can serve as effective training samples, thereby further enhancing the overall system's adaptability.
[0031] In some embodiments, the causal inference engine 4 is also configured to generate the most likely fault propagation path from the changed object to the abnormal node when it is determined that the anomaly is caused by a change event, by combining the affected nodes and their risk indices output by the context-aware propagation engine 3.
[0032] In this embodiment, the causal inference engine 4 is not only able to determine whether a system anomaly is caused by a change event, but is also further configured to generate the most probable fault propagation path from the changed object to the anomaly node. This functionality relies on the collaborative work of the causal inference engine 4 and the context-aware propagation engine 3. When the causal inference engine 4 determines that the anomaly is indeed caused by a change, it reads the list of affected nodes and their corresponding risk indices previously output by the context-aware propagation engine 3. These risk indices reflect the likelihood of each node being affected as the change's impact propagates along the call chain. Using these risk indices as clues, and combining the deviation of each node's indicators discovered during counterfactual analysis, the causal inference engine 4 employs path search algorithms (such as Bayesian network-based causal path tracing or the shortest weighted path algorithm) to trace back from the anomaly node to the changed object, selecting the propagation link that best conforms to causal logic.
[0033] For example, in a microservice system consisting of a front-end gateway, user service, product service, and inventory service, the operations team modified the cache configuration of the product service. After the change went live, the user service experienced response timeouts. Causal inference engine 4 first determined that the user service timeout was caused by the change in the product service. Then, it retrieved the list of affected nodes output by the context-aware propagation engine 3, where the risk indices for the product service, inventory service, and user service were 0.95, 0.30, and 0.88, respectively. Combining this with the latency deviation curve of the user service in counterfactual analysis, the engine found that the time point of the user service latency spike highly coincided with the time point of the cache hit rate decrease after the product service change, and the inventory service did not show any abnormal fluctuations. Therefore, the engine ruled out the inventory service branch and generated the most likely fault propagation path: product service (changed object) → user service (abnormal node), and marked that the intermediate link was due to the product service cache failure causing a slow response, which in turn blocked the thread pool calling the user service.
[0034] Another example involves database scaling. The operations team vertically scaled up the order database, increasing memory. After the scaling, the payment service experienced frequent timeouts and retries. Causal inference engine 4 determined that the payment service anomaly was related to the order database scaling. The context-aware propagation engine 3 output that the affected nodes included the order database, order service, and payment service, with risk indices of 0.99, 0.70, and 0.65, respectively. Analysis of time-series data revealed that while the order database's memory usage decreased after scaling, query latency slightly increased. This was because the database connection pool configuration was not synchronized, resulting in insufficient connections and request queuing. The queuing effect propagated upstream along the call chain, slowing down order service processing and subsequently causing timeouts when the payment service called the order service. Based on this, the engine generated the following path: Order Database (changed object) → Order Service → Payment Service (abnormal node), and pointed out that the key bottleneck was the connection pool configuration not being optimized synchronously with the scaling.
[0035] The benefits of this feature are significant. First, it greatly improves the efficiency of troubleshooting. Operations personnel no longer need to manually sift through massive amounts of alarms and logs to find correlations; the system directly provides the most likely causal chain, narrowing the investigation scope from the entire call chain to a specific path, reducing the average fault location time by several times. Second, the generated fault propagation path provides a clear basis for subsequent remediation decisions. Operations personnel can check each link along the path, quickly find the root cause, and take targeted measures, such as adjusting connection pool parameters or rolling back cache configurations, avoiding blind operations. Furthermore, this path can also guide automated remediation strategies; for example, the strategy recommendation module can automatically generate isolation or degradation plans based on key nodes in the path. Finally, the accumulation of fault propagation paths forms a valuable knowledge base, which can be used to train the online learning module 5, enabling the system to predict risk paths faster and more accurately when encountering similar changes in the future, thereby continuously improving the intelligence level of the entire change risk assessment system.
[0036] In some embodiments, an online learning module 5 is also included, which is configured to collect the execution results of each change event from the context-aware propagation engine 3 and use the execution results as feedback signals to employ a reinforcement learning algorithm to adjust online at least one of the weights of edges in the dynamically weighted directed graph model and the preset risk decay threshold and propagation depth limit used when executing the influence propagation algorithm.
[0037] In this embodiment, the system further introduces an online learning module 5, which is connected to the context-aware propagation engine 3. This module is responsible for collecting the actual execution results of each change event and using these results as feedback signals to adjust the key parameters of the model online using reinforcement learning algorithms. The purpose of this is to enable the system to learn autonomously from each change practice and continuously optimize its evaluation accuracy without the need for repeated manual parameter tuning.
[0038] The online learning module 5 can be implemented based on Q-learning or policy gradient methods in reinforcement learning. It treats each change as an "action" and the resulting change in system state as a "reward." For example, after a code release, if the actual affected scope is largely consistent with the scope predicted by the context-aware propagation engine 3, and no unexpected alarms or failures are triggered, a positive reward is given; conversely, if the actual impact far exceeds the prediction, leading to service degradation or an alarm storm, a negative penalty is given. Based on these accumulated reward signals, the online learning module 5 adjusts the weights of edges in the dynamically weighted directed graph model. If the call relationship corresponding to a certain edge frequently causes cross-service failures during actual changes, the weight of that edge will be automatically increased, making future impact propagation algorithms more inclined to spread risk along that edge; conversely, if an edge rarely propagates actual impact, its weight will be gradually decreased. Similarly, this module can also adjust the preset risk decay threshold and propagation depth limit used when executing the impact propagation algorithm. If the system finds that the current threshold is too lenient, resulting in a large number of false alarms, it will automatically tighten the threshold; if it finds that the propagation depth limit is too short, causing remote affected nodes to be missed, it will appropriately relax the depth limit.
[0039] To illustrate with a concrete example, in a large e-commerce system, the online learning module 5 observed that eight out of ten configuration changes to the inventory service actually affected the order and payment services. However, the context-aware propagation engine 3 initially only predicted that the order service would be affected. This meant that the weight of the call chain from the inventory service to the payment service might have been underestimated. Based on these negative rewards, the online learning module 5 automatically increased the weight of that side by 20%. In a subsequent inventory service change, the propagation engine indeed successfully predicted that the payment service would also be affected, making the risk index calculation more accurate. Another example concerns the adjustment of the risk decay threshold. The system's initial decay threshold was set at 0.3, but during multiple changes, it was found that nodes with a risk index between 0.25 and 0.3 never actually failed. Based on this, the online learning module 5 lowered the decay threshold to 0.25, thereby filtering out more low-risk nodes in subsequent evaluations, reducing unnecessary alarms and resource control commands, and improving operational efficiency.
[0040] The benefits of Online Learning Module 5 are profound and lasting. First, it enables the system to adapt, automatically adjusting model parameters as business scale and system architecture change, avoiding the gradual failure of traditional static models due to environmental drift. Second, by continuously optimizing edge weights and propagation parameters, the system's risk assessment accuracy increases, significantly reducing false positive and false negative rates, thus increasing the operations team's trust in the system. Third, this module drastically reduces manual maintenance costs; engineers no longer need to spend considerable effort manually calibrating model parameters or analyzing historical data—the system can handle these tasks automatically. Finally, Online Learning Module 5 interacts positively with Causal Inference Engine 4: Engine 4 provides accurate fault attribution labels, which serve as high-quality positive and negative samples in reinforcement learning, accelerating learning convergence and making the entire change risk assessment system increasingly intelligent and reliable during operation.
[0041] In some embodiments, the context-aware propagation engine 3 is also configured to prune the propagation path of the impact propagation algorithm based on a preset risk decay threshold and propagation depth limit when executing the impact propagation algorithm. This design aims to prevent the impact propagation from spreading infinitely in the graph, leading to excessive computation and the generation of a large number of meaningless low-risk nodes, thereby improving the efficiency and accuracy of the evaluation. Specifically, each time the propagation engine spreads outward along an edge, it checks whether the risk index of the current node is lower than the preset risk decay threshold. If it is lower than this threshold, it considers the probability of the node and its downstream nodes being substantially affected to be extremely low, and stops propagating outward from this node. Simultaneously, the propagation engine records the current propagation hop count. When the hop count reaches the preset propagation depth limit, regardless of the risk index, it forcibly stops further outward propagation. These two pruning mechanisms work together to ensure that the impact propagation algorithm always focuses on the critical areas most likely to be affected by the change.
[0042] For example, in a system containing dozens of microservices, a configuration change to the login service triggers an impact propagation algorithm. Initially, the login service itself has a risk index of 1.0, the user service it directly calls has a risk index of 0.8, the order service called by the user service has a risk index of 0.5, and the payment service called by the order service has a risk index of 0.3. Assuming a preset risk decay threshold of 0.4, when the propagation reaches the payment service, its risk index of 0.3 is already below the threshold, so the propagation engine will stop spreading outward from the payment service and will no longer evaluate the downstream logistics and notification services. In this way, the computational task that might have required evaluating more than twenty nodes is reduced to four core nodes, significantly reducing computational overhead. In another example, assuming the propagation depth limit is set to 5 hops, even if the risk index of some remote nodes is still higher than the threshold, the propagation engine will not evaluate nodes beyond 5 hops. This is especially important in ultra-large-scale systems, as it can effectively prevent computational explosion caused by excessively long links.
[0043] The benefits of this pruning mechanism are significant. First, it dramatically improves the execution speed of the impact propagation algorithm, enabling the system to complete risk assessments of the entire cluster within seconds or even milliseconds, meeting the real-time requirements of change management. Second, by filtering out low-risk nodes, the system outputs a more concise list of affected nodes, reducing the number of alarms that operations personnel need to monitor and avoiding information overload. Third, the pruning mechanism, combined with context-aware propagation rules, can dynamically adjust thresholds and depth based on change type. For example, more lenient thresholds and deeper propagation restrictions can be set for high-risk core service changes, while stricter pruning conditions can be set for low-risk edge service changes, achieving a balance between assessment accuracy and efficiency. Finally, due to the reduced computational load, the system's hardware resource requirements are also reduced, allowing this solution to be deployed on resource-constrained edge nodes or in lightweight operations environments, expanding its application scenarios.
[0044] In some embodiments, the influence propagation model construction module 2 is configured to obtain runtime topology data from a distributed link tracing system and dynamic performance metrics from a container orchestration platform. The runtime topology data includes real-time call relationships and call latency between service instances, while the dynamic performance metrics include CPU utilization, memory usage, and network I / O wait rate. The specific data collection method of the influence propagation model construction module 2 is further clarified. This module is configured to obtain runtime topology data from a distributed link tracing system and dynamic performance metrics from a container orchestration platform. The runtime topology data includes real-time call relationships and call latency between service instances, while the dynamic performance metrics include CPU utilization, memory usage, and network I / O wait rate. This design makes the data source for the dynamically weighted directed graph model more concrete and reliable, directly interfacing with mainstream observability infrastructure in cloud-native environments.
[0045] Taking a real-world deployment as an example, in a Kubernetes-based microservice application, the operations team has deployed Jaeger as a distributed tracing system and Prometheus in conjunction with cAdvisor to collect container resource metrics. The influence propagation model building module 2 pulls the service call topology for the most recent minute from Jaeger via a standard API. This includes each service instance (Pod) as a node, the RPC call relationships between them, and P99 latency data attached to each call edge. Simultaneously, this module queries Prometheus for the average CPU utilization, memory usage, and network I / O wait rate for each Pod. This data is merged in real time to construct a dynamically weighted directed graph. For example, when the CPU utilization of the order service spikes to 90%, and the latency of its call to the product service increases from 10ms to 100ms, the weight of the corresponding edge in the graph automatically increases, reflecting that the call chain is under high pressure.
[0046] Another example is that during peak traffic periods, the container orchestration platform reported a network I / O wait rate of 60% for a payment service instance, indicating that network bandwidth had become a bottleneck. After capturing this metric, the impact propagation model building module 2 increased the edge weight between that node and its upstream gateway, because a high network I / O wait rate means that the node's processing capacity is limited and it is more vulnerable to changes. As a result, subsequent propagation engines will place greater emphasis on paths passing through that node when propagating impact.
[0047] The third example involves a service instance scaling scenario. When Kubernetes automatically scales up a new replica, the distributed tracing system immediately updates the topology, adding the new node. The impact propagation model building module 2 quickly incorporates this new node into the graph and assigns initial edge weights based on its initial resource metrics. This allows the change risk assessment system to promptly detect changes in system scale, avoiding inaccurate assessments due to lagging topology information.
[0048] The benefits of this data collection method are significant. First, by connecting to industry-standard distributed tracing systems and container orchestration platforms, this system can be quickly integrated without modifying existing infrastructure, lowering the deployment threshold. Second, the combination of runtime topology data and dynamic performance metrics allows the graph model to reflect both logical call dependencies and physical resource contention, making it closer to the real-world operating state than a static dependency graph that relies solely on configuration files. Call latency directly reflects the response quality between services, while resource saturation reveals node vulnerability; both together determine the rationality of edge weights. Third, because the data is updated in real time, the graph model can dynamically change with the system state, ensuring that risk assessment results are always based on the latest snapshot, avoiding misjudgments caused by outdated data. Finally, this fine-grained data collection provides high-quality training material for subsequent causal inference and online learning, because only accurate input data can support reliable causal analysis and model optimization, thus forming a positive cycle and continuously improving the overall system's evaluation capabilities.
[0049] In some embodiments, the edge weights are calculated using a predefined mapping function based on the anomalies in call latency and dynamic performance metrics. The input to this mapping function is call latency and dynamic performance metrics, and the output is the edge weights. The purpose of this design is to quantify multi-dimensional runtime data into a single scalar value that reflects edge vulnerability, thereby providing a reasonable basis for the propagation probability or strength of subsequent impact propagation algorithms. The specific form of the mapping function can be customized according to the characteristics of the actual system and operational experience. Common implementation methods include weighted summation, nonlinear transformation, or threshold-based piecewise functions.
[0050] To illustrate with the first example, suppose in an e-commerce system, call latency and CPU utilization are two key input metrics. Operations personnel, through historical data analysis, discovered that when call latency exceeds twice the baseline and CPU utilization exceeds 80%, the probability of fault propagation increases dramatically. Therefore, the mapping function is designed as a piecewise function: within the normal range, the weight increases linearly with the metric; when either metric exceeds a critical value, the weight increases rapidly in an exponential manner. Thus, when the latency of the order service calling the payment service spikes from 10ms to 100ms, and the CPU utilization of the payment service reaches 90%, the weight of that edge becomes extremely high, and the propagation engine, during its evaluation, will consider the change highly likely to spread along this edge.
[0051] The second example involves memory utilization and network I / O wait rate. In some systems, memory leaks can lead to slow service response, but a high network I / O wait rate may indicate a disk or network bottleneck. The mapping function can employ a maximum value strategy, taking the maximum normalized value of call latency, memory utilization, and network I / O wait rate as the edge weight. This approach is suitable for scenarios where a severe anomaly in any one dimension is enough to cause cascading failures. For example, when the memory utilization of a recommendation service reaches 95%, even if its call latency is acceptable, the edge weight will be very high, thus alerting the system that the node is in a high-risk state.
[0052] The third example is a smoother mapping method: each metric is normalized to between 0 and 1, and then a weighted average is calculated by assigning different weight coefficients. For example, call latency is weighted at 0.5, CPU utilization at 0.3, and memory usage at 0.2. This method is suitable for scenarios where the importance of each metric is relatively balanced, and it can comprehensively reflect the health status of multiple dimensions. Operations personnel can adjust the weight coefficients at any time according to business characteristics without modifying the core algorithm.
[0053] The benefits of this mapping function design are multifaceted. First, it unifies the original monitoring indicators with different dimensions into comparable weight values, enabling the influence propagation algorithm to perform calculations on a uniform scale and avoiding biases caused by inconsistent indicator units. Second, by flexibly defining the mapping function, the system can adapt to different types of IT systems. For example, CPU-intensive applications can focus on CPU indicators, while I / O-intensive applications can focus on network I / O wait rates, thereby improving the universality and customization capabilities of the solution. Third, the parameters in the mapping function (such as thresholds and weight coefficients) can be automatically optimized through the online learning module 5, allowing the weight calculation to adaptively adjust as system behavior changes, continuously maintaining the accuracy of the assessment. Finally, since the weights directly reflect the vulnerability of edges, they provide a reliable propagation basis for the context-aware propagation engine 3, making the calculated risk index results closer to reality, thereby improving the credibility and practicality of the entire change risk assessment system.
[0054] In some embodiments, the context-aware propagation engine 3 is also configured to access a propagation rule base 6, which contains multiple rules. Each rule defines the allowed scope, speed, and method of propagation for a specific change type. Change types include configuration modification, code release, scaling up / down operations, and traffic scheduling. The context-aware propagation engine 3 is also configured to access a propagation rule base 6, which stores multiple rules. Each rule defines the allowed scope, speed, and method of propagation for a specific change type. Change types include at least four common operational operations: configuration modification, code release, scaling up / down operations, and traffic scheduling. This design allows the system to adopt differentiated evaluation strategies based on the nature of the change, avoiding the use of the same set of propagation parameters to handle all types of changes.
[0055] Taking configuration modification as an example, suppose an operations and maintenance personnel change the log level of a service. Such changes typically only affect the service's own log output behavior and do not alter business logic or resource consumption. The rules in Propagation Rule Base 6 for configuration modifications limit the impact to the service itself and its direct upstream callers, set the propagation speed to low, and use deterministic propagation (meaning the risk will be transmitted as long as a call relationship exists). This prevents the propagation engine from spreading the risk throughout the entire call chain when executing its algorithm, avoiding unnecessary alerts.
[0056] For code release-type changes, such as launching a new version of a user service, these changes may introduce bugs or performance degradation, often with a wide impact. The corresponding rules in the rule base will have a relatively large propagation range, allowing a maximum of 5 hops downstream along the call chain, a medium propagation speed, and a probabilistic propagation method (i.e., determining whether to continue propagating based on the weight of the edges). This approach can both capture potential cascading failures and prevent unlimited spread.
[0057] Scaling up and down differs. When horizontally scaling a service, the newly added Pods will share the traffic, theoretically reducing downstream pressure. However, this can also lead to increased database load due to a surge in connections. The rule base for scaling up and down sets the propagation scope to bidirectional (both upstream and downstream), the propagation speed to fast, because the impact of resource changes usually becomes apparent within seconds, and the propagation method to conditional propagation based on resource saturation. Propagation only continues when the resource utilization of downstream nodes exceeds a threshold.
[0058] Traffic scheduling changes, such as switching 10% of traffic to a new version via Istio VirtualService, have an impact highly dependent on the traffic percentage and version differences. The corresponding rules in the rule base will set the propagation scope to be limited to the scheduled service and its direct upstream and downstream, the propagation speed to fast, and the propagation method to be a probability propagation that decays according to the traffic percentage, that is, the risk index multiplied by the traffic percentage is used as the initial value for the next hop.
[0059] The existence of the rule base 6 has brought significant benefits. First, it transforms risk assessment from a "one-size-fits-all" approach to one that allows for refined control based on the specific nature of changes, greatly improving the accuracy and relevance of assessments. Second, through pre-set rules, operations personnel can solidify domain knowledge and operational experience into the system, enabling even novices unfamiliar with the system architecture to obtain professional assessment results. Third, the rule base supports dynamic updates and expansion; as business develops, new change types can be added or existing rules can be adjusted, ensuring the long-term availability of the system. Finally, the rule base complements the online learning module 5: the rule base provides initial prior knowledge, while the online learning module 5 continuously fine-tunes rule parameters based on actual feedback. The combination of these two allows the system to perform well during the cold start phase and continuously evolve during operation.
[0060] In some embodiments, the causal inference engine 4 employs a counterfactual reasoning method based on a structural causal model, where runtime topology data serves as the structural prior of the causal graph. This means that the nodes and edges of the causal graph are not generated out of thin air, but directly originate from the real-time call relationships between service instances collected by the distributed tracing system. This design fully leverages known system architecture knowledge in the operations and maintenance domain, ensuring that causal inference is built upon correct dependencies from the outset, rather than relying on purely statistical methods to learn the graph structure from scratch, thereby significantly improving the reliability and efficiency of the inference.
[0061] Taking a real-world microservice system as an example, suppose the system contains four components: a gateway, a user service, an order service, and a payment service. The call relationships recorded by the distributed tracing system are: the gateway calls the user service, the user service calls the order service, and the order service calls the payment service. The causal inference engine 4 directly uses this directed acyclic graph (DAG) as the skeleton of the structural causal model. When a configuration change to the order service goes live, and the payment service experiences a timeout, the engine first uses the causal graph to construct a structural equation. The metric for each node (such as response time) is represented as a function of the parent node's metric plus a noise term. Then, the engine performs counterfactual inference: it keeps all exogenous variables constant but removes the intervention (i.e., change) on the order service node, simulating the expected response time of the payment service if the change had not occurred. If the actual response time is significantly higher than the counterfactual prediction, and the difference is statistically significant, the engine determines that the anomaly in the payment service is caused by the change in the order service. Since the causal graph itself is the real call chain topology, this inference process is highly consistent with the intuition of operations personnel, and the results are highly interpretable.
[0062] Another example involves a more complex scenario with hidden confounding variables. For instance, a database expansion operation might cause increased latency in multiple downstream services simultaneously. Without a structural causal model, it's easy to mistakenly conclude that the database expansion caused all downstream problems. However, a structural causal model, based on runtime topology, can identify that the database expansion directly affects the database service itself, while the increased latency in downstream services might be an indirect effect of database connection pool exhaustion, or caused by other simultaneous changes (such as a traffic surge). By examining each path through counterfactual reasoning, the engine can accurately distinguish between direct causality and indirect correlation, avoiding wrongly accusing innocent changes.
[0063] The third example is in a service mesh environment where Istio's VirtualService traffic routing rules change. The cause-effect graph contains the call relationships between sidecar proxies. The engine uses a structural causal model to simulate system behavior under different traffic ratios, counterfactually predicting how the load distribution of each service would be if the old routing rules were maintained, thereby determining whether the new routing rules have caused overload on a particular service.
[0064] The benefits of this implementation are significant. First, using the runtime topology as the structural prior of the causal graph is equivalent to directly encoding the operations personnel's understanding of the system architecture into the causal inference model. This allows the model to make reasonable causal judgments even during data sparsity or cold start phases, greatly reducing reliance on large amounts of historical fault data. Second, because the causal graph is consistent with the actual call chain, the inferred causal relationships are naturally traceable. Operations personnel can trace the causal path step by step, enhancing the reliability and usability of the results. Third, the structural causal model supports intervention and counterfactual reasoning, answering the question "What if this change hadn't been made?"—something traditional correlation analysis cannot do—thus providing strong evidence for change rollback decisions. Finally, this method complements the context-aware propagation engine 3: the propagation engine predicts risk propagation paths based on graph theory algorithms, while the causal inference engine 4 verifies whether these paths actually led to the fault based on statistical causal theory. The combination of the two forms a complete closed loop from prediction to verification, significantly improving the scientific rigor and practicality of the entire change risk assessment system.
[0065] In some embodiments, resource control commands are either custom metric update commands for Kubernetes HorizontalPodAutoscaler or traffic weight adjustment commands for Istio VirtualService. Specifically, these commands correspond to the two most common automated control methods in cloud-native environments: horizontal elastic scaling and traffic governance. By directly translating risk assessment results into operational commands for these orchestration components, the system can achieve immediate mitigation of change risks without relying on manual intervention.
[0066] Taking Kubernetes HorizontalPodAutoscaler as an example, when the context-aware propagation engine 3 detects that the risk index of an affected node exceeds the safety threshold, it can generate a custom metric update instruction, injecting the node's risk index as a new metric into the HorizontalPodAutoscaler monitoring pipeline. HorizontalPodAutoscaler originally adjusted the number of Pod replicas based on CPU or memory utilization; now, with the addition of a "risk index" metric, when the risk index rises, HorizontalPodAutoscaler automatically scales up the number of Pods for that service, thereby distributing traffic pressure and reducing the probability of single points of failure. For example, after a code release, the risk index of the payment service spiked to 0.85, exceeding the threshold of 0.7. The system immediately sent a patch request to the Kubernetes API Server to update the HorizontalPodAutoscaler configuration corresponding to the payment service, adding a custom metric based on the risk index with a target value of 0.5. HorizontalPodAutoscaler then triggered a scaling operation, increasing the number of Pod replicas from 3 to 6, and the risk index subsequently dropped to 0.4, restoring system stability.
[0067] In another scenario, resource control commands utilize Istio VirtualService's traffic weight adjustment commands. When the risk index exceeds the limit, the system can dynamically adjust the proportion of traffic flowing to the high-risk version. For example, in a canary release, the traffic weight of the new version v2 was set to 10%, but after running for a period of time, the system detected that the risk index of the node where version v2 resided reached 0.9. The context-aware propagation engine 3 immediately issued an Istio VirtualService update command, adjusting the traffic weight of v2 from 10% to 0%, switching all traffic back to the stable version v1, and triggering an alarm to notify operations personnel. This completes the automatic rollback before the risk erupts, preventing the fault from spreading.
[0068] The third example combines two commands. When the system detects that the risk index of a core database service is too high, it expands the read replicas of the database using the HorizontalPodAutoscaler command, and temporarily switches some write traffic to the backup database cluster using the Istio VirtualService command, achieving dual protection of read / write separation and traffic migration.
[0069] This specific instruction implementation method brings significant benefits. First, it enables risk assessment results to directly drive the automated operation of the underlying infrastructure, forming a complete closed loop from "perception" to "action," completely eliminating reliance on manual intervention. Second, Kubernetes HorizontalPodAutoscaler and IstioVirtualService are standardized components widely adopted in the cloud-native ecosystem. Interfacing with them means this system can be seamlessly integrated into existing container orchestration and service mesh environments without introducing additional orchestration engines or proxies, reducing deployment complexity and maintenance costs. Third, the custom metric update instruction allows HorizontalPodAutoscaler to utilize the risk index as a new metric for elastic scaling, compensating for the shortcomings of traditional reliance solely on CPU / memory metrics, making scaling decisions more intelligent and forward-looking. Finally, the traffic weight adjustment instruction provides a faster emergency measure than scaling, completing traffic switching within seconds, particularly suitable for handling sudden high-risk changes, minimizing the impact of failures on users. Through these specific instructions, the entire change risk assessment system has moved from a theoretical model to a production-ready engineering practice.
[0070] It should be noted that the order of the above embodiments of the present invention is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. Furthermore, the above description focuses on specific embodiments of this specification. Additionally, the processes depicted in the accompanying drawings do not necessarily require a specific or sequential order to achieve the desired results. In some embodiments, multitasking and parallel processing are possible or may be advantageous.
[0071] The various embodiments in this specification are described in a progressive manner. The same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on describing the differences from other embodiments.
[0072] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A change risk assessment system based on an impact propagation algorithm, characterized in that, include: The influence propagation model construction module (2) is configured to obtain the runtime topology data and dynamic performance indicators of the target IT system, and construct a dynamically weighted directed graph model, in which nodes represent system entities and the weights of edges are updated in real time according to the dynamic performance indicators. The change event receiving and analysis module (1) is configured to receive change events and parse the attribute information of the change events, wherein the attribute information includes at least the change type and the change object; The context-aware propagation engine (3), connected to the influence propagation model construction module (2) and the change event receiving and analysis module (1), is configured to determine the corresponding propagation rules according to the change type, and to execute the influence propagation algorithm in the dynamically weighted directed graph model based on the propagation rules and the weight of the edges, starting from the change object, to calculate the risk index of each affected node, and to generate and issue resource control instructions to the orchestration controller of the target IT system when the risk index of any affected node exceeds the safety threshold.
2. The system according to claim 1, characterized in that, It also includes a causal inference engine (4), which is configured to obtain a snapshot of the system state before and after the change event from the influence propagation model construction module (2), construct a counterfactual scenario in which the change event has not occurred and predict the system state under the counterfactual scenario, determine whether the system anomaly is caused by the change event by comparing the actual system state with the predicted system state under the counterfactual scenario, and identify the node where the system anomaly occurs.
3. The system according to claim 2, characterized in that, The causal inference engine (4) is also configured to generate the most likely fault propagation path from the changed object to the abnormal node when it is determined that the anomaly is caused by the change event, by combining the affected node and its risk index output by the context-aware propagation engine (3).
4. The system according to claim 1, characterized in that, It also includes an online learning module (5), which is configured to collect the execution results of each change event from the context-aware propagation engine (3) and use the execution results as a feedback signal to use a reinforcement learning algorithm to adjust online at least one of the weights of the edges in the dynamically weighted directed graph model and the preset risk decay threshold and propagation depth limit used when executing the influence propagation algorithm.
5. The system according to claim 1, characterized in that, The context-aware propagation engine (3) is also configured to prune the propagation path of the influence propagation algorithm according to a preset risk attenuation threshold and propagation depth limit when executing the influence propagation algorithm.
6. The system according to claim 3, characterized in that, The influence propagation model construction module (2) is configured to obtain the runtime topology data from the distributed link tracing system and the dynamic performance metrics from the container orchestration platform. The runtime topology data includes the real-time call relationship and call latency between each service instance, and the dynamic performance metrics include CPU utilization, memory usage and network I / O wait rate.
7. The system according to claim 6, characterized in that, The weight of the edge is calculated using a preset mapping function based on the call latency and the degree of abnormality of the dynamic performance index. The input of the mapping function is the call latency and the dynamic performance index, and the output is the weight of the edge.
8. The system according to claim 1, characterized in that, The context-aware propagation engine (3) is also configured to access the propagation rule base (6), which contains multiple rules. Each rule defines the scope, speed and method of propagation of a specific change type. The change types include configuration modification, code release, scaling up and down operations and traffic scheduling.
9. The system according to claim 6, characterized in that, The causal inference engine (4) adopts a counterfactual reasoning method based on a structural causal model, wherein the structural causal model uses the runtime topology data as the structural prior of the causal graph.
10. The system according to claim 1, characterized in that, The resource control commands are either custom metric update commands for Kubernetes HorizontalPodAutoscaler or traffic weight adjustment commands for Istio VirtualService.
