Information analysis method, device and electronic equipment
By detecting faults in the business system and calculating the fault correlation coefficient to determine the root cause service node, the problem of low accuracy and labor cost of manual fault location is solved, and more efficient fault location is achieved.
Patent Information
- Application Number
- CN202210457613.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-27
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-04-27
AI Technical Summary
In complex business systems, manual location of fault causes is less accurate and more labor-intensive, resulting in longer fault location time.
By detecting business faults, abnormal service nodes are determined, and the fault correlation coefficient is calculated based on the fault topology and operating information to determine the root cause service node. The method includes obtaining business logs for preprocessing, determining the calling relationship and the number of exceptions of service nodes, calculating the fault correlation coefficient, and sorting to determine the root cause service node.
It improves the efficiency and accuracy of determining root cause service nodes, saves human resources, and reduces fault location time.
Smart Images

Figure CN114844768B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and more specifically, to an information analysis method, device, electronic device, and computer-readable storage medium. Background Art
[0002] With the development of technologies such as cloud computing, big data, and microservices, the structure of business systems has become more complex and the technical components have become more diverse. As a result, failures in business systems will have a greater impact on the normal operation of the business. In related technologies, once a business system fails, the operation and maintenance personnel usually use their years of operation and maintenance experience to determine the possible causes of common failures. However, there are certain differences in the accuracy of fault location by different operation and maintenance personnel, and this method requires a lot of manpower costs and takes a long time to locate the fault. Summary of the invention
[0003] The purpose of the present application is to solve at least one of the above-mentioned technical defects, especially the technical defects of low accuracy and high labor cost in manually locating the cause of the fault.
[0004] According to one aspect of the present application, there is provided an information analysis method, the method comprising:
[0005] A first service failure is detected, and an abnormal service node corresponding to the first service failure is determined;
[0006] Acquire the operation information of the abnormal service node, and determine the fault correlation coefficient corresponding to each abnormal service node; wherein the fault correlation coefficient is determined according to the fault topology corresponding to the first service fault, and the fault topology is determined according to the operation information of the abnormal service node;
[0007] A root cause service node among the abnormal service nodes is determined according to the fault correlation coefficient.
[0008] Optionally, the method further includes:
[0009] Obtaining alarm information of the root cause service node;
[0010] In the alarm information, target alarm information corresponding to the first service failure is determined.
[0011] Optionally, the determining a fault correlation coefficient corresponding to each abnormal service node includes:
[0012] Determine a fault topology corresponding to the first service fault according to the operation information of the abnormal service node; wherein the fault topology includes the position information of the abnormal service node on the call chain and the number of times the abnormal service node performs mutual calls;
[0013] The fault correlation coefficient is determined according to the fault topology.
[0014] Optionally, determining a root cause service node among the abnormal service nodes according to the fault correlation coefficient includes:
[0015] The fault correlation coefficients are sorted, and the abnormal service node with the largest fault correlation coefficient is determined as the root cause service node.
[0016] Optionally, the acquiring the operation information of the abnormal service node includes:
[0017] Obtaining a service log of the first service;
[0018] Preprocessing the service log to obtain the operation information of the abnormal service node;
[0019] The preprocessing includes at least one of deleting redundant data, merging data, and adding data.
[0020] Optionally, the operation information includes at least one of the following:
[0021] Service call duration; service call success rate; number of service calls.
[0022] According to another aspect of the present application, there is provided an information analysis device, the device comprising:
[0023] A first determining module, configured to detect a first service failure and determine an abnormal service node corresponding to the first service failure;
[0024] A second determination module is used to obtain the operation information of the abnormal service node and determine the fault correlation coefficient corresponding to each abnormal service node; wherein the fault correlation coefficient is determined according to the fault topology corresponding to the first service fault, and the fault topology is determined according to the operation information of the abnormal service node;
[0025] The third determination module is used to determine the root cause service node among the abnormal service nodes according to the fault correlation coefficient.
[0026] Optionally, the second determining module is specifically configured to:
[0027] Determine a fault topology corresponding to the first service fault according to the operation information of the abnormal service node; wherein the fault topology includes the position information of the abnormal service node on the call chain and the number of times the abnormal service node performs mutual calls;
[0028] The fault correlation coefficient is determined according to the fault topology.
[0029] According to another aspect of the present application, an electronic device is provided, the electronic device comprising:
[0030] one or more processors;
[0031] Memory;
[0032] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to: execute the information analysis method according to any one of the first aspects of the present application.
[0033] For example, in a third aspect of the present application, a computing device is provided, including: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0034] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the information analysis method shown in the first aspect of the present application.
[0035] According to another aspect of the present application, a computer-readable storage medium is provided, and when the computer program is executed by a processor, the information analysis method described in any one of the first aspects of the present application is implemented.
[0036] For example, the fourth aspect of an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the information analysis method shown in the first aspect of the present application is implemented.
[0037] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method provided in various optional implementations of the first aspect above.
[0038] The beneficial effects of the technical solution provided by this application are:
[0039] The embodiment of the present application determines the abnormal service node corresponding to the first business failure by detecting the first business failure; obtains the operation information of the abnormal service node and determines the fault correlation coefficient corresponding to each of the abnormal service nodes; determines the root cause service node among the abnormal service nodes according to the fault correlation coefficient; compared with the related art in which the operation and maintenance personnel check the business logs according to the operation and maintenance experience to determine the root cause service node, the embodiment of the present application determines the fault correlation coefficient according to the fault topology, and then determines the root cause service node according to the fault correlation coefficient, thereby improving the efficiency and accuracy of determining the root cause service node and saving human resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.
[0041] Figure 1 A flowchart of an information analysis method provided in an embodiment of the present application;
[0042] Figure 2 A schematic diagram of an application scenario of an information analysis method provided in an embodiment of the present application;
[0043] Figure 3 A flowchart of an information analysis method provided in an embodiment of the present application;
[0044] Figure 4 A flowchart of an information analysis method provided in an embodiment of the present application;
[0045] Figure 5 A flowchart of an information analysis method provided in an embodiment of the present application;
[0046] Figure 6 A schematic diagram of the structure of an information analysis device provided in an embodiment of the present application;
[0047] Figure 7 A schematic diagram of the structure of an electronic device for information analysis provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.
[0049] It will be understood by those skilled in the art that, unless specifically stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application refer to that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude the implementation as other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the technical field. It should be understood that when we say that an element is "connected" or "coupled" to another element, the one element may be directly connected or coupled to the other element, or it may refer to that the one element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein indicates at least one of the items defined by the term, for example, "A and / or B" may be implemented as "A", or as "B", or as "A and B".
[0050] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0051] The information analysis method, device, electronic device and computer-readable storage medium provided in this application are intended to solve the above technical problems in the prior art.
[0052] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0053] An embodiment of the present application provides an information analysis method, the execution subject of the method can be any electronic device, or a device or chip integrated on these devices, for example, it can be applied to a server or terminal device with service information analysis. Optionally, the method can be executed by a server, for example, the server can be a server device of various application microservice architecture systems, such as a computer device of an application microservice architecture system, etc.
[0054] like Figure 1 As shown, it is a flow chart of an information analysis method provided in an embodiment of the present application, and the method may include:
[0055] Step S101: a first service failure is detected, and an abnormal service node corresponding to the first service failure is determined.
[0056] Optionally, the embodiments of the present application may be applied to the field of computer technology; for example, they may be specifically applied to a service information analysis scenario in a microservice system.
[0057] Specifically, microservices (or microservices architecture) is a cloud-native architecture; in a microservices architecture, a single application is composed of multiple loosely coupled and independently deployable smaller components or services. Among them, the services in the microservices architecture can be understood as service nodes, that is, the microservices architecture includes multiple service nodes.
[0058] As an example, the microservice system of the present application may be a business processing system, wherein the business processing system may include multiple service nodes, for example, the service nodes may include a reimbursement processing node, an audit processing node, a leave processing node, etc. Optionally, in an actual scenario, there are mutual calls between nodes in the microservice system; for example, when a user triggers a reimbursement service, according to the reimbursement service processing flow, a reimbursement service review is required during the reimbursement service processing process; at this time, the audit processing node may be called through the reimbursement processing node, etc.
[0059] In an embodiment of the present application, when a first service failure is detected in a microservice system, an abnormal service node corresponding to the first service failure may be determined.
[0060] Specifically, the first business failure may include any business failure; for example, in an actual scenario, the first business failure may include failures such as failure to start a corresponding business through a trigger operation, an error in a business processing result, and the like.
[0061] In the embodiment of the present application, the service processing system can be detected at a preset time point or a preset time period to determine the first service failure. In addition, when the user or the system automatically triggers the corresponding service processing, the first service failure can be started to be determined because the corresponding service cannot be completed.
[0062] The abnormal service node is a node corresponding to the first service failure. For example, the abnormal service node may be a node with abnormal operation related to the first service failure.
[0063] Optionally, the operation parameters of each service node can be obtained through the business log of the business processing system (business log such as Trace log), and the abnormal service node among the service nodes can be determined according to whether the operation parameters meet the preset threshold conditions. The relevant operation parameters may include service node call relationship between service nodes, service call duration, service call success rate, service call number, call status and other parameters.
[0064] For example, the threshold range of the preset service call duration is less than or equal to 2 milliseconds; when the call duration of the service node is greater than 2 milliseconds, the service node can be considered as an abnormal service node. For another example, the threshold range of the preset service call success rate is greater than or equal to 90%; when the service call success rate of the service node is 70%, the service node can be considered as an abnormal service node.
[0065] Step S102: Acquire the operation information of the abnormal service nodes, and determine the fault correlation coefficient corresponding to each abnormal service node.
[0066] The fault correlation coefficient is determined according to a fault topology corresponding to the first service fault, and the fault topology is determined according to operation information of the abnormal service node.
[0067] Specifically, the operation information may include the operation parameters of the service nodes, wherein the operation parameters may include parameters such as the service node call relationship between the service nodes, the service call duration, the service call success rate, the number of service calls, and the call status.
[0068] The fault correlation coefficient may be used to characterize the degree of correlation between the abnormal service node and the first service fault. Optionally, in the embodiment of the present application, the fault correlation coefficient may be determined according to the fault topology corresponding to the first service fault.
[0069] The fault topology may be a topology between abnormal service nodes generated according to the operation information of the abnormal service nodes. Optionally, the fault topology may be a tree structure, that is, the fault topology may be a fault tree; the fault tree may reflect the calling relationship between the abnormal service nodes and the number of abnormalities when the abnormal service nodes perform mutual calls.
[0070] As an example, Figure 2 In the fault tree shown, there is a call relationship between abnormal service nodes with connection relationship; for example, there is a call relationship between the head node and child node 1, that is, the head node calls child node 1, there is a call relationship between child node 1 and child node r-003, that is, child node 1 calls child node r-003, there is a call relationship between child node 1 and child node r-004, that is, child node 1 calls child node r-004. It can be understood that a call chain is formed between multiple abnormal service nodes with call relationships; for example, the head node, child node 1, child node r-003, child node -003, and the end node form a call chain; for another example, the head node, child node 1, child node r-004, and child node 003 form another call chain. In addition, each abnormal service node in the fault tree also identifies the number of times the node has abnormality; for example, the number of times the child node 1 has abnormality is 102 times; the number of times the child node r-003 has abnormality is 33 times, and so on.
[0071] It is understandable that the embodiment of the present application can determine the fault topology based on the operation information of the abnormal service node, that is, the service node call relationship; service call duration; service call success rate; service call number and other information. Then, the fault correlation coefficient corresponding to each abnormal service node is determined based on the fault topology corresponding to the first service fault.
[0072] Optionally, the fault correlation coefficient corresponding to each abnormal service node may be determined according to the position order of the abnormal service node in the call chain and the number of times an exception occurs when the abnormal service nodes perform mutual calls.
[0073] Optionally, a weighted operation may be performed on the position order of the abnormal service node in the call chain and the number of times the abnormal service node performs mutual calls, and the comprehensive weight of the weighted operation is used as the fault correlation coefficient corresponding to the abnormal service node. For example, the weight values corresponding to the position order and the number of times the abnormality occurs may be predetermined, such as the weight value corresponding to the position order is 60%; the weight value corresponding to the number of times the abnormality occurs is 40%, and so on. As an example, if Figure 2 As shown in the figure, in the call chain formed by the head node, child node 1, child node r-004, and child node 003, the position order of the head node is 1, and the number of exceptions is 20; then, the comprehensive weight corresponding to the head node is 1×60%+20×40%=8.6. For another example, the position order of child node 1 is 2, and the number of exceptions is 102; then, the comprehensive weight corresponding to child node 1 is 2×60%+102×40%=42.
[0074] Step S103: determining a root cause service node among the abnormal service nodes according to the fault correlation coefficient.
[0075] Specifically, the root cause service node can be understood as a node that causes the first service failure to occur, that is, the first service failure occurs due to the abnormality of the root cause service node.
[0076] It is understandable that the greater the correlation between the abnormal service node and the first service failure, the greater the possibility that the abnormal service node is the root cause service node. That is, the greater the fault correlation coefficient, the greater the possibility that the abnormal service node is the root cause service node.
[0077] Optionally, in the embodiment of the present application, the fault correlation coefficients corresponding to the abnormal service nodes may be sorted from large to small, and the node corresponding to the maximum fault correlation coefficient may be determined as the root cause service node; in addition, a preset number of root cause service nodes may be determined according to the sorting of the fault correlation coefficients. For example, the top three abnormal service nodes may be determined as the root cause service nodes, and so on.
[0078] The embodiment of the present application determines the abnormal service node corresponding to the first business failure by detecting the first business failure; obtains the operation information of the abnormal service node and determines the fault correlation coefficient corresponding to each of the abnormal service nodes; determines the root cause service node among the abnormal service nodes according to the fault correlation coefficient; compared with the related art in which the operation and maintenance personnel check the business logs according to the operation and maintenance experience to determine the root cause service node, the embodiment of the present application determines the fault correlation coefficient according to the fault topology, and then determines the root cause service node according to the fault correlation coefficient, thereby improving the efficiency and accuracy of determining the root cause service node and saving human resources.
[0079] In another embodiment of the present application, the obtaining the operation information of the abnormal service node includes:
[0080] Obtaining a service log of the first service;
[0081] Preprocessing the service log to obtain the operation information of the abnormal service node;
[0082] The preprocessing includes at least one of deleting redundant data, merging data, and adding data.
[0083] In an embodiment of the present application, the operation information of the abnormal service node can be obtained from the business log of the business processing system (business log such as Trace log). For example, the business log can be pre-processed such as data cleaning to obtain the operation information of the abnormal service node. The pre-processing includes at least one of deleting redundant data, merging data, and adding data.
[0084] In another embodiment of the present application, the method further includes:
[0085] Obtaining alarm information of the root cause service node;
[0086] In the alarm information, target alarm information corresponding to the first service failure is determined.
[0087] Optionally, in an embodiment of the present application, after determining the root cause service node, target alarm information causing the first service failure may be determined in the alarm information of the root cause service node.
[0088] Among them, the target alarm information may include software alarm information and hardware alarm information; software alarm information such as process interruption alarm information, network interruption alarm information, etc.; hardware alarm information such as insufficient hard disk space alarm information, CPU failure alarm information, etc.
[0089] When determining the target alarm information, the target alarm information can be determined from the alarm information based on a first correlation between the time when each alarm information is generated and the time when the first service failure occurs, and a second correlation between the type of the alarm information and the first service failure.
[0090] As an example, Figure 3 As shown, in an embodiment of the present application, after obtaining the Trace log, the log data can be cleaned; then, the abnormal service node is determined according to the operation information of each service node, that is, the call chain abnormal node aggregation; then, the fault tree is determined according to the operation information of the abnormal service node, that is, the fault topology of the embodiment of the present application; then, the fault contribution rate of each abnormal service node is determined according to the fault topology, that is, the fault correlation coefficient, and the fault contribution rate is ranked; further, the root cause service node can be determined in combination with other resource topologies (the relationship between service nodes); finally, the target alarm information, that is, the alarm root cause, is determined in the alarm information of the root cause service node.
[0091] In another embodiment of the present application, determining the fault correlation coefficient corresponding to each abnormal service node includes:
[0092] Determine a fault topology corresponding to the first service fault according to the operation information of the abnormal service node; wherein the fault topology includes the position information of the abnormal service node on the call chain and the number of times the abnormal service node performs mutual calls;
[0093] The fault correlation coefficient is determined according to the fault topology.
[0094] Optionally, in one embodiment of the present application, the operation information includes at least one of the following:
[0095] Service call duration; service call success rate; number of service calls.
[0096] The fault topology can be a topology between abnormal service nodes generated based on the operation information of the abnormal service nodes; optionally, the fault topology can be a tree structure, that is, the fault topology can be a fault tree; the fault tree can reflect the calling relationship between the abnormal service nodes and the number of exceptions that occur when the abnormal service nodes execute mutual calls.
[0097] As an example, Figure 2As shown, in the fault tree in the figure, there is a call relationship between the abnormal service nodes with a connection relationship; for example, there is a call relationship between the head node and the child node 1, that is, the head node calls the child node 1, there is a call relationship between the child node 1 and the child node r-003, that is, the child node 1 calls the child node r-003, and there is a call relationship between the child node 1 and the child node r-004, that is, the child node 1 calls the child node r-004. It can be understood that a call chain is formed between multiple abnormal service nodes with a call relationship; for example, the head node, the child node 1, the child node r-003, the child node -003, and the terminal node form a call chain; for another example, the head node, the child node 1, the child node r-004, and the child node 003 form another call chain. In addition, each abnormal service node in the fault tree also identifies the number of times the node has an abnormality; for example, the number of times the child node 1 has an abnormality is 102 times; the number of times the child node r-003 has an abnormality is 33 times, and so on.
[0098] It is understandable that the embodiment of the present application can determine the fault topology based on the operation information of the abnormal service node, that is, the service node call relationship; service call duration; service call success rate; service call number and other information. Then, the fault correlation coefficient corresponding to each abnormal service node is determined based on the fault topology corresponding to the first service fault.
[0099] Optionally, a weighted operation may be performed on the position order of the abnormal service node in the call chain and the number of times the abnormal service node performs mutual calls, and the comprehensive weight of the weighted operation is used as the fault correlation coefficient corresponding to the abnormal service node. For example, the weight values corresponding to the position order and the number of times the abnormality occurs may be predetermined, such as the weight value corresponding to the position order is 60%; the weight value corresponding to the number of times the abnormality occurs is 40%, and so on. As an example, if Figure 2 As shown in the figure, in the call chain formed by the head node, child node 1, child node r-004, and child node 003, the position order of the head node is 1, and the number of exceptions is 20; then, the comprehensive weight corresponding to the head node is 1×60%+20×40%=8.6. For another example, the position order of child node 1 is 2, and the number of exceptions is 102; then, the comprehensive weight corresponding to child node 1 is 2×60%+102×40%=42.
[0100] As an example, Figure 4As shown, in an embodiment of the present application, after obtaining the Trace log, the log data can be cleaned; then the abnormal service nodes are marked according to the operation information of each service node (business golden indicator); in addition, in an embodiment of the present application, the suspected abnormal service nodes can be marked in combination with the calling relationship between the service nodes (calling service map) and other resource topologies (the relationship between service nodes); the abnormal node set is determined based on the abnormal service nodes and the suspected abnormal service nodes.
[0101] In addition, if Figure 5 As shown, in some embodiments of the present application, the log data may also include historical log data, that is, Figure 5 The offline data access shown in FIG. 4 is as follows; the learning model can be trained through historical log data, and then the abnormal service node can be predicted through the trained learning model.
[0102] In another embodiment of the present application, determining the root cause service node among the abnormal service nodes according to the fault correlation coefficient includes:
[0103] The fault correlation coefficients are sorted, and the abnormal service node with the largest fault correlation coefficient is determined as the root cause service node.
[0104] It is understandable that the greater the correlation between the abnormal service node and the first service failure, the greater the possibility that the abnormal service node is the root cause service node. That is, the greater the fault correlation coefficient, the greater the possibility that the abnormal service node is the root cause service node.
[0105] Optionally, in an embodiment of the present application, the fault correlation coefficients corresponding to the abnormal service nodes may be sorted from large to small, and the node corresponding to the maximum fault correlation coefficient may be determined as the root cause service node.
[0106] In addition, in another embodiment of the present application, a preset number of root cause service nodes may be determined according to the fault correlation coefficient ranking. For example, the top three abnormal service nodes may be determined as the root cause service nodes.
[0107] The embodiment of the present application determines the abnormal service node corresponding to the first business failure by detecting the first business failure; obtains the operation information of the abnormal service node and determines the fault correlation coefficient corresponding to each of the abnormal service nodes; determines the root cause service node among the abnormal service nodes according to the fault correlation coefficient; compared with the related art in which the operation and maintenance personnel check the business logs according to the operation and maintenance experience to determine the root cause service node, the embodiment of the present application determines the fault correlation coefficient according to the fault topology, and then determines the root cause service node according to the fault correlation coefficient, thereby improving the efficiency and accuracy of determining the root cause service node and saving human resources.
[0108] The present application embodiment provides an information analysis device, such as Figure 6 As shown, the information analysis device 60 may include: a first determination module 601, a second determination module 602 and a third determination module 603, wherein:
[0109] A first determining module 601 is configured to detect a first service failure and determine an abnormal service node corresponding to the first service failure;
[0110] The second determination module 602 is used to obtain the operation information of the abnormal service node and determine the fault correlation coefficient corresponding to each abnormal service node; wherein the fault correlation coefficient is determined according to the fault topology corresponding to the first service fault, and the fault topology is determined according to the operation information of the abnormal service node;
[0111] The third determining module 603 is used to determine the root cause service node among the abnormal service nodes according to the fault correlation coefficient.
[0112] In another embodiment of the present application, the device further comprises:
[0113] A fourth determination module, used to obtain the alarm information of the root cause service node;
[0114] In the alarm information, target alarm information corresponding to the first service failure is determined.
[0115] In another embodiment of the present application, the second determining module is specifically configured to:
[0116] Determine a fault topology corresponding to the first service fault according to the operation information of the abnormal service node; wherein the fault topology includes the position information of the abnormal service node on the call chain and the number of times the abnormal service node performs mutual calls;
[0117] The fault correlation coefficient is determined according to the fault topology.
[0118] In another embodiment of the present application, the third determination module is specifically used to:
[0119] The fault correlation coefficients are sorted, and the abnormal service node with the largest fault correlation coefficient is determined as the root cause service node.
[0120] In another embodiment of the present application, the second determining module is specifically configured to:
[0121] Obtaining a service log of the first service;
[0122] Preprocessing the service log to obtain the operation information of the abnormal service node;
[0123] The preprocessing includes at least one of deleting redundant data, merging data, and adding data.
[0124] In another embodiment of the present application, the operation information includes at least one of the following:
[0125] Service call duration; service call success rate; number of service calls.
[0126] The device of the embodiments of the present application can execute the method provided by the embodiments of the present application, and the implementation principles are similar. The actions performed by each module in the device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the device, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.
[0127] The embodiment of the present application determines the abnormal service node corresponding to the first business failure by detecting the first business failure; obtains the operation information of the abnormal service node and determines the fault correlation coefficient corresponding to each of the abnormal service nodes; determines the root cause service node among the abnormal service nodes according to the fault correlation coefficient; compared with the related art in which the operation and maintenance personnel check the business logs according to the operation and maintenance experience to determine the root cause service node, the embodiment of the present application determines the fault correlation coefficient according to the fault topology, and then determines the root cause service node according to the fault correlation coefficient, thereby improving the efficiency and accuracy of determining the root cause service node and saving human resources.
[0128] An electronic device is provided in an embodiment of the present application, and the electronic device includes: a memory and a processor; at least one program, stored in the memory, for being executed by the processor, and compared with the prior art, the following can be achieved: the embodiment of the present application determines an abnormal service node corresponding to the first business failure by detecting a first business failure; obtains operation information of the abnormal service node, and determines a fault correlation coefficient corresponding to each of the abnormal service nodes; determines a root cause service node among the abnormal service nodes according to the fault correlation coefficient; compared with the related art in which operation and maintenance personnel check business logs based on operation and maintenance experience to determine the root cause service node, the embodiment of the present application determines the fault correlation coefficient based on the fault topology, and then determines the root cause service node based on the fault correlation coefficient, thereby improving the efficiency and accuracy of determining the root cause service node and saving human resources.
[0129] In an alternative embodiment, an electronic device is provided, such as Figure 7 As shown, Figure 7The electronic device 4000 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, such as through a bus 4002. Optionally, the electronic device 4000 may also include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.
[0130] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0131] The bus 4002 may include a path to transmit information between the above components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0132] The memory 4003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.
[0133] The memory 4003 is used to store the application code (computer program) for executing the solution of the present application, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the application code stored in the memory 4003 to implement the contents shown in the above method embodiment.
[0134] The electronic devices include but are not limited to mobile phones, laptop computers, multimedia players, desktop computers, etc.
[0135] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer can execute the corresponding content in the aforementioned method embodiment.
[0136] The embodiment of the present application determines the abnormal service node corresponding to the first business failure by detecting the first business failure; obtains the operation information of the abnormal service node and determines the fault correlation coefficient corresponding to each of the abnormal service nodes; determines the root cause service node among the abnormal service nodes according to the fault correlation coefficient; compared with the related art in which the operation and maintenance personnel check the business logs according to the operation and maintenance experience to determine the root cause service node, the embodiment of the present application determines the fault correlation coefficient according to the fault topology, and then determines the root cause service node according to the fault correlation coefficient, thereby improving the efficiency and accuracy of determining the root cause service node and saving human resources.
[0137] The terms "first", "second", "third", "fourth", "1", "2", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that shown or described in the drawings.
[0138] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios of execution time, the execution order of these sub-steps or stages may be flexibly configured according to demand, and the embodiment of the present application does not limit this.
[0139] The above is only an optional implementation method for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the solution of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.
Claims
1. An information analysis method, characterized in that: include: A first service failure is detected, and an abnormal service node corresponding to the first service failure is determined; Acquire the operation information of the abnormal service node, and determine the fault correlation coefficient corresponding to each abnormal service node; wherein the fault correlation coefficient is determined according to the fault topology corresponding to the first service fault, and the fault topology is determined according to the operation information of the abnormal service node; Determining a root cause service node among the abnormal service nodes according to the fault correlation coefficient; The step of detecting a first service failure and determining an abnormal service node corresponding to the first service failure includes: Acquire operating parameters of the service node, and determine, according to the operating parameters, an abnormal service node corresponding to the first service failure; Wherein, determining the fault correlation coefficient corresponding to each abnormal service node includes: Determine a fault topology corresponding to the first service fault according to the operation information of the abnormal service node; wherein the fault topology includes the position information of the abnormal service node on the call chain and the number of times the abnormal service node performs mutual calls; The fault correlation coefficient is determined according to the fault topology.
2. The information analysis method according to claim 1, characterized in that: The method further comprises: Obtaining alarm information of the root cause service node; In the alarm information, target alarm information corresponding to the first service failure is determined.
3. The information analysis method according to claim 1, characterized in that: The determining, according to the fault correlation coefficient, a root cause service node among the abnormal service nodes comprises: The fault correlation coefficients are sorted, and the abnormal service node with the largest fault correlation coefficient is determined as the root cause service node.
4. The information analysis method according to claim 1, characterized in that: The obtaining the operation information of the abnormal service node includes: Obtaining a service log of the first service; Preprocessing the service log to obtain the operation information of the abnormal service node; The preprocessing includes at least one of deleting redundant data, merging data, and adding data.
5. The information analysis method according to any one of claims 1 to 4, characterized in that: The operation information includes at least one of the following: Service node call relationship; service call duration; service call success rate; service call times.
6. An information analysis device, characterized in that: include: A first determining module, configured to detect a first service failure and determine an abnormal service node corresponding to the first service failure; A second determination module is used to obtain the operation information of the abnormal service node and determine the fault correlation coefficient corresponding to each abnormal service node; wherein the fault correlation coefficient is determined according to the fault topology corresponding to the first service fault, and the fault topology is determined according to the operation information of the abnormal service node; A third determination module, configured to determine a root cause service node among the abnormal service nodes according to the fault correlation coefficient; Wherein, the first determining module is further specifically used for: Acquire operating parameters of the service node, and determine, according to the operating parameters, an abnormal service node corresponding to the first service failure; Wherein, the second determining module is specifically used for: Determine a fault topology corresponding to the first service fault according to the operation information of the abnormal service node; wherein the fault topology includes the position information of the abnormal service node on the call chain and the number of times the abnormal service node performs mutual calls; The fault correlation coefficient is determined according to the fault topology.
7. An electronic device, characterized in that: The electronic device comprises: one or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to: execute the information analysis method according to any one of claims 1 to 5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the information analysis method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Service fault positioning method, device, computer equipment and storage medium
CN108833184A
Fault positioning method and device and electronic equipment
CN110166264A
Method and device for searching abnormal root cause nodes of micro-service system
CN110888755A
Fault root cause positioning method of micro-service system
CN114024837A
System abnormal root cause analysis method and device
CN114202206A
