Abnormal root cause positioning method and device, terminal equipment and storage medium
By using component dependency graphs and multi-dimensional root cause analysis, the root cause of application failures can be automatically located, solving the problem of slow location in traditional operation and maintenance methods, and improving operation and maintenance efficiency and fault recovery speed.
Patent Information
- Application Number
- CN202311282757.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-09-28
AI Technical Summary
Traditional manual operation and maintenance methods cannot quickly locate the root cause of application failures in complex service dependencies, resulting in failures not being recovered in a timely manner, or even triggering a cascading failure.
Based on a pre-defined component dependency graph, the associated components under the abnormal service are identified, and the root cause of the abnormal service is automatically located through multi-dimensional root cause analysis, including logical root cause and deployment root cause.
It improves the operational efficiency of applications, ensures that faults can be quickly located and recovered, and avoids the occurrence of cascading failures.
Smart Images

Figure CN117389774B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of computer technology, and in particular relates to an anomaly root cause localization method, apparatus, terminal device and storage medium. Background Technology
[0002] Currently, with applications moving to the cloud, a large number of services need to be called during the operation of the application. Moreover, the services include multiple service components, and each service component defines multiple performance metrics. This makes the relationships between services, components, and performance metrics increasingly complex.
[0003] However, when faced with complex service dependencies, traditional manual operation and maintenance methods can only detect service failures and limit themselves to the object that failed based on the fault information. They cannot quickly locate the root cause of the failure in complex service dependencies, which may lead to the failure of the service not being restored in time or even cause a cascading failure.
[0004] In summary, how to provide a root cause localization solution for anomalies to improve the operational efficiency of applications has become a pressing technical problem in the field of computer technology. Summary of the Invention
[0005] The main objective of this application is to provide a method, apparatus, terminal device, and storage medium for troubleshooting root causes. The aim is to provide a troubleshooting root cause analysis scheme to improve the operational efficiency of application programs.
[0006] To achieve the above objectives, this application provides a method for locating the root cause of anomalies, the method comprising:
[0007] Based on the pre-defined component dependency graph, the associated components that have dependencies on the abnormal components under the abnormal service are identified.
[0008] The logical root cause of the abnormal service is determined based on the first abnormal indicators under the abnormal component and the associated component.
[0009] The root cause of the abnormal service is determined based on the second abnormal indicators under the deployment terminal where the abnormal component and the associated component are located.
[0010] Optionally, the step of determining the associated components that have dependencies on the abnormal components under the abnormal service based on the same-service component dependencies and cross-service component dependencies in a preset component dependency graph includes:
[0011] Based on the pre-defined component dependency graph, service components that have a direct parent-child relationship or a recursive parent-child relationship with abnormal components under abnormal services and are located downstream of the abnormal components in the component dependency graph are identified.
[0012] The service component is identified as an associated component that has a dependency relationship with the abnormal component.
[0013] Optionally, the step of determining the logical root cause of the abnormal service based on the first abnormal indicators under the abnormal component and the associated component includes:
[0014] Obtain the first abnormal indicators under the abnormal component and the associated component;
[0015] The target anomaly type is determined based on the anomaly components and the preset anomaly dependencies;
[0016] Identify each third abnormal indicator among the first abnormal indicators whose abnormality type is the target abnormality type;
[0017] The first target anomaly indicator is determined from each of the third anomaly indicators;
[0018] The first target anomaly indicator and the preset first performance indicator are determined as the logical root cause of the anomaly service, wherein the first performance indicator is the first anomaly indicator associated with the running state of the component under the anomaly component and the associated component.
[0019] Optionally, the step of determining the target exception type based on the exception component and the preset exception dependency relationship includes:
[0020] Obtain abnormal performance indicators under the abnormal component;
[0021] The first anomaly type of the abnormal performance index is determined based on preset index rules;
[0022] The target exception type corresponding to the first exception type is determined based on the first exception type and the preset exception dependency relationship.
[0023] Optionally, the step of determining the deployment root cause of the abnormal service based on the second abnormal indicators under the deployment terminal where the abnormal component and the associated component are located includes:
[0024] Obtain the second abnormal indicators of the deployment terminal where the abnormal component and the associated component are located;
[0025] Identify each fourth abnormal indicator among the second abnormal indicators whose abnormality type is the target abnormality type;
[0026] Determine the second target anomaly indicator from each of the aforementioned fourth anomaly indicators;
[0027] The second target anomaly indicator and the preset second performance indicator under the associated component are determined as the deployment root cause of the anomaly service, wherein the second performance indicator is the second anomaly indicator associated with the running status of the deployment terminal under the deployment terminal.
[0028] Optionally, the step of determining the first target anomaly indicator from each of the third anomaly indicators includes:
[0029] Based on the preset first indicator dependency graph corresponding to the abnormal component and the associated component, the first position of each of the third abnormal indicators in the first indicator dependency graph is determined.
[0030] The third abnormal indicator corresponding to the lowest position in each of the first positions is determined as the first target abnormal indicator;
[0031] The step of determining the second target anomaly indicator from each of the fourth anomaly indicators includes:
[0032] Based on the preset second indicator dependency graph corresponding to the deployment terminal, determine the second position of each of the fourth abnormal indicators in the second indicator dependency graph;
[0033] The fourth abnormal indicator corresponding to the lowest position in each of the second positions is determined as the second target abnormal indicator.
[0034] Optionally, after the step of determining the deployment root cause of the abnormal service based on each second anomaly indicator under the deployment terminal where the abnormal component and the associated component are located, the method further includes:
[0035] When the associated component is a service component under the database service, detect whether a fifth abnormal indicator of the abnormal type of the target abnormal type appears under the associated component and / or the deployment terminal. The fifth abnormal indicator is any performance indicator under the associated component other than each of the third abnormal indicators, and / or any performance indicator under the deployment terminal other than each of the fourth abnormal indicators.
[0036] If the fifth abnormal indicator is detected in the associated component and / or the deployment terminal, the logical root cause and / or the deployment root cause are updated based on the fifth abnormal indicator.
[0037] Furthermore, to achieve the above objectives, this application also provides an anomaly root cause localization device, the anomaly root cause localization device comprising:
[0038] The association module is used to determine the associated components that have dependencies on the abnormal components under the abnormal service, based on the same service component dependency relationship and cross service component dependency relationship in the preset component dependency graph;
[0039] The first root cause module is used to determine the logical root cause of the abnormal service based on the first abnormal indicators under the abnormal component and the associated component.
[0040] The second root cause module is used to determine the deployment root cause of the abnormal service based on each second abnormal indicator under the deployment terminal where the abnormal component and the associated component are located.
[0041] In addition, to achieve the above objectives, this application also provides a terminal device, the terminal device comprising: a memory, a processor, and an anomaly root cause localization program stored in the memory and executable on the processor, wherein the anomaly root cause localization program of the terminal device, when executed by the processor, implements the steps of the anomaly root cause localization method as described above.
[0042] In addition, to achieve the above objectives, this application also provides a computer-readable storage medium storing an anomaly root cause localization program, which, when executed by a processor, implements the steps of the anomaly root cause localization method as described above.
[0043] This application provides an anomaly root cause localization method, apparatus, terminal device, and computer-readable storage medium. The method determines associated components that have dependencies on the abnormal component under the abnormal service based on the same-service component dependency relationship and cross-service component dependency relationship in a preset component dependency graph; determines the logical root cause of the abnormal service based on each first anomaly indicator under the abnormal component and the associated component; and determines the deployment root cause of the abnormal service based on each second anomaly indicator under the deployment terminal where the abnormal component and the associated component are located.
[0044] This application obtains a pre-defined component dependency graph, which includes component dependencies within the same service and component dependencies across services. Based on this component dependency graph, it identifies associated components that depend on the abnormal component under the abnormal service. It then determines the logical root cause of the abnormal service based on first anomaly indicators of the abnormal component and associated components, and determines the deployment root cause of the abnormal service based on second anomaly indicators of the deployment terminals where the abnormal component and associated components reside. Thus, compared to traditional manual methods for locating service anomalies, this application automatically identifies associated components affecting the abnormal component based on a pre-defined component dependency graph under the service, and combines multi-dimensional root cause analysis to ensure the accuracy of root cause location, thereby improving the operational efficiency of the application. Attached Figure Description
[0045] Figure 1 This is a schematic diagram of the hardware operating environment of the terminal device involved in the embodiments of this application;
[0046] Figure 2 This is a flowchart illustrating the steps of the first embodiment of the abnormal root cause localization method of this application;
[0047] Figure 3 This is a schematic diagram illustrating service component dependencies in an embodiment of the anomaly root cause localization method of this application.
[0048] Figure 4 This is a schematic diagram illustrating the component metric dependencies involved in an embodiment of the abnormal root cause localization method of this application;
[0049] Figure 5 This is a schematic diagram illustrating the deployment terminal metric dependency in an embodiment of the abnormal root cause localization method of this application;
[0050] Figure 6 This is a schematic diagram of the functional modules of an embodiment of the abnormal root cause localization device of this application.
[0051] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0052] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.
[0053] Reference Figure 1 , Figure 1 This is a schematic diagram of the hardware operating environment of the terminal device involved in the embodiments of this application.
[0054] The terminal device in this application embodiment can be a terminal device applied in the field of computer technology. Specifically, the terminal device can be a smartphone, PC (Personal Computer), tablet computer, portable computer, etc.
[0055] like Figure 1As shown, the terminal device may include: a processor 1001, such as a CPU; a communication bus 1002; a user interface 1003; a network interface 1004; and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen and an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be high-speed RAM or non-volatile memory, such as a disk drive. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0056] Those skilled in the art will understand that Figure 1 The terminal device structure shown does not constitute a limitation on the terminal device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0057] like Figure 1 As shown, the memory 1005, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and an anomaly root cause localization program.
[0058] exist Figure 1 In the terminal shown, network interface 1004 is mainly used to connect to the backend server and communicate with it; user interface 1003 is mainly used to connect to the client and communicate with it; and processor 1001 can be used to call the exception root cause localization program stored in memory 1005 and perform the following operations:
[0059] Based on the pre-defined component dependency graph, the associated components that have dependencies on the abnormal components under the abnormal service are identified.
[0060] The logical root cause of the abnormal service is determined based on the first abnormal indicators under the abnormal component and the associated component.
[0061] The root cause of the abnormal service is determined based on the second abnormal indicators under the deployment terminal where the abnormal component and the associated component are located.
[0062] Optionally, the processor 1001 can also be used to call the exception root cause locator stored in the memory 1005 and perform the following operations:
[0063] Based on the pre-defined component dependency graph, service components that have a direct parent-child relationship or a recursive parent-child relationship with abnormal components under abnormal services and are located downstream of the abnormal components in the component dependency graph are identified.
[0064] The service component is identified as an associated component that has a dependency relationship with the abnormal component.
[0065] Optionally, the processor 1001 can also be used to call the exception root cause locator stored in the memory 1005 and perform the following operations:
[0066] Obtain the first abnormal indicators under the abnormal component and the associated component;
[0067] The target anomaly type is determined based on the anomaly components and the preset anomaly dependencies;
[0068] Identify each third abnormal indicator among the first abnormal indicators whose abnormality type is the target abnormality type;
[0069] The first target anomaly indicator is determined from each of the third anomaly indicators;
[0070] The first target anomaly indicator and the preset first performance indicator are determined as the logical root cause of the anomaly service, wherein the first performance indicator is the first anomaly indicator associated with the running state of the component under the anomaly component and the associated component.
[0071] Optionally, the processor 1001 can also be used to call the exception root cause locator stored in the memory 1005 and perform the following operations:
[0072] Obtain abnormal performance indicators under the abnormal component;
[0073] The first anomaly type of the abnormal performance index is determined based on preset index rules;
[0074] The target exception type corresponding to the first exception type is determined based on the first exception type and the preset exception dependency relationship.
[0075] Optionally, the processor 1001 can also be used to call the exception root cause locator stored in the memory 1005 and perform the following operations:
[0076] Obtain the second abnormal indicators of the deployment terminal where the abnormal component and the associated component are located;
[0077] Identify each fourth abnormal indicator among the second abnormal indicators whose abnormality type is the target abnormality type;
[0078] Determine the second target anomaly indicator from each of the aforementioned fourth anomaly indicators;
[0079] The second target anomaly indicator and the preset second performance indicator under the associated component are determined as the deployment root cause of the anomaly service, wherein the second performance indicator is the second anomaly indicator associated with the running status of the deployment terminal under the deployment terminal.
[0080] Optionally, the processor 1001 can also be used to call the exception root cause locator stored in the memory 1005 and perform the following operations:
[0081] Based on the preset first indicator dependency graph corresponding to the abnormal component and the associated component, the first position of each of the third abnormal indicators in the first indicator dependency graph is determined.
[0082] The third abnormal indicator corresponding to the lowest position in each of the first positions is determined as the first target abnormal indicator;
[0083] The step of determining the second target anomaly indicator from each of the fourth anomaly indicators includes:
[0084] Based on the preset second indicator dependency graph corresponding to the deployment terminal, determine the second position of each of the fourth abnormal indicators in the second indicator dependency graph;
[0085] The fourth abnormal indicator corresponding to the lowest position in each of the second positions is determined as the second target abnormal indicator.
[0086] Optionally, the processor 1001 can also be used to call the anomaly root cause localization program stored in the memory 1005, and after the step of determining the deployment root cause of the anomaly service based on each second anomaly indicator under the deployment terminal where the anomaly component and the associated component are located, perform the following operations:
[0087] When the associated component is a service component under the database service, detect whether a fifth abnormal indicator of the abnormal type of the target abnormal type appears under the associated component and / or the deployment terminal. The fifth abnormal indicator is any performance indicator under the associated component other than each of the third abnormal indicators, and / or any performance indicator under the deployment terminal other than each of the fourth abnormal indicators.
[0088] If the fifth abnormal indicator is detected in the associated component and / or the deployment terminal, the logical root cause and / or the deployment root cause are updated based on the fifth abnormal indicator.
[0089] Based on the aforementioned terminal devices, various embodiments of the abnormal root cause localization method of this application are proposed.
[0090] Please refer to Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the anomaly root cause localization method of this application. It should be noted that although the logical order is shown in the flowchart, in some cases, the anomaly root cause localization method of this application may of course execute the steps shown or described in a different order than that shown here.
[0091] In a first embodiment of the root cause localization method of this application, the root cause localization method includes:
[0092] Step S10: Based on the pre-defined component dependency graph, determine the associated components that have dependencies on the abnormal components under the abnormal service.
[0093] In this embodiment, the terminal device obtains a preset component dependency graph, which includes component dependencies within the same service and component dependencies across services. Based on the component dependency graph, it determines the associated components that have dependencies on abnormal components in abnormal services.
[0094] In one feasible implementation, this application pre-configures a component model. This component model is used to define a general component model for the application and related services, configure the relationship between components and metrics, and the logical and deployment dependencies between components. It includes three modules: `component_define` (component definition module), `component_depend` (component dependency module), and `component_deploy` (component deployment module). The component definition module mainly includes service type, service subclass, component ID, and component sequence number, such as... Figure 3As shown in the diagram, the service component dependency is illustrated. `db` (Database) indicates that the current service type is a database service; `oracle` is a subclass of the current service, and can also contain other subclasses, such as `mysql`. Under each subclass are components: `pdb` (Program Database File), `cdb` (Configuration Database), and `cluster`. Component numbers can be assigned to each component; specifically, the component number of `pdb` is 0, the component number of `cdb` is 1, and the component number of `cluster` is 2, indicating the dependency relationship between components, i.e., `pdb` depends on `cdb`, and `cdb` depends on `cluster`. The component definition module only defines component dependencies within the same service. For cross-service component dependencies, a separate component dependency module is needed. The component dependency module mainly contains the component ID and the ID of the dependent component. For example, the `api` (Application Programming Interface) component depends on the `pdb` component under the `db` service, and this can be defined in the component dependency module. The component deployment module mainly defines the deployment relationships of each component and the deployment space where each component resides.
[0095] Therefore, in order to describe service components and the dependencies between them, this application proposes a component model. Through component definition, component dependencies, and component deployment and construction, the relationships between service components are made clear, which helps in subsequent root cause analysis and determination of the scope of impact.
[0096] In another feasible implementation, this application defines a general metric model for the application and the different services it depends on. This metric model is used to express the dependencies between metrics within the application and between the application and related services. The metric model mainly includes a directory (the service directory defined by each component), a sequence number (if it is a directory, it indicates the order between subdirectories, with directories with larger sequence numbers influencing directories with smaller sequence numbers; if it is a metric, it indicates the order between metrics within the same directory), a parent directory (a hyphen indicates the root directory; for metrics, this field indicates the directory where the metric is located), and a metric name (the metric of the component). For example, the metric model defined under an application is shown in the table below:
[0097] Table of contents Parent directory Indicator Name Serial Number app - - 0 JDBC app dbConnectionUsed 1 jvm app jvmCpuUseRate 2
[0098] The app's root directory contains two subdirectories: jdbc (Java Database Connectivity) and jvm (Java Virtual Machine). The jdbc subdirectory defines the dbConnectionUsed metric, and the jvm subdirectory defines the jvmCpuUseRate metric. An abnormal jvmCpuUseRate metric will cause the dbConnectionUsed metric to become abnormal.
[0099] It should be noted that after determining the dependencies between components in the current service, pre-built files such as component dependency graphs or data tables can be generated based on these dependencies. It should be understood that, based on different design needs of actual applications and in different feasible implementation methods, the anomaly root cause localization method of this application does not limit the form of the component dependency relationship. Similarly, after determining the dependencies between indicators in the current service, pre-built files such as component dependency graphs or data tables can also be generated based on these dependencies; the anomaly root cause localization method of this application does not limit the form of the indicator dependency relationship.
[0100] For example, the terminal device obtains performance metrics for each component under the current service and performs anomaly determination for each performance metric. Specifically, the preset metric rules support fixed time windows, sliding time windows, fixed thresholds, and dynamic baseline rules, and support various metric calculation operations such as avg, sum, max, and min. Furthermore, it categorizes anomalies into different types based on their severity, such as technical availability anomalies, response latency anomalies, resource saturation anomalies, and business availability anomalies. The fixed threshold determination method involves obtaining the response time of the current component when processing a user request. If the response time exceeds a preset threshold, the performance metric representing the request response time is determined to be abnormal, and the anomaly type is identified as response latency anomaly. Moreover, based on the magnitude of the response time exceeding the preset threshold, each performance metric can be divided into different anomaly levels; that is, different metrics of the same anomaly type may have different anomaly levels.
[0101] Therefore, in order to describe the relationship between indicators and the relationship between the components that the indicators depend on, this application proposes an indicator model. By defining the indicator model, the underlying indicators and the service components that the indicators depend on can be quickly located when making anomaly judgments.
[0102] Furthermore, in a feasible embodiment, step S10 above may include:
[0103] Step S101: Based on the pre-defined component dependency graph, determine the service component that has a direct parent-child relationship or a recursive parent-child relationship with the abnormal component under the abnormal service, and is located downstream of the abnormal component in the component dependency graph.
[0104] Step S102: The service component is identified as an associated component that has a dependency relationship with the abnormal component.
[0105] In this embodiment, the terminal device determines, based on the same service component dependency relationship and cross service component dependency relationship in the preset component dependency graph, a service component that has a direct parent-child relationship or a recursive parent-child relationship with the abnormal component under the current abnormal service and is located downstream of the abnormal component in the component dependency graph. Such a service component is determined as an associated component that has a dependency relationship with the current abnormal component.
[0106] In one feasible implementation, this application can, based on a given object, where the object is a specific component, search for internal dependencies affecting that object. For example, if pdb1 has a performance problem, find which objects pdb1 is associated with. Analyze associated objects according to internal logical dependencies. Objects associated with the current object satisfy any of the following conditions: 1) A direct parent-child relationship with the current object: find objects with a parent-child relationship using the current object in `component_define`, and the components to which these objects belong are ordered after the components to which the current object belongs; 2) A recursive parent-child relationship with the current object: take all objects found in the first step as the current object, recursively execute the previous step, and each search only includes objects to which the components to which the current object belong are ordered; 3) A non-parent-child relationship with the current object: when the given object is not of type admin (non-management component), find all admin type objects contained in the current service subclass (note that duplicates are removed from the objects already found in the above search). This application can also determine associated components with cross-service relationships to the current object according to the cross-service component dependencies defined in `component_depend`, i.e., the associated components are not in the service where the current component resides. In addition, this application can also analyze associated objects according to deployment dependencies. Specifically, it analyzes associated objects according to internal logical dependencies. These objects can be found in component_deploy with deployment IP and deployment_namespace. According to IP and deployment_namespace, two records can be found in component_deploy, and the relationship between the component and the VM (virtual machine) can be found through IP.
[0107] Step S20: Determine the logical root cause of the abnormal service based on the first abnormal indicators under the abnormal component and the associated component;
[0108] In this embodiment, the terminal device determines the logical root cause of the abnormal service based on the abnormal components and the abnormal performance indicators under the associated components (hereinafter referred to as the first abnormal indicator for distinction).
[0109] In one feasible implementation, the internal logical root cause causing the abnormal component to malfunction is determined based on the abnormal performance indicators of the abnormal component and the related components under the same service, as well as the performance indicators with root cause flags and root cause flags set to true; the external logical root cause causing the abnormal component to malfunction is determined based on the abnormal performance indicators of the related components under the cross-service and the performance indicators with root cause flags and root cause flags set to true.
[0110] Furthermore, in a feasible embodiment, step S20 above may include:
[0111] Step S201: Obtain the first abnormal indicators under the abnormal component and the associated component;
[0112] In this embodiment, the terminal device acquires the first abnormal indicators under the abnormal component and the associated component.
[0113] In one feasible implementation, it is assumed that the current abnormal component is the API component, and the related components that have a dependency relationship with the API component include the APP component under the same service and the pdb component under a different service. The terminal device obtains the abnormal indicators of the API component, the APP component and the pdb component respectively.
[0114] Step S202: Determine the target anomaly type based on the anomaly component and the preset anomaly dependency relationship;
[0115] In this embodiment, the terminal device determines the target anomaly type based on the abnormal component and the preset anomaly dependency relationship.
[0116] Furthermore, in a feasible embodiment, step S202 above may include:
[0117] Step A10: Obtain the abnormal performance indicators under the abnormal component;
[0118] In this embodiment, the terminal device obtains abnormal performance indicators under the current abnormal component.
[0119] In one feasible implementation, the terminal device obtains performance metrics from service components under the application service, determines whether the performance metrics are abnormal based on preset calculation rules, and when the performance metrics are determined to be abnormal, determines the abnormality type of the abnormal metric based on preset metric rules, and uses the abnormality type as the abnormality type of the service component where the abnormal metric resides based on preset abnormality dependencies. The preset abnormality dependencies are shown in the table below:
[0120] Superior exception type Lower-level exception types Technology availability Technical availability, response latency Response delay Response delay Saturation Response delay Business Availability Business Availability
[0121] It should be noted that, within the same service subclass, the component with the earlier sequence number (i.e., the parent component) is affected by the component with the later sequence number (i.e., the child component); for the same component, for different directories, the service directory with the earlier sequence number is affected by the service directory with the later sequence number; for the same component, for the same directory, for different metrics, the performance metric with the earlier sequence number is affected by the performance metric with the later sequence number.
[0122] Step A20: Determine the first anomaly type of the abnormal performance index based on preset index rules;
[0123] In this embodiment, the terminal device determines the abnormal type of the abnormal performance index (hereinafter referred to as the first abnormal type for distinction) based on preset index rules.
[0124] In one feasible implementation, assuming that the anomaly type of the performance metric under the API component is response latency anomaly and technical availability anomaly, then the API component is determined to be an anomaly, and the anomaly type of the API component is response latency anomaly and technical availability anomaly.
[0125] Step A30: Determine the target exception type corresponding to the first exception type based on the first exception type and the preset exception dependency relationship.
[0126] In this embodiment, the terminal device determines the target anomaly type corresponding to the first anomaly type based on the first anomaly type of the abnormal performance index and the preset anomaly dependency relationship.
[0127] In one feasible implementation, based on the exception types of the aforementioned API components and the aforementioned preset exception dependencies, the lower-level exception type causing the API component to experience a response latency exception is determined to be a response latency exception, and the lower-level exception type causing the API component to experience a technical availability exception is determined to be either a technical availability exception or a response latency exception. Thus, the aforementioned target exception types are response latency exception and technical availability exception.
[0128] Step S203: Determine each third abnormal indicator whose abnormality type is the target abnormality type among the first abnormal indicators;
[0129] In this embodiment, the terminal device determines each of the first abnormal indicators whose abnormal type is the target abnormal type (hereinafter referred to as the third abnormal indicator for distinction).
[0130] In one feasible implementation, the terminal device detects that indicator 1 under the API component is an abnormal response latency, and indicator 2 is also an abnormal technical availability. That is, the abnormality types of the API component include abnormal response latency and abnormal technical availability. The terminal device detects that indicator 3 under the APP component is an abnormal response latency, and indicators 4 and 5 under the pdb component are both abnormal technical availability. In other words, the aforementioned third abnormality indicators include indicators 1, 2, 3, 4, and 5.
[0131] Step S204: Determine the first target abnormal indicator from each of the third abnormal indicators;
[0132] In this embodiment, the terminal device determines the first target abnormal indicator from each of the third abnormal indicators.
[0133] Furthermore, in a feasible embodiment, step S204 above may include:
[0134] Step B10: Based on the preset first indicator dependency graph corresponding to the abnormal component and the associated component, determine the first position of each of the third abnormal indicators in the first indicator dependency graph.
[0135] In this embodiment, the terminal device determines the position of each third abnormal indicator in the first indicator dependency graph (hereinafter referred to as the first position) based on the preset indicator dependency graph corresponding to the abnormal component and the associated component.
[0136] In one feasible implementation, such as Figure 4 As shown in the diagram, the API component depends on the APP component within the same service, the APP component depends on the PDB component across services, and metric 1 depends on metric 2, and metric 4 depends on metric 5. In other words, metric 1 is above metric 2, metric 2 is above metric 3, metric 3 is above metric 4, and metric 4 is above metric 5.
[0137] Step B20: Determine the third abnormal indicator corresponding to the lowest position in each of the first positions as the first target abnormal indicator;
[0138] In this embodiment, the terminal device determines the third abnormal indicator corresponding to the lowest layer position among the first positions as the first target abnormal indicator.
[0139] In one feasible implementation, the terminal device determines, based on each first location, that under the service where the API component resides, indicator 3 is the lowest-level indicator among indicators of response latency anomaly, and indicator 2 is the lowest-level indicator among indicators of technical availability anomaly. The terminal device also determines, based on each first location, under the service where the PDB component resides, that indicator 5 is the lowest-level indicator among indicators of technical availability anomaly. Therefore, the aforementioned first target anomaly indicators are indicators 2, 3, and 5, and indicators 2 and 3 belong to the internal logical root cause of the current anomaly component, while indicator 5 belongs to the external logical root cause of the current anomaly component. It is worth emphasizing that if the API component, APP component, and associated PDB component all experience anomalies, then the lowest-level associated anomaly indicator under the API component and APP component (i.e., the aforementioned third anomaly indicator) is determined as the internal logical root cause. Since the APP is located below the API, the lowest-level anomaly indicator in the APP is used to cover the lowest-level associated anomaly indicator in the API component. In other words, the final determined internal logical root cause is the lowest-level associated anomaly indicator under the APP component, while the associated anomaly indicator under the PDB component is the external logical root cause.
[0140] Step S205: Determine the first target anomaly indicator and the preset first performance indicator as the logical root cause of the anomaly service, wherein the first performance indicator is the first anomaly indicator associated with the component's running state under the anomaly component and the associated component.
[0141] In this embodiment, the terminal device determines the performance index (hereinafter referred to as the first performance index for distinction) that is associated with the component running status of the abnormal component and the associated component among the first abnormal indicators, and uses the first target abnormal indicator and the first performance index as the logical root cause of the current abnormal service.
[0142] It should be noted that, based on experience and experiments, the current application's operations and maintenance personnel have determined that performance metrics related to the operation of each component are used to identify the root cause of anomalies. The root cause flag carried by such performance metrics is marked as true, i.e., the aforementioned first performance metric. When a component is abnormal, the first performance metric of the current abnormal component and the related components that have a dependency relationship with the current abnormal component are obtained as the root cause of the anomaly.
[0143] In one feasible implementation, the terminal device searches for the root cause within its internal logical dependencies based on a given exception object and its exception type; for example, if pdb1 experiences a performance problem, the root cause is searched within Oracle. The search is performed within the current object: based on the current object ID and its exception type, the system checks the metric directory of the component corresponding to the current object to see if there are any related exceptions in the sibling directories or lower-level directories. If so, the lowest-level metric is recorded. The system then analyzes related objects according to their internal logical dependencies, searching for the lowest-level related exception type metrics in the root directory of the components corresponding to these objects, as described in the previous step. Root cause confirmation: if a metric found in the above steps has a root cause flag of true, it is considered a found root cause, and the search continues for deeper-level metrics with exception dependencies until the lowest level is found. If found, it is considered another root cause for a certain exception type of the current service subclass.
[0144] Step S30: Determine the deployment root cause of the abnormal service based on the second abnormal indicators under the deployment terminal where the abnormal component and the associated component are located.
[0145] In this embodiment, the terminal device determines the deployment terminal where the abnormal component and associated component are located, and determines the deployment root cause of the current abnormal service based on the various abnormal indicators under the deployment terminal (hereinafter referred to as the second abnormal indicator for distinction).
[0146] In one feasible implementation, if a dependent component that is dependent on the abnormal component is under the same service as the abnormal component, then the deployment terminal of the abnormal component and the dependent component is the same machine terminal; if a dependent component that is dependent on the abnormal component is not under the same service as the abnormal component, then the deployment terminals of the abnormal component and the dependent component are multiple machine terminals. It should be noted that the aforementioned deployment terminal can be a deployment space used for deploying application services, such as a container or a virtual machine. For example, based on the abnormal performance indicators under the deployment terminal where the abnormal component is located and the performance indicators with root cause flags and root cause flags set to true, the internal deployment root cause causing the abnormal component's abnormality is determined; based on the abnormal performance indicators under the deployment terminal where a dependent component, which is not under the same service as the current abnormal component, is located and the performance indicators with root cause flags and root cause flags set to true, the external deployment root cause causing the abnormal component's abnormality is determined.
[0147] Furthermore, in a feasible embodiment, step S30 above may include:
[0148] Step S301: Obtain the second abnormal indicators under the deployment terminal where the abnormal component and the associated component are located;
[0149] In this embodiment, the terminal device obtains the second abnormal indicators of the abnormal component and the associated component under the deployment terminal.
[0150] In one feasible implementation, the deployment terminal where the API component is located is the first terminal, and the deployment terminal where the pdb component, which the API component indirectly depends on, is located is the second terminal. The terminal devices obtain abnormal performance indicators under the first terminal and the second terminal respectively.
[0151] Step S302: Determine each fourth abnormal indicator among the second abnormal indicators whose abnormality type is the target abnormality type;
[0152] In this embodiment, the terminal device determines each of the second abnormal indicators whose abnormal type is the target abnormal type (hereinafter referred to as the fourth abnormal indicator for distinction).
[0153] In one feasible implementation, the terminal device determines the indicators of technical availability anomaly under the first terminal as indicators A and indicators B, and determines the indicators of response delay anomaly under the second terminal as indicators C and indicators D.
[0154] Step S303: Determine the second target abnormal indicator from each of the fourth abnormal indicators;
[0155] In this embodiment, the terminal device determines the second target abnormal indicator from each of the fourth abnormal indicators.
[0156] Furthermore, in a feasible embodiment, step S303 above may include:
[0157] Step B30: Based on the preset second indicator dependency graph corresponding to the deployment terminal, determine the second position of each of the fourth abnormal indicators in the second indicator dependency graph;
[0158] In this embodiment, the terminal device determines the position of each fourth abnormal indicator in the second indicator dependency graph (hereinafter referred to as the second position) based on the preset indicator dependency graph corresponding to the deployment terminal.
[0159] In one feasible implementation, such as Figure 5 As shown in the diagram, the deployment terminal metrics depend on each other. The first terminal and the second terminal are independent of each other. Metric A under the first terminal depends on metric B, and metric C under the second terminal depends on metric D.
[0160] Step B40: The fourth abnormal indicator corresponding to the lowest position in each of the second positions is determined as the second target abnormal indicator.
[0161] In this embodiment, the terminal device determines the fourth abnormal indicator corresponding to the lowest position in each second position as the second target abnormal indicator.
[0162] In one feasible implementation, the terminal device determines, based on each second location, that in the first terminal, indicator B is the lowest-level indicator among indicators with anomaly type of technical availability anomaly; and in the second terminal, based on each second location, indicator D is the lowest-level indicator among indicators with anomaly type of response delay anomaly.
[0163] Step S304: Determine the second target anomaly indicator and the preset second performance indicator under the associated component as the deployment root cause of the anomaly service, wherein the second performance indicator is the second anomaly indicator associated with the running status of the deployment terminal under the deployment terminal.
[0164] In this embodiment, the terminal device determines the performance index (hereinafter referred to as the second performance index for distinction) associated with the running status of the deployment terminal where the abnormal component and the associated component are located, and uses the second target abnormal index and the second performance index as the logical root cause of the current abnormal service.
[0165] It should be noted that, based on experience and experiments, the current application's operations and maintenance personnel have determined that performance indicators related to the operation of each deployment terminal under which the components are located will be identified as root causes of anomalies. The root cause flag carried by such performance indicators will be marked as true, which is the aforementioned second performance indicator. When a component malfunctions, the second performance indicator under the first terminal and the second terminal will be obtained as the root cause of the anomaly.
[0166] In this embodiment, the anomaly root cause localization method of this application obtains a preset component dependency graph, which includes component dependencies within the same service and component dependencies across services. Based on the component dependency graph, it identifies service components that have a direct parent-child relationship or a recursive parent-child relationship with the abnormal component under the current abnormal service and are located downstream of the abnormal component in the component dependency graph. Such service components are identified as associated components that have a dependency relationship with the current abnormal component. The method then obtains each first anomaly indicator under the abnormal component and associated components; obtains the abnormal performance indicators under the current abnormal component; determines the first anomaly type of the abnormal performance indicators based on preset indicator rules; determines the target anomaly type corresponding to the first anomaly type based on the first anomaly type and the preset anomaly dependency relationship; determines each third anomaly indicator whose anomaly type is the target anomaly type among the first anomaly indicators; and determines each third anomaly indicator based on the preset first indicator dependency graph corresponding to the abnormal component and associated components. Starting from the first position in the first indicator dependency graph, the third abnormal indicator corresponding to the lowest level position in each first position is determined as the first target abnormal indicator; the first performance indicator associated with the running status of the deployment terminal where the abnormal component and associated components are located is determined in each first abnormal indicator, and the first target abnormal indicator and the first performance indicator are used as the logical root cause of the current abnormal service; each second abnormal indicator under the deployment terminal where the abnormal component and associated components are located is obtained, and each fourth abnormal indicator with the abnormal type of the target abnormal type is determined in each second abnormal indicator; based on the preset second indicator dependency graph corresponding to the deployment terminal, each fourth abnormal indicator is determined to be in the second position in the second indicator dependency graph, and the fourth abnormal indicator corresponding to the lowest level position in each second position is determined as the second target abnormal indicator; the second performance indicator associated with the running status of the deployment terminal where the abnormal component and associated components are located is determined in the deployment terminal, and the second target abnormal indicator and the second performance indicator are used as the logical root cause of the current abnormal service.
[0167] Thus, this application's embodiments obtain a preset component dependency graph, which includes component dependencies within the same service and component dependencies across services. Based on this component dependency graph, associated components that have dependencies on the abnormal component under the abnormal service are identified. The logical root cause of the abnormal service is determined based on the first anomaly indicators under the abnormal component and associated components. The deployment root cause of the abnormal service is determined based on the second anomaly indicators under the deployment terminals where the abnormal component and associated components reside. Therefore, compared to the traditional manual method of locating the root cause of service anomalies, this application automatically identifies associated components affecting the abnormal component based on the predefined component dependency graph under the service, and combines multi-dimensional root cause analysis to ensure the accuracy of root cause location, thereby improving the operational efficiency of the application.
[0168] Furthermore, based on the first embodiment of the abnormal root cause localization method of this application described above, a second embodiment of the abnormal root cause localization method of this application is proposed.
[0169] In this embodiment, after step S30 described above, the anomaly root cause localization method of this application may further include:
[0170] Step C10: If the associated component is a service component under the database service, detect whether a fifth abnormal indicator of the abnormal type of the target abnormal type appears under the associated component and / or the deployment terminal. The fifth abnormal indicator is any performance indicator under the associated component other than each of the third abnormal indicators, and / or any performance indicator under the deployment terminal other than each of the fourth abnormal indicators.
[0171] In this embodiment, when the associated component is a service component under the database service, the terminal device detects whether an abnormal indicator of the target abnormal type (hereinafter referred to as the fifth abnormal indicator for distinction) appears under the associated component, and detects whether an abnormal indicator of the target abnormal type (i.e., the fifth abnormal indicator) appears under the deployment terminal where the associated component is located. The fifth abnormal indicator is any one of the performance indicators under the associated component other than the third abnormal indicators, and / or, the fifth abnormal indicator can also be any one of the performance indicators under the deployment terminal other than the fourth abnormal indicators.
[0172] Step C20: If the fifth abnormal indicator is detected in the associated component and / or the deployment terminal, then update the logical root cause and / or the deployment root cause based on the fifth abnormal indicator.
[0173] In this embodiment, if the terminal device detects a fifth abnormal indicator under the associated component and / or the deployment terminal, i.e., a new abnormal indicator has appeared, then when the fifth abnormal indicator is an abnormal indicator under the associated component, the fifth abnormal indicator is added to the logical root cause of the current abnormal service to update the current logical root cause. When the fifth abnormal indicator is an abnormal indicator under the deployment terminal, the fifth abnormal indicator is added to the deployment root cause of the current abnormal service to update the current deployment root cause.
[0174] It should be noted that when the service of the associated component of the abnormal component is a database service, considering the characteristics of the database service, there may be a delay in the performance indicator data. That is, when searching for the logical root cause by obtaining various performance indicators in the associated component, the obtained performance indicator may be normal, but in fact the indicator has already become abnormal, but it has not yet been reflected in the available performance indicator data.
[0175] In one feasible implementation, given a metric object under a database service, the terminal device checks which objects are affected when the metric object is abnormal, and which of these objects are dependent on by the application. For example, if CDB1 experiences an availability failure, which objects within the CDB scope will be affected? Analysis is performed based on two scenarios: the current object belongs to the admin component or not. When the current object belongs to the admin component, for admin type objects (e.g., ZooKeeper in Kafka), when an availability failure occurs and its level is greater than "affecting only management functions," the impact scope includes all objects in the corresponding service, such as consumers, producers, topics, and brokers in Kafka. All non-admin top-level component objects are searched; these are the objects that the application depends on. When the current object belongs to a non-admin component, objects with parent-child relationships to this object, where the corresponding component precedes the current object's component, are searched. Following this rule, all top-level component objects are found. For example, the broker layer includes topics, and topics include consumers and producers. These objects are affected by the current object's failure; consumers and producers are top-level objects. These top-level objects are the objects that the application depends on.
[0176] In another feasible implementation, the terminal device determines the exception state of affected objects within the same service subclass when a given object experiences a certain exception. For example, if table space1 experiences an availability exception, the pdb using this table space will also be in an availability exception state. Following the "Object Dependency Reverse Analysis" instructions, the affected objects are identified. If the exception type of the identified object does not match the exception type of the given object, or if the exception type is the same but at a lower level, then the exception type should be increased by the current object's exception type or its level should be set to the same as the current object's exception type.
[0177] Thus, this application designs an anomaly root cause analysis algorithm, which relies on component model and indicator model, and quickly locates the anomaly root cause service and reports the anomaly propagation path through object dependency forward analysis, forward root cause analysis, object dependency reverse analysis, and reverse anomaly impact analysis.
[0178] In this embodiment, the anomaly root cause localization method of this application detects whether a fifth anomaly indicator of the target anomaly type appears under the associated component when the associated component is a service component under the database service. The fifth anomaly indicator is any one of the performance indicators under the associated component other than the third anomaly indicators. If a fifth anomaly indicator is detected under the associated component, that is, a new anomaly indicator appears, the fifth anomaly indicator is added to the logical root cause of the current anomaly service to update the logical root cause.
[0179] Thus, this application, when the associated component is a component under the database service, adopts a reverse analysis method to determine whether the delayed acquisition of abnormal indicators affects the current abnormal indicator in response to the latency of indicator data acquisition. When the delayed acquisition of abnormal indicators affects the current abnormal indicator, the abnormal indicator is added as a compensation root cause to the logical root cause to ensure the accuracy of abnormal root cause location.
[0180] In addition, this application also provides an abnormal root cause localization device.
[0181] Please refer to Figure 6 , Figure 6 This is a functional module diagram of an embodiment of the abnormal root cause localization device of this application, as shown below. Figure 6 As shown, the abnormal root cause localization device of this application includes:
[0182] The association module 10 is used to determine the associated components that have a dependency relationship with the abnormal components under the abnormal service based on the same service component dependency relationship and cross service component dependency relationship in the preset component dependency graph.
[0183] The first root cause module 20 is used to determine the logical root cause of the abnormal service based on the first abnormal indicators under the abnormal component and the associated component.
[0184] The second root cause module 30 is used to determine the deployment root cause of the abnormal service based on each second abnormal indicator under the deployment terminal where the abnormal component and the associated component are located.
[0185] Optionally, the associated module 10 includes:
[0186] The association unit is used to determine, based on the dependency relationships between service components and cross-service components in the preset component dependency graph, a service component that has a direct parent-child relationship or a recursive parent-child relationship with the abnormal component under the abnormal service and is located downstream of the abnormal component in the component dependency graph.
[0187] The associated component unit is used to identify the service component as an associated component that has a dependency relationship with the abnormal component.
[0188] Optionally, the first root cause module 20 includes:
[0189] The first acquisition unit is used to acquire the first abnormal indicators under the abnormal component and the associated component;
[0190] The first determining unit is used to determine the target anomaly type based on the anomaly component and the preset anomaly dependency relationship;
[0191] The third abnormality indicator unit is used to determine each third abnormality indicator whose abnormality type is the target abnormality type among the first abnormality indicators.
[0192] The second determining unit is used to determine the first target abnormal indicator from each of the third abnormal indicators;
[0193] The logical root cause unit is used to determine the first target anomaly indicator and the preset first performance indicator as the logical root cause of the anomaly service, wherein the first performance indicator is the first anomaly indicator associated with the component's running state under the anomaly component and the associated component.
[0194] Optionally, the first determining unit includes:
[0195] A sub-unit is used to acquire abnormal performance indicators under the abnormal component;
[0196] The first anomaly type subunit is used to determine the first anomaly type of the anomaly performance index based on preset index rules.
[0197] The target anomaly type subunit is used to determine the target anomaly type corresponding to the first anomaly type based on the first anomaly type and a preset anomaly dependency relationship.
[0198] Optionally, the second root cause module 30 includes:
[0199] The second acquisition unit is used to acquire each second abnormal indicator under the deployment terminal where the abnormal component and the associated component are located;
[0200] The fourth abnormality indicator unit is used to determine each of the fourth abnormality indicators whose abnormality type is the target abnormality type among the second abnormality indicators;
[0201] The third determining unit is used to determine the second target abnormal indicator from each of the fourth abnormal indicators;
[0202] A root cause unit is configured to determine the second target anomaly indicator and a preset second performance indicator under the associated component as the root cause of the anomaly service, wherein the second performance indicator is the second anomaly indicator associated with the running status of the deployment terminal under the deployment terminal.
[0203] Optionally, the second determining unit includes:
[0204] The first position subunit is used to determine the first position of each of the third abnormal indicators in the first indicator dependency graph based on the preset first indicator dependency graph corresponding to the abnormal component and the associated component.
[0205] The first target anomaly index subunit is used to determine the third anomaly index corresponding to the lowest position in each of the first positions as the first target anomaly index.
[0206] The third determining unit includes:
[0207] The second position subunit is used to determine the second position of each of the fourth abnormal indicators in the second indicator dependency graph based on the preset second indicator dependency graph corresponding to the deployment terminal.
[0208] The second target anomaly index subunit is used to determine the fourth anomaly index corresponding to the lowest position in each of the second positions as the second target anomaly index.
[0209] Optionally, the abnormal root cause localization device of this application further includes:
[0210] The detection module is used to detect whether a fifth abnormal indicator of the target abnormal type appears in the associated component and / or the deployment terminal when the associated component is a service component under the database service. The fifth abnormal indicator is any performance indicator under the associated component other than each of the third abnormal indicators, and / or any performance indicator under the deployment terminal other than each of the fourth abnormal indicators.
[0211] The update module is configured to update the logical root cause and / or the deployment root cause based on the fifth abnormal indicator if the fifth abnormal indicator is detected in the associated component and / or the deployment terminal.
[0212] This application also provides a computer storage medium storing an anomaly root cause localization program, which, when executed by a processor, implements the steps of the anomaly root cause localization program method as described in any of the above embodiments.
[0213] The specific embodiments of the computer storage medium in this application are basically the same as the embodiments of the abnormal root cause localization procedure method described above, and will not be repeated here.
[0214] This application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the abnormal root cause localization method of this application as described in any of the above embodiments, which will not be elaborated here.
[0215] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0216] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0217] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (such as TWS earphones) to execute the methods described in the various embodiments of this application.
[0218] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. An anomaly root cause localization method, characterized by, The abnormal root cause localization method includes: Based on the pre-defined component dependency graph, the associated components that have dependencies on the abnormal components under the abnormal service are identified. The target anomaly type is determined based on the anomaly components and the preset anomaly dependencies; Among the first abnormal indicators under the abnormal component and the associated component, the third abnormal indicators whose abnormal type is the target abnormal type are determined. The logical root cause of the abnormal service is determined based on each of the third abnormal indicators. Among the second abnormal indicators under the deployment terminal where the abnormal component and the associated component are located, the fourth abnormal indicator whose abnormal type is the target abnormal type is determined. The root cause of the deployment of the abnormal service is determined based on each of the fourth anomaly indicators; When the associated component is a service component under the database service, detect whether a fifth abnormal indicator of the target abnormal type appears under the associated component and / or the deployment terminal. The fifth abnormal indicator is any performance indicator under the associated component other than each of the third abnormal indicators, and / or any performance indicator under the deployment terminal other than each of the fourth abnormal indicators. If the fifth abnormal indicator is detected in the associated component and / or the deployment terminal, the logical root cause and / or the deployment root cause are updated based on the fifth abnormal indicator.
2. The abnormality root cause localization method of claim 1, wherein, The step of determining the associated components that have dependencies on abnormal components under abnormal services based on the same-service component dependencies and cross-service component dependencies in the preset component dependency graph includes: Based on the pre-defined component dependency graph, service components that have a direct parent-child relationship or a recursive parent-child relationship with abnormal components under abnormal services and are located downstream of the abnormal components in the component dependency graph are identified. The service component is identified as an associated component that has a dependency relationship with the abnormal component.
3. The anomaly root cause localization method of claim 1, wherein, The step of determining the logical root cause of the abnormal service based on each of the third anomaly indicators includes: The first target anomaly indicator is determined from each of the third anomaly indicators; The first target anomaly indicator and the preset first performance indicator are determined as the logical root cause of the anomaly service, wherein the first performance indicator is the first anomaly indicator associated with the running state of the component under the anomaly component and the associated component.
4. The abnormality root cause localization method of claim 1, wherein, The step of determining the target exception type based on the exception component and the preset exception dependency relationship includes: Obtain abnormal performance indicators under the abnormal component; The first anomaly type of the abnormal performance index is determined based on preset index rules; The target exception type corresponding to the first exception type is determined based on the first exception type and the preset exception dependency relationship.
5. The anomaly root cause localization method of claim 3, wherein, The step of determining the deployment root cause of the abnormal service based on each of the fourth anomaly indicators includes: Determine the second target anomaly indicator from each of the aforementioned fourth anomaly indicators; The second target anomaly indicator and the preset second performance indicator under the associated component are determined as the deployment root cause of the anomaly service, wherein the second performance indicator is the second anomaly indicator associated with the running status of the deployment terminal under the deployment terminal.
6. The anomaly root cause localization method of claim 5, wherein, The step of determining the first target abnormal indicator from each of the third abnormal indicators includes: Based on the preset first indicator dependency graph corresponding to the abnormal component and the associated component, the first position of each of the third abnormal indicators in the first indicator dependency graph is determined. The third abnormal indicator corresponding to the lowest position in each of the first positions is determined as the first target abnormal indicator. The step of determining the second target anomaly indicator from each of the fourth anomaly indicators includes: Based on the preset second indicator dependency graph corresponding to the deployment terminal, determine the second position of each of the fourth abnormal indicators in the second indicator dependency graph; The fourth abnormal indicator corresponding to the lowest position in each of the second positions is determined as the second target abnormal indicator.
7. An abnormal root cause localization device, characterized in that, The abnormal root cause localization device includes: The association module is used to determine the associated components that have dependencies on the abnormal components under the abnormal service, based on the same service component dependency relationship and cross service component dependency relationship in the preset component dependency graph; The first root cause module is used to determine the target anomaly type based on the anomaly component and the preset anomaly dependency relationship; determine each third anomaly indicator whose anomaly type is the target anomaly type among the first anomaly indicators under the anomaly component and the associated component; and determine the logical root cause of the anomaly service based on each of the third anomaly indicators. The second root cause module is used to determine, among the second anomaly indicators under the deployment terminal where the abnormal component and the associated component are located, the fourth anomaly indicator whose anomaly type is the target anomaly type; and to determine the deployment root cause of the abnormal service based on each of the fourth anomaly indicators. The detection module is used to detect whether a fifth anomaly indicator of the target anomaly type appears in the associated component and / or the deployment terminal when the associated component is a service component under the database service. The fifth anomaly indicator is any performance indicator under the associated component other than each of the third anomaly indicators, and / or any performance indicator under the deployment terminal other than each of the fourth anomaly indicators. The update module is configured to update the logical root cause and / or the deployment root cause based on the fifth abnormal indicator if the fifth abnormal indicator is detected in the associated component and / or the deployment terminal.
8. A terminal device, characterized in that, The terminal device includes: a memory, a processor, and an anomaly root cause localization program stored in the memory and executable on the processor. When the anomaly root cause localization program is executed by the processor, it implements the steps of the anomaly root cause localization method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores an anomaly root cause localization program, which, when executed by a processor, implements the steps of the anomaly root cause localization method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Root cause task detection method and device, electronic equipment and storage medium
CN115129436A
