A root cause location method and system based on machine learning

Through machine learning technology, combined with SVM and frequent subgraph mining algorithms, multiple indicator anomalies of the microservice application system are identified, solving the problems of low accuracy and poor interpretability in the existing technology, and achieving efficient root cause location and performance. Indicator identification.

CN114416423BActive Publication Date: 2024-08-23HUNAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210089130.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-25
Publication Date
2024-08-23
Estimated Expiration
2042-01-25

AI Technical Summary

Technical Problem

The root cause detection methods of existing microservice application systems have low accuracy, are difficult to identify the periodic characteristics of actual data indicators, and can only identify single indicator anomalies without good interpretability.

Method used

Using a root cause location method based on machine learning, by obtaining multiple indicator data of the microservice application system, using a support vector machine (SVM) network for detection, and combining frequent subgraph mining and a robust random forest (RRCF) algorithm to identify Abnormal nodes and performance indicators form sparse feature vectors for classification.

Benefits of technology

It improves the accuracy of root cause detection, can identify multiple indicator anomalies, has good interpretability, and is suitable for situations where there is too little abnormal data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114416423B
    Figure CN114416423B
Patent Text Reader

Abstract

The present invention discloses a root cause location method based on machine learning, including: obtaining call chain data composed of data of call processes in a microservice application system, obtaining business indicator data, container indicators, middleware indicators, host indicators, and database indicator data of the microservice application system; inputting the timestamp, average call time, business volume, number of successes, and success rate in the obtained business indicator data into a trained support vector machine SVM network to obtain a detection result, and judging whether the detection result is abnormal, if abnormal, performing root cause detection on the obtained detection result to obtain the node where the fault occurs and the performance indicator that causes the fault to occur. The present invention can solve the technical problem that the existing root cause detection method based on static threshold setting has low accuracy, and the technical problem that the existing root cause detection method based on sliding window is difficult to identify the periodic characteristics of actual data indicators.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of intelligent operation and maintenance technology, and more specifically, relates to a root cause locating method and system based on machine learning. Background Art

[0002] Large Internet companies provide services to the outside world through service clusters. At the same time, business services will become bloated as product demand increases, and the architecture will be split. Large services will be split into small independent services, and each small service will be managed by an independent process to provide services to the outside world. This is "microservices."

[0003] Microservice application systems use microservice architecture to build applications as independent components and run each application process as a service. These services communicate through well-defined interfaces using lightweight APIs. These services are built around business functions, and each service performs a function independently.

[0004] After the rise of microservice architecture, many services have become distributed. After the services are split, the user's request will be processed by different service nodes and the results will be returned to the user. If there is a problem with any node in the entire call chain, it may cause an abnormality in the final result. In such a complex environment, it is not easy to accurately and efficiently find out which specific service node has a problem. Therefore, in the context of the call chain, each node that the request passes through is recorded to form a complete call chain monitoring system, and the error link is checked according to the call chain log.

[0005] Most of the existing root cause detection methods for microservice application systems adopt a threshold alarm setting method, which is specifically divided into a root cause detection method based on static threshold setting and a root cause detection method based on a sliding window.

[0006] The root cause detection method based on static threshold setting means that if a certain fixed threshold is exceeded, it will be detected as an anomaly. However, the accuracy of this method is low. This is because the anomaly threshold may change over time, and the fixed threshold cannot cover all scenarios, which will cause some specific scenarios to fail to be detected; the root cause detection based on sliding windows solves the problem of fixed thresholds and can frame the time series according to the specified unit length to calculate the statistical indicators in the frame, but it is difficult to identify the periodic characteristics of the actual data indicators; in addition, this unsupervised threshold alarm setting can only identify single indicator anomalies and is not very interpretable. Summary of the invention

[0007] In view of the above defects or improvement needs of the prior art, the present invention provides a root cause location method and system based on machine learning, which aims to solve the technical problem that the existing root cause detection method based on static threshold setting has low accuracy, the technical problem that the existing root cause detection method based on sliding window is difficult to identify the periodic characteristics of actual data indicators, and the technical problem that it can only identify the anomaly of a single indicator and has no good interpretability.

[0008] To achieve the above object, according to one aspect of the present invention, a root cause location method based on machine learning is provided, comprising the following steps:

[0009] (1) Obtain call chain data consisting of call process data in the microservice application system;

[0010] (2) Obtain business indicator data, container indicators, middleware indicators, host indicators, and database indicator data of the microservice application system;

[0011] (3) Input the timestamp, average call time, business volume, number of successes, and success rate in the business indicator data obtained in step (2) into the trained support vector machine (SVM) network to obtain the detection result, and determine whether the detection result is abnormal. If it is abnormal, proceed to step (4), otherwise the process ends;

[0012] (4) Perform root cause detection on the detection results obtained in step (3) to obtain the node where the fault occurred and the performance indicator that caused the fault.

[0013] Preferably, the data of the calling process includes the timestamp and calling chain id of the data, the calling type, the service execution time, the caller id, the data id, and the name of the microservice application system.

[0014] The business indicator data of the microservice application system includes the name, timestamp, average call time, business volume, number of successes, and success rate of the microservice system; the purpose of obtaining container indicators, middleware indicators, host indicators, and database indicator data is to locate specific abnormal performance indicators.

[0015] Preferably, the SVM network is trained by the following sub-steps:

[0016] (3-1) Obtaining business indicator data of the microservice application system, normalizing and labeling the obtained business indicator data, and dividing the processed business indicator data into a training set and a test set as a data set;

[0017] (3-2) Initialize the parameters of the SVM network to obtain an initialized SVM network.

[0018] (3-3) inputting the training set obtained in step (3-1) into the SVM network initialized in step (3-2) for training to obtain a preliminarily trained SVM network;

[0019] (3-4) Use the test set obtained in step (3-1) to test the SVM network preliminarily trained in step (3-3) to obtain the final trained SVM network.

[0020] Preferably, step (3-2) specifically sets the penalty coefficient C of the SVM network to 1.0, sets the kernel function kernel to the linear kernel function linear, and sets the weighting parameter class_weight to the ratio of positive and negative samples in the data set.

[0021] Preferably, step (4) comprises the following sub-steps:

[0022] (4-1) Using the timestamp in the detection result obtained in step (3), query the call chain id corresponding to the timestamp in the call chain data obtained in step (1), and use the call chain id to obtain all data in the call chain data whose call chain id is equal to the queried call chain id, and sequentially establish a directed edge from the data id in each acquired data to the call chain id to obtain a directed graph;

[0023] (4-2) performing frequent subgraph mining on the directed graph obtained in step (4-1) to obtain substructures that frequently appear in the directed graph;

[0024] (4-3) Using the frequently occurring substructures in the directed graph obtained in step (4-2) to establish a graph database;

[0025] (4-4) Obtain the intersection of the frequently appearing substructures in the directed graph obtained in step (4-2) and all the nodes in the substructures marked as having abnormal nodes in the graph database as the first set, and the intersection of the frequently appearing substructures in the directed graph obtained in step (4-2) and all the nodes in the substructures marked as null in the graph database as the second set, and then take the intersection between the first set and the second set as the root cause node of the abnormality;

[0026] (4-5) Take the root cause node of each anomaly obtained in step (4-4) as the input node, and centrally query the four values ​​corresponding to the input node in the container index, middleware index, host index and database index obtained in step (2), calculate the change rate, first-order difference, second-order difference and sliding window average change rate of these four values ​​as eigenvalues, retain the eigenvalues ​​exceeding the set threshold through the robust random felling forest RRCF algorithm, and set the others to zero, so as to form a relatively sparse feature vector, and then classify the feature vector through the K-nearest neighbor method with K=1 to determine the final root cause performance indicator (i.e., which one of the container, middleware, host or database has an anomaly), wherein the threshold is set by manual experience based on the size of the indicator data set in the system.

[0027] Preferably, step (4-2) comprises the following sub-steps:

[0028] (4-2-1) Initialize each node in the directed graph as a substructure;

[0029] (4-2-2) Calculate the scores of all current substructures and select the substructure with the lowest score as the optimal substructure;

[0030] (4-2-3) adding a vertex (i.e., an edge adjacent to all nodes in all substructures in step (4-2-2)), and using the vertex to expand the optimal substructure obtained in step (4-2-2) to obtain the expanded substructure as the current substructure;

[0031] (4-2-4) Repeat steps (4-2-2) and (4-3-3) until all optimal substructures are obtained, and all optimal substructures constitute substructures that appear frequently in the directed graph.

[0032] Preferably, the score of the substructure is I(S)+I(G|S), where S represents the substructure in the directed graph G, (G|S) represents the graph data obtained by replacing the substructure S with a single vertex in the directed graph G, I(S) represents the description length of the directed graph in which the substructure S is located, and I(G|S) represents the description length of the directed graph obtained by replacing the substructure S with a single vertex in the directed graph G.

[0033] Preferably, the description length I(S) of the directed graph where the substructure S is located is equal to:

[0034] I(S)=v+r+e

[0035] Where v represents the number of bits required to construct the vertex labels of the directed graph where the substructure S is located:

[0036] v=lgv+v lg(l u )

[0037] Among them l u represents the set of all vertices of the directed graph. r represents the number of bits required for each row of the adjacency matrix A in the process of converting the directed graph into the adjacency matrix A, and:

[0038]

[0039] Where b = max(ki), max means taking the maximum value, k i represents the number of 1s in the i-th row of the adjacency matrix A;

[0040] e represents the number of bits required to represent the edge represented by A[i, j]=1 in the adjacency matrix A, that is, the number of bits required to store all the edges in the directed graph, and:

[0041]

[0042] Wherein m represents the size of the edge represented by A[i, j]=1 in the adjacency matrix A, and u represents the vertex in the adjacency matrix A.

[0043] According to another aspect of the present invention, a root cause location system based on machine learning is provided, comprising:

[0044] The first module is used to obtain the call chain data composed of the data of the call process in the microservice application system;

[0045] The second module is used to obtain business indicator data, container indicators, middleware indicators, host indicators, and database indicator data of the microservice application system;

[0046] The third module is used to input the timestamp, average call time, business volume, number of successes, and success rate in the business indicator data obtained by the second module into the trained support vector machine SVM network to obtain the detection result, and determine whether the detection result is abnormal. If it is abnormal, it enters the fourth module, otherwise the process ends;

[0047] The fourth module is used to perform root cause detection on the detection result obtained by the third module to obtain the node where the fault occurs and the performance index that causes the fault.

[0048] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:

[0049] (1) Since the present invention adopts step (3), it adopts a machine learning method and can directly input features to obtain the result of whether a fault occurs, thereby solving the technical problem of low accuracy of the existing root cause detection method based on static threshold setting;

[0050] (2) Since the present invention adopts step (4-2) and step (4-4), it uses a frequent subgraph mining method without setting other parameters, thus being able to solve the technical problem that the root cause detection method based on the sliding window is difficult to identify the periodic characteristics of the actual data indicators;

[0051] (3) Since the present invention adopts step (1) and step (3), it collects multiple indicators of the microservice application system and trains the multiple indicators to obtain a trained network, thereby solving the technical problem that the root cause detection method based on the sliding window can only identify the anomaly of a single indicator and has no good interpretability;

[0052] (4) Since the present invention adopts step (4-3) and step (4-4), it uses a frequent subgraph mining algorithm to mine frequently occurring substructures and compare them with other substructures in the graph database to obtain the root cause node. Therefore, it can solve the technical problem that the model cannot be well trained when there is too little abnormal data. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 It is a flow chart of the root cause location method based on machine learning of the present invention. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0055] Root cause location is an important and difficult field in Artificial Intelligence for IT Operations (AIOPS), which involves the combination of inductive analysis and deductive reasoning, and is a comprehensive application from the law of large numbers to logically complete chain reasoning. The massive data of the microservice architecture lays the foundation for relevant analysis, but there is a severe lack of business anomaly cases, so it is necessary to have strong AI capabilities from correlation to causality: deductive reasoning based on operation and maintenance domain knowledge, and the process and conclusions of causal deduction must be explainable to facilitate re-analysis and continuous optimization. The present invention adopts a method based on frequent subgraph partitioning, so that non-abnormal data can be used in the process of root cause location, which increases the data source for analysis and has good interpretability.

[0056] like Figure 1 As shown, the present invention provides a root cause location method based on machine learning, comprising the following steps:

[0057] (1) Obtain call chain data consisting of call process data in the microservice application system;

[0058] Specifically, the data of the calling process includes the timestamp and calling chain id of the data (the two are one-to-one corresponding), calling type, service execution time, caller id, data id, and the name of the microservice application system.

[0059] (2) Obtain business indicator data, container indicators, middleware indicators, host indicators, and database indicator data of the microservice application system;

[0060] Specifically, the business indicator data of the microservice application system includes the name, timestamp, average call time, business volume, number of successes, and success rate of the microservice system; the purpose of obtaining container indicators, middleware indicators, host indicators, and database indicator data is to locate specific abnormal performance indicators;

[0061] (3) Input the timestamp, average call time, business volume, number of successes, and success rate in the business indicator data obtained in step (2) into the trained support vector machine (SVM) network to obtain the detection result, and determine whether the detection result is abnormal. If it is abnormal, proceed to step (4), otherwise the process ends;

[0062] The advantage of this step is that multiple indicators are used for root cause detection, which combines multiple indicators and improves accuracy.

[0063] Specifically, the SVM network in this step is trained through the following sub-steps:

[0064] (3-1) Obtaining business indicator data of the microservice application system, normalizing and labeling the obtained business indicator data, and dividing the processed business indicator data into a training set and a test set as a data set;

[0065] Specifically, the data set used in this step is the business indicator data collected in the same microservice application system. As shown in step (2), the data set is divided into a training set and a test set in a ratio of 7:3, that is, 70% is randomly divided as a training set and the remaining 30% is used as a test set.

[0066] In the labeling process of this step, the result is labeled as a real number vector, for example, if an abnormality occurs, it is labeled as 1, and if there is no abnormality, it is labeled as -1.

[0067] (3-2) Initialize the parameters of the SVM network to obtain an initialized SVM network.

[0068] Specifically, this step is to set the penalty coefficient C of the SVM network to 1.0, set the kernel function kernel to the linear kernel function linear, and set the weighting parameter class to the ratio of positive and negative samples in the data set, which is specifically represented by a list: [number of abnormal samples, number of non-abnormal samples];

[0069] (3-3) inputting the training set obtained in step (3-1) into the SVM network initialized in step (3-2) for training to obtain a preliminarily trained SVM network;

[0070] (3-4) Use the test set obtained in step (3-1) to test the SVM network preliminarily trained in step (3-3) to obtain the final trained SVM network.

[0071] The advantages of the above steps (3-1) to (3-4) are that they use SVM network classification to solve multi-index problems, and they also have relatively good results when the amount of data is small.

[0072] (4) Perform root cause detection on the detection results obtained in step (3) to obtain the node where the fault occurred and the performance indicator that caused the fault.

[0073] Specifically, step (4) includes the following sub-steps:

[0074] (4-1) Using the timestamp in the detection result obtained in step (3), query the call chain id corresponding to the timestamp in the call chain data obtained in step (1), and use the call chain id to obtain all data in the call chain data whose call chain id is equal to the queried call chain id, and sequentially establish a directed edge from the data id in each acquired data to the call chain id to obtain a directed graph;

[0075] (4-2) performing frequent subgraph mining on the directed graph obtained in step (4-1) to obtain substructures that frequently appear in the directed graph;

[0076] Specifically, this step includes the following sub-steps:

[0077] (4-2-1) Initialize each node in the directed graph as a substructure;

[0078] (4-2-2) Calculate the scores of all current substructures and select the substructure with the lowest score as the optimal substructure;

[0079] Specifically, the score of the substructure is I(S)+I(G|S), where S represents the substructure in the directed graph G, (G|S) represents the graph data obtained by replacing the substructure S with a single vertex in the directed graph G, I(S) represents the description length of the directed graph where the substructure S is located, and I(G|S) represents the description length of the directed graph obtained by replacing the substructure S with a single vertex in the directed graph G.

[0080] The calculation of the description length I(S) of the directed graph where the substructure S is located can be divided into three parts, namely:

[0081] I(S)=v+r+e

[0082] Where v represents the number of bits required to construct the vertex labels of the directed graph where the substructure S is located:

[0083] v=lgv+v lg(l u )

[0084] Where lu represents the set of all vertices of the directed graph. r represents the number of bits required for each row of the adjacency matrix A in the process of converting the directed graph into the adjacency matrix A (another representation of the graph), and:

[0085]

[0086] where b = max(k i ), max means taking the maximum value, k i Represents the number of 1s in the i-th row of the adjacency matrix A.

[0087] e represents the number of bits required for the edge represented by A[i, j]=1 in the adjacency matrix A (ie, the number of bits required to store all the edges in the directed graph).

[0088]

[0089] Wherein m represents the size of the edge represented by A[i, j]=1 in the adjacency matrix A, and u represents the vertex in the adjacency matrix A.

[0090] (4-2-3) adding a vertex (i.e., an edge adjacent to all nodes in all substructures in step (4-2-2)), and using the vertex to expand the optimal substructure obtained in step (4-2-2) to obtain the expanded substructure as the current substructure;

[0091] (4-2-4) Repeat steps (4-2-2) and (4-3-3) until all optimal substructures are obtained, and all optimal substructures constitute substructures that appear frequently in the directed graph.

[0092] The advantages of the above steps (4-2-1) to (4-2-4) are that the explainability of root cause location is increased and the use of call chain data without exception is increased.

[0093] (4-3) Using the frequently occurring substructures in the directed graph obtained in step (4-2) to establish a graph database;

[0094] Specifically, this step is to first number the substructures that frequently appear in the directed graph obtained in step (4-2) in sequence, and then manually mark the substructures with abnormal nodes as having abnormal nodes. If there are no abnormal nodes in the substructure, the substructure is marked as null.

[0095] (4-4) Obtain the intersection of the frequently appearing substructures in the directed graph obtained in step (4-2) and all the nodes in the substructures marked as having abnormal nodes in the graph database as the first set, and the intersection of the frequently appearing substructures in the directed graph obtained in step (4-2) and all the nodes in the substructures marked as null in the graph database as the second set, and then take the intersection between the first set and the second set as the root cause node of the abnormality;

[0096] (4-5) The root cause node of each anomaly obtained in step (4-4) is used as an input node, and the four values ​​corresponding to the input node are collectively queried in the container index, middleware index, host index and database index obtained in step (2). The change rate, first-order difference, second-order difference and sliding window average change rate of these four values ​​are calculated as eigenvalues. The eigenvalues ​​exceeding the set threshold (set by manual experience based on the size of the indicator data set in the system) are retained through the Robust Random Cut Forest (RRCF) algorithm, and the others are set to zero, thereby forming a relatively sparse feature vector. The feature vector is then classified through the K-Nearest Neighborhood (KNN) method with K=1 to determine the final root cause performance indicator (i.e., which one of the container, middleware, host or database has an anomaly).

[0097] Specifically, in order to make the changes in feature outliers more obvious, the RRCF algorithm is selected to convert feature values ​​into RRCF scores.

[0098] It will be easily understood by those skilled in the art that 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 and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A root cause location method based on machine learning, It is characterized in that The following steps are involved: (1) Obtain call chain data consisting of call process data in the microservice application system; (2) Obtain business indicator data, container indicators, middleware indicators, host indicators, and database indicator data of the microservice application system; (3) Input the timestamp, average call time, business volume, number of successes, and success rate in the business indicator data obtained in step (2) into the trained support vector machine (SVM) network to obtain the detection result, and determine whether the detection result is abnormal. If it is abnormal, proceed to step (4), otherwise the process ends; (4) performing root cause detection on the detection result obtained in step (3) to obtain the node where the fault occurs and the performance indicator causing the fault. Step (4) includes the following sub-steps: (4-1) Using the timestamp in the detection result obtained in step (3), query the call chain id corresponding to the timestamp in the call chain data obtained in step (1), and use the call chain id to obtain all data in the call chain data whose call chain id is equal to the queried call chain id, and sequentially establish a directed edge from the data id in each acquired data to the call chain id to obtain a directed graph; (4-2) performing frequent subgraph mining on the directed graph obtained in step (4-1) to obtain substructures that frequently appear in the directed graph; (4-3) Using the frequently occurring substructures in the directed graph obtained in step (4-2) to establish a graph database; (4-4) Obtain the intersection of the frequently appearing substructures in the directed graph obtained in step (4-2) and all the nodes in the substructures marked as having abnormal nodes in the graph database as the first set, and the intersection of the frequently appearing substructures in the directed graph obtained in step (4-2) and all the nodes in the substructures marked as null in the graph database as the second set, and then take the intersection between the first set and the second set as the root cause node of the abnormality; (4-5) Take the root cause node of each anomaly obtained in step (4-4) as the input node, and centrally query the four values ​​corresponding to the input node in the container index, middleware index, host index and database index obtained in step (2), calculate the change rate, first-order difference, second-order difference and sliding window average change rate of these four values ​​as eigenvalues, retain the eigenvalues ​​exceeding the set threshold through the robust random felling forest RRCF algorithm, and set the others to zero, so as to form a relatively sparse feature vector, and then classify the eigenvector through the K-nearest neighbor method with K=1 to determine the final root cause performance index, where the threshold is set by manual experience based on the size of the indicator data set in the system.

2. The root cause location method based on machine learning according to claim 1, It is characterized in that The data of the call process includes the timestamp and call chain ID of the data, the call type, the service execution time, the caller ID, the data ID, and the name of the microservice application system; The business indicator data of the microservice application system includes the name, timestamp, average call time, business volume, number of successes, and success rate of the microservice system; the purpose of obtaining container indicators, middleware indicators, host indicators, and database indicator data is to locate specific abnormal performance indicators.

3. The root cause location method based on machine learning according to claim 1 or 2, It is characterized in that The SVM network is trained through the following sub-steps: (3-1) Obtaining business indicator data of the microservice application system, normalizing and labeling the obtained business indicator data, and dividing the processed business indicator data into a training set and a test set as a data set; (3-2) Initializing the parameters of the SVM network to obtain an initialized SVM network; (3-3) inputting the training set obtained in step (3-1) into the SVM network initialized in step (3-2) for training to obtain a preliminarily trained SVM network; (3-4) Use the test set obtained in step (3-1) to test the SVM network preliminarily trained in step (3-3) to obtain the final trained SVM network.

4. The root cause location method based on machine learning according to claim 3, It is characterized in that Step (3-2) specifically sets the penalty coefficient C of the SVM network to 1.0, sets the kernel function kernel to the linear kernel function linear, and sets the weighting parameter class_weight to the ratio of positive and negative samples in the data set.

5. The root cause location method based on machine learning according to claim 4, It is characterized in that Step (4-2) includes the following sub-steps: (4-2-1) Initialize each node in the directed graph as a substructure; (4-2-2) Calculate the scores of all current substructures and select the substructure with the lowest score as the optimal substructure; (4-2-3) adding a vertex, i.e., an edge adjacent to all nodes in all substructures in step (4-2-2), and using the vertex to expand the optimal substructure obtained in step (4-2-2) to obtain the expanded substructure as the current substructure; (4-2-4) Repeat steps (4-2-2) and (4-3-3) until all optimal substructures are obtained, and all optimal substructures constitute substructures that appear frequently in the directed graph.

6. The root cause location method based on machine learning according to claim 5, It is characterized in that The score of the substructure is I(S)+I(G|S), where S represents the substructure in the directed graph G, (G|S) represents the graph data obtained by replacing the substructure S with a single vertex in the directed graph G, I(S) represents the description length of the directed graph where the substructure S is located, and I(G|S) represents the description length of the directed graph obtained by replacing the substructure S with a single vertex in the directed graph G.

7. The root cause location method based on machine learning according to claim 6, It is characterized in that The description length I(S) of the directed graph where the substructure S is located is equal to: I(S)=u+r+e Where u represents the number of bits required to construct the vertex labels of the directed graph where the substructure S is located: u=lgv+v lg(l u ) Among them l u represents the set of all vertices of the directed graph, r represents the number of bits required for each row of the adjacency matrix A in the process of converting the directed graph into the adjacency matrix A, and: where b = max(k i ), max means taking the maximum value, k i represents the number of 1s in the i-th row of the adjacency matrix A; e represents the number of bits required to represent the edge represented by A[i,j]=1 in the adjacency matrix A, that is, the number of bits required to store all the edges in the directed graph, and: Where m represents the size of the edge represented by A[i,j]=1 in the adjacency matrix A, and u represents the vertex in the adjacency matrix A.

8. A root cause location system based on machine learning, It is characterized in that include: The first module is used to obtain the call chain data composed of the data of the call process in the microservice application system; The second module is used to obtain business indicator data, container indicators, middleware indicators, host indicators, and database indicator data of the microservice application system; The third module is used to input the timestamp, average call time, business volume, number of successes, and success rate in the business indicator data obtained by the second module into the trained support vector machine SVM network to obtain the detection result, and determine whether the detection result is abnormal. If it is abnormal, it enters the fourth module, otherwise the process ends; The fourth module is used to perform root cause detection on the detection results obtained by the third module to obtain the node where the fault occurs and the performance index that causes the fault. The fourth module includes the following submodules: The first submodule is used to use the timestamp in the detection result obtained by the third module to query the call chain id corresponding to the timestamp in the call chain data obtained by the first module, and use the call chain id to obtain all data in the call chain data whose call chain id is equal to the queried call chain id, and sequentially establish a directed edge from the data id in each acquired data to the call chain id to obtain a directed graph; The second submodule is used to perform frequent subgraph mining on the directed graph obtained by the first submodule to obtain substructures that frequently appear in the directed graph; The third submodule is used to establish a graph database using the frequently appearing substructures in the directed graph obtained by the second submodule; The fourth submodule is used to obtain the intersection between the frequently appearing substructures in the directed graph obtained by the second submodule and all the nodes in the substructures marked as having abnormal nodes in the graph database as the first set, and the intersection between the frequently appearing substructures in the directed graph obtained by the second submodule and all the nodes in the substructures marked as null in the graph database as the second set, and then take the intersection between the first set and the second set as the root cause node of the abnormality; The fifth submodule is used to use the root cause node of each anomaly obtained by the fourth submodule as an input node, and to centrally query the four values ​​corresponding to the input node in the container indicator, middleware indicator, host indicator and database indicator obtained in the second module, and calculate the change rate, first-order difference, second-order difference and sliding window average change rate of these four values ​​as eigenvalues. The eigenvalues ​​exceeding the set threshold are retained through the robust random felling forest RRCF algorithm, and the others are set to zero, thereby forming a relatively sparse feature vector, and then the eigenvector is classified through the K-nearest neighbor method with K=1 to determine the final root cause performance indicator, wherein the threshold is set by manual experience based on the size of the indicator data set in the system.