Operation and maintenance method and device of business system and nonvolatile storage medium

By generating system call links and fault recovery knowledge graphs, determining search priorities and restoring faulty nodes, the problem of low intelligence in information technology equipment operation and maintenance scenarios is solved, and operation and maintenance efficiency is improved.

CN118760501APending Publication Date: 2024-10-11CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410804927.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-11

Smart Images

  • Figure CN118760501A_ABST
    Figure CN118760501A_ABST
Patent Text Reader

Abstract

The invention discloses an operation and maintenance method and device of a service system and a nonvolatile storage medium. The method comprises the following steps: generating a system call link knowledge graph corresponding to the distributed service system according to a call relationship between application program interfaces corresponding to each of a plurality of nodes in the distributed service system; generating a fault recovery scheme knowledge graph corresponding to the distributed service system according to the fault report of the distributed service system; determining a search priority corresponding to the system call link knowledge graph, and searching a fault node in the distributed service system in the system call link knowledge graph according to the search priority; and performing fault recovery processing on a target fault corresponding to the searched fault node by using the fault recovery scheme knowledge graph. The technical problem that the operation and maintenance efficiency of the information technology equipment is low due to the fact that the intelligent degree of an operation and maintenance scene of the information technology equipment is low is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automated operation and maintenance, and specifically, to an operation and maintenance method and device for a business system, and a non-volatile storage medium. Background Art

[0002] Traditional operation and maintenance management tools may not meet the needs of modern information technology equipment, resulting in low operation and maintenance efficiency. Moreover, many operation and maintenance scenarios still rely on manual operations and do not fully utilize automation and intelligent technologies, resulting in limited operation and maintenance efficiency and accuracy. In addition, the operation and maintenance of information technology equipment involves multiple systems and components. If the integration between these systems is not perfect, it will affect the degree of intelligence of operation and maintenance.

[0003] In summary, due to the low level of intelligence in the operation and maintenance scenarios of information technology equipment, the operation and maintenance efficiency of information technology equipment is low.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a method and device for operation and maintenance of a business system, and a non-volatile storage medium, so as to at least solve the technical problem of low operation and maintenance efficiency of information technology equipment caused by the low degree of intelligence of operation and maintenance scenarios of information technology equipment.

[0006] According to one aspect of an embodiment of the present application, a method for operating and maintaining a business system is provided, including: generating a system call link knowledge graph corresponding to the distributed business system based on the calling relationship between the application program interfaces corresponding to each of multiple nodes in the distributed business system, wherein the entities in the system call link knowledge graph are: the application program interface corresponding to each node; generating a fault recovery plan knowledge graph corresponding to the distributed business system based on a fault report of the distributed business system, wherein the entities in the fault recovery plan knowledge graph include: fault scenarios, fault phenomena, fault causes, recovery plans, and rectification plans; determining a search priority corresponding to the system call link knowledge graph, and searching for faulty nodes in the distributed business system in the system call link knowledge graph based on the search priority; and performing fault recovery processing on the target fault corresponding to the faulty node that has completed the search using the fault recovery plan knowledge graph.

[0007] Optionally, based on the calling relationship between the application interfaces corresponding to each of the multiple nodes in the distributed business system, a system call link knowledge graph corresponding to the distributed business system is generated, including: obtaining the calling relationship between the application interfaces corresponding to each of the multiple nodes, and determining the application interface corresponding to each node as an entity, and determining the calling relationship between the application interfaces corresponding to each node as an edge, to obtain multiple entities and multiple edges; obtaining the number of in-links and out-links of each of the multiple entities, wherein the number of in-links is: the number of second entities that call the first entity, and the number of out-links is: the number of first entities calling the second entity, the first entity is any one of the multiple entities, and the second entity is other entities among the multiple entities except the first entity; determining the edge weight of the edge corresponding to each entity based on the number of in-links and out-links corresponding to each entity; determining the system call link knowledge graph based on the multiple entities, the multiple edges and the edge weight of the edge corresponding to each entity.

[0008] Optionally, determining the search priority corresponding to the system call link knowledge graph includes: determining a first score corresponding to each entity based on the edge weight of the edge corresponding to each entity, wherein the first score is used to characterize the importance of each entity; determining a second score corresponding to each entity based on the performance parameters corresponding to each entity, wherein the second score is used to characterize the health detection capability of each entity; determining a target score corresponding to each entity based on the first score and the second score, wherein the target score is used to characterize the search priority of each entity.

[0009] Optionally, a first score corresponding to each entity is determined according to the edge weight of the edge corresponding to each entity, including: determining a first target value corresponding to each entity according to the number of incoming links and the number of outgoing links corresponding to each entity; determining a second target value corresponding to the first entity according to the first target value of a third entity and the number of outgoing links of the third entity, wherein the third entity is an entity used to call the first entity; iteratively processing the second target value corresponding to the first entity, and determining the target value corresponding to the first entity when a preset condition is met, so as to obtain a target value corresponding to each entity; determining a first score corresponding to each entity according to the target value corresponding to each entity.

[0010] Optionally, a second score corresponding to each entity is determined based on the performance parameters corresponding to each entity, including: determining a first sub-score corresponding to each entity based on the connection status of each entity with the backend service; determining a second sub-score corresponding to each entity based on the response time of each entity; determining a third sub-score corresponding to each entity based on the call error rate of each entity; determining the second score corresponding to each entity based on the first sub-score and a first preset weight corresponding to the first sub-score, the second sub-score and a second preset weight corresponding to the second sub-score, and the third sub-score and a third preset weight corresponding to the third sub-score.

[0011] Optionally, according to the search priority, in the system call link knowledge graph, the fault node in the distributed business system is searched, including: determining the first starting entity to be searched in the system call link knowledge graph according to the search priority; determining the target entity corresponding to the starting entity according to the business scenario of the distributed business system, and determining the search direction and the search path; starting from the starting entity, according to the search direction, the search path and the association relationship between each entity, traversing adjacent entities and relationships layer by layer until the target entity is searched or the path that meets preset conditions is completed, wherein the preset conditions include: a preset path length and a preset search time.

[0012] Optionally, the method also includes: if the target fault cause corresponding to the fault node cannot be found in the fault recovery plan knowledge graph, determining the target fault scenario, target fault phenomenon, target recovery plan and target rectification plan corresponding to the target fault cause; determining the target association relationship between the target fault cause, target fault scenario, target fault phenomenon, target recovery plan and target rectification plan; and updating the fault recovery plan knowledge graph based on the target association relationship.

[0013] According to another aspect of the embodiment of the present application, an operation and maintenance device of a business system is also provided, including: a first generating module, which is used to generate a system call link knowledge graph corresponding to the distributed business system according to the calling relationship between the application program interfaces corresponding to each node in the multiple nodes in the distributed business system, wherein the entities in the system call link knowledge graph are: the application program interface corresponding to each node; a second generating module, which is used to generate a fault recovery plan knowledge graph corresponding to the distributed business system according to the fault report of the distributed business system, wherein the entities in the fault recovery plan knowledge graph include: fault scenario, fault phenomenon, fault cause, recovery plan and rectification plan; a determination module, which is used to determine the search priority corresponding to the system call link knowledge graph, and according to the search priority, search for the faulty node in the distributed business system in the system call link knowledge graph; a processing module, which is used to use the fault recovery plan knowledge graph to perform fault recovery processing on the target fault corresponding to the faulty node that has completed the search.

[0014] According to another aspect of the embodiment of the present application, a non-volatile storage medium is further provided, the storage medium includes a stored program, wherein when the program runs, the device where the storage medium is located is controlled to execute the above-mentioned business system operation and maintenance method.

[0015] According to another aspect of the embodiments of the present application, there is also provided an electronic device, including: a memory and a processor, the processor being used to run a program stored in the memory, wherein the above-mentioned operation and maintenance method of the business system is executed when the program is running.

[0016] According to another aspect of the embodiments of the present application, a computer program is further provided, wherein when the computer program is executed by a processor, the above-mentioned operation and maintenance method of the business system is implemented.

[0017] According to another aspect of the embodiments of the present application, a computer program product is also provided, which includes a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned operation and maintenance method of the business system is implemented.

[0018] In an embodiment of the present application, a system call link knowledge graph corresponding to a distributed business system is generated according to the calling relationship between the application program interfaces corresponding to each of the multiple nodes in the distributed business system, wherein the entities in the system call link knowledge graph are: the application program interface corresponding to each node; a fault recovery solution knowledge graph corresponding to the distributed business system is generated according to a fault report of the distributed business system, wherein the entities in the fault recovery solution knowledge graph include: fault scenario, fault phenomenon, fault cause, recovery solution and rectification solution; a search priority corresponding to the system call link knowledge graph is determined, and according to the search priority, the system call link knowledge graph is searched for the faults in the distributed business system. fault nodes; use the fault recovery solution knowledge graph to perform fault recovery processing on the target fault corresponding to the fault node that has completed the search, and build a method call link network between systems by using the topological data of the resources of information technology equipment; a knowledge system for fault recovery based on the fault phenomenon; alarm convergence and root cause alarm screening based on alarm information; query the knowledge graph, obtain the problem result, and restore the fault, so as to achieve the purpose of improving the intelligence level of information technology equipment operation and maintenance scenarios, thereby realizing the technical effect of improving the operation and maintenance efficiency of information technology equipment, and then solving the technical problem of low operation and maintenance efficiency of information technology equipment due to the low intelligence level of information technology equipment operation and maintenance scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0020] Figure 1 is a flow chart of an operation and maintenance method of a business system according to an embodiment of the present application;

[0021] Figure 2 is a schematic diagram of a knowledge graph of a fault recovery solution according to an embodiment of the present application;

[0022] Figure 3is a schematic diagram of the number of incoming links and outgoing links of each entity according to an embodiment of the present application;

[0023] Figure 4 is a schematic diagram of a system call link knowledge graph according to an embodiment of the present application;

[0024] Figure 5 is a schematic diagram of a calling relationship between application program interfaces according to an embodiment of the present application;

[0025] Figure 6 is a flow chart of another method for operating and maintaining a business system according to an embodiment of the present application;

[0026] Figure 7 is a structural diagram of an operation and maintenance device of a business system according to an embodiment of the present application;

[0027] Figure 8 is a structural diagram of an operation and maintenance device of another business system according to an embodiment of the present application;

[0028] Fig. 9 It is a hardware structure block diagram of a computer terminal of an operation and maintenance method of a business system according to an embodiment of the present application. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0031] According to an embodiment of the present application, a method embodiment of an operation and maintenance method of a business system is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0032] Figure 1 is a flow chart of an operation and maintenance method of a business system according to an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:

[0033] Step S102, based on the calling relationship between the application program interfaces corresponding to each of the multiple nodes in the distributed business system, generates a system call link knowledge graph corresponding to the distributed business system, wherein the entities in the system call link knowledge graph are: the application program interface corresponding to each node.

[0034] In a distributed business system, multiple nodes (for example, different servers or computing devices) are connected and communicate with each other through application programming interfaces (APIs). These interfaces allow individual nodes to work together to complete complex business processes. The calling relationship between nodes includes but is not limited to: 1. Synchronous call: One node (caller) directly requests an API on another node (callee). The caller waits for the callee to process the request and return the result. This calling relationship is suitable for scenarios with high response time requirements. 2. Asynchronous call: The caller node sends a request to the callee node, but does not wait for a response immediately. This calling relationship is usually implemented using a message queue or event bus to improve the scalability and fault tolerance of the system. 3. Service registration and discovery: In a distributed system, nodes may frequently join or leave the system. The service registration and discovery mechanism allows nodes to register their own APIs when joining the system, and to find and call the corresponding APIs on other nodes when they need to communicate with other nodes. 4. API Gateway: The API Gateway is a server that forwards external requests to the corresponding nodes in the distributed system. This can unify external access portals and provide load balancing, authentication, logging and other functions. 5. Service splitting: In a distributed system, complex business logic can be split into multiple independent services. Each service is responsible for handling specific tasks and communicating with other services through APIs. This architecture helps improve the maintainability and scalability of the system. 6. Containerization and microservices: Containerization technology (such as Docker) and microservice architecture allow applications and their dependencies for each node to be packaged together. This makes it easier to deploy, scale, and manage distributed systems.

[0035] Step S104, based on the fault report of the distributed business system, generate a fault recovery plan knowledge graph corresponding to the distributed business system, wherein the entities in the fault recovery plan knowledge graph include: fault scenario, fault phenomenon, fault cause, recovery plan and rectification plan.

[0036] Among them, 1. Fault scenario: used to describe the fault situation that a system or device may encounter under specific circumstances. For example, network interruption, hardware damage, software crash, etc. 2. Fault phenomenon: observable problems manifested when a fault occurs. For example, inability to access a website, data loss, system error, etc. 3. Fault cause: analysis of the root cause behind the fault phenomenon. For example, hardware failure, software defect, operational error, external interference, etc. 4. Recovery plan: a solution developed based on the fault phenomenon and cause in order to restore normal operation as soon as possible. For example, restarting the device, repairing the software, replacing the hardware, data recovery, etc. 5. Corrective plan: preventive measures taken after the fault is recovered to prevent similar problems from happening again. For example, optimizing system design, strengthening monitoring, regular maintenance, improving operator training, etc.

[0037] Figure 2 is a flow chart of another method for operating and maintaining a business system according to an embodiment of the present application. Figure 2 As shown in the figure, the fault phenomenon is the manifestation of the fault scenario, the fault cause is the explanation of the fault phenomenon, the recovery plan is the recovery method of the fault cause, and the rectification plan is the leak detection of the fault cause.

[0038] Step S106, determine the search priority corresponding to the system call link knowledge graph, and search for faulty nodes in the distributed business system in the system call link knowledge graph based on the search priority.

[0039] Step S108, using the fault recovery solution knowledge graph, performs fault recovery processing on the target fault corresponding to the faulty node that has completed the search.

[0040] According to some optional embodiments of the present application, generating a system call link knowledge graph corresponding to a distributed business system according to the calling relationship between the application program interfaces corresponding to each of the multiple nodes in the distributed business system can be implemented by the following method:

[0041] Step S1021, obtaining the calling relationship between the application program interfaces corresponding to each node in the multiple nodes, and determining the application program interface corresponding to each node as an entity, and determining the calling relationship between the application program interfaces corresponding to each node as an edge, to obtain multiple entities and multiple edges.

[0042] For example, there is a dependency relationship between microservices and components, and the application interface corresponding to the microservice can call the application interface corresponding to the component; there is a belonging relationship between microservices and application centers, and the application interface corresponding to the microservice can call the application interface corresponding to the application center.

[0043] Step S1022, obtaining the number of in-links and out-links of each entity in the multiple entities, wherein the number of in-links is: the number of second entities that call the first entity, and the number of out-links is: the number of second entities called by the first entity, the first entity is any one of the multiple entities, and the second entity is other entities in the multiple entities except the first entity.

[0044] Figure 3 The calling branches between API 1, 2, 3, and 4 are shown, as Figure 3 As shown in the figure, the number of incoming links of API 1 is 2 and the number of outgoing links is 3, so the edge weight from API 1 to other nodes is set to 1 / 3, which means that the probability of API 1 accessing API 2, 3, and 4 nodes is 1 / 3.

[0045] Step S1023: Determine the edge weight of the edge corresponding to each entity according to the number of in-links and out-links corresponding to each entity.

[0046] like Figure 3 As shown, specifically, for API1, the edge weight of each edge is 1 / 3; for API2, the edge weight of each edge is 1 / 2; for API2, the edge weight of each edge is 1 / 2; for API2, the edge weight of each edge is 1 / 2; for API3, the edge weight of each edge is 1 / 2; for API4, the edge weight of each edge is 1 / 2.

[0047] Step S1024, determining a system call link knowledge graph according to the multiple entities, the multiple edges, and the edge weights of the edges corresponding to each entity. Figure 4 is a schematic diagram of a system call link knowledge graph according to an embodiment of the present application. Figure 4 As shown, Figure 4 It shows the calling relationship between various APIs and the API dependent components and service relationships. Among them, microservices can call application centers, containers and components.

[0048] According to some other optional embodiments of the present application, determining the search priority corresponding to the system call link knowledge graph can be achieved by the following method:

[0049] Step S1061: Determine a first score corresponding to each entity according to the edge weight of the edge corresponding to each entity, wherein the first score is used to represent the importance of each entity.

[0050] Step S1062: Determine a second score corresponding to each entity according to the performance parameter corresponding to each entity, wherein the second score is used to characterize the health detection capability of each entity.

[0051] Preferably, step S1062 can be implemented by the following method: determining a first sub-score corresponding to each entity according to the connection status of each entity with the backend service. Determining a second sub-score corresponding to each entity according to the response time of each entity. Determining a third sub-score corresponding to each entity according to the call error rate of each entity. Determining a second score corresponding to each entity according to the first sub-score and the first preset weight corresponding to the first sub-score, the second sub-score and the second preset weight corresponding to the second sub-score, the third sub-score and the third preset weight corresponding to the third sub-score.

[0052] In detail, first, collect the connection status data between the entity and the service from the backend service, collect the response time data of each entity, and collect the call error rate data of each entity. Secondly, determine the scoring criteria. For example, for the connection status, the scoring criteria are: 1 for successful connection and 0 for failed connection. For the response time, a reasonable threshold can be defined according to the actual business needs, such as 0 for more than 500ms, 1 for less than 100ms, and the middle changes linearly or nonlinearly according to the response time. For the error rate, the scoring criteria are: 1 when the error rate is 0, otherwise 0. Again, for each entity, calculate the first sub-score according to its connection status. Calculate the second sub-score according to its response time. Calculate the third sub-score according to its error rate. Finally, the three sub-scores are weighted and summed according to certain weights to obtain the final score of each entity. It is worth noting that the weights can be adjusted according to business needs.

[0053] Step S1063: determining a target score corresponding to each entity according to the first score and the second score, wherein the target score is used to represent the search priority of each entity.

[0054] In some preferred embodiments, step S1061 can be implemented by the following method:

[0055] Step S1061, determining a first target value corresponding to each entity according to the number of in-links and the number of out-links corresponding to each entity.

[0056] Step S1062, determining a second target value corresponding to the first entity according to the first target value of the third entity and the number of outbound links of the third entity, wherein the third entity is an entity used to call the first entity.

[0057] Step S1063, iteratively processing the second target value corresponding to the first entity, and determining the target value corresponding to the first entity when a preset condition is met, so as to obtain the target value corresponding to each entity.

[0058] Step S1064: Determine a first score corresponding to each entity according to the target value corresponding to each entity.

[0059] In summary, the first score corresponding to each entity can be determined by the following formula:

[0060]

[0061] Among them, PR(1) represents the target value corresponding to the current node API1, PR(Ti) represents the first target value of each other node (the node that can point to API1), L(Ti) represents the number of outbound links of each other node (the node that can point to API1), and i represents the number of iterations.

[0062] In addition, the first score can also be calculated by the following method:

[0063] 1. First, assign an initial value to each node, for example: 1.

[0064] 2. For node A, find all other nodes that point to it. Calculate the initial value contribution of other nodes by dividing the initial value of the nodes pointing to node A by the number of links they point to.

[0065] 3. Add the contributions of other nodes to the initial value of node A, and then multiply by the damping factor (for example: 0.85) to get the target value.

[0066] 4. Repeat steps 2-3 for all nodes until the change in the target value becomes stable.

[0067] 5. Finally, normalize the target value of each node so that it ranges between 0 and 10.

[0068] In other words, the first score can also be calculated as follows:

[0069] In this embodiment, the entire knowledge graph is treated as a graph for random walk, and the PageRank algorithm is introduced. The basic idea of ​​the PageRank algorithm is to define a random walk model on a directed graph, namely a first-order Markov chain, which describes the behavior of a random walker randomly visiting each node along the directed graph.

[0070] Under certain conditions, the probability of visiting each node in the extreme case converges to a stable distribution. At this time, the stable probability value of each node is its PageRank (PR) value, which represents the importance of the node. PageRank is defined recursively, and the calculation of PageRank can be performed through an iterative algorithm. In this way, the importance of each node is calculated. The calculation formula is as follows:

[0071]

[0072] Among them, PR(1) represents the PR value of the current node API 1, PR(Ti) represents the PR value of each other node (the node that can point to API 1), L(Ti) represents the number of outbound links of each other node (that can point to API 1), and i represents the number of iterations.

[0073] In some optional embodiments of the present application, searching for faulty nodes in a distributed business system in a system call link knowledge graph according to the search priority can be implemented by the following method:

[0074] According to the search priority, the first starting entity to be searched in the system call link knowledge graph is determined.

[0075] It should be noted that the first starting entity of the search should be the most core and influential entity. For example, the starting entity can be determined by the following aspects: 1. System call: the basic function call in the operating system, usually as the interface between the user program and the operating system kernel. For example, in the Linux system, you can start with system calls such as `read`, `write`, and `fork`. 2. Library function: a set of predefined functions provided by the programming language to implement a specific function. For example, in the C language, you can start with library functions such as `stdio.h`, `stdlib.h`, and `string.h`. 3. Data structure and algorithm: the basic building block in program design, used to store and process data. For example, you can start with common data structures (such as linked lists, trees, graphs, etc.) and algorithms (such as sorting, searching, etc.). 4. Performance key points: key factors that affect system performance, such as caching, multithreading, synchronization mechanisms, etc. These entities can help us find performance bottlenecks and optimization points.

[0076] According to the business scenario of the distributed business system, determine the target entity corresponding to the start entity, and determine the search direction and search path.

[0077] Starting from the starting entity, according to the search direction, search path and the association relationship between each entity, the adjacent entities and relationships are traversed layer by layer until the target entity is searched or the path that meets the preset conditions is completed, where the preset conditions include: preset path length and preset search time.

[0078] Preferably, the intelligent branch pruning + breadth-first search method can be used to search for faulty nodes in the distributed business system in the system call link knowledge graph.

[0079] Among them, intelligent branch reduction: each API call link and relationship has directionality and multiple branch links. This requires multiple link branches to be checked during the query and location problem, which reduces the search efficiency. Intelligent branch reduction can be performed based on the directionality and inclusion of each node. Figure 5 is a schematic diagram of a calling relationship between application program interfaces according to an embodiment of the present application, such as Figure 5 As shown, the calling relationship of API1 has two branches, which call API 2 and API 3 respectively. Assuming that the current check reaches the API 2 node and its node status is found to be healthy, then according to the directed row and inclusion, it can be confirmed that the API 4 and API 5 nodes are also healthy, and the checking sequence stops without checking the API 4 and API 5 nodes again.

[0080] Breadth + Importance First Search: is a queue-based search algorithm that traverses the nodes of the graph in "breadth" order. In the knowledge graph, this means first visiting the nodes directly adjacent to the starting node, then visiting their neighbors, and so on. Therefore, in this embodiment, the search strategy is intelligent pruning + breadth + search priority to simultaneously decide which node to check first.

[0081] As some optional embodiments of the present application, if the target fault cause corresponding to the fault node cannot be queried in the fault recovery plan knowledge graph, determine the target fault scenario, target fault phenomenon, target recovery plan and target rectification plan corresponding to the target fault cause; determine the target association relationship between the target fault cause, target fault scenario, target fault phenomenon, target recovery plan and target rectification plan; based on the target association relationship, update the fault recovery plan knowledge graph.

[0082] According to the above steps, a system call link knowledge graph corresponding to the distributed business system is generated according to the calling relationship between the application program interfaces corresponding to each of the multiple nodes in the distributed business system, wherein the entities in the system call link knowledge graph are: the application program interface corresponding to each node; a fault recovery solution knowledge graph corresponding to the distributed business system is generated according to the fault report of the distributed business system, wherein the entities in the fault recovery solution knowledge graph include: fault scenario, fault phenomenon, fault cause, recovery solution and rectification solution; the search priority corresponding to the system call link knowledge graph is determined, and according to the search priority, the fault node in the distributed business system is searched in the system call link knowledge graph; the target fault corresponding to the searched fault node is processed by using the fault recovery solution knowledge graph, and the method call link network between systems is constructed by using the topological data of the resources of the information technology equipment; a knowledge system for fault recovery is sorted out based on the fault phenomenon; alarm convergence and root cause alarm screening are performed according to the alarm information; the knowledge graph is queried to obtain the problem result and the fault is restored, so as to achieve the purpose of improving the intelligence level of the operation and maintenance scenario of the information technology equipment, thereby realizing the technical effect of improving the operation and maintenance efficiency of the information technology equipment.

[0083] Figure 6 is a flow chart of another method for operating and maintaining a business system according to an embodiment of the present application. Figure 6 As shown, the method comprises the following steps:

[0084] Step S601, based on the pinpoint tool, access and build the system call link knowledge graph.

[0085] Step S602: construct a fault recovery solution knowledge graph based on the fault report.

[0086] Step S603: locate the faulty node based on the system call link knowledge graph.

[0087] Preferably, according to the knowledge graph, a query is performed when a fault occurs to locate the problem node of the system, and the query call link adopts the method of intelligent branch pruning + breadth-first search to speed up the link search efficiency and improve the speed of locating the problem node.

[0088] Step S604, recover the fault based on the fault recovery solution knowledge graph.

[0089] Figure 7 is a structural diagram of an operation and maintenance device of a business system according to an embodiment of the present application, such as Figure 7 As shown, the device comprises:

[0090] The first generation module 70 is used to generate a system call link knowledge graph corresponding to the distributed business system according to the calling relationship between the application program interfaces corresponding to each of the multiple nodes in the distributed business system, wherein the entities in the system call link knowledge graph are: the application program interface corresponding to each node.

[0091] The second generation module 72 is used to generate a fault recovery plan knowledge graph corresponding to the distributed business system based on the fault report of the distributed business system, wherein the entities in the fault recovery plan knowledge graph include: fault scenario, fault phenomenon, fault cause, recovery plan and rectification plan.

[0092] The determination module 74 is used to determine the search priority corresponding to the system call link knowledge graph, and search for the faulty node in the distributed business system in the system call link knowledge graph according to the search priority.

[0093] The processing module 76 is used to use the fault recovery solution knowledge graph to perform fault recovery processing on the target fault corresponding to the faulty node that has completed the search.

[0094] Furthermore, the operation and maintenance device of the business system is also used to perform the following steps: obtain the calling relationship between the application interfaces corresponding to each of the multiple nodes, and determine the application interface corresponding to each node as an entity, and determine the calling relationship between the application interfaces corresponding to each node as an edge, so as to obtain multiple entities and multiple edges; obtain the number of in-links and out-links of each of the multiple entities, wherein the number of in-links is: the number of second entities that call the first entity, and the number of out-links is: the number of first entities calling the second entity, the first entity is any one of the multiple entities, and the second entity is other entities among the multiple entities except the first entity; determine the edge weight of the edge corresponding to each entity according to the number of in-links and out-links corresponding to each entity; determine the system call link knowledge graph according to the multiple entities, the multiple edges and the edge weight of the edge corresponding to each entity.

[0095] Furthermore, the operation and maintenance device of the business system is also used to perform the following steps: determine a first score corresponding to each entity based on the edge weight of the edge corresponding to each entity, wherein the first score is used to characterize the importance of each entity; determine a second score corresponding to each entity based on the performance parameters corresponding to each entity, wherein the second score is used to characterize the health detection capability of each entity; determine a target score corresponding to each entity based on the first score and the second score, wherein the target score is used to characterize the search priority of each entity.

[0096] Furthermore, the operation and maintenance device of the business system is also used to perform the following steps: determine the first target value corresponding to each entity according to the number of in-links and out-links corresponding to each entity; determine the second target value corresponding to the first entity according to the first target value of the third entity and the number of out-links of the third entity, wherein the third entity is an entity used to call the first entity; iteratively process the second target value corresponding to the first entity, and determine the target value corresponding to the first entity when a preset condition is met to obtain the target value corresponding to each entity; determine the first score corresponding to each entity according to the target value corresponding to each entity.

[0097] Furthermore, the operation and maintenance device of the business system is also used to perform the following steps: determine a first sub-score corresponding to each entity based on the connection status of each entity with the back-end service; determine a second sub-score corresponding to each entity based on the response time of each entity; determine a third sub-score corresponding to each entity based on the call error rate of each entity; determine the second score corresponding to each entity based on the first sub-score and the first preset weight corresponding to the first sub-score, the second sub-score and the second preset weight corresponding to the second sub-score, the third sub-score and the third preset weight corresponding to the third sub-score.

[0098] Furthermore, the operation and maintenance device of the business system is also used to perform the following steps: according to the search priority, determine the first starting entity to be searched in the system call link knowledge graph; according to the business scenario of the distributed business system, determine the target entity corresponding to the starting entity, and determine the search direction and search path; starting from the starting entity, according to the search direction, search path and the association relationship between each entity, traverse adjacent entities and relationships layer by layer until the target entity is searched or the path that meets the preset conditions is completed, wherein the preset conditions include: preset path length and preset search time.

[0099] Furthermore, the operation and maintenance device of the business system is also used to perform the following steps: if the target fault cause corresponding to the fault node cannot be queried in the fault recovery plan knowledge graph, determine the target fault scenario, target fault phenomenon, target recovery plan and target rectification plan corresponding to the target fault cause; determine the target association relationship between the target fault cause, target fault scenario, target fault phenomenon, target recovery plan and target rectification plan; based on the target association relationship, update the fault recovery plan knowledge graph.

[0100] It should be noted that the above Figure 7 The modules in the embodiment may be program modules (e.g., a set of program instructions for implementing a specific function) or hardware modules. For the latter, they may be expressed in the following forms, but are not limited thereto: the expression form of the above modules is a processor, or the functions of the above modules are implemented by a processor.

[0101] It should be noted that Figure 7 The preferred implementation of the illustrated embodiment can be found in Figure 1 The relevant description of the illustrated embodiment will not be repeated here.

[0102] Figure 8 is a structural diagram of another operation and maintenance device of a business system according to an embodiment of the present application, such as Figure 8 As shown, the device includes: an automated operation and maintenance module and a knowledge graph module, wherein:

[0103] The automated operation and maintenance module is used to query the call link knowledge graph based on the triggered fault alarm information, and quickly locate the faulty node based on the intelligent fault root cause search algorithm, combined with breadth-first search, intelligent branch reduction and node importance priority methods. At the same time, based on the faulty node information, search and reason in the fault recovery plan knowledge graph, match the appropriate fault recovery plan, and automatically recover the fault.

[0104] The knowledge graph module includes: structured entity, relationship and attribute information, which can be stored in a graph database or similar form. The knowledge graph module uses the pinpoint link tracking tool as input to build a system call link knowledge graph, and calculates the importance of each node based on the pagerank algorithm; it uses the fault report as input to build a fault recovery solution knowledge graph.

[0105] It should be noted that Figure 8 The preferred implementation of the illustrated embodiment can be found in Figure 2 The relevant description of the illustrated embodiment will not be repeated here.

[0106] Fig. 9 The hardware structure block diagram of a computer terminal for implementing the operation and maintenance method of a business system is shown. Fig. 9 As shown, the computer terminal 90 may include one or more (902a, 902b, ..., 902n are used to illustrate) processors 902 (the processor 902 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 904 for storing data, and a transmission module 906 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Fig. 9 The structure shown is only for illustration and does not limit the structure of the above electronic device. Fig. 9 More or fewer components as shown, or with Fig. 9 Different configurations are shown.

[0107] It should be noted that the one or more processors 902 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 90. As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0108] The memory 904 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the operation and maintenance method of the business system in the embodiment of the present application. The processor 902 executes various functional applications and data processing by running the software programs and modules stored in the memory 904, that is, realizing the operation and maintenance method of the above-mentioned business system. The memory 904 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 904 may further include a memory remotely arranged relative to the processor 902, and these remote memories may be connected to the computer terminal 90 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0109] The transmission module 906 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 90. In one example, the transmission module 906 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission module 906 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0110] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 90 .

[0111] It should be noted that, in some optional embodiments, the above Fig. 9 The computer terminal shown may include hardware elements (including circuits), software elements (including computer code stored on a computer-readable medium), or a combination of hardware elements and software elements. It should be noted that Fig. 9This is merely one example of a particular embodiment and is intended to illustrate the types of components that may be present in the computer terminal described above.

[0112] It should be noted that Fig. 9 The computer terminal shown is used to execute Figure 1 The operation and maintenance method of the business system shown, therefore the relevant explanations and instructions in the execution method of the above command are also applicable to the electronic device and will not be repeated here.

[0113] An embodiment of the present application further provides a non-volatile storage medium, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the above-mentioned operation and maintenance method of the business system.

[0114] A program for a non-volatile storage medium to perform the following functions: generating a system call link knowledge graph corresponding to the distributed business system based on the calling relationship between the application program interfaces corresponding to each of the multiple nodes in the distributed business system, wherein the entities in the system call link knowledge graph are: the application program interface corresponding to each node; generating a fault recovery plan knowledge graph corresponding to the distributed business system based on a fault report of the distributed business system, wherein the entities in the fault recovery plan knowledge graph include: fault scenario, fault phenomenon, fault cause, recovery plan and rectification plan; determining a search priority corresponding to the system call link knowledge graph, and searching for faulty nodes in the distributed business system in the system call link knowledge graph based on the search priority; and performing fault recovery processing on a target fault corresponding to a faulty node that has completed the search using the fault recovery plan knowledge graph.

[0115] An embodiment of the present application further provides an electronic device, including: a memory and a processor, wherein the processor is used to run a program stored in the memory, wherein the above-mentioned operation and maintenance method of the business system is executed when the program is running.

[0116] The processor is used to run a program that performs the following functions: generating a system call link knowledge graph corresponding to the distributed business system based on the calling relationship between the application program interfaces corresponding to each of the multiple nodes in the distributed business system, wherein the entities in the system call link knowledge graph are: the application program interface corresponding to each node; generating a fault recovery plan knowledge graph corresponding to the distributed business system based on a fault report of the distributed business system, wherein the entities in the fault recovery plan knowledge graph include: fault scenario, fault phenomenon, fault cause, recovery plan, and rectification plan; determining a search priority corresponding to the system call link knowledge graph, and searching for faulty nodes in the distributed business system in the system call link knowledge graph based on the search priority; and performing fault recovery processing on the target fault corresponding to the faulty node that has completed the search using the fault recovery plan knowledge graph.

[0117] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0118] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0119] In the above-mentioned embodiments of the present application, the collected information is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0120] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0121] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0122] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0123] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the relevant technology or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.

[0124] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for operating and maintaining a business system, characterized in that: include: According to the calling relationship between the application program interfaces corresponding to each of the multiple nodes in the distributed business system, a system call link knowledge graph corresponding to the distributed business system is generated, wherein the entities in the system call link knowledge graph are: the application program interface corresponding to each of the nodes; Generate a fault recovery solution knowledge graph corresponding to the distributed business system according to the fault report of the distributed business system, wherein the entities in the fault recovery solution knowledge graph include: fault scenario, fault phenomenon, fault cause, recovery solution and rectification solution; Determine a search priority corresponding to the system call link knowledge graph, and search for a faulty node in the distributed service system in the system call link knowledge graph according to the search priority; The fault recovery solution knowledge graph is used to perform fault recovery processing on the target fault corresponding to the faulty node that has completed the search.

2. The method according to claim 1, characterized in that According to the calling relationship between the application program interfaces corresponding to each of the multiple nodes in the distributed business system, a system call link knowledge graph corresponding to the distributed business system is generated, including: Acquire a call relationship between application program interfaces corresponding to each of the multiple nodes, determine the application program interface corresponding to each node as an entity, and determine the call relationship between the application program interfaces corresponding to each node as an edge, to obtain multiple entities and multiple edges; Obtaining the number of in-links and out-links of each entity in the multiple entities, wherein the number of in-links is: the number of second entities that call the first entity, and the number of out-links is: the number of the first entity that calls the second entity, the first entity is any one of the multiple entities, and the second entity is other entities in the multiple entities except the first entity; Determine the edge weight of the edge corresponding to each entity according to the number of in-links and the number of out-links corresponding to each entity; The system call link knowledge graph is determined according to the multiple entities, the multiple edges, and the edge weights of the edges corresponding to each entity.

3. The method according to claim 2, characterized in that Determining the search priority corresponding to the system call link knowledge graph includes: Determine a first score corresponding to each entity according to the edge weight of the edge corresponding to each entity, wherein the first score is used to represent the importance of each entity; Determine a second score corresponding to each entity according to the performance parameter corresponding to each entity, wherein the second score is used to characterize the health detection capability of each entity; A target score corresponding to each entity is determined according to the first score and the second score, wherein the target score is used to represent the search priority of each entity.

4. The method according to claim 3, characterized in that Determining a first score corresponding to each entity according to an edge weight of an edge corresponding to each entity includes: Determine a first target value corresponding to each entity according to the number of in-links and the number of out-links corresponding to each entity; Determining a second target value corresponding to the first entity according to the first target value of a third entity and the number of outbound links of the third entity, wherein the third entity is an entity used to call the first entity; Iteratively process the second target value corresponding to the first entity, and determine the target value corresponding to the first entity when a preset condition is met, so as to obtain the target value corresponding to each entity; The first score corresponding to each entity is determined according to the target value corresponding to each entity.

5. The method according to claim 3, characterized in that: Determining a second score corresponding to each entity according to the performance parameter corresponding to each entity includes: Determine a first sub-score corresponding to each entity according to a connection status between each entity and a backend service; Determining a second sub-score corresponding to each entity according to the response time of each entity; Determining a third sub-score corresponding to each entity according to the call error rate of each entity; The second score corresponding to each entity is determined according to the first sub-score and the first preset weight corresponding to the first sub-score, the second sub-score and the second preset weight corresponding to the second sub-score, the third sub-score and the third preset weight corresponding to the third sub-score.

6. The method according to claim 1, characterized in that According to the search priority, searching for a faulty node in the distributed service system in the system call link knowledge graph includes: According to the search priority, determining a first search starting entity in the system call link knowledge graph; According to the business scenario of the distributed business system, determine the target entity corresponding to the start entity, and determine the search direction and search path; Starting from the starting entity, according to the search direction, the search path and the association relationship between each entity, the adjacent entities and relationships are traversed layer by layer until the target entity is searched or a path that meets preset conditions is completed, wherein the preset conditions include: a preset path length and a preset search time.

7. The method according to claim 1, characterized in that The method further comprises: If the target fault cause corresponding to the fault node cannot be found in the fault recovery solution knowledge graph, determine the target fault scenario, target fault phenomenon, target recovery solution, and target rectification solution corresponding to the target fault cause; Determine a target correlation relationship between the target fault cause, the target fault scenario, the target fault phenomenon, the target recovery plan, and the target rectification plan; Based on the target association relationship, the fault recovery solution knowledge graph is updated.

8. An operation and maintenance device for a business system, characterized in that: include: A first generating module is used to generate a system call link knowledge graph corresponding to the distributed business system according to the calling relationship between the application program interfaces corresponding to each of the multiple nodes in the distributed business system, wherein the entities in the system call link knowledge graph are: the application program interface corresponding to each of the nodes; A second generating module is used to generate a fault recovery solution knowledge graph corresponding to the distributed business system according to the fault report of the distributed business system, wherein the entities in the fault recovery solution knowledge graph include: fault scenario, fault phenomenon, fault cause, recovery solution and rectification solution; A determination module, used to determine the search priority corresponding to the system call link knowledge graph, and search for fault nodes in the distributed business system in the system call link knowledge graph according to the search priority; A processing module is used to use the fault recovery solution knowledge graph to perform fault recovery processing on the target fault corresponding to the faulty node that has completed the search.

9. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the business system operation and maintenance method according to any one of claims 1 to 7.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the operation and maintenance method of the business system described in any one of claims 1 to 7 is implemented.