Fault positioning method and device, electronic equipment and storage medium

By obtaining and analyzing the associated links and change events of the target application, the cause of the fault is determined based on the degree of correlation, which solves the problem of fault location between business lines and achieves rapid recovery of system operation.

CN118550741APending Publication Date: 2024-08-27MASHANG CONSUMER FINANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311370375.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-20
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

When applications or systems between business lines are changed or abnormal, it is difficult to quickly locate the problem, resulting in the system being unable to quickly resume normal operation.

Method used

By obtaining the target associated link of the target application, determining the associated change event, and determining the target change event that caused the fault based on the degree of relevance, rapid and accurate fault location is achieved.

Benefits of technology

The speed and accuracy of fault location are improved, the system can be quickly restored to normal operation, and business losses are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550741A
    Figure CN118550741A
Patent Text Reader

Abstract

The invention provides a fault positioning method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining a target association link of a target application having a fault, and the target association link comprises the target application and a called object having a calling relation with the target application; determining at least one association change event based on the target association link; the associated change event occurs on the corresponding called object; determining an association degree between the association change event and the target application; and according to the association degree, determining a target change event which causes the target application to have a fault from the at least one associated change event, and determining a fault positioning result based on the target change event. According to the invention, fault positioning can be realized quickly and accurately.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a fault location method, device, electronic device and storage medium. Background Art

[0002] As the business scale grows, business lines and applications continue to increase, and each business line has its own applications or systems. The applications or systems of each business line have certain dependencies and upstream and downstream relationships. When the application or system of a business line changes or becomes abnormal, causing the applications of other business lines to become abnormal, it is difficult to quickly locate the business line where the problem occurs. Summary of the invention

[0003] The embodiments of the present application provide a fault location method, device, electronic device and storage medium, which can quickly and accurately locate the fault, thereby quickly restoring the normal operation of the system.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] The present invention provides a method for locating a fault, the method comprising:

[0006] Obtain a target association link of a target application where a fault occurs, the target association link including the target application and a called object having a calling relationship with the target application; based on the target association link, determine at least one association change event; the association change event occurs on the corresponding called object; determine the degree of association between the association change event and the target application; based on the degree of association, determine a target change event that causes the target application to fail from the at least one association change event, and determine a fault location result based on the target change event.

[0007] An embodiment of the present application provides a fault locating device, comprising: a link determination module, used to obtain a target association link of a target application where a fault occurs, wherein the target association link includes the target application and a called object having a calling relationship with the target application; an association change event determination module, used to determine at least one association change event based on the target association link; the change event occurs on the corresponding called object; a correlation degree determination module, used to determine the correlation degree between the association change event and the target application; and a fault locating module, used to determine, according to the correlation degree, a target change event that causes the target application to fail from the at least one association change event, and determine a fault locating result based on the target change event.

[0008] An embodiment of the present application provides an electronic device, which includes: a memory for storing computer-executable instructions; and a processor for implementing the fault location method provided in the embodiment of the present application when executing the computer-executable instructions stored in the memory.

[0009] An embodiment of the present application provides a computer-readable storage medium storing a computer program or computer-executable instructions for implementing the fault location method provided in the embodiment of the present application when executed by a processor.

[0010] An embodiment of the present application provides a computer program product, including a computer program or a computer executable instruction. When the computer program or the computer executable instruction is executed by a processor, the fault location method provided in the embodiment of the present application is implemented.

[0011] The embodiments of the present application have the following beneficial effects:

[0012] In an embodiment of the present application, the target association link of the target application where the failure occurs includes a calling relationship between the target application and the called object. The existence of a calling relationship indicates that a change event occurring on the called object may affect the running state of the target application. Therefore, at least one associated change event can be determined based on the target association link of the target application. The associated change event is a change event occurring on the called object. The degree of association between the associated change event and the target application is determined. The higher the degree of association, the more likely the associated change event is to affect the running state of the target application. Therefore, based on the degree of association, the target change event that causes the target application to fail can be quickly located, thereby improving the speed of fault location. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 It is a structural diagram of the fault location system architecture provided in an embodiment of the present application;

[0014] Figure 2A is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0015] Figure 2B is a structural schematic diagram of a fault locating device provided in an embodiment of the present application;

[0016] Figure 3A It is a flowchart of a fault location method provided in an embodiment of the present application;

[0017] Figure 3B It is a flowchart of a fault location method provided in an embodiment of the present application;

[0018] Figure 3C It is a flowchart of a fault location method provided in an embodiment of the present application;

[0019] Figure 3DIt is a flowchart of a fault location method provided in an embodiment of the present application;

[0020] Figure 4 It is a flowchart of a fault location method provided in an embodiment of the present application;

[0021] Figure 5 It is a flowchart of a fault location method provided in an embodiment of the present application;

[0022] Figure 6 It is a structural diagram of the fault location system architecture provided in an embodiment of the present application;

[0023] Figure 7 It is a schematic diagram of the architecture of the fault location method provided in the embodiment of the present application;

[0024] Figure 8 is a schematic diagram of an association link provided in an embodiment of the present application;

[0025] Fig. 9 is a schematic diagram of an association link provided in an embodiment of the present application;

[0026] Fig.10 It is a schematic diagram of the architecture of the change event module provided in the embodiment of the present application;

[0027] Fig.11 It is a schematic diagram of the architecture of the fault application module provided in the embodiment of the present application;

[0028] Fig.12 It is a schematic diagram of the process of obtaining the associated link provided in the embodiment of the present application;

[0029] Fig.13 It is a schematic diagram of the process of obtaining the associated link provided in the embodiment of the present application;

[0030] Fig.14 It is a schematic diagram of the correlation degree calculation process provided in the embodiment of the present application. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0032] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0033] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0034] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meanings as those commonly understood by those skilled in the art. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.

[0035] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0036] 1) Change events, including additions, deletions, and modifications to the architecture and configuration of the information system production environment, as well as operation-related activities such as push and launch of activities.

[0037] 2) Object, which is an application, basic component or middleware in the system.

[0038] As the company's business scale continues to grow, business applications and business lines continue to increase. Each business line has its own managed applications or systems, but the applications or systems of each business line have certain dependencies and upstream and downstream relationships. When the application or system of a business line changes or anomalies occur, other business lines often cannot quickly understand and perceive them. When the application of other business parties is abnormal due to changes or anomalies in the applications of other business parties, other business parties cannot quickly locate the problem. Therefore, a unified method and system that can quickly associate faults and change events is needed to quickly locate problems, restore business, and reduce losses.

[0039] In the related technology, application or system changes are controlled through the Itsm (IT Service Management) process. The Itsm system records the content and time of changes in each system, and the alarm is sent separately through a communication application, and there is no connection between the two. On the one hand, the changes controlled by the Itsm system are not comprehensive, and there are still changes that are not recorded in the Itsm process. On the other hand, alarms and changes are recorded separately, and it is impossible to quickly associate alarms and changes, which has certain obstacles to problem location.

[0040] Based on at least one of the above problems existing in the related art, the embodiments of the present application provide a fault location method, device, equipment, computer-readable storage medium and computer program product, which can quickly and accurately realize fault location, so as to quickly restore the normal operation of the system. The following describes an exemplary application of the electronic device provided by the embodiment of the present application. In one implementation, the electronic device provided by the embodiment of the present application can be implemented as a terminal or a server. In one implementation, the electronic device provided by the embodiment of the present application can be implemented as a laptop, a tablet computer, a desktop computer, a mobile phone, a portable music player, a personal digital assistant, a dedicated messaging device, a portable game device, an intelligent robot, a smart home appliance and an intelligent vehicle-mounted device, and any terminal with data processing function; in another implementation, the electronic device provided by the embodiment of the present application can also be implemented as a server, wherein the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (CDN, Content Delivery Network), and basic cloud computing services such as big data and artificial intelligence platforms. The terminal and the server may be connected directly or indirectly via wired or wireless communication, which is not limited in the embodiments of the present application. Below, an exemplary application when the electronic device is implemented as a server will be described.

[0041] See also Figure 1 , Figure 1 It is a schematic diagram of the architecture of the fault location system 100 provided in an embodiment of the present application. To support a fault location application, the terminal 400 is connected to the server 200 via the network 300. The network 300 may be a wide area network or a local area network, or a combination of the two.

[0042] When performing fault location, the user can input the operation of performing fault location through the terminal 400, and the terminal 400 generates a fault location request in response to the operation of performing fault location, and sends the fault location request to the server 200 through the network 300. After receiving the fault location request, the server 200 obtains the target association link of the target application where the fault occurs in response to the fault location request; wherein the target association link includes the target application and the called object having a calling relationship with the target application; based on the target association link, at least one association change event is determined; the association change event occurs on the corresponding called object; the association degree between the association change event and the target application is determined; according to the association degree, the target change event that causes the target application to fail is determined from the at least one association change event, and the fault location result is determined based on the target change event.

[0043] In some embodiments, the fault location method of the embodiment of the present application can also be executed by terminal 400, that is, the user can input the demand for fault location operation through terminal 400, and terminal 400 performs the fault location operation in response to the demand, obtains the target association link of the target application where the fault occurs; based on the target association link, determines at least one association change event; determines the correlation between the association change event and the target application; based on the correlation, determines the target change event that causes the target application to fail, and determines the fault location result based on the target change event.

[0044] See also Figure 2A , Figure 2A is a structural diagram of a terminal 400 of a fault location method provided in an embodiment of the present application, Figure 2A The terminal 400 shown includes: at least one processor 410, a memory 450, at least one network interface 420 and a user interface 430. The various components in the terminal 400 are coupled together via a bus system 440. It is understood that the bus system 440 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 440 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 440 is not shown in FIG. Figure 2A Various buses are labeled as bus system 440 .

[0045] The processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0046] The user interface 430 includes one or more output devices 431 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0047] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. The memory 450 may optionally include one or more storage devices that are physically remote from the processor 410.

[0048] The memory 450 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 450 described in the embodiments of the present application is intended to include any suitable type of memory.

[0049] In some embodiments, memory 450 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.

[0050] An operating system 451 includes system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic businesses and processing hardware-based tasks; a network communication module 452, for reaching other electronic devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB), etc.; a presentation module 453, for enabling information to be presented (e.g., a user interface for operating peripheral devices and displaying content and information) via one or more output devices 431 (e.g., display screens, speakers, etc.) associated with a user interface 430; an input processing module 454, for detecting one or more user inputs or interactions from one of the one or more input devices 432 and translating the detected inputs or interactions.

[0051] In some embodiments, Figure 2B As shown, the fault location device 455 provided in the embodiment of the present application can be implemented in a software manner. Figure 2B The fault location device 455 stored in the memory 450 is shown, which can be software in the form of a program and a plug-in, etc., and includes the following software modules: a link determination module 4551, an association change event determination module 4552, an association degree determination module 4553, and a fault location module 4554. These modules are logical, and therefore can be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.

[0052] In other embodiments, the device provided in the embodiments of the present application can be implemented in hardware. As an example, the device provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the fault location method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application specific integrated circuits (Application Specific Integrated Circuit, ASIC), digital signal processors (Digital Signal Processor, DSP), programmable logic devices (Programmable Logic Device, PLD), complex programmable logic devices (Complex Programmable Logic Device, CPLD), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other electronic components.

[0053] The fault location method provided in each embodiment of the present application can be executed by an electronic device, wherein the electronic device can be a server or a terminal, that is, the fault location method provided in each embodiment of the present application can be executed by a server, can be executed by a terminal, or can be executed through interaction between a server and a terminal.

[0054] Figure 3A This is an optional flow chart of the fault location method provided in the embodiment of the present application. Figure 3A The steps shown are explained as Figure 3A As shown, the fault location method is described by taking the execution subject of the server as an example, and the method includes the following steps S101 to S104:

[0055] In step S101, a target associated link of a target application having a fault is obtained.

[0056] The target association link includes a target application and a called object having a calling relationship with the target application.

[0057] In the embodiment of the present application, the target application is an application that suddenly fails during the operation of the system. Changes to the called object directly or indirectly called by the target application may affect the operating state of the target application, thereby causing the target application to fail. The called object can be an application or a middleware or an infrastructure component. The called objects that have a calling relationship with the target application include the called objects directly called by the target application and the called objects indirectly called by the target application. Therefore, the target association link may include the target application, the called objects directly called by the target application, and the called objects indirectly called by the target application, and the target association link starts with the target application.

[0058] The target association link can also be used to characterize the calling sequence between the target application and each called object. Exemplarily, the target association link of target application A is A→B→C→D, then called object B is the called object directly called by target application A, and called object C and called object D are the called objects indirectly called by target application A. The calling sequence is that target application A calls called object B, called object B calls called object C, and called object C calls called object D. In some embodiments, when a target application in the system fails, the local database will automatically record and store the fault information of the target application. The fault information of the target application includes, but is not limited to, the application identifier of the target application, the fault time, the fault level, the team to which the fault application belongs, the duration of the fault, and other information. The application identifier is a name used to distinguish each application, such as application A, where A is the application identifier. The application identifier of the failed target application can be obtained from the local database.

[0059] In some embodiments, the target application where the failure occurs may also be determined based on a received manual input operation of the user.

[0060] In some embodiments, a pre-established association link for each object is stored in a local database. The object is any application or any middleware or any basic component in the system. The association link of each object is obtained based on the call relationship between the objects. The target association link of the target application can be determined from multiple pre-established association links based on the application identifier of the target application. After obtaining the application identifier of the target application, an association link starting from the target application can be queried from multiple association links as the target association link.

[0061] In step S102, at least one association change event is determined based on the target association link.

[0062] Among them, the association change event occurs on the corresponding called object.

[0063] In an embodiment of the present application, an associated change event refers to a change event whose change may affect the running state of the target application. Based on the target associated link of the target application, a change event occurring on the called object in the target associated link can be determined from multiple change events as an associated change event. Each change event occurs on its corresponding object. After obtaining multiple change events, the associated change events occurring on the called object can be screened out based on the change object information carried in the change event.

[0064] In some embodiments, see Figure 3B , Figure 3AThe illustrated step S102 can be implemented by following the steps S1021 to S1024, which are described in detail below.

[0065] Step S1021, when it is determined that the target application fails, obtain the change events executed within a preset time period.

[0066] In the embodiment of the present application, after obtaining the application identifier of the target application that has failed, at least one change event executed within a preset duration can be obtained. The preset duration is the length of time from the moment when the target application fails to a certain historical moment. It should be noted that the embodiment of the present application does not specifically limit the preset duration.

[0067] Step S1022: Acquire the changed object information carried by the change event.

[0068] In an embodiment of the present application, a change event includes a change type, change object information, change time, change content, and a rollback method. Among them, the change object information includes the object on which the change event occurs. For example, if the change object information includes object B, the change event carrying the change object information occurs on object B. The rollback method is a method for rolling back the state of the application / basic component / middleware to the state before the change. If the change event occurs on the application, the type of change event may include application version changes (code updates, etc.), application configuration changes (stream switching, switches, etc.), and operational changes (advertising promotion, etc.). If the change event occurs on the basic component, the type of change event may include basic component changes. If the change event occurs on the middleware, the type of change event may include middleware changes. Get the change object information carried by each change event.

[0069] Step S1023: Determine the associated changed object information including the called object from the changed object information.

[0070] In the embodiment of the present application, multiple change object information can be traversed to filter out at least one associated change object information, which includes the called object.

[0071] Step S1024: determine the change event corresponding to the associated change object information as an associated change event.

[0072] In the embodiment of the present application, after at least one piece of associated change object information is obtained through screening, a change event corresponding to each piece of associated change object information may be determined as an associated change event.

[0073] The embodiment of the present application determines associated change events from multiple change events through target association links, so that when an exception occurs in a target application in the system, change events that may cause the exception before and after the exception can be quickly determined, so as to restore the normal operation of the system as soon as possible.

[0074] Step S103: determining the correlation between the correlation change event and the target application.

[0075] Continue to see Figure 3A In an embodiment of the present application, for each association change event, the association degree between the association change event and the target application can be determined according to a preset association calculation strategy, based on the change time of the association change event and the position of the called object where the association change event occurs in the target association link.

[0076] In some embodiments, see Figure 3C , Figure 3A The step S103 shown can be implemented by the following steps S1031 to S1033, which are described in detail below.

[0077] In step S1031, the association weight corresponding to the association change event is determined according to the target association link.

[0078] In some embodiments, the association weight corresponding to the association change event can be used to characterize the degree of impact of the association change event on the target application in terms of spatial factors. The association weight corresponding to the association change event is negatively correlated with the number of objects between the called object and the target application where the association change event occurs in the target association link. That is, in the target association link, when the target application sends a call request and needs to call a certain called object, the more objects the call request passes through, the smaller the association weight corresponding to the association change event occurring on the called object.

[0079] In some embodiments, see Figure 3D , Figure 3C The illustrated step S1031 can be implemented by following the steps S10311 to S10312, which are described in detail below.

[0080] In step 10311, the calling distance between the called object corresponding to the association change event and the target application is determined according to the target association link.

[0081] In some embodiments, the number of objects between the called object and the target application in the target association link can be obtained, and the number of objects between the called object and the target application plus 1 is used as the calling distance between the called object and the target application. If the calling relationship between the called object and the target application is a direct call, the number of objects between the called object and the target application is 0, and the calling distance is set to 1. By analogy, the calling distance between each called object and the target application can be obtained.

[0082] In step S10312, the association weight corresponding to the association change event is determined according to the call distance.

[0083] In some embodiments, the initial association weight when the call distance is 0 is first obtained, that is, if there is also a change event on the target application, the association weight corresponding to the change event. As the call distance between the association change event and the target application increases, the association weight corresponding to the association change event gradually decreases from the initial association weight. The association weight corresponding to the association change event can be determined based on the preset initial association weight, the call distance, and the preset weight interval. The initial association weight is subtracted from the product of the call distance and the weight interval to obtain the association weight corresponding to the association change event. It should be noted that the embodiment of the present application does not limit the initial association weight and the weight interval. Taking the initial association weight as 100 and the weight interval as 10 as an example, if the target association link of the target application A is A→B→C→D, there is an association change event 1 on the called object C, and there is an association change event 2 on the called object D, the call distance between the called object C and the target application A is 2, and the call distance between the called object D and the target application A is 3. Then the association weight of the association change event 1 is 80, and the association weight of the association change event 2 is 70.

[0084] In some embodiments, there may be multiple call paths from the target application to the called object in the target association link, and in this case, there are also multiple call distances between the called object and the target application. The minimum call distance is obtained from the multiple call distances, and the association weight corresponding to the association change event is determined based on the preset initial association weight, the minimum call distance, and the preset weight interval.

[0085] For example, the target association link of target application A may be A→B→C→D and A→F→D. In this case, the calling distance between called object D and target application A in A→B→C→D is 3, and the calling distance between called object D and target application A in A→F→D is 2. The minimum calling distance 2 is used as the calling distance between called object D and target application A, and the calculated association weight is 80.

[0086] The embodiment of the present application determines the association weight of the associated change event by calling the distance to characterize the degree of influence of the associated change event on the target application in terms of spatial factors, and then determines the target change event that causes the target application to fail based on the association weight of the associated change event, thereby improving the accuracy of fault location.

[0087] In step S1032, a time weight corresponding to the associated change event is determined according to the time difference between the change time of the associated change event and the time when the target application fails.

[0088] Continue to see Figure 3CIn the embodiment of the present application, the time weight corresponding to the associated change event can be used to characterize the degree of influence of the associated change event on the target application in terms of time factors. The time weight corresponding to the associated change event is negatively correlated with the time difference between the change time of the associated change event and the time when the target application fails. That is, the larger the time difference, the smaller the time weight corresponding to the associated change event.

[0089] The time weight corresponding to the associated change event can be determined based on the preset initial time weight, time interval weight, and the time difference between the change time of the associated change event and the time when the target application fails. It should be noted that the embodiment of the present application does not specifically limit the initial time weight and the time interval weight. The time interval corresponding to the time interval weight can be equal interval or unequal interval.

[0090] Exemplarily, the time interval corresponding to the time interval weight is non-equal interval. The initial time weight is 100, and the time weight within 1 hour is 100. The time weight within 3 hours is 90, the time weight within 12 hours is 70, and the time weight within 24 hours is 60. If the target association link of target application A is A→B→C→D, there is an association change event 1 on the called object C, and there is an association change event 2 on the called object D, and the time difference corresponding to association change event 1 is 20 hours, then its time weight is 60, and the time difference corresponding to association change event 2 is within 1 hour, then its time weight is 100.

[0091] In some embodiments, there may be multiple associated change events on the same called object.

[0092] In step S1033, the degree of association between the association change event and the target application is determined according to the association weight and the time weight corresponding to the association change event.

[0093] In the embodiment of the present application, the association weight and time weight corresponding to the association change event may be weighted and summed to obtain the association degree between the association change event and the target application. The association degree is used to reflect the impact of the association change event on the target application.

[0094] In some embodiments, Figure 3C The shown step S1033 can be implemented by following the steps S10331 to S10332, which are described in detail below.

[0095] In step S10331, the correlation coefficient and the time coefficient are obtained.

[0096] In the embodiment of the present application, the correlation coefficient represents the proportion of the correlation weight in the overall correlation calculation. The time coefficient represents the proportion of the time weight in the overall correlation calculation. It should be noted that the embodiment of the present application does not limit the numerical values ​​of the correlation coefficient and the time coefficient. In actual application, the correlation coefficient and the time coefficient can be adjusted according to the error feedback between the target change event determined based on the correlation and the change event that actually caused the fault.

[0097] In step S10332, the association weight and the time weight corresponding to the association change event are used to perform weighted summation on the association coefficient and the event coefficient to obtain the association degree between the association change event and the target application.

[0098] In the embodiment of the present application, the product of the association weight corresponding to the association change event and the association coefficient, and the sum of the product of the time weight corresponding to the association change event and the time coefficient can be used as the association degree between the association change event and the target application. The association degree between the association change event and the target application satisfies the following formula (1).

[0099] Relevance = time weight * time coefficient + relevance weight * relevance coefficient formula (1);

[0100] For example, the time coefficient is 2, the correlation coefficient is 1, the target correlation link of target application A is A→B→C→D, there is correlation change event 1 on called object C, there is correlation change event 2 on called object D, the time weight corresponding to correlation change event 1 is 60, the correlation weight is 80, and the time weight corresponding to correlation change event 2 is 100, the correlation weight is 70. The correlation degree of correlation change event 1 = 80*1+60*2 = 140; the correlation degree of correlation change event 2 = 70*1+100*2 = 270.

[0101] The embodiment of the present application uses the correlation coefficient and the time coefficient to perform weighted summation on the correlation weight and the time weight to obtain the correlation degree of the correlation change event, and combines the two factors of time and space to judge the impact of the correlation change time on the target application, thereby improving the accuracy of fault location.

[0102] Step S104: determining a target change event that causes a target application failure from at least one associated change event according to the degree of relevance, and determining a fault location result based on the target change event.

[0103] Continue to see Figure 3AAfter determining the correlation degree of each correlation change event, the correlation change events can be sorted in descending order of correlation degree to obtain a correlation change event queue. The greater the correlation degree, the more likely the corresponding correlation change event is to cause the target application to fail. The correlation change event corresponding to the maximum value among the correlation degrees, that is, the first correlation change event in the correlation change event queue, is used as the target change event that causes the target application to fail.

[0104] In some embodiments, if there are two or more identical maximum values ​​in each correlation degree, a correlation change event corresponding to a maximum value is randomly selected as the target change event.

[0105] In some embodiments, after determining the target change event, information such as the change operator, change content, and rollback method of the target change event can be obtained. Based on the above information such as the change operator, change content, and rollback method, the corresponding business party is contacted to perform a rollback operation. After the rollback operation is performed, it is determined whether the running status of the target application is normal. If it is normal, the entire process is terminated to obtain a fault location result indicating that the fault location is successful; or, if it is abnormal, another target change event with the same correlation as the target change event is reselected, or the second associated change event in the associated change event queue is selected as the target change event, and the above rollback operation and the running status judgment step are repeated until the running status of the target application returns to normal, and a fault location result indicating that the fault location is successful is obtained. If the target application is still in a faulty state after each target change event is rolled back, a fault location result indicating that the fault location has failed is obtained, prompting manual fault location and repair.

[0106] In an embodiment of the present application, the target association link of the target application includes a calling relationship between the target application and the called object. The existence of a calling relationship indicates that a change event occurring on the called object may have an impact on the running state of the target application. Therefore, based on the target association link of the target application, at least one associated change event can be screened out from all change events, and the degree of association between each associated change event and the target application can be determined. The higher the degree of association, the more likely the associated change event is to affect the running state of the target application. Therefore, based on the degrees of association, the target change event that causes the target application to fail can be quickly located, thereby improving the speed of fault location.

[0107] See also Figure 4 ,exist Figure 3A Before step 101 shown, steps S201 to S204 may also be performed to determine a target associated link, which is described in detail below.

[0108] In step S201, a simulation call request is sent to a target application, and a first identification set reported by the target application in response to the simulation call request is received.

[0109] The first identifier set includes a request identifier of a simulated call request and a first span identifier of a target application.

[0110] In an embodiment of the present application, the simulated call request is an HTTP (Hypertext Transfer Protocol) request. The simulated call request is used for the target application to respond to the simulated call request and simulate the call to other called objects in the actual system operation, so that the target application and each called object can feedback the result of the call in turn. The simulated call request includes a request identifier. The request identifier is used to distinguish different rounds of calls. A simulated call request is sent to the target application, and the target application obtains the request identifier in the simulated call request and generates its own span identifier as the first span identifier. The request identifier and the first span identifier obtained by the target application are constructed as a first identifier set and reported. The first span identifier of the target application is a unique id (Identity document) that represents the target application.

[0111] In step S202, a second identification set reported by the called object is received, where the second identification set includes a request identification, a second span identification of the called object, and a second parent span identification.

[0112] In an embodiment of the present application, after receiving a simulated call request, the target application will send a call request to the next callable called object, and the call request includes a request identifier of the simulated call request and a first span identifier of the target application. Taking the case where the target application sends a call request to the called object B as an example, the called object B obtains the request identifier in the call request and the first span identifier of the target application. The called object B can generate a second parent span identifier based on the first span identifier of the target application, and the second parent span identifier is equal to the first span identifier of the target application. The called object B generates its own span identifier as the second span identifier, and reports the request identifier, the second span identifier and the second parent span identifier as a second identifier set. The called object B will continue to send a call request to the next callable called object C, and the call request includes a request identifier of the simulated call request and the first span identifier of the called object B. The called object C obtains the request identifier in the call request and the first span identifier of the called object B. The called object C can generate a second parent span identifier based on the first span identifier of the called object B, and the second parent span identifier of the called object C is equal to the first span identifier of the called object B. The called object C generates its own span identifier as the first span identifier, and reports the request identifier, the second span identifier, and the second parent span identifier as a second identifier set.

[0113] In step S203, the calling relationship between the target application and the called object, and the calling relationship between the called objects are determined according to the first identification set reported by the target application and the second identification set reported by the called object.

[0114] In the embodiment of the present application, in the first identification set and the plurality of second identification sets, if there is a second span parent identification that is the same as the first span identification of the target application, the target application directly calls the called object corresponding to the second span parent identification. If there are the same second span identification and second span parent identification, the called object corresponding to the second span identification directly calls the called object corresponding to the second span parent identification.

[0115] In some embodiments, Figure 4 The illustrated step S203 can be implemented by the following steps: when the first span identifier in the first identifier set reported by the target application is the same as the second parent span identifier in the second identifier set reported by the first called object, it is determined that there is a calling relationship between the target application and the first called object, and the calling relationship is that the target application calls the first called object. When the second span identifier in the second identifier set reported by the first called object is the same as the second parent span identifier in the second identifier set reported by the second called object, it is determined that there is a calling relationship between the first called object and the second called object, and the calling relationship is that the first called object calls the second called object.

[0116] Exemplarily, when the first span identifier in the first identifier set reported by the target application A is a, and the second parent span identifier in the second identifier set reported by the first called object B is a, there is a calling relationship between the target application A and the first called object B, and the calling relationship is that the target application A calls the first called object B. When the second span identifier in the second identifier set reported by the first called object B is b, and the second parent span identifier in the second identifier set reported by the second called object C is b, it is determined that there is a calling relationship between the first called object B and the second called object C, and the calling relationship is that the first called object B calls the second called object C.

[0117] In step S204, a target association link is determined based on the calling relationship between the target application and the called object, and the calling relationship between the called objects.

[0118] In the embodiment of the present application, the target application is determined as the root node of the target association path. Based on the calling relationship between the target application and the called object, the called object B directly called by the target application is determined, and the called object B is used as the first child node of the root node. Based on the calling relationship between the called objects, the called object C directly called by the called object B can be obtained, and the called object C is used as the second child node under the first child node, and so on, until the last child node has no called object that can be called, and the target association link is obtained.

[0119] The embodiment of the present application determines the target association link of the target application through the request identifier, the first span identifier, the second span identifier and the second parent span identifier, improves the construction efficiency of the target association link, and further improves the fault locating speed.

[0120] See also Figure 5 ,exist Figure 4 After step S204 shown, steps S301 to S303 may also be performed, which are described in detail below.

[0121] In step S301, based on the input object information of the calling object, a target calling object related to a non-hypertext transfer protocol type calling request is obtained.

[0122] In the embodiment of the present application, the calling object may be a basic component or a middleware. The object information of the calling object includes the name of the calling object and the calling request type. The calling request type may include a non-hypertext transfer protocol type and a hypertext transfer protocol type. A calling request of a non-HTTP type is a non-HTTP request. The target calling object includes middleware and components that call or are called using a non-HTTP request. At least one target calling object related to a calling request of a non-HTTP type can be screened from the object information of the entered multiple calling objects.

[0123] In step S302, the calling relationship between the target application and the target calling object, and the calling relationship between the target calling objects are obtained.

[0124] Among them, since the simulated call request is an HTTP request, the target call object cannot automatically obtain the call relationship using the simulated call request. The external user can manually enter the call relationship between the target application and the target call object, and the call relationship between each target call object. In response to the external manual entry operation, the call relationship between the target application and the target call object, and the call relationship between the target call objects are obtained.

[0125] In step S303, based on the calling relationship between the target application and the target calling object, and the calling relationship between the target calling objects, the target association link is updated to obtain an updated target association link.

[0126] In an embodiment of the present application, after obtaining the calling relationship between the target application and the target calling object, and the calling relationship between the target calling objects, a child node corresponding to each target calling object can be added to the original target association path to obtain an updated target association link.

[0127] The embodiment of the present application obtains the target calling object related to the non-Hypertext Transfer Protocol type calling request, thereby supplementing the called object information that cannot be automatically obtained in the target association link, thereby improving the accuracy of fault location.

[0128] In some embodiments, after obtaining the application identifier of the target application, an association link starting from the target application can be queried from multiple association links as the target association link. The establishment process of multiple association links in the local database can be shown as follows: Step S401, in response to the received object information entry operation, obtain the object information of the entered multiple objects.

[0129] In some embodiments, in response to the received object information entry operation, object information of all applications, basic components and middleware may be recorded and obtained. The object information includes basic information such as name, level, person in charge, and system operation person in charge.

[0130] Step S402: For each of the multiple objects, a simulation call request is sent to each object.

[0131] In some embodiments, the simulated call request is an HTTP (Hypertext Transfer Protocol) request. For the object of the HTTP request, a simulated call request can be sent to each object. The simulated call request includes a request identifier. The request identifiers in the simulated call requests received by each object are different to distinguish different rounds of calls.

[0132] Step S403: Receive a first identification set reported by each object for the simulation call request, wherein the first identification set includes a request identification corresponding to the simulation call request, a first span identification of the object, and a first parent span identification of the object.

[0133] In some embodiments, for any object, a simulated call request is sent to the object, and the object obtains the request identifier in the simulated call request. Since the span identifier in the simulated call request is empty, the object sets the first parent span identifier to empty and generates its own span identifier. The request identifier, first span identifier and first parent span identifier obtained by the object are constructed as the first identifier set of the object and reported. The first span identifier of the object is a unique id (Identity document) that represents the object.

[0134] In some embodiments, step S403 may be implemented by the following steps: receiving a first identification set reported by each object through a software development kit SDK or a reverse proxy for a simulated call request.

[0135] In the embodiment of the present application, a software development kit SDK (Software Development Kit) may be introduced into each object. After receiving a simulated call request, each object may obtain the header information in the simulated call request through the SDK in the object, record the request identifier and span identifier in the header information, and generate its own first span identifier and first parent span identifier. The object reports the request identifier, the first span identifier and the first parent span identifier as the first identifier set through the SDK.

[0136] In the embodiment of the present application, a reverse proxy module may also be provided. The simulated call request is first requested to the reverse proxy module. Each object obtains the header information in the simulated call request through the reverse proxy module, records the request identifier and span identifier in the header information, generates its own first span identifier and first parent span identifier, and forwards the simulated call request to the object. The object request identifier, the first span identifier, and the first parent span identifier are reported as the first identifier set through the reverse proxy module.

[0137] The embodiment of the present application implements the object's response to the simulated call request through the SDK or reverse proxy module. After obtaining the request identifier and the span identifier, the request identifier and the span identifier are passed to the callable object, thereby facilitating the automatic determination of the call relationship between the objects.

[0138] Step S404: receiving a second identification set reported by each object for a real call request initiated by other objects.

[0139] In the embodiment of the present application, for each object, after receiving the simulated call request, the object will send a real call request to the next callable object. The simulated call request is a call request sent by the server to the object at the starting point in an associated link, which is used to trigger the acquisition action of the associated link with the object as the starting point. The simulated call request includes the request identifier of this simulated call. The object can generate a first span identifier in response to the simulated call request, build a real call request based on the first span identifier and the request identifier, and send a real call request to the next callable object to simulate the call of other objects in the actual system operation. The real call request is a call request automatically sent to the next callable object by any object in an associated link after responding to the received call request. The real call request includes the request identifier of the simulated call request and the first span identifier generated by the object itself. For each object that receives the real call request initiated by other objects, the request identifier and the first span identifier in the received real call request are obtained. The second parent span identifier of the object itself is generated based on the first span identifier, and the second parent span identifier is the same as the first span identifier in the real call request. Generate a second span identifier of the object itself, and report the request identifier, the second span identifier, and the second parent span identifier as a second identifier set.

[0140] Step S405: determining the calling relationship between the objects according to the first identification set reported by each object and the second identification set reported by each object.

[0141] In an embodiment of the present application, for any request identifier, the reporting objects of the first identifier set corresponding to the request identifier and the reporting objects of each second identifier set are located in the same associated call link. The first identifier set and the second identifier set corresponding to the same request identifier can be screened out. In the first identifier set and the second identifier set corresponding to the same request identifier, if there are the same first span identifier and second span parent identifier, the object corresponding to the first span identifier directly calls the object corresponding to the second span parent identifier; if there are the same second span identifier and second span parent identifier, the object corresponding to the second span identifier directly calls the object corresponding to the second span parent identifier.

[0142] In some embodiments, step S405 can be implemented by the following steps, which are described in detail below.

[0143] Step S4051, obtaining a first target identifier set and a second target identifier set having the same request identifier.

[0144] In the embodiment of the present application, the first identification set and the second identification set corresponding to the same request identification are screened out as the first target identification set and the second target identification set. For the same request identification, the number of the first target identification set is 1, and the number of the second target identification set can be 0 or at least one. If the number of the second target identification set is 0, it indicates that the object reporting the first target identification set has no other objects that can be directly called.

[0145] Step S4052: When the first span identifier in the first target identifier set reported by the i-th object is the same as the second parent span identifier in the second target identifier set reported by the j-th object, it is determined that there is a calling relationship between the i-th object and the j-th object, and the calling relationship is that the i-th object calls the j-th object.

[0146] Where i is a positive integer, i = 1, 2, 3, 4...; j is a positive integer, j = 1, 2, 3, 4. Both i and j are less than or equal to the total number of objects, i ≠ j.

[0147] Step S4053: When the second span identifier in the second target identifier set reported by the pth object is the same as the second parent span identifier in the second target identifier set reported by the qth object, it is determined that there is a calling relationship between the pth object and the qth object, and the calling relationship is that the pth object calls the qth object.

[0148] In the embodiment of the present application, p is a positive integer, p=1, 2, 3, 4...; q is a positive integer, q=1, 2, 3, 4. Both p and q are less than or equal to the total number of objects, p≠q. Since the second parent span identifier of the object is obtained according to the first span identifier or the second span identifier in the actual call request sent by the previous object. Therefore, for each object that reports the first target identifier set and the second target identifier set, when the first span identifier in the first target identifier set reported by the i-th object is the same as the second parent span identifier in the second target identifier set reported by the j-th object, the i-th object directly calls the j-th object. When the second span identifier in the second target identifier set reported by the p-th object is the same as the second parent span identifier in the second target identifier set reported by the q-th object, the p-th object directly calls the q-th object.

[0149] The embodiment of the present application determines the calling relationship between objects through the first span identifier, the second span identifier and the second parent span identifier, thereby improving the processing efficiency of the calling relationship.

[0150] Step S406: Determine the association link of each object based on the calling relationship between the objects. The association link of each object can be determined based on the calling relationship between two objects and the common calling object.

[0151] In some embodiments, step S406 can be implemented by the following steps, which are described in detail below.

[0152] Step S4061: determine the i-th object as the root node of the associated link of the i-th object.

[0153] In the embodiment of the present application, the i-th object is an object that receives a simulated call request. Exemplarily, a simulated call request is sent to application A, and at this time, application A is used as the root node of the associated link of application A.

[0154] Step S4062: based on the calling relationship between the objects, obtain each first called object called by the i-th object, and determine each first called object as the first child node of the root node.

[0155] In the embodiment of the present application, the first called object is an object directly called by the i-th object. In the association link, the first called object is adjacent to the i-th object. Based on the calling relationship between the various objects, the first called object directly called by the i-th object can be screened out from the various objects and used as the first child node of the root node.

[0156] Step S4063, obtaining the second called object called by the child node, and determining each second called object as the second child node of the first child node, until the second child node has no called object, and obtaining the associated link of the i-th object.

[0157] In the embodiment of the present application, the second called object is an object directly called by the first called object. For any first child node, based on the calling relationship between various objects, the second calling object directly called by the first called object corresponding to the child node can be screened out from various objects, and used as the next second child node of the child node. And so on, until the last child node in the link has no called object, the construction of the association link of the i-th object is completed.

[0158] In the embodiment of the present application, the root node and multiple child nodes are arranged in sequence according to the calling relationship between the objects to obtain the associated link of each object, thereby improving the efficiency of constructing the associated link.

[0159] The following is an explanation of an exemplary application of an embodiment of the present application in a practical application scenario.

[0160] The fault location method provided in the embodiment of the present application is applied to a fault location system. Figure 6 As shown, the fault location system includes an application link module 601, a fault application module 602, a change event module 603, and a calculation module 604. Figure 7As shown in the figure, the implementation process of the fault location method is as follows: first, the application link module enters all business applications, basic components, and middleware, and associates each application with its directly associated application, component, or middleware. For example, if application A calls application B, then an A→B association link is added. If application B calls application C, then an B→C association link is added. In this way, the three applications generate an A→B→C association link. When there are enough applications, the entire association link forms a mesh. Figure 8 and Fig. 9 As shown, application A can call application B while also calling basic component A. Application C can call application B while also calling middleware A. The change event module is used to define change types and change standards. Change types can include application version changes (code updates, etc.), application configuration changes (stream switching, switches, etc.), basic component changes, middleware changes, and operational changes (advertising, etc.). The change standard is that all change events must include the following information: change type, changed application / component name (unique ID), change time, change operator, change content, and rollback method. Fig.10 As shown, the change event module is used to record the change type, change application / component name (unique id), change time, change operator, change content, rollback method and other information of all change events. Fig.11 As shown, the fault application module is used to record the fault application name (application identifier of the target application), fault time, fault level, team to which the fault application belongs, fault duration, and other information. When a fault occurs, the fault application module first confirms the fault application and sends the fault application to the calculation module. The calculation module queries the application association link of the fault application through the application link module, and then filters out all change events on the application association link through the change event module. The calculation module calculates the target change event that causes the fault according to the calculation rules.

[0161] Among them, the application link module is used to record the basic information of all applications, basic components, and middleware, as well as the calling relationship between applications, applications and basic components, and applications and middleware. After the basic information is entered, it is also necessary to manually enter the dependency relationship (calling relationship) of the middleware and basic components of non-HTTP requests. The direct calling relationship of the application of HTTP request can be determined in the following two ways: 1) Provide SDK, the application introduces SDK, the SDK can obtain the header information in the HTTP request (simulated call request), record the request_id (request identifier), span_id (first span identifier) ​​in the header, and generate its own span_id and parent_span_id (first parent span identifier). 2) Provide a reverse proxy module, the HTTP request first requests to the reverse proxy module, the reverse proxy module obtains the header information in the HTTP request, records the request_id and span_id in the header, and generates its own span_id and parent_span_id, and forwards the request to the application. The specific examples are as follows: Fig.12 and Fig.13As shown, after the basic information of the application is entered, the application link module will send a simulated call request to application A. The simulated call request carries request_id=x. The simulated call request first requests the entered application A. Application A obtains request_id=x in the simulated call request through the SDK or reverse proxy module. If the span_id in the simulated call request is empty (null), the parent_span_id is set to empty (null), and its own span_id=a is generated. Then the application reports request_id=x, the span_id generated by itself, and parent_span_id=null to the application link module through the SDK or reverse proxy module. Application A carries the span_id=a generated by itself and the request_id=x in the simulated call request and sends a call request (real call request) to application B. After receiving the call request, application B obtains the span_id=a and request_id=x in the call request, sets parent_span_id (second parent span identifier)=span_id=a, generates its own span_id=b (second span identifier), and reports request_id=x, the span_id=b generated by itself, and parent_span_id=a. Application C and application D are analogous to this. The application link module calculates the call relationship of each application based on the reported information of applications A, B, C, and D. If the span_id (first span identifier) ​​reported by application A and the parent_span_id (second parent span identifier) ​​reported by application B are equal, a call relationship of A→B can be determined. Similarly, the call relationship between each application can be calculated based on the span_id and parent_span_id reported by each application.

[0162] like Fig.14 As shown, the calculation module is used to calculate the change event (target change event) that is most likely to cause a fault through a preset calculation rule. The calculation rule is as follows:

[0163] After determining the faulty application, all related change events are traversed according to the associated call relationship of the faulty application. For example, for faulty application A, the call relationship chain exists A→B→C→D, where C has change event 1 and D has change event 2. These two change events are screened out and recorded. Weights are assigned to change events. If there is a change event in the faulty application, the weight of the event is 100. For each additional call link, the weight decreases by 10 (the lowest weight is 0). Therefore, the weight of the change event associated with C is 80, and the weight of the change event associated with D is 70. The change time of all the screened change events is compared with the fault time of the faulty application. The weight is 100 if the time difference is within 1 hour, 90 if it is within 3 hours, 70 if it is within 12 hours, and 60 if it is within 24 hours. This rule can be adjusted later based on the accurate calculation. If the time difference of change event 1 is 20 hours, the weight is 60, and if the time difference of change event 2 is within 1 hour, the weight is 100. Calculate the time weight and application link weight of the change event, and the correlation degree = change time weight * time coefficient + link application weight * link coefficient. Set the time coefficient to 2 and the link coefficient to 1, then the calculation results of the two events are event 1 correlation degree = 80*1+60*2=140; event 2 correlation degree = 70*1+100*2=270. According to the correlation ranking, event 2 is more likely to cause this failure. According to the change operator, change content, rollback method and other information of event 2, contact the corresponding business party as soon as possible to perform rollback operations and quickly restore business.

[0164] It is understandable that in the embodiments of the present application, data related to user information, applications, components, etc., when the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0165] The following further describes an exemplary structure of the fault location device 455 provided in the embodiment of the present application implemented as a software module. In some embodiments, for example, Figure 2B As shown, the software modules stored in the fault location device 455 of the memory 440 may include:

[0166] The link determination module 4551 is used to obtain the target association link of the target application where the fault occurs. The target association link includes the target application and the called object that has a calling relationship with the target application. The association change event determination module 4552 is used to determine at least one association change event based on the target association link; the association change event occurs on the corresponding called object. The correlation degree determination module 4553 is used to determine the correlation degree between the association change event and the target application. The fault location module 4554 is used to determine the target change event that causes the target application to fail from at least one association change event based on the correlation degree, and determine the fault location result based on the target change event.

[0167] In some embodiments, the fault location device also includes a target association link determination module, which is used to send a simulated call request to a target application, and receive a first identification set reported by the target application for the simulated call request, the first identification set including a request identification of the simulated call request and a first span identification of the target application; receive a second identification set reported by a called object, the second identification set including a request identification, a second span identification of the called object, and a second parent span identification; determine a call relationship between the target application and the called object, and a call relationship between the called objects according to the first identification set reported by the target application and the second identification set reported by the called object; determine a target association link based on the call relationship between the target application and the called object, and a call relationship between the called objects.

[0168] In some embodiments, the target association link determination module is also used to determine that there is a calling relationship between the target application and the first called object, and the calling relationship is that the target application calls the first called object, when the first span identifier in the first identifier set reported by the target application is the same as the second parent span identifier in the second identifier set reported by the first called object; when the second span identifier in the second identifier set reported by the first called object is the same as the second parent span identifier in the second identifier set reported by the second called object, determine that there is a calling relationship between the first called object and the second called object, and the calling relationship is that the first called object calls the second called object.

[0169] In some embodiments, the fault location device also includes a target association link update module, which is used to obtain a target call object related to a non-hypertext transfer protocol type call request based on the object information of the entered call object; obtain the call relationship between the target application and the target call object, and the call relationship between the target call objects; based on the call relationship between the target application and the target call object, and the call relationship between the target call objects, update the target association link to obtain an updated target association link.

[0170] In some embodiments, the associated change event determination module is also used to obtain change events executed within a preset time period when it is determined that a target application fails; obtain change object information carried by the change event; determine associated change object information including the called object from the change object information; and determine the change event corresponding to the associated change object information as an associated change event.

[0171] In some embodiments, the correlation determination module is also used to determine the correlation weight corresponding to the correlation change event based on the target correlation link; determine the time weight corresponding to the correlation change event based on the time difference between the change time of the correlation change event and the time when the target application fails; determine the correlation between the correlation change event and the target application based on the correlation weight and time weight corresponding to the correlation change event.

[0172] In some embodiments, the association degree determination module is further used to determine the calling distance between the called object corresponding to the association change event and the target application according to the target association link; and determine the association weight corresponding to the association change event according to the calling distance.

[0173] In some embodiments, the correlation determination module is also used to obtain the correlation coefficient and the time coefficient; using the correlation weight and the time weight corresponding to the correlation change event, the correlation coefficient and the event coefficient are weighted summed to obtain the correlation between the correlation change event and the target application.

[0174] The embodiment of the present application provides a computer program product, which includes a computer program or a computer executable instruction, and the computer program or the computer executable instruction is stored in a computer readable storage medium. The processor of the electronic device reads the computer executable instruction from the computer readable storage medium, and the processor executes the computer executable instruction, so that the electronic device executes the fault location method described in the embodiment of the present application.

[0175] The embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions or computer programs are stored. When the computer-executable instructions or computer programs are executed by a processor, the processor will be caused to execute the fault location method provided in the embodiment of the present application, for example, Figure 3A The fault location method is shown.

[0176] In some embodiments, the computer-readable storage medium may be a memory such as RAM, ROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.

[0177] In some embodiments, computer executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0178] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0179] As an example, computer executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.

[0180] In summary, through the embodiments of the present application, all application changes of various business parties can be collected together for display and query. When a system is abnormal, it can be quickly determined whether there are changes before and after the abnormality. If it is determined that the abnormality is caused by the change, the system can quickly locate the operator and roll back, thereby quickly restoring the business. The embodiments of the present application can quickly let each business party know the changes closest to the time point of concern, so that the business party can quickly locate the problem and quickly contact the business change operator to perform a rollback operation, thereby quickly restoring the business.

[0181] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims

1. A fault location method, characterized in that: The method comprises: Acquire a target association link of a target application having a fault, wherein the target association link includes the target application and a called object having a calling relationship with the target application; Based on the target association link, determining at least one association change event; the association change event occurs on the corresponding called object; Determining the degree of association between the association change event and the target application; According to the correlation degree, a target change event causing the target application to fail is determined from the at least one associated change event, and a fault locating result is determined based on the target change event.

2. The method according to claim 1, characterized in that The method further comprises: Sending a simulation call request to the target application, and receiving a first identification set reported by the target application for the simulation call request, wherein the first identification set includes a request identification of the simulation call request and a first span identification of the target application; Receive a second identifier set reported by the called object, where the second identifier set includes the request identifier, a second span identifier of the called object, and a second parent span identifier; Determine, according to the first identification set reported by the target application and the second identification set reported by the called object, the calling relationship between the target application and the called object, and the calling relationship between the called objects; The target association link is determined based on the calling relationship between the target application and the called object, and the calling relationship between the called objects.

3. The method according to claim 2, characterized in that The determining, according to the first identification set reported by the target application and the second identification set reported by the called object, the calling relationship between the target application and the called object, and the calling relationship between the called objects, comprises: When the first span identifier in the first identifier set reported by the target application is the same as the second parent span identifier in the second identifier set reported by the first called object, it is determined that there is a calling relationship between the target application and the first called object, and the calling relationship is that the target application calls the first called object; When the second span identifier in the second identifier set reported by the first called object is the same as the second parent span identifier in the second identifier set reported by the second called object, it is determined that there is a calling relationship between the first called object and the second called object, and the calling relationship is that the first called object calls the second called object.

4. The method according to claim 2, characterized in that The method further comprises: Based on the input object information of the calling object, obtaining the target calling object related to the calling request of the non-hypertext transfer protocol type; Acquire the calling relationship between the target application and the target calling object, and the calling relationship between the target calling objects; Based on the calling relationship between the target application and the target calling object, and the calling relationship between the target calling objects, the target association link is updated to obtain an updated target association link.

5. The method according to claim 1, characterized in that The determining at least one association change event based on the target association link includes: When it is determined that the target application fails, obtain the change events executed within a preset time period; Obtaining the changed object information carried by the change event; Determining, from the changed object information, associated changed object information including the called object; The change event corresponding to the associated change object information is determined as an associated change event.

6. The method according to any one of claims 1 to 5, characterized in that: The determining the degree of association between the association change event and the target application includes: Determining, according to the target association link, an association weight corresponding to the association change event; Determine a time weight corresponding to the associated change event according to a time difference between a change time of the associated change event and a time when a failure of the target application occurs; The degree of association between the association change event and the target application is determined according to the association weight and the time weight corresponding to the association change event.

7. The method according to claim 6, characterized in that The determining, according to the target association link, an association weight corresponding to the association change event includes: Determining, according to the target association link, a calling distance between the called object corresponding to the association change event and the target application; The association weight corresponding to the association change event is determined according to the call distance.

8. A fault location device, characterized in that: The device comprises: A link determination module, used to obtain a target associated link of a target application having a fault, wherein the target associated link includes the target application and a called object having a calling relationship with the target application; An association change event determination module, configured to determine at least one association change event based on the target association link; the association change event occurs on the corresponding called object; A correlation determination module, used to determine the correlation between the correlation change event and the target application; The fault location module is used to determine, according to the correlation degree, a target change event that causes the target application to fail from the at least one associated change event, and determine a fault location result based on the target change event.

9. An electronic device, characterized in that: The electronic device comprises: A memory for storing computer executable instructions; The processor is used to implement the fault location method according to any one of claims 1 to 7 when executing the computer executable instructions or computer programs stored in the memory.

10. A computer-readable storage medium storing computer-executable instructions or a computer program, characterized in that: The computer executable instructions or computer programs, when executed by a processor, implement the fault location method according to any one of claims 1 to 7.