Fault positioning method and device, equipment and storage medium
By constructing a transaction tree and associated alarm set, and combining system information for fault location, the problem of information loss caused by reliance on experience in the existing technology is solved, and the accuracy and comprehensiveness of fault location are improved.
Patent Information
- Application Number
- CN202311360681.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-19
- Publication Date
- 2024-10-18
AI Technical Summary
Existing fault location methods rely on experience, which can easily lead to the loss of key information, resulting in inaccurate fault location, and the coverage of experience is limited. The summarized experience may be misleading in certain situations, and low-level alarms may contain important information but are filtered.
When detecting alarm information, determine the target transaction and build a transaction tree, locate the faulty business system according to the tree node information, combine the system information for fault location, generate associated alarm sets, and perform scoring and clustering to improve the objectivity and comprehensiveness of fault location. sex.
It improves the accuracy of fault location, avoids the loss of key information, ensures the objectivity and comprehensiveness of the fault location process, and enhances the ability to identify root causes.
Smart Images

Figure CN118796520A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a fault locating method, device, equipment and storage medium. Background Art
[0002] At present, when a fault occurs or a large number of alarms exist, handlers often only pay attention to alarms with serious fault levels, and then prioritize alarms with high levels based on experience. For example, network alarms have the highest priority, so network alarms are given priority. When physical and virtual machine downtime alarms appear at the same time, physical machine alarms are given priority. Most of the above experiences are summarized based on the knowledge base and the advanced knowledge of operation and maintenance personnel.
[0003] However, the summarized experience covers a limited scope, and sometimes the situation is different, so the summarized experience is misleading; sometimes low-level alarms also contain important information, which may be the root cause of the entire failure, but according to the existing logic, they will be filtered, resulting in the loss of key information. Summary of the invention
[0004] The main purpose of the present invention is to provide a fault location method, device, equipment and storage medium, aiming to solve the technical problem that the existing method of fault location based on experience easily leads to the loss of key information and thus inaccurate fault location.
[0005] To achieve the above object, the present invention provides a fault location method, which comprises:
[0006] When the alarm information is detected, determining the target transaction corresponding to the alarm information;
[0007] Locating the faulty business system according to the node information of the tree node in the transaction tree corresponding to the target transaction, wherein the transaction tree is used to represent the transaction process of the target transaction, and each tree node on the transaction tree is used to represent each business system involved in the transaction process;
[0008] The fault is located according to the system information of the faulty service system.
[0009] Optionally, when the alarm information is detected, before determining the target transaction corresponding to the alarm information, the method further includes:
[0010] Obtain the original message logs of each business system involved in the target transaction;
[0011] Constructing a transaction tree corresponding to the target transaction according to the original message log;
[0012] Each tree node on the transaction tree is associated with each business system.
[0013] Optionally, constructing a transaction tree corresponding to the target transaction according to the original message log includes:
[0014] Preprocessing the original message log through a rule engine to obtain multiple message pairs, each message pair including a request log and a return log;
[0015] Generate tree nodes corresponding to each message pair;
[0016] Determine the upstream and downstream relationships between the various tree nodes according to the request logs and return logs of the various tree nodes, and generate tree branches according to the upstream and downstream relationships;
[0017] Multiple tree branches are merged according to the same parent link rule, and the transaction tree obtained by merging is sorted to obtain a transaction tree corresponding to the target transaction.
[0018] Optionally, locating the faulty business system according to the node information of the tree node in the transaction tree corresponding to the target transaction includes:
[0019] Determine the abnormal business system according to the node information of the tree node in the transaction tree corresponding to the target transaction;
[0020] Determining an upstream business system of the abnormal business system according to the transaction tree;
[0021] The faulty business system is located from the abnormal business system and the upstream business system.
[0022] Optionally, locating the fault according to the system information of the faulty service system includes:
[0023] Generate a related alarm set according to the alarm type of the faulty business system;
[0024] Scoring each alarm information in the associated alarm set, and generating a root cause alarm set according to the scoring result;
[0025] Clustering is performed on each alarm information in the root cause alarm set, and fault location is performed according to the clustering result.
[0026] Optionally, scoring each alarm information in the associated alarm set and generating a root cause alarm set according to the scoring result includes:
[0027] Obtaining the alarm level, associated system type, and associated transaction quantity of each alarm information in the associated alarm set;
[0028] Each alarm information in the associated alarm set is scored according to the alarm level, the associated system type, and the associated transaction quantity, and a root cause alarm set is generated according to the scoring result.
[0029] Optionally, generating a related alarm set according to the alarm type of the faulty service system includes:
[0030] Searching for an alarm of the faulty service system according to an alarm type and a preset alarm priority of the faulty service system;
[0031] Generate a related alarm set according to the alarm of the faulty business system.
[0032] In addition, to achieve the above object, the present invention further provides a fault location device, the fault location device comprising:
[0033] A determination module, used for determining a target transaction corresponding to the alarm information when the alarm information is detected;
[0034] a positioning module, used to locate the faulty business system according to the node information of the tree node in the transaction tree corresponding to the target transaction, wherein the transaction tree is used to represent the transaction process of the target transaction, and each tree node on the transaction tree is used to represent each business system involved in the transaction process;
[0035] The detection module is used to locate the fault according to the system information of the faulty service system.
[0036] In addition, to achieve the above objectives, the present invention also proposes a fault location device, which includes a memory, a processor, and a fault location program stored in the memory and executable on the processor, wherein the fault location program is configured to implement the fault location method described above.
[0037] In addition, to achieve the above-mentioned purpose, the present invention further proposes a storage medium, on which a fault location program is stored, and when the fault location program is executed by a processor, the fault location method as described above is implemented.
[0038] The present invention discloses that when alarm information is detected, a target transaction corresponding to the alarm information is determined, and the faulty business system is located according to the node information of the tree node in the transaction tree corresponding to the target transaction. The transaction tree is used to represent the transaction process of the target transaction, and each tree node on the transaction tree is used to represent each business system involved in the transaction process, and the fault is located according to the system information of the faulty business system. Since the present invention first locates the faulty business system according to the transaction tree of the target transaction corresponding to the alarm information, and then locates the fault according to the system information of the faulty business system, the fault location process is made more objective and comprehensive, thereby avoiding the loss of key information and further improving the accuracy of fault location. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a structural schematic diagram of a fault location device in a hardware operating environment involved in an embodiment of the present invention;
[0040] Figure 2 This is a flow chart of a first embodiment of a fault location method of the present invention;
[0041] Figure 3 A schematic diagram of a flow chart of a second embodiment of a fault location method of the present invention;
[0042] Figure 4 A schematic diagram of a process of constructing a transaction tree for a fault location method according to an embodiment of the present invention;
[0043] Figure 5 An example diagram of a transaction tree formed by an electricity bill payment transaction in accordance with an embodiment of a fault location method of the present invention;
[0044] Figure 6 A schematic diagram of a flow chart of a third embodiment of a fault location method of the present invention;
[0045] Figure 7 An example of a root cause alarm diagram displayed on an interface of an embodiment of a fault locating method of the present invention;
[0046] Figure 8 An example of a root cause alarm ranking table displayed on an interface of an embodiment of a fault location method of the present invention;
[0047] Fig. 9 This is a structural block diagram of the first embodiment of the fault location device of the present invention.
[0048] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0049] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0050] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the structure of a fault location device in a hardware operating environment involved in an embodiment of the present invention.
[0051] like Figure 1As shown, the fault location device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), and the user interface 1003 may also include a standard wired interface and a wireless interface. The wired interface of the user interface 1003 may be a USB interface in the present invention. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable memory (Non-volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0052] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the fault location device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0053] like Figure 1 As shown, the memory 1005 identified as a computer storage medium may include an operating system, a network communication module, a user interface module, and a fault location program.
[0054] exist Figure 1 In the fault location device shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the user equipment; the fault location device calls the fault location program stored in the memory 1005 through the processor 1001, and executes the fault location method provided by the embodiment of the present invention.
[0055] Based on the above hardware structure, an embodiment of the fault location method of the present invention is proposed.
[0056] Reference Figure 2 , Figure 2 The figure is a flow chart of the first embodiment of the fault location method of the present invention, and the first embodiment of the fault location method of the present invention is proposed.
[0057] It should be understood that in payment scenarios, it is usually necessary to monitor alarm information of systems, middleware, networks, and businesses. Each alarm will contain the corresponding alarm level (fault, serious, warning, general), alarm type (based on the alarm source, it is divided into network, host alarm, hardware alarm, database, middleware, application, business alarm, etc.), alarm object (specific abnormal points such as host A, database B), alarm occurrence time and other information.
[0058] At present, when a fault occurs or a large number of alarms exist, handlers often only pay attention to alarms with serious fault levels, and then prioritize alarms with high levels based on experience. For example, network alarms have the highest priority, so network alarms are given priority. When physical and virtual machine downtime alarms appear at the same time, physical machine alarms are given priority. Most of the above experiences are summarized based on the knowledge base and the advanced knowledge of operation and maintenance personnel.
[0059] However, the above fault location method has the following problems:
[0060] 1. The summarized experience covers a limited scope. Sometimes the situation is different and the summarized experience is misleading. The operation and maintenance or developers need to analyze the situation according to the on-site situation, which places high quality requirements on the operation and maintenance or developers. At the same time, the knowledge base needs to be maintained in a timely manner, which is time-consuming and labor-intensive, and the difficulty of maintenance is further increased, such as conflicts between new experience and original experience;
[0061] 2. Sometimes low-level alarms often contain important information, which may be the root cause of the entire fault, but according to the existing logic, they will be filtered, resulting in the loss of key information. However, if the alarm handler pays attention to all alarms, a lot of useless noise will be introduced, leading to misjudgment of the root cause;
[0062] 3. Poor feasibility. The reasons inferred based on experience lack a reasoning process. The operation and maintenance personnel only infer based on experience but do not conduct specific analysis based on the on-site situation, which makes it difficult to be convincing.
[0063] Therefore, in order to overcome the above-mentioned defects, in this embodiment, the faulty business system is first located according to the transaction tree of the target transaction corresponding to the alarm information, and then the fault is located according to the system information of the faulty business system, so that the fault location process is more objective and comprehensive, thereby avoiding the loss of key information and improving the accuracy of fault location.
[0064] In a first embodiment, the fault location method includes:
[0065] Step S10: When the alarm information is detected, a target transaction corresponding to the alarm information is determined.
[0066] It can be understood that the execution subject of this embodiment can be a fault location device with data processing, network communication and program running functions, such as a server, etc., or other electronic devices that can achieve the same or similar functions, and this embodiment does not limit this.
[0067] It should be noted that the alarm information can be system, middleware, network, business and other alarm information. Each alarm will contain the corresponding alarm level (fault, serious, warning, general), alarm type (based on the alarm source, it is divided into network, host alarm, hardware alarm, database, middleware, application, business alarm, etc.), alarm object (specific abnormal point such as host A, database B), alarm occurrence time and other information. The target transaction can be the abnormal transaction corresponding to the alarm information.
[0068] Step S20: locating the faulty business system according to the node information of the tree node in the transaction tree corresponding to the target transaction, wherein the transaction tree is used to represent the transaction process of the target transaction, and each tree node on the transaction tree is used to represent each business system involved in the transaction process.
[0069] It should be understood that the occurrence of a fault will directly lead to timeouts, interruptions, and other phenomena in some transactions. Therefore, abnormal transactions become a good entry point for fault analysis. In this embodiment, the faulty business system is located based on the transaction tree of the target transaction corresponding to the alarm information.
[0070] It should be noted that the transaction tree can be pre-built, and the tree nodes represent the request logs and return logs left by the target transaction on various business systems from the beginning to the end, and the branches are generated according to the conversion of the upstream and downstream relationships between the various tree nodes.
[0071] It can be understood that locating the faulty business system according to the node information of the tree nodes in the transaction tree corresponding to the target transaction may be analyzing the node information of the tree nodes in the transaction tree corresponding to the target transaction, and locating the faulty business system according to the analysis result.
[0072] Step S30: locating the fault according to the system information of the faulty service system.
[0073] It should be understood that locating the fault according to the system information of the faulty service system may be to generate a related alarm set according to the alarm type of the faulty service system, score each alarm information in the related alarm set, generate a root cause alarm set according to the scoring result, cluster each alarm information in the root cause alarm set, and locate the fault according to the clustering result;
[0074] Alternatively, the system information of the faulty business system may be directly analyzed to locate the fault.
[0075] In the present embodiment, it is disclosed that when alarm information is detected, a target transaction corresponding to the alarm information is determined, and the faulty business system is located according to the node information of the tree node in the transaction tree corresponding to the target transaction. The transaction tree is used to represent the transaction process of the target transaction, and each tree node on the transaction tree is used to represent each business system involved in the transaction process. The fault is located according to the system information of the faulty business system. Since the present embodiment first locates the faulty business system according to the transaction tree of the target transaction corresponding to the alarm information, and then locates the fault according to the system information of the faulty business system, the fault location process is made more objective and comprehensive, thereby avoiding the loss of key information and further improving the accuracy of fault location.
[0076] Reference Figure 3 , Figure 3 This is a flow chart of the second embodiment of the fault location method of the present invention. Figure 2 The first embodiment shown provides a second embodiment of the fault location method of the present invention.
[0077] In the second embodiment, before step S10, the method further includes:
[0078] Step S01: Obtain the original message logs of each business system involved in the target transaction.
[0079] It should be understood that in order to facilitate subsequent fault location and improve fault location efficiency, in this embodiment, a transaction tree corresponding to the target transaction can be constructed in advance based on the original message logs of each business system involved in the target transaction, and each tree node on the transaction tree can be associated with the each business system.
[0080] It should be noted that the business system may be an independent business system or a subsystem in a business system, and this embodiment does not limit this.
[0081] Step S02: constructing a transaction tree corresponding to the target transaction according to the original message log.
[0082] It can be understood that the original message log can be a call log left on each business system from the beginning to the end of the target transaction, and the call log can include the request log and return log left on each business system from the beginning to the end of the target transaction. Therefore, in this embodiment, the target transaction can be constructed according to the original message log according to preset rules, wherein the preset rules are used to analyze the transaction process of the target transaction.
[0083] Furthermore, the step S02 includes: preprocessing the original message log through a rule engine to obtain multiple message pairs, each message pair including a request log and a return log; generating tree nodes corresponding to each message pair; determining the upstream and downstream relationships between each tree node based on the request log and return log of each tree node, and generating tree branches based on the upstream and downstream relationships; merging multiple tree branches according to the same parent link rule, and organizing the merged transaction tree to obtain the transaction tree corresponding to the target transaction.
[0084] For ease of understanding, refer to Figure 4 This is for illustration only, but not for limitation of the present invention. Figure 4 The present invention is a flowchart of constructing a transaction tree according to an embodiment of the fault location method. In the figure, the process of constructing a transaction tree is as follows: comprising: preprocessing the original message log through a rule engine to obtain multiple message pairs, each message pair includes a request log and a return log, representing a call of an interface; generating a tree node corresponding to each message pair, that is, a pair of request return messages corresponds to one node; determining the upstream and downstream relationship between each discrete tree node according to the request log and return log in the node, and converting them into a number of tree branches according to the upstream and downstream relationship; merging a number of tree branches into a tree according to rules such as the same parent link; and then doing some sorting, such as horizontal merging and vertical merging to obtain the final transaction tree.
[0085] For ease of understanding, refer to Figure 5 The electricity bill payment transaction is taken as an example for explanation, but the present invention is not limited thereto. Figure 5 This is an example diagram of a transaction tree formed by an electricity bill payment transaction in an embodiment of the fault locating method of the present invention. In the diagram, [acquirer-agw] / merchant / orderPay order payment is a root node, [withhold-payment] / payment / order-payment order payment is a tree node, and the [common] / sensitive / cryptoByPwdPlatform password verification node is an upstream node of the [withhold-payment] / payment / order-payment order payment node.
[0086] If there are multiple identical attribute nodes in the upstream of the same link, that is, Figure 5In the [usermanager] / user / info / real-name-decrypt user information decryption node, if there is the same [common] / sensitive / cryptoByM4 / IDCard information SM4 decryption node upstream, the [common] / sensitive / cryptoByM4 / IDCard information SM4 decryption node is vertically merged into a tree node. If the upstream and downstream nodes in different links have the same attributes, it means that they have the same parent link, and a horizontal merge is performed.
[0087] The transaction structures in different business scenarios (borrowing, repayment, account inquiry) may vary greatly, but the process of generating a transaction tree is the same, so I will not go into details here.
[0088] Step S03: Associating each tree node on the transaction tree with each business system.
[0089] It should be understood that each node on the transaction tree corresponds to a business system (a business system contains multiple tree nodes). Combined with the data from the Configuration Management Database (CMDB), the business system node application name, computer room, IP address, host IP address, security domain, VPC and other information can be obtained.
[0090] like Figure 5 In the [sword-risk] / swordRisk / chkBlackLst risk control check blacklist tree node, the corresponding business system is sword-risk risk control check. Combined with CMDB, it is found that the sword-risk business system is a real-time risk control engine application business system, the IP address is 172.24.31.203, and the computer room is the general business domain of the Hexi computer room in Changsha, which is the payment risk control VPC.
[0091] In this embodiment, a transaction tree corresponding to the target transaction is constructed in advance based on the original message logs of each business system involved in the target transaction, and each tree node on the transaction tree is associated with the each business system, so as to facilitate subsequent fault location and thus improve fault location efficiency.
[0092] Reference Figure 6 , Figure 6 This is a flow chart of a third embodiment of a fault location method of the present invention. Based on the above embodiments, a third embodiment of a fault location method of the present invention is proposed.
[0093] In the third embodiment, the step S20 includes:
[0094] Step S201: determining an abnormal business system according to node information of a tree node in a transaction tree corresponding to the target transaction.
[0095] It should be understood that in order to more accurately locate the faulty business system and improve the accuracy of fault location, in this embodiment, the abnormal business system is first determined based on the node information of the tree node in the transaction tree corresponding to the target transaction, and then the upstream business system of the abnormal business system is determined based on the transaction tree, and then the faulty business system is located from the abnormal business system and the upstream business system.
[0096] Step S202: determining the upstream business system of the abnormal business system according to the transaction tree.
[0097] Step S203: locating the faulty business system from the abnormal business system and the upstream business system.
[0098] It should be understood that each node on the transaction tree obtains information such as request log number, transaction serial number, processing time, interface name, error code, etc. according to the request log and return log, and at the same time, the SQL, asynchronous message, redis request, etc. associated with the request log number are used. For example, the processing time information obtains the processing time index of the node; the error code obtains the system and business success rate index and whether to send an interruption index; the SQL request time index is obtained by executing SQL; the slow redis time index is obtained by redis request, etc.
[0099] When a failure occurs, multiple transactions are usually affected. For each transaction, the abnormal system can be located based on the request log and return log, processing time, success rate, whether an interruption occurred, and other information. For example, in the electricity bill payment transaction, the system success rate data is calculated based on the request log and return log, and the year-on-year and month-on-month methods are used, that is, the system success rate indicators when the system with the tree node is normal and abnormal are compared.
[0100] like Figure 5In the [merchantbase] / keyinfo / keycertificate merchant key pair check tree node, the system success rate is 99.99% when it is normal, but the system success rate is 10% when the system is abnormal. The system success rate index of this tree node has dropped the most, so the [merchantbase] / keyinfo / keycertificate merchant key pair check tree node is considered to be an abnormal number node, and the merchant base merchantbase business system where this tree node is located is considered to be an abnormal business system. At the same time, it is possible that there is a problem with the upstream business system, which in turn affects the downstream business system. The abnormal business system located by the abnormal transaction is combined with the risk control check sword-risk, account account, and public foundation common upstream business system on its transaction tree for analysis, which narrows the scope of the root cause alarm and covers all locations where the fault occurs as much as possible. Finally, the merchant base merchantbase, risk control check sword-risk, account account, and public foundation common business systems are identified as faulty business systems.
[0101] In this embodiment, the abnormal business system is first determined based on the node information of the tree node in the transaction tree corresponding to the target transaction, and then the upstream business system of the abnormal business system is determined based on the transaction tree, and then the faulty business system is located from the abnormal business system and the upstream business system, so that the faulty business system can be located more accurately, thereby improving the accuracy of fault location.
[0102] In the third embodiment, the step S30 includes:
[0103] Step S301: Generate a related alarm set according to the alarm type of the faulty business system.
[0104] It should be understood that in order to reduce the scope of the fault and further improve the accuracy of fault location, in this embodiment, a related alarm set is first generated, and then each alarm information in the related alarm set is scored and clustered for further analysis.
[0105] It can be understood that generating the associated alarm set according to the alarm type of the faulty business system may be to search for the alarm of the faulty business system according to the alarm type of the faulty business system and the preset alarm priority; and to generate the associated alarm set according to the alarm of the faulty business system.
[0106] It should be understood that after locating the faulty business system, various types of alarm information of the business system during the time period when the fault occurred are associated, such as the host type. According to the machine IP, host machine IP, VPC, and computer room, the alarm information is associated by gradually expanding the scope from the precise scope to the fuzzy scope. First, the host alarm of each faulty business system IP is associated, and then the host alarm of the physical machine where the virtual machine is located and the VPC-related host alarm are associated. Then, all host type alarms that can be associated with the business system are associated to form an impact surface. As the scope of association is gradually enlarged, the confidence of the associated alarm is constantly reduced. For SQL or middleware type alarms, directly associate whether there are corresponding alarms in the database cluster and middleware cluster that each faulty business system can be associated with.
[0107] Step S302: scoring each alarm information in the associated alarm set, and generating a root cause alarm set according to the scoring result.
[0108] It should be understood that scoring each alarm information in the associated alarm set and generating a root cause alarm set based on the scoring results may be scoring each alarm information in the associated alarm set according to preset scoring rules and generating a root cause alarm set based on the scoring results, wherein the preset scoring rules may be pre-set.
[0109] Furthermore, in order to improve the accuracy of the scoring, the step S302 includes: obtaining the alarm level, associated system type and number of associated transactions of each alarm information in the associated alarm set; scoring each alarm information in the associated alarm set according to the alarm level, the associated system type and the number of associated transactions, and generating a root cause alarm set according to the scoring results.
[0110] For all the associated alarm information, it is necessary to score. The scoring parameters used in this embodiment include: alarm level (fault, serious, warning, general), associated business system type (business system, upstream business system, downstream business system), and the number of associated transactions. The score is obtained by the weights and scores of different parameters. Alarms with scores higher than this threshold are considered to be one of the causes of this fault and are added to the root cause alarm set. Alarms with scores lower than the threshold often occur frequently and periodically, or the information provided is already included in the alarms with higher scores, so they can be filtered out. The scores of different parameters and the weights of different parameters are currently shown in the following table:
[0111] Table 1 Alarm level score table (10 points):
[0112] Alarm level Fraction Fault 10 serious 8 warn 5 generally 3
[0113] Table 2 Score table of associated business system types (10 points):
[0114] Related business system type Fraction Business System 10 Upstream business system 8 Downstream business system 5
[0115] Table 3: Score table of the number of transactions associated with it (out of 10):
[0116] Number of transactions associated Score Threshold 1100~(not included) 10 900~1100(not included) 9 700~900(not included) 8 540~700(not included) 7 400~540(not included) 6 280~400(not included) 5 180~280(not included) 4 100~180(not included) 3 40~100(not included) 2 1~40(not included) 1 0 0
[0117] Table 4 Weight table:
[0118] Parameter Type Weight Alarm level 50% Related business system type 30% Number of transactions associated 20%
[0119] The alarm level score is M, the associated business system type score is N, the associated transaction number is X, and the final weight score is P = M*0.5 + N*0.3 + X*0.2. The final weight score is compared with the threshold (5.7 points) to determine the root cause alarm set; if the machine IP memory exceeds 90% of the alarm, the alarm is of severe level, business system type, and is not associated with the number of transactions, then the weight is P = 8*0.5 + 10*0.3 + 0*0.2 = 7 points, and the alarm is added to the root cause alarm set. The corresponding machine IP memory also has an alarm of more than 80%, the alarm is of warning level, business system type, and is not associated with the number of transactions, then the weight is P = 5*0.5 + 10*0.3 + 0*0.2 = 5.5 points, then the alarm is already included in the higher alarm, and can be filtered out according to the score and not added to the root cause alarm set.
[0120] Step S303: clustering each alarm information in the root cause alarm set, and locating the fault according to the clustering result.
[0121] The root cause alarm set may contain multiple alarms of various types, and the readability is poor, so further clustering is needed to merge alarms of the same type (common categories are: host, container, hardware, storage, database, middleware, application, network, business, etc.), and only retain one summarized and highly readable root cause alarm for each category. For example, in the above example, the host type root cause alarm has an alarm that the machine IP memory exceeds 90%, and the host system kernel is abnormal. The root cause alarm graph merged by host type shows an alarm that the machine IP memory exceeds 90%. At the same time, the result of each alarm has a confidence level, and finally these results are sorted and output by type and confidence level, which makes it convenient for operation and maintenance personnel to quickly and accurately locate the fault, and finally obtain a root cause alarm graph (such as Figure 7 As shown, Figure 7 An example of a root cause alarm diagram displayed on an interface of an embodiment of a fault location method of the present invention) and a root cause alarm sorting result table (such as Figure 8 As shown, Figure 8 This is an example of a root cause alarm sorting table displayed on an interface of an embodiment of a fault locating method of the present invention.
[0122] like Figure 7 ,8 As shown in the figure, the success rate of the current system dropped suddenly in the electricity bill payment transaction, and a large number of external interface error logs appeared on the abnormal business system (within 5 minutes, the number of ERRORs received by the bank gateway was greater than 100). From the appearance, it is likely that there is a problem with the external partner. However, by searching the tree node associated with the abnormal business system, it can be found that there is a serious alarm of database SQL (172.26.64.11:3888 database has 5 slow SQLs) on the node, and it affects multiple transactions, so it is believed that the abnormality is more likely to be caused by SQL. Later, the operation and maintenance personnel confirmed that there were indeed a large number of slow queries on the node at that time, which caused a sudden increase in the average delay of the business. The external interface error was only a superficial phenomenon, and the slow database query was the root cause of the failure.
[0123] In this embodiment, a correlated alarm set is first generated, and then each alarm information in the correlated alarm set is scored and clustered for further analysis, thereby narrowing the fault scope and further improving the accuracy of fault location.
[0124] In addition, refer to Fig. 9 , the embodiment of the present invention also provides a fault location device;
[0125] It should be understood that in payment scenarios, it is usually necessary to monitor alarm information of systems, middleware, networks, and businesses. Each alarm will contain the corresponding alarm level (fault, serious, warning, general), alarm type (based on the alarm source, it is divided into network, host alarm, hardware alarm, database, middleware, application, business alarm, etc.), alarm object (specific abnormal points such as host A, database B), alarm occurrence time and other information.
[0126] At present, when a fault occurs or a large number of alarms exist, handlers often only pay attention to alarms with serious fault levels, and then prioritize alarms with high levels based on experience. For example, network alarms have the highest priority, so network alarms are given priority. When physical and virtual machine downtime alarms appear at the same time, physical machine alarms are given priority. Most of the above experiences are summarized based on the knowledge base and the advanced knowledge of operation and maintenance personnel.
[0127] However, the above fault location method has the following problems:
[0128] 1. The summarized experience covers a limited scope. Sometimes the situation is different and the summarized experience is misleading. The operation and maintenance or developers need to analyze the situation on site, which places high quality requirements on the operation and maintenance or developers. At the same time, the knowledge base needs to be maintained in a timely manner, which is time-consuming and labor-intensive, and the difficulty of maintenance is further increased, such as conflicts between new experience and original experience;
[0129] 2. Sometimes low-level alarms often contain important information, which may be the root cause of the entire fault, but according to the existing logic, they will be filtered, resulting in the loss of key information. However, if the alarm handler pays attention to all alarms, a lot of useless noise will be introduced, leading to misjudgment of the root cause;
[0130] 3. Poor feasibility. The reasons inferred based on experience lack a reasoning process. The operation and maintenance personnel only infer based on experience but do not conduct specific analysis based on the on-site situation, which makes it difficult to be convincing.
[0131] Therefore, in order to overcome the above-mentioned defects, in this embodiment, the faulty business system is first located according to the transaction tree of the target transaction corresponding to the alarm information, and then the fault is located according to the system information of the faulty business system, so that the fault location process is more objective and comprehensive, thereby avoiding the loss of key information and improving the accuracy of fault location.
[0132] In this embodiment, the fault locating device includes:
[0133] The determination module 10 is used to determine the target transaction corresponding to the alarm information when the alarm information is detected.
[0134] It should be noted that the alarm information can be system, middleware, network, business and other alarm information. Each alarm will contain the corresponding alarm level (fault, serious, warning, general), alarm type (based on the alarm source, it is divided into network, host alarm, hardware alarm, database, middleware, application, business alarm, etc.), alarm object (specific abnormal point such as host A, database B), alarm occurrence time and other information. The target transaction can be the abnormal transaction corresponding to the alarm information.
[0135] The positioning module 20 is used to locate the faulty business system according to the node information of the tree node in the transaction tree corresponding to the target transaction, the transaction tree is used to represent the transaction process of the target transaction, and each tree node on the transaction tree is used to represent each business system involved in the transaction process.
[0136] It should be understood that the occurrence of a fault will directly lead to timeouts, interruptions, and other phenomena in some transactions. Therefore, abnormal transactions become a good entry point for fault analysis. In this embodiment, the faulty business system is located based on the transaction tree of the target transaction corresponding to the alarm information.
[0137] It should be noted that the transaction tree can be pre-built, and the tree nodes represent the request logs and return logs left by the target transaction on various business systems from the beginning to the end, and the branches are generated according to the conversion of the upstream and downstream relationships between the various tree nodes.
[0138] It can be understood that locating the faulty business system according to the node information of the tree nodes in the transaction tree corresponding to the target transaction may be analyzing the node information of the tree nodes in the transaction tree corresponding to the target transaction, and locating the faulty business system according to the analysis result.
[0139] The detection module 30 is used to locate the fault according to the system information of the faulty service system.
[0140] It should be understood that locating the fault according to the system information of the faulty service system may be to generate a related alarm set according to the alarm type of the faulty service system, score each alarm information in the related alarm set, generate a root cause alarm set according to the scoring result, cluster each alarm information in the root cause alarm set, and locate the fault according to the clustering result;
[0141] Alternatively, the system information of the faulty business system may be directly analyzed to locate the fault.
[0142] In the present embodiment, it is disclosed that when alarm information is detected, a target transaction corresponding to the alarm information is determined, and the faulty business system is located according to the node information of the tree node in the transaction tree corresponding to the target transaction. The transaction tree is used to represent the transaction process of the target transaction, and each tree node on the transaction tree is used to represent each business system involved in the transaction process. The fault is located according to the system information of the faulty business system. Since the present embodiment first locates the faulty business system according to the transaction tree of the target transaction corresponding to the alarm information, and then locates the fault according to the system information of the faulty business system, the fault location process is made more objective and comprehensive, thereby avoiding the loss of key information and further improving the accuracy of fault location.
[0143] In one embodiment, the fault locating device further includes:
[0144] A construction module is used to obtain the original message logs of each business system involved in the target transaction; construct a transaction tree corresponding to the target transaction according to the original message logs; and associate each tree node on the transaction tree with each business system.
[0145] In one embodiment, the construction module is also used to pre-process the original message log through a rule engine to obtain multiple message pairs, each message pair including a request log and a return log; generate tree nodes corresponding to each message pair; determine the upstream and downstream relationships between each tree node based on the request log and return log of each tree node, and generate tree branches based on the upstream and downstream relationships; merge multiple tree branches according to the same parent link rule, and organize the merged transaction tree to obtain the transaction tree corresponding to the target transaction.
[0146] In one embodiment, the positioning module 20 is also used to pre-process the original message log through a rule engine to obtain multiple message pairs, each message pair including a request log and a return log; generate tree nodes corresponding to each message pair; determine the upstream and downstream relationships between each tree node based on the request log and return log of each tree node, and generate tree branches based on the upstream and downstream relationships; merge multiple tree branches according to the same parent link rule, and organize the merged transaction tree to obtain the transaction tree corresponding to the target transaction.
[0147] In one embodiment, the detection module 30 is also used to generate an associated alarm set according to the alarm type of the faulty business system; score each alarm information in the associated alarm set, and generate a root cause alarm set according to the scoring result; cluster each alarm information in the root cause alarm set, and locate the fault according to the clustering result.
[0148] In one embodiment, the detection module 30 is also used to obtain the alarm level, associated system type and associated transaction number of each alarm information in the associated alarm set; score each alarm information in the associated alarm set according to the alarm level, the associated system type and the associated transaction number, and generate a root cause alarm set according to the scoring result.
[0149] In one embodiment, the detection module 30 is further configured to search for an alarm of the faulty service system according to an alarm type and a preset alarm priority of the faulty service system; and generate a related alarm set according to the alarm of the faulty service system.
[0150] Other embodiments or specific implementations of the fault location device of the present invention may refer to the above-mentioned method embodiments, which will not be described in detail here.
[0151] In addition, an embodiment of the present invention further provides a storage medium, on which a fault location program is stored. When the fault location program is executed by a processor, the fault location method as described above is implemented.
[0152] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0153] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0154] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory image (ROM) / random access memory (RAM), a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0155] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A fault location method, It is characterized in that The fault location method comprises: When the alarm information is detected, determining the target transaction corresponding to the alarm information; Locating the faulty business system according to the node information of the tree node in the transaction tree corresponding to the target transaction, wherein the transaction tree is used to represent the transaction process of the target transaction, and each tree node on the transaction tree is used to represent each business system involved in the transaction process; The fault is located according to the system information of the faulty service system.
2. The fault location method according to claim 1, It is characterized in that When the alarm information is detected, before determining the target transaction corresponding to the alarm information, the method further includes: Obtain the original message logs of each business system involved in the target transaction; Constructing a transaction tree corresponding to the target transaction according to the original message log; Each tree node on the transaction tree is associated with each business system.
3. The fault location method according to claim 2, It is characterized in that The step of constructing a transaction tree corresponding to the target transaction according to the original message log includes: Preprocessing the original message log through a rule engine to obtain multiple message pairs, each message pair including a request log and a return log; Generate tree nodes corresponding to each message pair; Determine the upstream and downstream relationships between the various tree nodes according to the request logs and return logs of the various tree nodes, and generate tree branches according to the upstream and downstream relationships; Multiple tree branches are merged according to the same parent link rule, and the transaction tree obtained by merging is sorted to obtain a transaction tree corresponding to the target transaction.
4. The fault location method according to any one of claims 1 to 3, It is characterized in that The faulty business system for locating the faulty business system according to the node information of the tree node in the transaction tree corresponding to the target transaction includes: Determine the abnormal business system according to the node information of the tree node in the transaction tree corresponding to the target transaction; Determining an upstream business system of the abnormal business system according to the transaction tree; The faulty business system is located from the abnormal business system and the upstream business system.
5. The fault location method according to any one of claims 1 to 3, It is characterized in that The performing fault locating according to the system information of the faulty service system includes: Generate a related alarm set according to the alarm type of the faulty business system; Scoring each alarm information in the associated alarm set, and generating a root cause alarm set according to the scoring result; Clustering is performed on each alarm information in the root cause alarm set, and fault location is performed according to the clustering result.
6. The fault location method according to claim 5, It is characterized in that Scoring each alarm information in the associated alarm set and generating a root cause alarm set according to the scoring result includes: Obtaining the alarm level, associated system type, and associated transaction quantity of each alarm information in the associated alarm set; Each alarm information in the associated alarm set is scored according to the alarm level, the associated system type, and the associated transaction quantity, and a root cause alarm set is generated according to the scoring result.
7. The fault location method according to claim 5, It is characterized in that The generating of the associated alarm set according to the alarm type of the faulty business system includes: Searching for an alarm of the faulty service system according to an alarm type and a preset alarm priority of the faulty service system; Generate a related alarm set according to the alarm of the faulty business system.
8. A fault location device, It is characterized in that The fault locating device comprises: A determination module, used for determining a target transaction corresponding to the alarm information when the alarm information is detected; a positioning module, used to locate the faulty business system according to the node information of the tree node in the transaction tree corresponding to the target transaction, wherein the transaction tree is used to represent the transaction process of the target transaction, and each tree node on the transaction tree is used to represent each business system involved in the transaction process; The detection module is used to locate the fault according to the system information of the faulty service system.
9. A fault location device, It is characterized in that The fault location device comprises: a memory, a processor, and a fault location program stored in the memory and executable on the processor, wherein the fault location program implements the fault location method according to any one of claims 1 to 7 when executed by the processor.
10. A storage medium, It is characterized in that The storage medium stores a fault location program, and when the fault location program is executed by the processor, the fault location method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Method and device for determining root cause node and nonvolatile storage medium
CN119788505A
Information processing method and device, equipment, storage medium and computer program product
CN121255568A
Information processing method, apparatus, device, storage medium, and computer program product
CN121255568B
