A method and device for analyzing failure of an application system
By analyzing the call chain log of the application system and determining the fault point based on the dimensions of the call chain monitoring items, the problem of inaccurate fault location in the existing technology is solved, the operation and maintenance efficiency is improved, and the application system fault is quickly and accurately located.
Patent Information
- Application Number
- CN202210146414.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-17
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-02-17
AI Technical Summary
Existing fault analysis methods cannot accurately and timely discover the fault points of application systems. Especially in complex application systems, it is difficult to penetrate into specific fault points, resulting in low operation and maintenance efficiency.
By obtaining the call chain log of the application system, the alarm data is analyzed based on the dimensions of the call chain monitoring items (host, subsystem, service, method), the fault point of the application system is determined, and a proactive method is used to locate the fault based on the current operating conditions.
It achieves rapid and accurate positioning of application system fault points, improves operation and maintenance efficiency, and avoids passive responses that rely on historical alarm information.
Smart Images

Figure CN114584453B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of information technology, and in particular, to a method, apparatus, computing device, and computer-readable storage medium for analyzing a fault of an application system. Background Art
[0002] Existing fault analysis devices generally find the direct characteristic relationship of the alarm event or form an inference network based on the historical alarm information processing method to determine whether the alarm event is the root cause of the fault, so as to judge whether the application system that generates the alarm event has a fault. The generation of alarm events is also generated after the application system fails at the business execution level, which is a passive alarm method.
[0003] In the above method, the alarm event is a passive alarm generated based on the application layer, which cannot accurately and timely detect the alarm event and can only judge whether the application system has a fault. However, the layers deployed in the application system are very complex, and the existing fault analysis method cannot accurately determine which layer of the application system has a fault, and cannot go deep into the specific fault point.
[0004] In summary, the embodiment of the present invention provides a method for analyzing a fault of an application system, which is used to accurately locate the fault point of the application system. Summary of the invention
[0005] The embodiment of the present invention provides a method for analyzing a fault of an application system, which is used to accurately locate a fault point of the application system.
[0006] In a first aspect, an embodiment of the present invention provides a method for analyzing a fault of an application system, comprising:
[0007] Obtain the call chain logs generated during the operation of the application system;
[0008] Based on the call chain monitoring items, determine whether each call chain log meets the alarm rule; the call chain monitoring items are used to characterize the callee information in the call chain log;
[0009] The call chain monitoring items in the call chain log that meet the alarm rules are used as alarm data;
[0010] Analyze each alarm data according to each dimension represented by the call chain monitoring item to determine the failure point of the application system; the dimensions include at least one of the host dimension, subsystem dimension, service dimension and method dimension.
[0011] During the operation of the application system, calls between various levels will be generated. Each call will generate a call chain log. Through the call chain monitoring items, the call chain logs that meet the alarm rules can be determined as alarm data. It can be found that the generation of alarm data does not depend on the alarm generation of the application system based on the application layer, but is actively determined through the call chain log. The alarm data determined in this way is more accurate and timely. Then, according to the dimensions represented by the call chain monitoring items, the alarm data is analyzed to determine the fault point of the application system. The dimensions here involve the dimensions of the application system. The final determined fault point is also the dimensions of the application system, which can accurately locate the specific fault point of the application system. Rapid fault discovery and processing are achieved to improve operation and maintenance efficiency. And it does not rely on historical alarm information, but determines the fault point in combination with the current operation of the entire application system, which is more accurate.
[0012] Optionally, the dimension represented by the call chain monitoring item includes a host dimension;
[0013] Analyze each alarm data according to each dimension represented by the call chain monitoring item to determine the failure point of the application system, including:
[0014] For any alarm host in each alarm data, determine the first number of alarm services associated with the alarm host in each alarm data; and determine whether the alarm host is a failure point of the application system based on the second number of all services running on the alarm host and the first number.
[0015] It is more accurate to determine whether the alarm host is a fault point by the proportion of alarm services associated with the alarm host.
[0016] Optionally, the dimension represented by the call chain monitoring item also includes a service dimension;
[0017] Determining whether the alarm host is a failure point of the application system according to the second number of all services running on the alarm host and the first number includes:
[0018] If a first preset relationship between the first number and the second number is greater than a first preset threshold, determining that the alarm host is a fault point of the application system;
[0019] When the first preset relationship is not greater than the first preset threshold, the alarm service of the alarm host is determined to be the failure point of the application system.
[0020] Specifically, when the relationship between the proportion of the alarm service associated with the alarm host and the first preset threshold is different, different fault point judgments are given, which is more accurate.
[0021] Optionally, the dimension represented by the call chain monitoring item also includes a subsystem dimension;
[0022] After determining whether the alarm host is a fault point of the application system, the method further includes:
[0023] For each alarm host determined as a fault point, determine the subsystems to which each alarm host belongs; for any subsystem, if the second preset relationship between the third number of alarm hosts belonging to the subsystem and the fourth number of all hosts belonging to the subsystem meets the second preset threshold, then the subsystem is determined to be the fault point of the application system.
[0024] After determining that the fault point is the alarm host, we can further determine whether the fault of the alarm host is caused by the fault of the subsystem, so we can continue to determine whether the subsystem is faulty. The judgment of the proportion of alarm hosts of the subsystem to which the alarm host belongs can help determine whether the subsystem is the fault point.
[0025] Optionally, the dimension represented by the call chain monitoring item includes a service dimension;
[0026] Analyze each alarm data according to each dimension represented by the call chain monitoring item to determine the failure point of the application system, including:
[0027] For any alarm service in each alarm data, determine the fifth number of alarm hosts associated with the alarm service in each alarm data; determine a third preset relationship between the fifth number and the sixth number of all hosts running the alarm service; when the third preset relationship is greater than a third preset threshold, determine that the alarm service is a failure point of the application system.
[0028] By using the proportion of alarm hosts associated with the alarm service, it is determined whether the alarm service is indeed a fault point, thereby improving the accuracy of judging the alarm service as a fault point.
[0029] Optionally, the dimension represented by the call chain monitoring item includes a method dimension;
[0030] Analyze each alarm data according to each dimension represented by the call chain monitoring item to determine the failure point of the application system, including:
[0031] For any alarm method in each alarm data, determine whether the alarm method is the failure point of the application system based on the seventh number and the eighth number in the same alarm host; the seventh number is used to characterize the number of each alarm method under the service to which the alarm method belongs running in the alarm host; the eighth number is used to characterize the number of all methods under the service to which the alarm method belongs running in the alarm host.
[0032] In this way, it can be accurately determined whether a certain alarm method is a failure point of the application system.
[0033] Optionally, determining whether the alarm method is a failure point of the application system based on the seventh number and the eighth number in the same alarm host includes:
[0034] If the fourth preset relationship between the seventh number and the eighth number is greater than the fourth preset threshold, and the fifth preset relationship between the ninth number of alarm hosts running the service to which the alarm method belongs and the tenth number of all hosts running the service to which the alarm method belongs is not greater than the fifth preset threshold, then it is determined that the service to which the alarm method runs on the alarm host is the failure point of the application system.
[0035] Optionally, determining whether the alarm method is a failure point of the application system based on the seventh number and the eighth number in the same alarm host includes:
[0036] If the fourth preset relationship between the seventh number and the eighth number is greater than the fourth preset threshold, and the fifth preset relationship between the ninth number of alarm hosts running the service to which the alarm method belongs and the tenth number of all hosts running the service to which the alarm method belongs is greater than the fifth preset threshold, then it is determined that the service to which the alarm method belongs is the fault point of the application system.
[0037] Optionally, determining whether the alarm method is a failure point of the application system based on the seventh number and the eighth number in the same alarm host includes:
[0038] If the fourth preset relationship between the seventh number and the eighth number is not greater than the fourth preset threshold, and the sixth preset relationship between the eleventh number of alarm hosts running the alarm method and the twelfth number of all hosts running the alarm method is greater than the sixth preset threshold, then the alarm method is determined to be the failure point of the application system.
[0039] Optionally, determining whether the alarm method is a failure point of the application system based on the seventh number and the eighth number in the same alarm host includes:
[0040] If the fourth preset relationship between the seventh quantity and the eighth quantity is not greater than the fourth preset threshold, and the sixth preset relationship between the eleventh quantity of the alarm hosts running the alarm method and the twelfth quantity of all hosts running the service to which the alarm method belongs is not greater than the sixth preset threshold, it is determined that the alarm method running on the alarm host is the failure point of the application system.
[0041] Optionally, it also includes:
[0042] Based on each call chain log, a call relationship graph of the subsystem is generated with the subsystem as the dimension; the call relationship graph of the subsystem has indication information of the subsystem as the fault point; and / or,
[0043] Based on each call chain log, a service call relationship graph is generated with the service as a dimension; the service call relationship graph has indication information of the service as a fault point.
[0044] Based on each call chain log, a subsystem call relationship diagram and / or a service call relationship diagram can be generated for users to view. Based on a clear and definite call relationship diagram, users can also obtain more call information, making it easier to optimize based on the fault node and troubleshoot faster.
[0045] In a second aspect, an embodiment of the present invention further provides a fault analysis device for an application system, comprising:
[0046] An acquisition unit, used to acquire each call chain log generated during the operation of the application system;
[0047] A determination unit, used to determine whether each call chain log meets the alarm rule based on the call chain monitoring item; the call chain monitoring item is used to characterize the callee information in the call chain log;
[0048] The call chain monitoring items in the call chain log that meet the alarm rules are used as alarm data;
[0049] A processing unit is used to analyze each alarm data according to each dimension represented by the call chain monitoring item to determine the failure point of the application system; the dimensions include at least one of the host dimension, subsystem dimension, service dimension and method dimension.
[0050] Optionally, the dimension represented by the call chain monitoring item includes a host dimension;
[0051] The processing unit is specifically used for:
[0052] For any alarm host in each alarm data, determine the first number of alarm services associated with the alarm host in each alarm data; and determine whether the alarm host is a failure point of the application system based on the second number of all services running on the alarm host and the first number.
[0053] Optionally, the dimension represented by the call chain monitoring item also includes a service dimension;
[0054] The processing unit is specifically used for:
[0055] If a first preset relationship between the first number and the second number is greater than a first preset threshold, determining that the alarm host is a fault point of the application system;
[0056] When the first preset relationship is not greater than the first preset threshold, the alarm service of the alarm host is determined to be the failure point of the application system.
[0057] Optionally, the dimension represented by the call chain monitoring item also includes a subsystem dimension;
[0058] The processing unit is further used for:
[0059] For each alarm host determined as a fault point, determine the subsystems to which each alarm host belongs; for any subsystem, if the second preset relationship between the third number of alarm hosts belonging to the subsystem and the fourth number of all hosts belonging to the subsystem meets the second preset threshold, then the subsystem is determined to be the fault point of the application system.
[0060] Optionally, the dimension represented by the call chain monitoring item includes a service dimension;
[0061] The processing unit is specifically used for:
[0062] For any alarm service in each alarm data, determine the fifth number of alarm hosts associated with the alarm service in each alarm data; determine a third preset relationship between the fifth number and the sixth number of all hosts running the alarm service; when the third preset relationship is greater than a third preset threshold, determine that the alarm service is a failure point of the application system.
[0063] Optionally, the dimension represented by the call chain monitoring item includes a method dimension;
[0064] The processing unit is specifically used for:
[0065] For any alarm method in each alarm data, determine whether the alarm method is the failure point of the application system based on the seventh number and the eighth number in the same alarm host; the seventh number is used to characterize the number of each alarm method under the service to which the alarm method belongs running in the alarm host; the eighth number is used to characterize the number of all methods under the service to which the alarm method belongs running in the alarm host.
[0066] Optionally, the processing unit is specifically configured to:
[0067] If the fourth preset relationship between the seventh number and the eighth number is greater than the fourth preset threshold, and the fifth preset relationship between the ninth number of alarm hosts running the service to which the alarm method belongs and the tenth number of all hosts running the service to which the alarm method belongs is not greater than the fifth preset threshold, then it is determined that the service to which the alarm method runs on the alarm host is the failure point of the application system.
[0068] Optionally, the processing unit is specifically configured to:
[0069] If the fourth preset relationship between the seventh number and the eighth number is greater than the fourth preset threshold, and the fifth preset relationship between the ninth number of alarm hosts running the service to which the alarm method belongs and the tenth number of all hosts running the service to which the alarm method belongs is greater than the fifth preset threshold, then it is determined that the service to which the alarm method belongs is the fault point of the application system.
[0070] Optionally, the processing unit is specifically configured to:
[0071] If the fourth preset relationship between the seventh number and the eighth number is not greater than the fourth preset threshold, and the sixth preset relationship between the eleventh number of alarm hosts running the alarm method and the twelfth number of all hosts running the alarm method is greater than the sixth preset threshold, then the alarm method is determined to be the failure point of the application system.
[0072] Optionally, the processing unit is specifically configured to:
[0073] If the fourth preset relationship between the seventh quantity and the eighth quantity is not greater than the fourth preset threshold, and the sixth preset relationship between the eleventh quantity of the alarm hosts running the alarm method and the twelfth quantity of all hosts running the service to which the alarm method belongs is not greater than the sixth preset threshold, it is determined that the alarm method running on the alarm host is the failure point of the application system.
[0074] Optionally, the processing unit is further used for:
[0075] Based on each call chain log, a call relationship graph of the subsystem is generated with the subsystem as the dimension; the call relationship graph of the subsystem has indication information of the subsystem as the fault point; and / or,
[0076] Based on each call chain log, a service call relationship graph is generated with the service as a dimension; the service call relationship graph has indication information of the service as a fault point.
[0077] In a third aspect, an embodiment of the present invention further provides a computing device, including:
[0078] Memory for storing computer programs;
[0079] The processor is used to call the computer program stored in the memory and execute the fault analysis method of the application system listed in any of the above-mentioned ways according to the obtained program.
[0080] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer-executable program, and the computer-executable program is used to enable a computer to execute the fault analysis method of the application system listed in any of the above-mentioned methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0081] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. 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 paying creative work.
[0082] Figure 1 A schematic diagram of a system architecture provided for an embodiment of the present invention;
[0083] Figure 2 A schematic diagram of a flow chart of a method for analyzing a fault in an application system provided by an embodiment of the present invention;
[0084] Figure 3 A schematic diagram of a typical mesh architecture call chain provided by an embodiment of the present invention;
[0085] Figure 4 A schematic diagram of an overall solution for determining a failure point of an application system provided by an embodiment of the present invention;
[0086] Figure 5 A schematic diagram of the internal functional architecture of a fault analysis device provided by an embodiment of the present invention;
[0087] Figure 6 A possible call chain relationship diagram provided for an embodiment of the present invention;
[0088] Figure 7 A schematic diagram of a possible initial application status dashboard provided by an embodiment of the present invention;
[0089] Figure 8 A schematic diagram of a possible display interface of a subsystem call chain provided by an embodiment of the present invention;
[0090] Fig. 9 A schematic diagram of a possible display interface of a service call chain provided by an embodiment of the present invention;
[0091] Fig.10 A schematic diagram of a possible display interface of call details provided by an embodiment of the present invention;
[0092] Fig.11 A schematic diagram of a possible root cause analysis display interface provided by an embodiment of the present invention;
[0093] Fig.12 A schematic diagram of a more detailed internal functional architecture of a fault analysis device provided by an embodiment of the present invention;
[0094] Fig.13 A schematic diagram of the structure of a fault analysis device for an application system provided by an embodiment of the present invention;
[0095] Fig.14 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0096] In order to make the purpose, implementation mode and advantages of the present application clearer, the exemplary implementation mode of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, rather than all the embodiments.
[0097] Based on the exemplary embodiments described in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the claims attached to this application. In addition, although the disclosure in this application is introduced according to one or several exemplary examples, it should be understood that each aspect of the disclosure can also constitute a complete implementation method separately.
[0098] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.
[0099] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise indicated. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, for example, they can be implemented in an order other than those given in the diagrams or descriptions of the embodiments of this application.
[0100] In addition, the terms "include" and "have" and any variations thereof are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to those components expressly listed but may include other components not expressly listed or inherent to such products or devices.
[0101] Figure 1A system architecture applicable to an embodiment of the present invention is exemplarily shown. The system architecture may be a server 100 , including a processor 110 , a communication interface 120 , and a memory 130 .
[0102] The communication interface 120 is used to communicate with the terminal device, send and receive information transmitted by the terminal device, and realize communication.
[0103] The processor 110 is the control center of the server 100, and uses various interfaces and routes to connect various parts of the entire server 100, and executes various functions of the server 100 and processes data by running or executing software programs and / or modules stored in the memory 130, and calling data stored in the memory 130. Optionally, the processor 110 may include one or more processing units.
[0104] The memory 130 can be used to store software programs and modules. The processor 110 executes various functional applications and data processing by running the software programs and modules stored in the memory 130. The memory 130 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function, etc.; the data storage area can store data created according to business processing, etc. In addition, the memory 130 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0105] It should be noted that the above Figure 1 The structure shown is only an example and is not limited to this embodiment of the present invention.
[0106] Figure 1 The server shown can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0107] Existing fault analysis devices generally find the direct characteristic relationship of the alarm event or form an inference network based on the historical alarm information processing method to determine whether the alarm event is the root cause of the fault, so as to judge whether the application system that generates the alarm event has a fault. The generation of alarm events is also generated after the application system fails at the business execution level, which is a passive alarm method.
[0108] Huawei's patent CN110609759 A describes judging whether the first alarm event is a root cause alarm event based on the characteristic vector of the relationship between the first alarm event and other alarm events. This method is mainly based on the traceability analysis of production alarm events and can only rely on post-event passive alarm events.
[0109] Shenzhen Qianhai Weizhong Bank's CN 111106953 A patent discloses a method and device for abnormal root cause analysis, which converts alarm logs into factual information and puts it into an inference network for matching. The inference network obtains each decision path based on the factual information of historical alarms and obtains the execution strategy corresponding to each decision path based on the analysis results of historical alarms, relying on historical experience data.
[0110] In the above methods, the alarm events are all passive alarms generated based on the application layer, which cannot accurately and timely detect alarm events and can only determine whether the application system has a fault. However, the layers deployed in the application system are very complex, and the existing fault analysis methods cannot accurately determine which layer of the application system has a fault, and cannot go deep into the specific fault point.
[0111] As the functions of application systems become increasingly rich and powerful, the structure of application systems becomes increasingly complex. Application systems are usually divided into multiple levels and modules according to business functions, and each level contains a large number of services and method calls. For example, for the acquiring system, including the front-end subsystem, gateway subsystem, encryption service subsystem, communication subsystem, etc., the tasks of each subsystem are performed by multiple hosts. During the execution process, the host relies on the call of the method in the service. At the same time, the service method will also be called between different hosts. It can be seen that the call relationship involves many levels of the application system. Once there is a problem with the operation of the application system, it is difficult for the operation and maintenance personnel to quickly determine which level of the application system has a problem or which level has a problem in the interaction with which level.
[0112] In summary, when an application system fails, it becomes a technical difficulty to quickly and accurately locate the failure point of the application system and improve operation and maintenance efficiency.
[0113] The embodiment of the present invention provides a method for analyzing a fault of an application system. Figure 2 As shown, including:
[0114] Step 201, obtaining each call chain log generated during the operation of the application system.
[0115] During the operation of the application system, various calls will be generated to execute a task, forming a call chain. Executing multiple tasks will generate multiple call chains. Each call will generate a call chain log on the called party. The call chain log can contain any one or more of the following: the call chain global unique identifier traceid, caller information, callee information, the time when the call log was generated, the duration of this call, and whether the call was successful. For example, a call chain log is shown in Table 1:
[0116] Table 1
[0117]
[0118] The application system includes multiple subsystems, each subsystem runs in multiple hosts, services are deployed in the hosts, and various methods are deployed under the services. A log agent is set in each host, and when a call chain log is generated, the call chain log can be uploaded to a kafka cluster or other clusters, which is not limited in the embodiment of the present invention.
[0119] Step 202, based on the call chain monitoring items, determine whether each call chain log meets the alarm rule; the call chain monitoring items are used to characterize the callee information in the call chain log.
[0120] The call chain monitoring item may be data center + system + subsystem + host + service + method, or data center + system + subsystem + host + service, etc., which is not limited in the embodiment of the present invention.
[0121] If the call chain monitoring item is data center + system + subsystem + host + service + method, then the call chain logs are sorted to the method granularity according to the call chain monitoring item. The call chain log collection of method 1 of service 1 of subsystem 1 of host 1 of system 1 in data center 1, the call chain log collection of method 2 of service 1 of host 1 of subsystem 1 of system 1 in data center 1, the call chain log collection of method 1 of service 1 of host 2 of subsystem 1 of system 1 in data center 1, the call chain log collection of method 1 of service 1 of host 5 of subsystem 1 of system 2 in data center 2, etc. are not listed here one by one.
[0122] Determine whether each call chain log under any call chain monitoring item meets the alarm rule. The alarm rule can be a successful call, or the time taken is less than a certain threshold, etc. For example, if the number of unsuccessful call logs in each call chain log under a call chain monitoring item is greater than 5, then the call chain monitoring item is used as alarm data.
[0123] Step 203: Use the call chain monitoring items in the call chain log that meet the alarm rules as alarm data.
[0124] If each call chain log under the call chain monitoring item meets the alarm rule, the call chain monitoring item is used as the alarm data. For example, the alarm data obtained can be: method 1 of service 1 of host 1 of subsystem 1 of system 1 of data center 1, service 2 of host 1 of subsystem 1 of system 1 of data center 1, etc.
[0125] Step 204, analyzing each alarm data according to each dimension represented by the call chain monitoring item to determine the failure point of the application system; the dimensions include at least one of the host dimension, subsystem dimension, service dimension and method dimension.
[0126] Now mainstream systems have been deployed based on the service mesh architecture. For such a complex architecture system, it contains multiple subsystems, each subsystem contains multiple hosts, each host has several service processes, and the service is composed of several methods. The nodes communicate with each other through sidecars to form a complex call chain relationship. When a host fails, all services and methods on the host will be unavailable. When a service fails, all methods corresponding to the service will be unavailable. Therefore, when a node alarms or multiple nodes alarm at the same time, it is necessary to locate the specific root cause of the failure node, such as determining whether it is a host failure or a service failure on some hosts.
[0127] Figure 3 A typical mesh architecture call chain is shown. It can be seen that the service and sidecar communication are separate. The embodiment of the present invention uses sidecar communication to obtain the fine-grained call relationship in the application system. Based on the call relationship of the communication layer, call failures can be actively discovered, so as to determine the alarm data in a timely and accurate manner. This is fundamentally different from the prior art method of relying on the alarm of the application layer of the application system to determine the alarm event.
[0128] The following describes a method for analyzing failure points of an application system from the dimensions of subsystems, hosts, services, and methods through several specific embodiments.
[0129] Embodiment 1
[0130] The dimension represented by the call chain monitoring item includes a host dimension; analyzing each alarm data according to each dimension represented by the call chain monitoring item to determine the failure point of the application system, including:
[0131] For any alarm host in each alarm data, determine the first number of alarm services associated with the alarm host in each alarm data; and determine whether the alarm host is a failure point of the application system based on the second number of all services running on the alarm host and the first number.
[0132] For example, each alarm host can be extracted from each alarm data, and for any alarm host, the second number of all services deployed on the alarm host is determined, and the first number of alarm services on the alarm host is determined. By analyzing the relationship between the first number and the second number, it can be determined whether the alarm host is a failure point of the application system. Here, the relationship between the first number and the second number can be a ratio relationship or a difference relationship, which is not limited.
[0133] If a first preset relationship (e.g., a ratio) between the first quantity and the second quantity is greater than a first preset threshold, it means that most services on the alarm host have alarmed, and the alarm host is determined to be a failure point of the application system. We name the set of alarm hosts determined as failure points as a host set.
[0134] If the first preset relationship between the first quantity and the second quantity is not greater than the first preset threshold, it means that only a small part of the services on the alarm host have alarms, then it is determined that the alarm host is not faulty, but the alarm service on the alarm host is the fault point of the application system.
[0135] For example, there are 10 services running on alarm host 1, of which 2 services are alarm services, namely alarm service 1 and alarm service 2. The first preset relationship between the first quantity and the second quantity is 2 / 10, which is less than the first preset threshold, so the fault nodes are determined to be alarm service 1 of alarm host 1 and alarm service 2 of alarm host 1. If it is greater than the first preset threshold, alarm host 1 is the fault point of the application system.
[0136] If multiple alarm hosts are identified as failure points, the collection of these alarm hosts is named a host set.
[0137] Optionally, before determining that the alarm service on the alarm host is a fault point, it is also possible to determine whether the alarm service of the alarm host exists in the service set, method set, or host + method set. If not, the alarm service of the alarm host is determined as the fault point. The service set refers to the set of alarm services determined as fault points, the method set refers to the set of alarm methods determined as fault points, and the host + method set refers to the set of alarm methods determined as fault points for the alarm service of the alarm host.
[0138] For example, if the fault nodes are determined to be alarm service 1 of alarm host 1 and alarm service 2 of alarm host 1 through the above method, and the service concentration determines that alarm service 1 is the fault point, then the fault of alarm service 1 is identified first, and alarm service 1 of alarm host 1 is eliminated. The final result is: alarm service 2 of alarm host 1 is the fault point;
[0139] For example, if the fault nodes are determined to be alarm service 1 of alarm host 1 and alarm service 2 of alarm host 1 through the above method, and the method centrally determines that alarm method 1 of alarm service 1 is the fault point, then the fault of alarm method 1 of alarm service 1 is prioritized, and alarm service 1 of alarm host 1 is eliminated. The final result is: alarm service 2 of alarm host 1 is the fault point;
[0140] For example, if the above method is used to determine that the faulty nodes are alarm service 1 of alarm host 1 and alarm service 2 of alarm host 1, and the host + method set determines that alarm method 1 of alarm service 1 of alarm host 1 is the fault point, then the alarm method 1 of alarm service 1 of alarm host 1 is prioritized as faulty, and alarm service 1 of alarm host 1 is eliminated. The final result is that alarm service 2 of alarm host 1 is the fault point.
[0141] The above elimination operation is to make the final fault points as non-repetitive as possible, so that the operation and maintenance personnel can more intuitively identify the fault points and troubleshoot them faster.
[0142] The specific determination method of the data in the service set, method set and host+method set is described in detail below. Among them, the determination method of the service set is in the second embodiment, and the determination method of the method set and host+method set is in the third embodiment.
[0143] Optionally, the dimension represented by the call chain monitoring item also includes a subsystem dimension;
[0144] After determining whether the alarm host is a fault point of the application system, the method further includes:
[0145] For each alarm host determined as a fault point, determine the subsystems to which each alarm host belongs; for any subsystem, if the second preset relationship between the third number of alarm hosts belonging to the subsystem and the fourth number of all hosts belonging to the subsystem meets the second preset threshold, then the subsystem is determined to be the fault point of the application system.
[0146] After determining that the fault point is the alarm host, we can further determine whether the fault of the alarm host is caused by the fault of the subsystem, so we can continue to determine whether the subsystem is faulty. For example, the alarm host 1 has been determined to be the faulty node, and the subsystem to which the alarm host 1 belongs is obtained as subsystem 1. There are 10 hosts and 7 alarm hosts in subsystem 1. Then the ratio of the third number to the fourth number is 7 / 10. If it is less than the second preset threshold, it means that the subsystem has not failed, and it is only the fault of the alarm host 1; if the ratio of the third number to the fourth number is not less than the second preset threshold, it means that the subsystem 1 is likely to fail, and not only the alarm host 1 will be output as the fault point, but also the subsystem 1 will be output as the fault point.
[0147] Embodiment 2
[0148] The dimensions represented by the call chain monitoring items include service dimensions;
[0149] Analyze each alarm data according to each dimension represented by the call chain monitoring item to determine the failure point of the application system, including:
[0150] For any alarm service in each alarm data, determine the fifth number of alarm hosts associated with the alarm service in each alarm data; determine a third preset relationship between the fifth number and the sixth number of all hosts running the alarm service; when the third preset relationship is greater than a third preset threshold, determine that the alarm service is a failure point of the application system.
[0151] Each alarm service can be extracted from each alarm data, for example, the extracted alarm services are alarm service 1 and alarm service 2. For alarm service 1, determine how many hosts alarm service 1 is deployed on, and obtain the sixth quantity; determine how many hosts alarmed, and obtain the fifth quantity. If the third preset relationship between the fifth quantity and the sixth quantity is large, and is greater than the third preset threshold, it means that there is a high probability that there is a problem with alarm service 1, which causes such a high proportion of hosts to alarm, and therefore, alarm service 1 is determined to be the fault point.
[0152] If it is not greater than the third preset threshold, it means that alarm service 1 does not cause alarms on most hosts, so alarm service 1 is likely not a fault point.
[0153] Similarly, it can be determined whether alarm service 2 is a fault point.
[0154] Optionally, before determining that a certain alarm service is a fault point, it is also possible to determine whether the alarm service exists in the method set. If not, the alarm service is determined as the fault point. If so, the alarm service is not determined as the fault point.
[0155] For example, if alarm method 1 of alarm service 1 has been identified as the fault point in the method set, then we believe that the alarm of service 1 is caused by the failure of a few methods, that is, in this case, it is caused by alarm method 1. Therefore, alarm method 1 of alarm service 1 in the method set is preferentially identified as the fault point, and alarm service 1 is no longer identified as the fault point.
[0156] Optionally, before determining that an alarm service is a fault point, it is also possible to determine whether all hosts deployed by the alarm service exist in the host set (the method for determining the host set is introduced in Example 1). If so, the alarm service will no longer be determined as a fault point. If not, the alarm service will be determined as a fault point.
[0157] For example, alarm service 1 is deployed on two hosts, namely host 1 and host 2. If host 1 and host 2 are both in the host set determined in embodiment 1, host 1 and host 2 are preferentially identified as faulty nodes to avoid duplication. Alarm service 1 is no longer identified as a faulty node.
[0158] The set of alarm services determined as failure points is named as a service set.
[0159] Embodiment 3
[0160] The dimensions represented by the call chain monitoring items include method dimensions;
[0161] Analyze each alarm data according to each dimension represented by the call chain monitoring item to determine the failure point of the application system, including:
[0162] For any alarm method in each alarm data, determine whether the alarm method is the failure point of the application system based on the seventh number and the eighth number in the same alarm host; the seventh number is used to characterize the number of each alarm method under the service to which the alarm method belongs running in the alarm host; the eighth number is used to characterize the number of all methods under the service to which the alarm method belongs running in the alarm host.
[0163] For example, for alarm service 1 of alarm host 1, determine the number of alarm methods in alarm service 1 of alarm host 1, that is, the seventh number, determine the number of all methods of alarm service 1 of alarm host 1, that is, the eighth number, and determine whether the alarm method is a failure point of the application system based on the ratio, difference and other relationships between the seventh number and the eighth number.
[0164] Specifically:
[0165] (1) If the fourth preset relationship between the seventh number and the eighth number is greater than the fourth preset threshold, and the fifth preset relationship between the ninth number of alarm hosts running the service to which the alarm method belongs and the tenth number of all hosts running the service to which the alarm method belongs is not greater than the fifth preset threshold, then it is determined that the service to which the alarm method runs on the alarm host is the fault point of the application system.
[0166] (2) If the fourth preset relationship between the seventh number and the eighth number is greater than the fourth preset threshold, and the fifth preset relationship between the ninth number of alarm hosts running the service to which the alarm method belongs and the tenth number of all hosts running the service to which the alarm method belongs is greater than the fifth preset threshold, then it is determined that the service to which the alarm method belongs is the fault point of the application system.
[0167] (3) If the fourth preset relationship between the seventh number and the eighth number is not greater than the fourth preset threshold, and the sixth preset relationship between the eleventh number of alarm hosts running the alarm method and the twelfth number of all hosts running the alarm method is greater than the sixth preset threshold, then the alarm method is determined to be the failure point of the application system.
[0168] (4) If the fourth preset relationship between the seventh number and the eighth number is not greater than the fourth preset threshold, and the sixth preset relationship between the eleventh number of alarm hosts running the alarm method and the twelfth number of all hosts running the service to which the alarm method belongs is not greater than the sixth preset threshold, then it is determined that the alarm method running on the alarm host is the failure point of the application system.
[0169] The following are examples to illustrate the above four points in order.
[0170] Example 1
[0171] For the alarm service 1 of the alarm host 1, if there are 10 methods in total, 6 of which have alarmed, and if the fourth preset relationship is greater than the fourth preset threshold, it means that most of the methods in the alarm service 1 of the alarm host 1 have alarmed, and the alarm service 1 of the alarm host 1 is likely to be faulty. Further judgement is made that the alarm service 1 is deployed on 10 hosts, and 5 of them have alarmed. If it is not greater than the fifth preset threshold, it means that it is not the fault of the alarm service 1, but indeed the fault of the alarm service 1 of the alarm host 1. That is, the alarm service 1 alarms because it is deployed on the alarm host 1. The alarm service 1 of the alarm host 1 is determined to be the fault point.
[0172] Optionally, before determining that the service to which the alarm method running on the alarm host belongs is the failure point of the application system, it can also be determined whether the service to which the alarm method running on the alarm host belongs exists in the host set. If so, the service to which the alarm method running on the alarm host belongs will not be determined as the failure point of the application system.
[0173] For example, if in the above example it is determined that alarm service 1 of alarm host 1 may be a fault point, but alarm host 1 exists in the host set, it means that alarm host 1 has been determined as a fault point. Generally speaking, if a host fails, then the service deployed on the host must fail, but a service failure does not necessarily lead to a host failure. Therefore, alarm host 1 is prioritized as a fault point. Alarm service 1 of alarm host 1 is no longer determined as a fault point.
[0174] Example 2
[0175] For alarm service 1 of alarm host 1, if there are 10 methods in total, 6 of which have alarms, and if the fourth preset relationship is greater than the fourth preset threshold, it means that most of the methods in alarm service 1 of alarm host 1 have alarms, and the alarm service 1 of the alarm host 1 is likely to be faulty. Further, it is determined that the alarm service 1 is deployed on 10 hosts, and 5 of them have alarms. If it is greater than the fifth preset threshold, it means that it is likely to be a fault of alarm service 1. Therefore, alarm service 1 is determined to be the fault point.
[0176] Example 3
[0177] For alarm service 1 of alarm host 1, if there are 10 methods in total, 6 of which generate alarms, and if the fourth preset relationship is not greater than the fourth preset threshold, it means that alarm service 1 of alarm host 1 has no fault, and the specific fault point is further determined. For any alarm method of alarm service 1 of alarm host 1, for example, alarm method 1 of alarm service 1 of alarm host 1, determine how many hosts the alarm method is deployed on, that is, the twelfth number, determine the number of alarm hosts among these hosts, that is, the eleventh number, and obtain the sixth preset relationship. If the sixth preset relationship is greater than the sixth preset threshold, it is likely to be a problem with the alarm method, so alarm method 1 of alarm service 1 is determined as the fault point.
[0178] The obtained set of alarm methods of each alarm service determined as a fault point is a method set.
[0179] Example 4
[0180] For alarm service 1 of alarm host 1, if there are 10 methods in total, 6 of which generate alarms, and if the fourth preset relationship is not greater than the fourth preset threshold, it means that alarm service 1 of alarm host 1 has no fault, and the specific fault point is further determined. For any alarm method of alarm service 1 of alarm host 1, for example, alarm method 1 of alarm service 1 of alarm host 1, determine how many hosts the alarm method is deployed on, that is, the twelfth number, and determine the number of alarm hosts among these hosts, that is, the eleventh number, and obtain the sixth preset relationship. If the sixth preset relationship is not greater than the sixth preset threshold, we cannot attribute the fault to alarm method 1, but only to the fault of the alarm method of the alarm host. Therefore, alarm method 1 of alarm service 1 of alarm host 1 is determined as the fault point.
[0181] The obtained set of alarm methods of the alarm service of each alarm host determined as the fault point is host+method set.
[0182] Optionally, before determining the alarm service obtained in (2) as a fault point, these alarm services can be combined with the alarm service obtained in Implementation 2 to determine whether all hosts deployed by any alarm service exist in the host set (the method for determining the host set is introduced in Implementation 1). If so, the alarm service will no longer be determined as a fault point. If not, the alarm service will be determined as a fault point.
[0183] For ease of understanding, Figure 4 The overall solution for determining the failure point of an application system provided by an embodiment of the present invention is shown in FIG.
[0184] In order to facilitate users to view the call relationship between various levels in the application system, monitor the call relationship in real time, and display the failure points of the application system in real time, the embodiment of the present invention also provides a fault analysis device. At the same time, a visual interface is designed for users to operate and view.
[0185] The internal functional architecture of the fault analysis device is as follows: Figure 5 As shown, it includes one or more of the following: subsystem call chain module, service call chain module, call detail module, performance analysis module, configuration dictionary module, data processing module, alarm information module, log collection module, and self-developed analysis algorithm module.
[0186] The log collection module obtains logs from the log agent deployed in each host and uploads them to the Kafka cluster. When data processing is required, each call chain log is obtained from the Kafka cluster. The obtained call chain logs are processed by the data processing module.
[0187] The data processing module analyzes each call chain log and resolves the call relationship based on the call chain global unique identifier traceid of each call chain. Specifically, the complete call chain information can be obtained through the call chain global unique identifier traceid, that is, the call chain log set with the same traceid can be used to obtain the call sequence. Figure 6 A possible call chain relationship diagram is shown, from which the call sequence involved in this call is analyzed as follows: (1) Service A initiates a call to Service B; (2) Service B simultaneously initiates a call to Service C and Service D; (3) Service B initiates a call to Service E.
[0188] Figure 6 The figure shows a call relationship diagram between services. These services are represented in a call chain because they have the same traceid. The field information of each service is shown in Table 2. The parent node call number represents the caller, and the current call number represents the service's own id number, that is, the called party. For example, Figure 6In the example, the parent node call number of service A is -1, and the current call number is 1, which means that service -1 calls service 1 (the call number of service A). The local IP information indicates on which host the service is deployed. The field information of each service is not limited to that shown in Table 2, and may also include a specific method name, a subsystem to which the host to which the service belongs, an application system, a data center, etc. The embodiment of the present invention does not limit this.
[0189] Table 2
[0190]
[0191] The system dashboard module provides a visual interface for users to view various results. It shows users the health status of the application system currently monitored on the platform, including the application system name, the current number of alarms, and color markings. Figure 7 A possible initial application status dashboard is shown.
[0192] The subsystem call chain module is used to generate a subsystem call relationship diagram based on each call chain log and with the subsystem as the dimension, and to display the call relationship diagram between subsystems to the user. Subsystem call chain generation: Get all node data, first aggregate by host name, then aggregate by subsystem name, and aggregate the calls to the subsystem level to obtain the subsystem call chain. Figure 8 A possible subsystem call chain display interface is shown. The user first clicks on the subsystem call chain on the left, enters the business system, subsystem, and query time period in the pop-up page, and then clicks query. The corresponding call chain of the subsystem will be displayed in the display box. If the user does not select any subsystem, the display box will display the call chains of all subsystems of the application system.
[0193] The subsystem call relationship diagram contains the indication information of the subsystem that is the fault point. For example, in the call chain, the normal subsystem and the abnormal subsystem are marked with different colors, shapes or other indication information. Clicking a subsystem icon will display its corresponding host list on the right. Clicking a host will further drill down to the service and method name under the host.
[0194] Optionally, after the user clicks on the query, in order to facilitate the user to monitor the changes in the call relationship in real time, the call relationship diagram can be set to be automatically updated after a certain interval. For example, the log collection module obtains the call chain logs generated within these 20 seconds every 20 seconds, and the data processing module generates a new subsystem call chain diagram after processing.
[0195] The service call chain module is used to display the call relationship diagram between services to the user. The principle is the same as the subsystem call chain module, so it will not be repeated here. Fig. 9A possible display interface of a service call chain is shown. In the call chain, normal services and abnormal services are marked with different colors. Clicking a service icon will display its corresponding host list on the right. Clicking a host will further drill down to the service and method name under the host.
[0196] Call the detail module to provide detailed data query with specified conditions. At the same time, real-time output of success rate, TPS, time consumption data, etc. of system + data center + subsystem + host + service + method granularity, Fig.10 A possible display interface of call details is shown.
[0197] The alarm information module is used to determine and store alarm data according to alarm rules.
[0198] The self-developed analysis algorithm module conducts source tracing analysis based on the alarm information obtained, and conducts source tracing analysis on the entire application system from the subsystem, host, service, and method granularity, and finally obtains the fault point information of the application system for display. The specific fault analysis method has been detailed above.
[0199] When the user clicks on the root cause analysis in the visualization interface, the alarm information module and the self-developed analysis algorithm module are started to display the fault analysis results to the user. Fig.11 A possible root cause analysis display interface is shown.
[0200] Fig.12 Shows Figure 5 A more detailed functional architecture diagram of the internal functional architecture of the fault analysis device shown in FIG.
[0201] Based on the same technical concept, Fig.13 The structure of a fault analysis device for an application system provided by an embodiment of the present invention is exemplarily shown, and the structure can execute the process of fault analysis of the application system.
[0202] like Fig.13 As shown, the device specifically includes:
[0203] The acquisition unit 1301 is used to acquire each call chain log generated during the operation of the application system;
[0204] A determination unit 1302 is used to determine whether each call chain log meets the alarm rule based on the call chain monitoring item; the call chain monitoring item is used to characterize the callee information in the call chain log;
[0205] The call chain monitoring items in the call chain log that meet the alarm rules are used as alarm data;
[0206] The processing unit 1303 is used to analyze each alarm data according to each dimension represented by the call chain monitoring item to determine the failure point of the application system; the dimensions include at least one of the host dimension, subsystem dimension, service dimension and method dimension.
[0207] Optionally, the dimension represented by the call chain monitoring item includes a host dimension;
[0208] The processing unit 1303 is specifically configured to:
[0209] For any alarm host in each alarm data, determine the first number of alarm services associated with the alarm host in each alarm data; and determine whether the alarm host is a failure point of the application system based on the second number of all services running on the alarm host and the first number.
[0210] Optionally, the dimension represented by the call chain monitoring item also includes a service dimension;
[0211] The processing unit 1303 is specifically configured to:
[0212] If a first preset relationship between the first number and the second number is greater than a first preset threshold, determining that the alarm host is a fault point of the application system;
[0213] When the first preset relationship is not greater than the first preset threshold, the alarm service of the alarm host is determined to be the failure point of the application system.
[0214] Optionally, the dimension represented by the call chain monitoring item also includes a subsystem dimension;
[0215] The processing unit 1303 is further configured to:
[0216] For each alarm host determined as a fault point, determine the subsystems to which each alarm host belongs; for any subsystem, if the second preset relationship between the third number of alarm hosts belonging to the subsystem and the fourth number of all hosts belonging to the subsystem meets the second preset threshold, then the subsystem is determined to be the fault point of the application system.
[0217] Optionally, the dimension represented by the call chain monitoring item includes a service dimension;
[0218] The processing unit 1303 is specifically configured to:
[0219] For any alarm service in each alarm data, determine the fifth number of alarm hosts associated with the alarm service in each alarm data; determine a third preset relationship between the fifth number and the sixth number of all hosts running the alarm service; when the third preset relationship is greater than a third preset threshold, determine that the alarm service is a failure point of the application system.
[0220] Optionally, the dimension represented by the call chain monitoring item includes a method dimension;
[0221] The processing unit 1303 is specifically configured to:
[0222] For any alarm method in each alarm data, determine whether the alarm method is the failure point of the application system based on the seventh number and the eighth number in the same alarm host; the seventh number is used to characterize the number of each alarm method under the service to which the alarm method belongs running in the alarm host; the eighth number is used to characterize the number of all methods under the service to which the alarm method belongs running in the alarm host.
[0223] Optionally, the processing unit 1303 is specifically configured to:
[0224] If the fourth preset relationship between the seventh number and the eighth number is greater than the fourth preset threshold, and the fifth preset relationship between the ninth number of alarm hosts running the service to which the alarm method belongs and the tenth number of all hosts running the service to which the alarm method belongs is not greater than the fifth preset threshold, then it is determined that the service to which the alarm method runs on the alarm host is the failure point of the application system.
[0225] Optionally, the processing unit 1303 is specifically configured to:
[0226] If the fourth preset relationship between the seventh number and the eighth number is greater than the fourth preset threshold, and the fifth preset relationship between the ninth number of alarm hosts running the service to which the alarm method belongs and the tenth number of all hosts running the service to which the alarm method belongs is greater than the fifth preset threshold, then it is determined that the service to which the alarm method belongs is the fault point of the application system.
[0227] Optionally, the processing unit 1303 is specifically configured to:
[0228] If the fourth preset relationship between the seventh number and the eighth number is not greater than the fourth preset threshold, and the sixth preset relationship between the eleventh number of alarm hosts running the alarm method and the twelfth number of all hosts running the alarm method is greater than the sixth preset threshold, then the alarm method is determined to be the failure point of the application system.
[0229] Optionally, the processing unit 1303 is specifically configured to:
[0230] If the fourth preset relationship between the seventh quantity and the eighth quantity is not greater than the fourth preset threshold, and the sixth preset relationship between the eleventh quantity of the alarm hosts running the alarm method and the twelfth quantity of all hosts running the service to which the alarm method belongs is not greater than the sixth preset threshold, it is determined that the alarm method running on the alarm host is the failure point of the application system.
[0231] Optionally, the processing unit 1303 is further configured to:
[0232] Based on each call chain log, a call relationship graph of the subsystem is generated with the subsystem as the dimension; the call relationship graph of the subsystem has indication information of the subsystem as the fault point; and / or,
[0233] Based on each call chain log, a service call relationship graph is generated with the service as a dimension; the service call relationship graph has indication information of the service as a fault point.
[0234] Based on the same technical concept, the embodiment of the present application provides a computer device, such as Fig.14 As shown, it includes at least one processor 1401 and a memory 1402 connected to the at least one processor. The specific connection medium between the processor 1401 and the memory 1402 is not limited in the embodiment of the present application. Fig.14 For example, the processor 1401 and the memory 1402 are connected via a bus. The bus can be divided into an address bus, a data bus, a control bus, etc.
[0235] In the embodiment of the present application, the memory 1402 stores instructions that can be executed by at least one processor 1401. The at least one processor 1401 can execute the steps of the fault analysis method of the above-mentioned application system by executing the instructions stored in the memory 1402.
[0236] Among them, the processor 1401 is the control center of the computer device, and can use various interfaces and lines to connect various parts of the computer device, and perform fault analysis of the application system by running or executing instructions stored in the memory 1402 and calling data stored in the memory 1402. Optionally, the processor 1401 may include one or more processing units, and the processor 1401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1401. In some embodiments, the processor 1401 and the memory 1402 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on independent chips.
[0237] Processor 1401 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware processor for execution, or can be executed by a combination of hardware and software modules in the processor.
[0238] Memory 1402, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules. Memory 1402 may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (Random Access Memory, RAM), static random access memory (Static Random Access Memory, SRAM), programmable read-only memory (Programmable Read Only Memory, PROM), read-only memory (Read Only Memory, ROM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), magnetic memory, disk, optical disk, etc. Memory 1402 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 1402 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0239] Based on the same technical concept, an embodiment of the present invention further provides a computer-readable storage medium, which stores a computer-executable program. The computer-executable program is used to enable a computer to execute the method for fault analysis of an application system listed in any of the above methods.
[0240] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0241] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0242] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0243] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0244] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for analyzing a fault in an application system, characterized in that: include: Obtain the call chain logs generated during the operation of the application system; Based on the call chain monitoring items, determine whether each call chain log meets the alarm rules; The call chain monitoring item is used to characterize the callee information in the call chain log; The call chain monitoring items in the call chain log that meet the alarm rules are used as alarm data; Analyze each alarm data according to each dimension represented by the call chain monitoring item to determine the failure point of the application system; The dimensions represented by the call chain monitoring items include host dimensions; The analyzing each alarm data according to each dimension represented by the call chain monitoring item to determine the failure point of the application system includes: For any alarm host in each alarm data, determining a first number of alarm services associated with the alarm host in each alarm data; It is determined whether the alarm host is a failure point of the application system according to a second number of all services running on the alarm host and the first number.
2. The method according to claim 1, characterized in that The dimension represented by the call chain monitoring item also includes a service dimension; Determining whether the alarm host is a failure point of the application system according to the second number of all services running on the alarm host and the first number includes: If a first preset relationship between the first number and the second number is greater than a first preset threshold, determining that the alarm host is a fault point of the application system; When the first preset relationship is not greater than the first preset threshold, the alarm service of the alarm host is determined to be the failure point of the application system.
3. The method according to claim 1, characterized in that The dimension represented by the call chain monitoring item also includes a subsystem dimension; After determining whether the alarm host is a fault point of the application system, the method further includes: For each alarm host determined as a fault point, determine the subsystems to which each alarm host belongs; for any subsystem, if the second preset relationship between the third number of alarm hosts belonging to the subsystem and the fourth number of all hosts belonging to the subsystem meets the second preset threshold, then the subsystem is determined to be the fault point of the application system.
4. The method according to claim 1, characterized in that The dimensions represented by the call chain monitoring items include service dimensions; Analyze each alarm data according to each dimension represented by the call chain monitoring item to determine the failure point of the application system, including: For any alarm service in each alarm data, determine the fifth number of alarm hosts associated with the alarm service in each alarm data; determine a third preset relationship between the fifth number and the sixth number of all hosts running the alarm service; when the third preset relationship is greater than a third preset threshold, determine that the alarm service is a failure point of the application system.
5. The method according to claim 1, characterized in that The dimensions represented by the call chain monitoring items include method dimensions; Analyze each alarm data according to each dimension represented by the call chain monitoring item to determine the failure point of the application system, including: For any alarm method in each alarm data, based on the seventh quantity and the eighth quantity in the same alarm host, determine whether the alarm method is a failure point of the application system; The seventh number is used to characterize the number of each alarm method under the service to which the alarm method belongs that is running in the alarm host; the eighth number is used to characterize the number of all methods under the service to which the alarm method belongs that is running in the alarm host.
6. The method according to claim 5, characterized in that Determining whether the alarm method is a fault point of the application system based on the seventh number and the eighth number in the same alarm host includes: If the fourth preset relationship between the seventh number and the eighth number is greater than the fourth preset threshold, and the fifth preset relationship between the ninth number of alarm hosts running the service to which the alarm method belongs and the tenth number of all hosts running the service to which the alarm method belongs is not greater than the fifth preset threshold, then it is determined that the service to which the alarm method runs on the alarm host is the failure point of the application system.
7. The method according to claim 5, characterized in that Determining whether the alarm method is a fault point of the application system based on the seventh number and the eighth number in the same alarm host includes: If the fourth preset relationship between the seventh number and the eighth number is greater than the fourth preset threshold, and the fifth preset relationship between the ninth number of alarm hosts running the service to which the alarm method belongs and the tenth number of all hosts running the service to which the alarm method belongs is greater than the fifth preset threshold, then it is determined that the service to which the alarm method belongs is the fault point of the application system.
8. The method according to claim 5, characterized in that Determining whether the alarm method is a fault point of the application system based on the seventh number and the eighth number in the same alarm host includes: If the fourth preset relationship between the seventh number and the eighth number is not greater than the fourth preset threshold, and the sixth preset relationship between the eleventh number of alarm hosts running the alarm method and the twelfth number of all hosts running the alarm method is greater than the sixth preset threshold, then the alarm method is determined to be the failure point of the application system.
9. The method according to claim 5, characterized in that Determining whether the alarm method is a fault point of the application system based on the seventh number and the eighth number in the same alarm host includes: If the fourth preset relationship between the seventh quantity and the eighth quantity is not greater than the fourth preset threshold, and the sixth preset relationship between the eleventh quantity of the alarm hosts running the alarm method and the twelfth quantity of all hosts running the service to which the alarm method belongs is not greater than the sixth preset threshold, it is determined that the alarm method running on the alarm host is the failure point of the application system.
10. The method according to any one of claims 1 to 9, characterized in that Also includes: Based on each call chain log, a call relationship graph of the subsystem is generated with the subsystem as a dimension; the call relationship graph of the subsystem has indication information of the subsystem as a fault point; and / or, Based on each call chain log, a service call relationship graph is generated with the service as a dimension; the service call relationship graph has indication information of the service as a fault point.
11. A fault analysis device for an application system, characterized in that: include: An acquisition unit, used to acquire each call chain log generated during the operation of the application system; A determination unit, used to determine whether each call chain log meets the alarm rule based on the call chain monitoring item; the call chain monitoring item is used to characterize the callee information in the call chain log; The call chain monitoring items in the call chain log that meet the alarm rules are used as alarm data; A processing unit, configured to analyze each alarm data according to each dimension represented by the call chain monitoring item to determine the failure point of the application system; the dimension represented by the call chain monitoring item includes a host dimension; The processing unit performs analysis on each alarm data according to each dimension represented by the call chain monitoring item to determine the failure point of the application system, specifically including: For any alarm host in each alarm data, determining a first number of alarm services associated with the alarm host in each alarm data; It is determined whether the alarm host is a failure point of the application system according to a second number of all services running on the alarm host and the first number.
12. A computing device, characterized in that: include: Memory for storing computer programs; A processor, configured to call a computer program stored in the memory, and execute the method according to any one of claims 1 to 10 according to the obtained program.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer-executable program, and the computer-executable program is used to enable a computer to execute the method according to any one of claims 1 to 10.
