Service fault positioning method and device, equipment and storage medium
By aggregating fault occurrence time and abnormal proportion in business fault location, the root cause of the business fault is determined, which solves the problems of inaccurate positioning and high resource consumption in the existing technology, and improves the efficiency and accuracy of fault location.
Patent Information
- Application Number
- CN202410791909.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-06-19
AI Technical Summary
Existing business fault location methods are inaccurate and prone to false alarms and interference, resulting in high resource consumption, long analysis time, and inaccurate analysis results.
After detecting the fault of the target business channel, trigger the fault location task, obtain the call chain data and create a label, determine the business node with the earliest fault occurrence time, aggregate the abnormal proportion, and finally determine the root cause of the fault.
It improves the efficiency and accuracy of business fault location, reduces resource consumption, reduces repeated analysis tasks, and improves the rigor of root cause analysis results.
Smart Images

Figure CN118585369A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a service fault locating method, device, equipment and storage medium. Background Art
[0002] With the development of microservice architecture, the scalability and flexibility of enterprise business have been further improved. In order to quickly locate business failures, enterprises generally build root cause location or fault demarcation tools to assist in problem location.
[0003] In the prior art, the following methods are usually used to locate business faults: the first is to aggregate traditional basic alarms, and after the fault occurs, sort the alarms according to the time when the alarms appear, and locate the earliest and lowest alarm as the root cause of the problem; the second is to build a basic call topology based on the call chain, and find the deepest fault point according to the topology to locate the root cause of the fault.
[0004] However, the first method has inaccurate positioning and is easily disturbed by false alarms or irrelevant resource alarms; in the second method, there are too many fault trigger points, resulting in too many root cause results and too much interference. The fault demarcation task is frequently triggered in a continuous time period, resulting in the need for large computing resources. The large amount of data analyzed at a single time causes the analysis to take too long, and the analysis results are not aggregated. The end node of the analysis process is not rigorous enough, resulting in inaccurate analysis results. Summary of the invention
[0005] The present invention provides a service fault locating method, device, equipment and storage medium, which can improve the efficiency of locating service faults, improve the accuracy of locating results, and reduce resource consumption caused by the fault locating process.
[0006] According to one aspect of the present invention, a service fault locating method is provided, the method comprising:
[0007] After detecting that a target service channel has a fault, triggering a fault location task matching the target service channel; the target service channel includes multiple system services;
[0008] Acquire call chain data corresponding to the target business channel, and establish matching tags for the call chain data to obtain target data to be analyzed corresponding to the target business channel;
[0009] According to the fault occurrence time corresponding to the target data, determine the service node with the earliest fault occurrence time, aggregate the information of the service node, and determine the service or application instance with the largest abnormality proportion according to the aggregation result;
[0010] According to the abnormal proportion of the service or application instance, a fault root cause analysis result corresponding to the target business channel is determined.
[0011] Optionally, after a target service channel fault is detected, a fault location task matching the target service channel is triggered, including:
[0012] After detecting that a fault occurs in a target business channel, obtaining a fault type corresponding to the target business channel;
[0013] According to the fault type, a fault location task matching the target service channel is triggered.
[0014] Optionally, after a target service channel fault is detected, a fault location task matching the target service channel is triggered, including:
[0015] Collect the number of business timeouts and business anomalies of the target business channel within a preset time period;
[0016] Determine whether the number of service timeouts is greater than a preset first threshold;
[0017] If yes, determine whether the target service channel triggers a service timeout analysis process in the previous collection cycle;
[0018] If not, trigger the timeout analysis service that matches the target service channel.
[0019] Optionally, after determining whether the number of service timeouts is greater than a preset first threshold, the method further includes:
[0020] If not, determining whether the number of service anomalies is greater than a preset second threshold;
[0021] If yes, determine whether the target business channel triggers a business anomaly analysis process in the previous collection cycle;
[0022] If not, an abnormal analysis service matching the target service channel is triggered.
[0023] Optionally, determining a fault root cause analysis result corresponding to the target business channel according to the abnormal proportion of the service or application instance includes:
[0024] According to the abnormal proportion of the service or application instance, determining whether there is a target service or target application instance whose abnormal proportion is greater than a preset threshold;
[0025] If yes, then analyzing the target service or target application instance to obtain a fault root cause analysis result corresponding to the target business channel;
[0026] If not, a multi-threaded analysis is performed on the service or application instance to obtain a fault root cause analysis result corresponding to the target business channel.
[0027] Optionally, analyzing the target service or target application instance to obtain a fault root cause analysis result corresponding to the target business channel includes:
[0028] Obtaining the current node corresponding to the target service or target application instance, and the associated resources and resource alarm information of the current node;
[0029] Determine whether the call type of the current node is a local call;
[0030] If not, obtain the downstream node of the current node, as well as the associated resources and resource alarm information of the downstream node;
[0031] If the downstream node has resource alarm information, the associated resources of the downstream node are used as the root cause analysis result of the fault; if the downstream node resources are normal, the associated resources of the current node are used as the root cause analysis result of the fault.
[0032] Optionally, after determining the fault root cause analysis result corresponding to the target service channel, the method further includes:
[0033] The root cause analysis results of different business channels associated with the same type of fault are recorded in the same analysis record to conduct a combined analysis of the business channels.
[0034] According to another aspect of the present invention, a service fault locating device is provided, the device comprising:
[0035] A task triggering module is used to trigger a fault location task matching the target service channel after detecting that a fault occurs in the target service channel; the target service channel includes multiple system services;
[0036] A data acquisition module, used to acquire call chain data corresponding to the target business channel, and establish matching tags for the call chain data to obtain target data to be analyzed corresponding to the target business channel;
[0037] An information aggregation module is used to determine the service node with the earliest fault occurrence time according to the fault occurrence time corresponding to the target data, aggregate the information of the service node, and determine the service or application instance with the largest abnormality proportion according to the aggregation result;
[0038] The root cause analysis module is used to determine the root cause analysis result of the fault corresponding to the target business channel according to the abnormal proportion of the service or application instance.
[0039] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0040] at least one processor; and
[0041] a memory communicatively connected to the at least one processor; wherein,
[0042] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the service fault locating method described in any embodiment of the present invention.
[0043] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the service fault locating method described in any embodiment of the present invention when executed.
[0044] The technical solution provided by the embodiment of the present invention, after detecting that a fault has occurred in a target business channel, triggers a fault location task matching the target business channel, obtains call chain data corresponding to the target business channel, and establishes a matching label for the call chain data, obtains the target data to be analyzed corresponding to the target business channel, determines the business node with the earliest fault occurrence time according to the fault occurrence time corresponding to the target data, aggregates the information of the business nodes, determines the service or application instance with the largest abnormality ratio according to the aggregation result, and determines the fault root cause analysis result corresponding to the target business channel according to the abnormality ratio of the service or application instance. The technical means can improve the efficiency of locating business faults, improve the accuracy of locating results, and reduce resource consumption caused by the fault location process.
[0045] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0047] Figure 1a is a flow chart of a service fault locating method provided according to an embodiment of the present invention;
[0048] Figure 1b is a flowchart of a fault location task triggering method provided according to an embodiment of the present invention;
[0049] Figure 2is a flowchart of another service fault locating method provided according to an embodiment of the present invention;
[0050] Figure 3 is a structural diagram of a service fault locating device provided according to an embodiment of the present invention;
[0051] Figure 4 It is a structural schematic diagram of an electronic device for implementing the service fault locating method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0052] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0053] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention 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 data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0054] Figure 1a This is a flow chart of a service fault location method provided by an embodiment of the present invention. This embodiment is applicable to the case of analyzing the root cause of a service fault. The method can be executed by a service fault location device. The service fault location device can be implemented in the form of hardware and / or software. The service fault location device can be configured in an electronic device. Figure 1a As shown, the method includes:
[0055] Step 110: After detecting that a target service channel has a fault, trigger a fault location task matching the target service channel; the target service channel includes multiple system services.
[0056] In this embodiment, the operation of each service can be monitored according to the operation status of each service channel in the service system. Each service channel can include multiple system services, such as service A, service B, and service C. Each service channel is separated from each other and independent.
[0057] In this step, specifically, after a fault is detected in a certain service channel (i.e., the target service channel) among the multiple service channels, a fault location task matching the target service channel may be triggered, and the fault location task may be executed to perform a root cause analysis on the fault of the target service channel. Optionally, the fault in the target service channel may include service timeout and service anomaly.
[0058] In the existing business fault location methods, the same fault will instantly trigger many fault demarcation tasks. The fault evaluation indicators used may include "call volume, success rate, average call time, and call failure volume", etc., that is, one fault will trigger at least four business alarms, and four business alarms will trigger four fault demarcation tasks. As a result, too many fault demarcation tasks are triggered during the fault time period, which not only causes task congestion but also wastes computing resources.
[0059] In order to solve the above problems, this embodiment simplifies the traditional most basic indicators of "call volume, success rate, average call time, and call failure volume" into two indicators that best reflect business failures: "business timeout volume and business exception volume". In the case where both business timeout and business exception alarms appear at the same time, considering that business timeout will further trigger more business errors, the root cause of business timeout can be located first.
[0060] Assuming that a "surface" fault in the prior art will affect five businesses, triggering abnormal indicators of "call volume, success rate, average call time, and call failure volume" of the five businesses, 5*4=20 fault delimitation tasks for the same fault will be triggered according to the existing positioning method. After optimization by this embodiment, only one channel's business timeout analysis task is triggered, which can reduce the resource waste of concurrent repeated analysis tasks on the one hand, and avoid further misleading caused by the difference in results between different analysis tasks on the other hand. According to this logic, this embodiment will save 75% of computing resources.
[0061] Step 120: Acquire call chain data corresponding to the target business channel, and create matching tags for the call chain data to obtain target data to be analyzed corresponding to the target business channel.
[0062] In the existing service fault location methods, after a fault is detected within a certain time period, usually only the full amount of data in the time period can be analyzed, so that irrelevant interference data will be used for analysis, and the amount of data analyzed is large.
[0063] In this embodiment, since each business channel is independent of each other, a fault in one business channel will not usually be transmitted to another business channel. Therefore, a label can be established for the call chain data corresponding to the target business channel according to the characteristic information corresponding to the target business channel. Compared with the existing method, it can achieve minimized accurate data analysis, reduce the amount of data analysis, and improve the efficiency of business fault location.
[0064] In a specific embodiment, after acquiring the call chain data corresponding to the target business channel, a regular algorithm may be used to clean the call chain data, and then a matching label may be established for the cleaned call chain data to obtain the target data to be analyzed.
[0065] Step 130: determine the service node with the earliest fault occurrence time according to the fault occurrence time corresponding to the target data, aggregate the information of the service node, and determine the service or application instance with the largest abnormality proportion according to the aggregation result.
[0066] In the existing business fault location methods, the deepest abnormal node is usually found according to the earliest call time, and the root cause is only found based on the fault symptoms, which makes it difficult to determine the most realistic root cause result.
[0067] In this embodiment, the service node (such as an abnormal node or a timeout node) that fails the earliest can be determined based on the time of the failure, and the service node can be cached. Then, the information of the service node can be aggregated according to the two dimensions of service and application instance, and the service or application instance with the largest abnormal proportion can be determined based on the aggregation result. Compared with the prior art, this embodiment can improve the accuracy of subsequent root cause analysis results by determining the service or application instance with the largest abnormal proportion.
[0068] Step 140: Determine a fault root cause analysis result corresponding to the target business channel according to the abnormal proportion of the service or application instance.
[0069] In this embodiment, optionally, the root cause analysis result of the fault corresponding to the target business channel can be determined according to the abnormal proportion of the service or application instance and the associated application resources.
[0070] In a specific embodiment, assuming that a timeout failure occurs in the target business channel, the corresponding root cause analysis result may be memory overflow, thread deadlock, or connection not released, etc.; assuming that an abnormal failure occurs in the target business channel, the corresponding root cause analysis result may include service exceptions and remote call failures. The service exception may be a code logic exception, and the remote call failure may be a remote call exception or a SQL execution exception, etc.
[0071] The technical solution provided by the embodiment of the present invention, after detecting that a fault has occurred in a target business channel, triggers a fault location task matching the target business channel, obtains call chain data corresponding to the target business channel, and establishes a matching label for the call chain data, obtains the target data to be analyzed corresponding to the target business channel, determines the business node with the earliest fault occurrence time according to the fault occurrence time corresponding to the target data, aggregates the information of the business nodes, determines the service or application instance with the largest abnormality ratio according to the aggregation result, and determines the fault root cause analysis result corresponding to the target business channel according to the abnormality ratio of the service or application instance. The technical means can improve the efficiency of locating business faults, improve the accuracy of locating results, and reduce resource consumption caused by the fault location process.
[0072] Based on the above embodiments, Figure 1b A flowchart of a triggering fault location task in this embodiment can be shown as follows: Figure 1b As shown, after a fault is detected in a target service channel, a fault location task matching the target service channel is triggered, including:
[0073] Step 101: Collect the number of service timeouts and service exceptions of the target service channel within a preset time period;
[0074] Step 102 , determine whether the number of service timeouts is greater than a preset first threshold; if so, execute step 103 , if not, execute step 106 .
[0075] Step 103 , determine whether the target business channel triggers a business timeout analysis process in the previous collection cycle; if so, execute step 104 , if not, execute step 105 .
[0076] Step 104: only generate trigger records.
[0077] Step 105: triggering a timeout analysis service matching the target service channel.
[0078] Step 106 , determine whether the number of business anomalies is greater than a preset second threshold, if so, execute step 107 , if not, execute step 108 .
[0079] Step 107 , determine whether the target business channel triggers a business anomaly analysis process in the previous collection cycle, if so, execute step 104 , if not, execute step 109 .
[0080] Step 108: only generate trigger records.
[0081] Step 109: trigger an abnormality analysis service that matches the target service channel.
[0082] In this embodiment, it is possible to determine whether a fault location task needs to be triggered in this cycle based on the triggering of the fault location task in the previous continuous cycle, thereby solving the problem of triggering the same location task in repeated cycles, further reducing the consumption of computing resources and improving the location efficiency. Assuming that each service channel failure lasts for 5 minutes, 80% of the fault location tasks can be reduced through the method of this embodiment.
[0083] Figure 2 A flowchart of another service fault locating method provided by an embodiment of the present invention, such as Figure 2 As shown, the method includes:
[0084] Step 210: After detecting that a target service channel has a fault, obtain a fault type corresponding to the target service channel, and trigger a fault location task matching the target service channel according to the fault type.
[0085] Step 220: Acquire call chain data corresponding to the target business channel, and create matching tags for the call chain data to obtain target data to be analyzed corresponding to the target business channel.
[0086] Step 230: determine the service node with the earliest fault occurrence time according to the fault occurrence time corresponding to the target data, aggregate the information of the service node, and determine the service or application instance with the largest abnormality proportion according to the aggregation result.
[0087] Step 240 , based on the abnormal proportion of the service or application instance, determine whether there is a target service or target application instance whose abnormal proportion is greater than a preset threshold. If so, execute step 250 ; if not, execute step 260 .
[0088] In this step, specifically, it can be determined whether there are target service or target application instances with a proportion greater than 80%. If so, step 250 is executed; if not, step 260 is executed.
[0089] Step 250: Analyze the target service or target application instance to obtain a fault root cause analysis result corresponding to the target business channel.
[0090] Step 260: Perform multi-threaded analysis on the service or application instance to obtain a fault root cause analysis result corresponding to the target business channel.
[0091] In this embodiment, if there are target services or target application instances that account for more than 80%, a single analysis may be performed on the target services or target application instances, otherwise a multi-threaded analysis may be performed (the analysis method is the same as the single analysis).
[0092] In one implementation of the present embodiment, the target service or target application instance is analyzed to obtain a root cause analysis result corresponding to the target business channel, including: obtaining the current node corresponding to the target service or target application instance, and the associated resources and resource alarm information of the current node; determining whether the call type of the current node is a local call; if not, obtaining the downstream node of the current node, and the associated resources and resource alarm information of the downstream node; if the downstream node has resource alarm information, using the associated resources of the downstream node as the root cause analysis result; if the downstream node resources are normal, using the associated resources of the current node as the root cause analysis result.
[0093] In this embodiment, the current node corresponding to the target service or target application instance and the associated resources of the current node (including application instances, hosts, services, pods, nodes, middleware, etc.) can be obtained, and the alarm information of the resources can be obtained. Then, it is determined whether the call type of the current node is a non-local call. If so, the downstream node is continued to be obtained.
[0094] After obtaining the downstream node, you can continue to obtain the associated resources of the downstream node (including application instances, hosts, services, pods, nodes, middleware, etc.), and obtain the alarm information of the resources. If there is an alarm in the resources of the downstream node, the associated resources of the downstream node are directly used as the root cause analysis result of the fault; if all the resources of the downstream node are normal, the associated resources of the current node are used as the root cause analysis result of the fault.
[0095] The advantage of this setting is that it can dig out the deepest fault node in the call chain and improve the accuracy of the root cause analysis results.
[0096] Step 270: Record the root cause analysis results of the same fault in different service channels in association with the same fault into the same analysis record, so as to conduct a combined analysis of the service channels.
[0097] In practical applications, if a fault lasts for more than ten minutes or even longer, more alarms will be generated due to the fault. In order to avoid too many analysis results that are difficult to judge due to time spreading, this embodiment provides a way to merge the analysis results.
[0098] In this step, the analysis results of different channels caused by the same fault can be mounted under one analysis record. Specifically, all analysis results with overlapping time, the same analysis type and automatically triggered can be classified into the same merged analysis record.
[0099] The time overlap means that the first trigger time and the latest trigger time in the analysis result have an intersection; the analysis type means a service timeout or a service exception. The merging frequency can be set to once every 5 minutes, and the specific value can be preset according to the actual situation, which is not limited in this embodiment.
[0100] The technical solution provided by the embodiment of the present invention obtains the fault type corresponding to the target business channel after detecting that a fault occurs in the target business channel, triggers a fault location task matching the target business channel according to the fault type, obtains the call chain data corresponding to the target business channel, and establishes a matching label for the call chain data to obtain the target data to be analyzed corresponding to the target business channel, determines the business node with the earliest fault occurrence time according to the fault occurrence time corresponding to the target data, aggregates the information of the business node, determines the service or application instance with the largest abnormality ratio according to the aggregation result, and judges whether there is a target service or target application instance with an abnormality ratio greater than a preset threshold. If so, analyzes the target service or target application instance to obtain a fault root cause analysis result corresponding to the target business channel. If not, performs multi-threaded analysis on the service or application instance to obtain a fault root cause analysis result corresponding to the target business channel. This technical means can improve the efficiency of locating business faults, improve the accuracy of locating results, and reduce resource consumption caused by the fault location process.
[0101] Figure 3 A schematic diagram of a structure of a service fault location device provided by an embodiment of the present invention, wherein the device is applied to an electronic device, such as Figure 3 As shown, the device includes: a task triggering module 310 , a data acquisition module 320 , an information aggregation module 330 and a root cause analysis module 340 .
[0102] The task triggering module 310 is used to trigger a fault location task matching the target service channel after detecting that a fault occurs in the target service channel; the target service channel includes multiple system services;
[0103] The data acquisition module 320 is used to acquire the call chain data corresponding to the target business channel, and to establish a matching tag for the call chain data to obtain the target data to be analyzed corresponding to the target business channel;
[0104] An information aggregation module 330 is used to determine the service node with the earliest fault occurrence time according to the fault occurrence time corresponding to the target data, aggregate the information of the service node, and determine the service or application instance with the largest abnormality proportion according to the aggregation result;
[0105] The root cause analysis module 340 is used to determine the fault root cause analysis result corresponding to the target business channel according to the abnormal proportion of the service or application instance.
[0106] The technical solution provided by the embodiment of the present invention, after detecting that a fault has occurred in a target business channel, triggers a fault location task matching the target business channel, obtains call chain data corresponding to the target business channel, and establishes a matching label for the call chain data, obtains the target data to be analyzed corresponding to the target business channel, determines the business node with the earliest fault occurrence time according to the fault occurrence time corresponding to the target data, aggregates the information of the business nodes, determines the service or application instance with the largest abnormality ratio according to the aggregation result, and determines the fault root cause analysis result corresponding to the target business channel according to the abnormality ratio of the service or application instance. The technical means can improve the efficiency of locating business faults, improve the accuracy of locating results, and reduce resource consumption caused by the fault location process.
[0107] Based on the above embodiment, the task triggering module 310 includes:
[0108] A fault type acquisition unit is used to acquire the fault type corresponding to the target service channel after detecting that a fault occurs in the target service channel, and trigger a fault location task matching the target service channel according to the fault type;
[0109] A data collection unit, used to collect the number of service timeouts and service anomalies of a target service channel within a preset time period;
[0110] A timeout task triggering unit, used to determine whether the number of service timeouts is greater than a preset first threshold; if so, determine whether the target service channel triggers a service timeout analysis process in the previous acquisition cycle; if not, trigger a timeout analysis service matching the target service channel;
[0111] The abnormal task triggering unit is used to determine whether the number of business timeouts is greater than a preset first threshold, and if not, to determine whether the number of business anomalies is greater than a preset second threshold; if so, to determine whether the target business channel triggers a business anomaly analysis process in the previous collection cycle; if not, to trigger the abnormal analysis business matching the target business channel.
[0112] The root cause analysis module 340 includes:
[0113] A proportion judgment unit is used to judge whether there is a target service or target application instance whose abnormal proportion is greater than a preset threshold according to the abnormal proportion of the service or application instance; if so, analyze the target service or target application instance to obtain a fault root cause analysis result corresponding to the target business channel; if not, perform multi-threaded analysis on the service or application instance to obtain a fault root cause analysis result corresponding to the target business channel;
[0114] A node analysis unit is used to obtain the current node corresponding to the target service or target application instance, as well as the associated resources and resource alarm information of the current node; determine whether the call type of the current node is a local call; if not, obtain the downstream node of the current node, as well as the associated resources and resource alarm information of the downstream node; if the downstream node has resource alarm information, use the associated resources of the downstream node as the root cause analysis result of the fault; if the downstream node resources are normal, use the associated resources of the current node as the root cause analysis result of the fault.
[0115] The device also includes:
[0116] The result merging module is used to record the root cause analysis results of different business channels associated with the same type of fault into the same analysis record, so as to conduct a combined analysis on each of the business channels.
[0117] The above device can execute the methods provided by all the above embodiments of the present invention, and has the corresponding functional modules and beneficial effects of executing the above methods. For technical details not fully described in the embodiments of the present invention, please refer to the methods provided by all the above embodiments of the present invention.
[0118] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0119] like Figure 4As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0120] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0121] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a service fault location method.
[0122] In some embodiments, the service fault location method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the service fault location method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the service fault location method in any other appropriate manner (e.g., by means of firmware).
[0123] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0124] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0125] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0126] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0127] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0128] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0129] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0130] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A service fault location method, characterized in that: The method comprises: After detecting that a target service channel has a fault, triggering a fault location task matching the target service channel; the target service channel includes multiple system services; Acquire call chain data corresponding to the target business channel, and establish matching tags for the call chain data to obtain target data to be analyzed corresponding to the target business channel; According to the fault occurrence time corresponding to the target data, determine the service node with the earliest fault occurrence time, aggregate the information of the service node, and determine the service or application instance with the largest abnormality proportion according to the aggregation result; According to the abnormal proportion of the service or application instance, a fault root cause analysis result corresponding to the target business channel is determined.
2. The method according to claim 1, characterized in that After a fault is detected in the target service channel, a fault location task matching the target service channel is triggered, including: After detecting that a fault occurs in a target business channel, obtaining a fault type corresponding to the target business channel; According to the fault type, a fault location task matching the target service channel is triggered.
3. The method according to claim 1, characterized in that After a fault is detected in the target service channel, a fault location task matching the target service channel is triggered, including: Collect the number of business timeouts and business anomalies of the target business channel within a preset time period; Determine whether the number of service timeouts is greater than a preset first threshold; If yes, determine whether the target service channel triggers a service timeout analysis process in the previous collection cycle; If not, trigger the timeout analysis service that matches the target service channel.
4. The method according to claim 3, characterized in that After determining whether the number of service timeouts is greater than a preset first threshold, the method further includes: If not, determining whether the number of service anomalies is greater than a preset second threshold; If yes, determine whether the target business channel triggers a business anomaly analysis process in the previous collection cycle; If not, an abnormal analysis service matching the target service channel is triggered.
5. The method according to claim 1, characterized in that According to the abnormal proportion of the service or application instance, the root cause analysis result of the fault corresponding to the target business channel is determined, including: According to the abnormal proportion of the service or application instance, determine whether there is a target service or target application instance whose abnormal proportion is greater than a preset threshold; If yes, then analyzing the target service or target application instance to obtain a fault root cause analysis result corresponding to the target business channel; If not, a multi-threaded analysis is performed on the service or application instance to obtain a fault root cause analysis result corresponding to the target business channel.
6. The method according to claim 5, characterized in that Analyze the target service or target application instance to obtain a fault root cause analysis result corresponding to the target business channel, including: Obtaining the current node corresponding to the target service or target application instance, and the associated resources and resource alarm information of the current node; Determine whether the call type of the current node is a local call; If not, obtain the downstream node of the current node, as well as the associated resources and resource alarm information of the downstream node; If the downstream node has resource alarm information, the associated resources of the downstream node are used as the root cause analysis result of the fault; if the downstream node resources are normal, the associated resources of the current node are used as the root cause analysis result of the fault.
7. The method according to claim 1, characterized in that After determining the fault root cause analysis result corresponding to the target business channel, the method further includes: The root cause analysis results of different business channels associated with the same type of fault are recorded in the same analysis record to conduct a combined analysis of the business channels.
8. A service fault location device, characterized in that: The device comprises: A task triggering module is used to trigger a fault location task matching the target service channel after detecting that a fault occurs in the target service channel; the target service channel includes multiple system services; A data acquisition module, used to acquire call chain data corresponding to the target business channel, and establish matching tags for the call chain data to obtain target data to be analyzed corresponding to the target business channel; An information aggregation module is used to determine the service node with the earliest fault occurrence time according to the fault occurrence time corresponding to the target data, aggregate the information of the service node, and determine the service or application instance with the largest abnormality proportion according to the aggregation result; The root cause analysis module is used to determine the root cause analysis result of the fault corresponding to the target business channel according to the abnormal proportion of the service or application instance.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the service fault locating method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the service fault locating method according to any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Information analysis method and device and electronic equipment
CN114844768A
Method for evaluating reliability of mobile distributed storage cluster
CN115729795A
Micro-service fault root cause determination method, electronic equipment and storage medium
CN117520040A
Method and device for locating video service fault, and storage medium
WO2019062898A1
Cited By
Abnormity detection method and device of core network and storage medium
CN119232623A
Node anomaly detection method and system, electronic equipment and storage medium
CN120934795A
