A method, device, equipment and readable storage medium for determining isomorphism of call chains

By constructing the graph structure of the call chain and calculating the hash value, the problem of low efficiency of isomorphism determination of the call chain in the existing technology is solved, and efficient isomorphism determination and troubleshooting are achieved.

CN114138459BActive Publication Date: 2024-10-29ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111274542.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-29
Publication Date
2024-10-29
Estimated Expiration
2041-10-29

AI Technical Summary

Technical Problem

The existing call chain isomorphism determination method is inefficient and cannot be used effectively in actual scenarios.

Method used

By parsing the service access request, construct the graph structure of the target call chain, calculate the string hash value and node out-degree, determine whether the target graph hash value exists in the preset graph structure hash table, and determine it to be isomorphic if it exists Call the chain and perform aggregation operations.

Benefits of technology

Significantly improves the efficiency of calling chain isomorphism determination, improves applicability to application scenarios, and simplifies the troubleshooting process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114138459B_ABST
    Figure CN114138459B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for determining isomorphism of a call chain, which includes the following steps: parsing a received service access request to obtain a target call chain composed of various microservices and a call relationship between the microservices; constructing a target graph structure corresponding to the target call chain according to the call relationship between the microservices; calculating a string hash value and a node out-degree corresponding to each microservice; calculating a target graph hash value corresponding to the target graph structure according to each string hash value and each node out-degree; determining whether the target graph hash value exists in a preset graph structure hash table; if so, determining the existing call chain corresponding to the target graph hash value in the preset graph structure hash table as the isomorphic call chain corresponding to the target call chain. The present invention greatly improves the efficiency of determining isomorphism of a call chain and improves the applicability to application scenarios. The present invention also discloses a device, equipment and storage medium for determining isomorphism of a call chain, which have corresponding technical effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer application technology, and in particular to a call chain isomorphism determination method, device, equipment and computer-readable storage medium. Background Art

[0002] With the digitization of various industries, the popularization of the Internet, and the improvement of overall computing power, cloud native has become very popular in recent years, and major Internet companies are also promoting the migration of internal businesses to the cloud. The cloud native environment mainly has four characteristics: microservices, automated release, continuous delivery, and containerization. The microservice architecture has great advantages in independent deployment, rapid delivery, and scalability, but it also brings new problems.

[0003] Due to the large number of services in a microservice system, the call relationship between services will become extremely complex. When a problem occurs in the system, it is difficult for the operation and maintenance administrator to quickly, accurately, and comprehensively find faults and troubleshoot problems. Therefore, in a large microservice system environment, it is necessary to deploy a call chain data collection tool to collect and organize the call relationships between the various microservices in the system in real time, and use these call chains to construct the corresponding graph structure to study the topological relationship between microservices, and then perform application analysis and troubleshooting and repair. In this process, the determination of the isomorphism of the call chain is the core issue.

[0004] Existing isomorphism determination of call chains mainly uses brute force search methods or pseudo-polynomial algorithms to determine graph isomorphism, but these algorithms have low determination efficiency and cannot be used in actual scenarios.

[0005] In summary, how to effectively solve the problems that the existing call chain isomorphism determination methods have low determination efficiency and cannot be used in actual scenarios is an issue that technical personnel in this field urgently need to solve. Summary of the invention

[0006] An object of the present invention is to provide a call chain isomorphism determination method, which greatly improves the efficiency of call chain isomorphism determination and improves the applicability to application scenarios; another object of the present invention is to provide a call chain isomorphism determination device, equipment and computer-readable storage medium.

[0007] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0008] A method for determining isomorphism of a call chain, comprising:

[0009] Parse the received service access request to obtain a target call chain consisting of each microservice and a call relationship between the microservices;

[0010] Constructing a target graph structure corresponding to the target call chain according to the call relationship between the microservices;

[0011] Calculate the string hash value and node out-degree corresponding to each of the microservices;

[0012] Calculate the target graph hash value corresponding to the target graph structure according to each of the string hash values ​​and each of the node out-degrees;

[0013] Determine whether the target graph hash value exists in the preset graph structure hash table;

[0014] If so, the existing call chain corresponding to the target graph hash value in the preset graph structure hash table is determined as the isomorphic call chain corresponding to the target call chain; wherein the preset graph structure hash table stores the correspondence between each graph structure, each graph hash value and each call chain.

[0015] In a specific implementation of the present invention, after determining the stored call chain corresponding to the target graph hash value in the preset graph structure hash table as the isomorphic call chain corresponding to the target call chain, it also includes:

[0016] An aggregation operation is performed on the existing call chain and the target call chain.

[0017] In a specific implementation of the present invention, the received service access request is parsed to obtain a target call chain consisting of various microservices and a call relationship between the microservices, including:

[0018] Parsing the received service access request to obtain a target call chain consisting of the microservices;

[0019] Obtain the service identifier and parent calling service identifier corresponding to each microservice;

[0020] The calling relationship between the microservices is determined according to the service identifiers of the microservices themselves and the parent calling service identifiers respectively corresponding to the microservices.

[0021] In a specific implementation of the present invention, the received service access request is parsed to obtain a target call chain consisting of various microservices, including:

[0022] Parse the received service access request to obtain the unique identifier of the target chain;

[0023] Find each of the microservices containing the unique identifier of the target chain;

[0024] The target call chain is constructed using each of the microservices containing the unique identifier of the target chain.

[0025] In a specific implementation of the present invention, the received service access request is parsed to obtain a unique identifier of the target chain, including:

[0026] Parsing the received service access request to obtain initial call chain indicator data including the unique identifier of the target chain;

[0027] Performing a cleaning operation on the initial call chain indicator data to obtain cleaned call chain indicator data;

[0028] The target chain unique identifier is obtained by screening the cleaned call chain indicator data.

[0029] In a specific implementation of the present invention, calculating the string hash value and the node out-degree corresponding to each of the microservices respectively includes:

[0030] Obtain the service name corresponding to each of the microservices;

[0031] Calculate the string hash value corresponding to each of the service names, and calculate the node out-degree corresponding to each of the microservices.

[0032] In a specific implementation of the present invention, when the target graph hash value does not exist in the preset graph structure hash table, the method further includes:

[0033] The target graph structure, the target graph hash value and the target call chain are stored correspondingly in the preset graph structure hash table.

[0034] A call chain isomorphism determination device, comprising:

[0035] A request parsing module is used to parse the received service access request to obtain a target call chain composed of various microservices and a call relationship between the microservices;

[0036] A graph structure construction module, used to construct a target graph structure corresponding to the target call chain according to the call relationship between the microservices;

[0037] A string hash value and node out-degree calculation module, used to calculate the string hash value and node out-degree corresponding to each of the microservices;

[0038] A graph hash value calculation module, used to calculate a target graph hash value corresponding to the target graph structure according to each of the string hash values ​​and each of the node out-degrees;

[0039] A judgment module, used to judge whether the target graph hash value exists in the preset graph structure hash table;

[0040] An isomorphic call chain determination module is used to determine the existing call chain corresponding to the target graph hash value in the preset graph structure hash table as the isomorphic call chain corresponding to the target call chain when it is determined that the target graph hash value exists in the preset graph structure hash table; wherein the preset graph structure hash table stores the correspondence between each graph structure, each graph hash value and each call chain.

[0041] A call chain isomorphism determination device, comprising:

[0042] Memory for storing computer programs;

[0043] A processor is used to implement the steps of the call chain isomorphism determination method as described above when executing the computer program.

[0044] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the call chain isomorphism determination method as described above.

[0045] The call chain isomorphism determination method provided by the present invention parses the received service access request to obtain the target call chain composed of each microservice and the call relationship between each microservice; constructs the target graph structure corresponding to the target call chain according to the call relationship between each microservice; calculates the string hash value and the node out-degree corresponding to each microservice respectively; calculates the target graph hash value corresponding to the target graph structure according to each string hash value and each node out-degree; judges whether the target graph hash value exists in the preset graph structure hash table; if so, determines the existing call chain corresponding to the target graph hash value in the preset graph structure hash table as the isomorphic call chain corresponding to the target call chain; wherein the preset graph structure hash table stores the correspondence between each graph structure, each graph hash value and each call chain.

[0046] It can be seen from the above technical solution that the target graph structure is constructed according to the call relationship between each microservice that constitutes the target call chain, and the target graph hash value corresponding to the target graph structure is calculated. A graph structure hash table that stores the correspondence between each graph structure, each graph hash value and each call chain is pre-set. When it is determined that the target graph hash value exists in the preset graph structure hash table, the stored call chain corresponding to the target graph hash value in the preset graph structure hash table is determined as the isomorphic call chain corresponding to the target call chain. By determining whether the call chains are isomorphic based on the graph hash value, the efficiency of determining the isomorphism of the call chain is greatly improved, and the applicability to application scenarios is improved.

[0047] Correspondingly, the present invention also provides a call chain isomorphism determination device, equipment and computer-readable storage medium corresponding to the above-mentioned call chain isomorphism determination method, which has the above-mentioned technical effects and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0049] Figure 1 A flowchart of an implementation of a call chain isomorphism determination method in an embodiment of the present invention;

[0050] Figure 2 Another implementation flow chart of the call chain isomorphism determination method in an embodiment of the present invention;

[0051] Figure 3 It is a structural block diagram of a call chain isomorphism determination device in an embodiment of the present invention;

[0052] Figure 4 It is a structural block diagram of a call chain isomorphism determination device in an embodiment of the present invention;

[0053] Figure 5 A schematic diagram of the specific structure of a call chain isomorphism determination device provided in this embodiment. DETAILED DESCRIPTION

[0054] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0055] See also Figure 1 , Figure 1 This is a flowchart of an implementation of a method for determining isomorphism of a call chain in an embodiment of the present invention. The method may include the following steps:

[0056] S101: Parse the received service access request to obtain a target call chain consisting of various microservices and a call relationship between the microservices.

[0057] When a service access is required, the service access party generates a service access request. Each service is composed of multiple microservices, each microservice constitutes a call chain. The service access request contains the target call chain composed of each microservice and the call relationship between each microservice. The service access party sends the service access request to the service management party. The service management party receives the service access request and parses the received service access request to obtain the target call chain composed of each microservice and the call relationship between each microservice.

[0058] S102: Construct a target graph structure corresponding to the target call chain according to the call relationship between the microservices.

[0059] After parsing the target call chain composed of each microservice and the call relationship between each microservice, the target graph structure corresponding to the target call chain is constructed according to the call relationship between each microservice. The call relationship between each microservice is used as each edge of the target graph structure, and each microservice is used as a node in the target graph structure. The target graph structure is constructed by each edge and each node.

[0060] S103: Calculate the string hash value and node out-degree corresponding to each microservice.

[0061] Preset a specific string hash value for each microservice. For example, the uniqueness of the microservice name can be used to calculate the string hash value of the microservice name of each microservice as the string hash value corresponding to the corresponding microservice. After parsing the target call chain composed of each microservice and the call relationship between each microservice, calculate the string hash value and node out-degree corresponding to each microservice. The node out-degree is the number of times the node in the call chain is used as the parent call service identifier (parentid).

[0062] S104: Calculate a target graph hash value corresponding to the target graph structure according to the hash value of each string and the out-degree of each node.

[0063] Since the target graph structure includes each microservice in the target call chain, after calculating the string hash value and node out-degree corresponding to each microservice, the target graph hash value corresponding to the target graph structure can be calculated based on each string hash value and each node out-degree.

[0064] S105: Determine whether the target graph hash value exists in the preset graph structure hash table. If yes, execute step S106; if not, execute step S107.

[0065] A graph structure hash table is pre-set to store the correspondence between each graph structure, each graph hash value and each call chain. After calculating the target graph hash value corresponding to the target graph structure according to each string hash value and each node out-degree, it is determined whether the target graph hash value exists in the preset graph structure hash table. If so, it means that the call chain corresponding to the target graph hash value already exists in advance, and step S106 is executed. If not, it means that the call chain corresponding to the target graph hash value has not been stored before, and step S107 is executed.

[0066] S106: Determine the stored call chain corresponding to the target graph hash value in the preset graph structure hash table as the isomorphic call chain corresponding to the target call chain.

[0067] The preset graph structure hash table stores the corresponding relationship between each graph structure, each graph hash value and each call chain.

[0068] When it is determined that the target graph hash value exists in the preset graph structure hash table, it means that a call chain corresponding to the target graph hash value already exists in advance, and the existing call chain corresponding to the target graph hash value in the preset graph structure hash table is determined as the isomorphic call chain corresponding to the target call chain.

[0069] S107: Store the target graph structure, the target graph hash value and the target call chain correspondingly into a preset graph structure hash table.

[0070] When it is determined that the target graph hash value does not exist in the preset graph structure hash table, it means that the call chain corresponding to the target graph hash value has not been stored before, and the target graph structure, the target graph hash value and the target call chain are stored in the preset graph structure hash table accordingly. The present invention can abstract the graph structure of the call chain in the large microservice system, and perform isomorphism determination between graph structures, and can mine the most frequently occurring call chain path patterns, greatly improving the efficiency of call chain isomorphism determination, improving the applicability to application scenarios, and reducing the difficulty of troubleshooting for operation and maintenance administrators.

[0071] It can be seen from the above technical solution that the target graph structure is constructed according to the call relationship between each microservice that constitutes the target call chain, and the target graph hash value corresponding to the target graph structure is calculated. A graph structure hash table that stores the correspondence between each graph structure, each graph hash value and each call chain is pre-set. When it is determined that the target graph hash value exists in the preset graph structure hash table, the stored call chain corresponding to the target graph hash value in the preset graph structure hash table is determined as the isomorphic call chain corresponding to the target call chain. By determining whether the call chains are isomorphic based on the graph hash value, the efficiency of determining the isomorphism of the call chain is greatly improved, and the applicability to application scenarios is improved.

[0072] It should be noted that, based on the above embodiment, the embodiment of the present invention also provides corresponding improved solutions. In the subsequent embodiments, the same steps or corresponding steps as those in the above embodiment can be referenced to each other, and the corresponding beneficial effects can also be referenced to each other, which will not be repeated one by one in the following improved embodiments.

[0073] See also Figure 2 , Figure 2 This is another implementation flow chart of the call chain isomorphism determination method in an embodiment of the present invention. The method may include the following steps:

[0074] S201: Parse the received service access request to obtain a target call chain consisting of various microservices.

[0075] In a specific implementation of the present invention, step S201 may include the following steps:

[0076] Step 1: Parse the received service access request to obtain the unique identifier of the target chain;

[0077] Step 2: Find each microservice that contains the unique identifier of the target chain;

[0078] Step 3: Use each microservice containing the unique identifier of the target chain to build the target call chain.

[0079] For the convenience of description, the above three steps can be combined for explanation.

[0080] Each call chain has its corresponding chain unique identifier (traceid). The service access request contains the target chain unique identifier. The target chain unique identifier is obtained by parsing the received service access request. Each microservice also contains a chain unique identifier. After parsing and obtaining the target chain unique identifier, each microservice containing the target chain unique identifier is searched. The target call chain is constructed using each microservice containing the target chain unique identifier. This ensures the accuracy of the microservices in the target call chain.

[0081] In a specific implementation of the present invention, parsing the received service access request to obtain the target chain unique identifier may include the following steps:

[0082] Step 1: Parse the received service access request to obtain the initial call chain indicator data including the unique identifier of the target chain;

[0083] Step 2: Clean the initial call chain indicator data to obtain cleaned call chain indicator data;

[0084] Step 3: Filter the cleaned call chain indicator data to obtain the target chain unique identifier.

[0085] For the convenience of description, the above three steps can be combined for explanation.

[0086] The service access request contains initial call chain indicator data containing the unique identifier of the target chain. The received service access request is parsed to obtain the initial call chain indicator data containing the unique identifier of the target chain. The initial call chain indicator data is cleaned to obtain the cleaned call chain indicator data. The unique identifier of the target chain is obtained by filtering the cleaned call chain indicator data. By cleaning the initial call chain indicator data, dirty data is effectively filtered, thereby improving the efficiency of filtering the target chain unique identifier from the call chain indicator data.

[0087] S202: Obtain the service identifier and parent calling service identifier corresponding to each microservice.

[0088] Each microservice contains its own service ID (spanid) and parent call service ID (parentid), that is, the microservice corresponding to the parent call service ID is the upper-level microservice of the microservice corresponding to the own service ID. After parsing and obtaining the target call chain composed of each microservice, the own service ID and parent call service ID corresponding to each microservice are obtained.

[0089] S203: Determine the calling relationship between the microservices according to the service identifiers of the microservices themselves and the parent calling service identifiers respectively corresponding to the microservices.

[0090] After obtaining the corresponding self-service identifier and parent call service identifier of each microservice, the call relationship between the microservices is determined according to the corresponding self-service identifier and parent call service identifier of each microservice, so as to obtain the order of each microservice in the target call chain.

[0091] S204: Construct a target graph structure corresponding to the target call chain according to the call relationship between the microservices.

[0092] S205: Obtain the service name corresponding to each microservice.

[0093] Each microservice contains its own unique service name (service_name). Get the service name corresponding to each microservice.

[0094] S206: Calculate the string hash value corresponding to each service name, and calculate the node out-degree corresponding to each microservice.

[0095] After obtaining the service names corresponding to the microservices, the string hash values ​​corresponding to the service names are calculated, and the node out-degrees corresponding to the microservices are calculated.

[0096] The string hash value corresponding to each service name can be calculated using the following formula:

[0097]

[0098] Among them, s is the service name of the microservice, s i is the i-th character in the service name, ord(·) is the operation of obtaining the ASCII code of the character, is a prime number, prime tail A relatively large prime number within the range of a 64-bit integer.

[0099] S207: Calculate the target graph hash value corresponding to the target graph structure according to the hash value of each string and the out-degree of each node.

[0100] The target graph hash value corresponding to the target graph structure can be calculated based on the hash value of each string and the out-degree of each node using the following formula:

[0101]

[0102] Among them, G is a graph composed of call chain data with unique identifiers on the same chain. The base prime number used to calculate the graph hash, NodeName i is the service name of the i-th microservice, out(Node i ) is the node out-degree of the i-th microservice, primeG tail It is a large prime number used to calculate the remainder of the hash value, generally a 64-bit positive integer.

[0103] S208: Determine whether the target graph hash value exists in the preset graph structure hash table, if not, execute step S209, if yes, execute step S210.

[0104] S209: Store the target graph structure, the target graph hash value and the target call chain correspondingly into a preset graph structure hash table.

[0105] S210: Determine the stored call chain corresponding to the target graph hash value in the preset graph structure hash table as the isomorphic call chain corresponding to the target call chain.

[0106] The preset graph structure hash table stores the corresponding relationship between each graph structure, each graph hash value and each call chain.

[0107] S211: performing aggregation operation on the existing call chain and the target call chain.

[0108] After the existing call chain corresponding to the target graph hash value in the preset graph structure hash table is determined as the isomorphic call chain corresponding to the target call chain, the existing call chain and the target call chain are aggregated. By aggregating isomorphic call chains together, the most frequently occurring call chain path patterns can be mined. In addition, the call chain timestamp (timestamp) and link call duration (duration) of the target call chain can be counted, which reduces the difficulty of troubleshooting for operation and maintenance administrators.

[0109] Corresponding to the above method embodiment, the present invention further provides a call chain isomorphism determination device. The call chain isomorphism determination device described below and the call chain isomorphism determination method described above can be referenced to each other.

[0110] See also Figure 3 , Figure 3 This is a structural block diagram of a call chain isomorphism determination device in an embodiment of the present invention, and the device may include:

[0111] The request parsing module 31 is used to parse the received service access request to obtain the target call chain composed of each microservice and the call relationship between each microservice;

[0112] A graph structure building module 32, used to build a target graph structure corresponding to the target call chain according to the call relationship between each microservice;

[0113] The string hash value and node out-degree calculation module 33 is used to calculate the string hash value and node out-degree corresponding to each microservice;

[0114] A graph hash value calculation module 34, used to calculate a target graph hash value corresponding to a target graph structure according to the hash value of each string and the out-degree of each node;

[0115] A judgment module 35 is used to judge whether there is a target graph hash value in the preset graph structure hash table;

[0116] The isomorphic call chain determination module 36 is used to determine the existing call chain corresponding to the target graph hash value in the preset graph structure hash table as the isomorphic call chain corresponding to the target call chain when it is determined that the target graph hash value exists in the preset graph structure hash table; wherein the preset graph structure hash table stores the correspondence between each graph structure, each graph hash value and each call chain.

[0117] It can be seen from the above technical solution that the target graph structure is constructed according to the call relationship between each microservice that constitutes the target call chain, and the target graph hash value corresponding to the target graph structure is calculated. A graph structure hash table that stores the correspondence between each graph structure, each graph hash value and each call chain is pre-set. When it is determined that the target graph hash value exists in the preset graph structure hash table, the stored call chain corresponding to the target graph hash value in the preset graph structure hash table is determined as the isomorphic call chain corresponding to the target call chain. By determining whether the call chains are isomorphic based on the graph hash value, the efficiency of determining the isomorphism of the call chain is greatly improved, and the applicability to application scenarios is improved.

[0118] In a specific embodiment of the present invention, the device may further include:

[0119] The call chain aggregation module is used to perform aggregation operations on the existing call chain and the target call chain after determining the existing call chain corresponding to the target graph hash value in the preset graph structure hash table as the isomorphic call chain corresponding to the target call chain.

[0120] In a specific implementation of the present invention, the request parsing module 31 includes:

[0121] The call chain acquisition submodule is used to parse the received service access request and obtain the target call chain composed of various microservices;

[0122] The service identification acquisition submodule is used to obtain the service identification and parent calling service identification corresponding to each microservice;

[0123] The call relationship determination submodule is used to determine the call relationship between each microservice according to its own service identifier and the parent call service identifier corresponding to each microservice.

[0124] In a specific implementation of the present invention, the call chain obtaining submodule includes:

[0125] A chain identification obtaining unit, used to parse the received service access request to obtain a unique identification of the target chain;

[0126] A microservice search unit, used to search for each microservice containing a unique identifier of a target chain;

[0127] The call chain construction unit is used to construct a target call chain using each microservice containing a unique identifier of the target chain.

[0128] In a specific implementation of the present invention, the chain identification obtaining unit includes:

[0129] The indicator data acquisition subunit is used to parse the received service access request and obtain the initial call chain indicator data including the unique identifier of the target chain;

[0130] The data cleaning subunit is used to clean the initial call chain indicator data to obtain the cleaned call chain indicator data;

[0131] The chain identifier screening subunit is used to screen the target chain unique identifier from the cleaned calling chain indicator data.

[0132] In a specific implementation of the present invention, the string hash value and node out-degree calculation module 33 includes:

[0133] The service name acquisition submodule is used to obtain the service name corresponding to each microservice;

[0134] The string hash value and node out-degree calculation submodule is used to calculate the string hash value corresponding to each service name and the node out-degree corresponding to each microservice.

[0135] In a specific embodiment of the present invention, the device may further include:

[0136] The storage module is used to store the target graph structure, the target graph hash value and the target call chain correspondingly in the preset graph structure hash table when the target graph hash value does not exist in the preset graph structure hash table.

[0137] Corresponding to the above method embodiment, see Figure 4 , Figure 4 This is a schematic diagram of a call chain isomorphism determination device provided by the present invention, and the device may include:

[0138] A memory 332, for storing computer programs;

[0139] The processor 322 is used to implement the steps of the call chain isomorphism determination method of the above method embodiment when executing a computer program.

[0140] For details, please refer to Figure 5 , Figure 5 A specific structural diagram of a call chain isomorphism determination device provided for this embodiment, the call chain isomorphism determination device may have relatively large differences due to different configurations or performances, and may include a processor (central processing units, CPU) 322 (for example, one or more processors) and a memory 332, and the memory 332 stores one or more computer applications 342 or data 344. Among them, the memory 332 can be a temporary storage or a permanent storage. The program stored in the memory 332 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the data processing device. Furthermore, the processor 322 can be configured to communicate with the memory 332 to execute a series of instruction operations in the memory 332 on the call chain isomorphism determination device 301.

[0141] The call chain isomorphism determination device 301 may further include one or more power supplies 326 , one or more wired or wireless network interfaces 350 , one or more input and output interfaces 358 , and / or one or more operating systems 341 .

[0142] The steps in the call chain isomorphism determination method described above can be implemented by the structure of the call chain isomorphism determination device.

[0143] Corresponding to the above method embodiment, the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:

[0144] The received service access request is parsed to obtain the target call chain composed of each microservice and the call relationship between each microservice; the target graph structure corresponding to the target call chain is constructed according to the call relationship between each microservice; the string hash value and the node out-degree corresponding to each microservice are calculated; the target graph hash value corresponding to the target graph structure is calculated according to each string hash value and each node out-degree; it is determined whether the target graph hash value exists in the preset graph structure hash table; if so, the existing call chain corresponding to the target graph hash value in the preset graph structure hash table is determined as the isomorphic call chain corresponding to the target call chain; wherein the preset graph structure hash table stores the correspondence between each graph structure, each graph hash value and each call chain.

[0145] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0146] For an introduction to the computer-readable storage medium provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.

[0147] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the devices, equipment and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0148] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the technical solution and core ideas of the present invention. It should be pointed out that for ordinary technicians in this technical field, the present invention can also be improved and modified without departing from the principles of the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. A method for determining call chain isomorphism. It is characterized in that include: Parse the received service access request to obtain a target call chain consisting of each microservice and a call relationship between the microservices; Constructing a target graph structure corresponding to the target call chain according to the call relationship between the microservices; Calculate the string hash value and node out-degree corresponding to each of the microservices; Calculate the target graph hash value corresponding to the target graph structure according to each of the string hash values ​​and each of the node out-degrees; Determine whether the target graph hash value exists in the preset graph structure hash table; If so, the existing call chain corresponding to the target graph hash value in the preset graph structure hash table is determined as the isomorphic call chain corresponding to the target call chain; wherein the preset graph structure hash table stores the correspondence between each graph structure, each graph hash value and each call chain.

2. The call chain isomorphism determination method according to claim 1, It is characterized in that After determining the stored call chain corresponding to the target graph hash value in the preset graph structure hash table as the isomorphic call chain corresponding to the target call chain, the method further includes: An aggregation operation is performed on the existing call chain and the target call chain.

3. The call chain isomorphism determination method according to claim 1 or 2, It is characterized in that The received service access request is parsed to obtain a target call chain consisting of various microservices and a call relationship between the microservices, including: Parsing the received service access request to obtain a target call chain consisting of the microservices; Obtain the service identifier and parent calling service identifier corresponding to each microservice; The calling relationship between the microservices is determined according to the service identifiers of the microservices themselves and the parent calling service identifiers respectively corresponding to the microservices.

4. The call chain isomorphism determination method according to claim 3, It is characterized in that Parse the received service access request to obtain the target call chain consisting of various microservices, including: Parse the received service access request to obtain the unique identifier of the target chain; Find each of the microservices containing the unique identifier of the target chain; The target call chain is constructed using each of the microservices containing the unique identifier of the target chain.

5. The call chain isomorphism determination method according to claim 4, It is characterized in that Parse the received service access request to obtain the unique identifier of the target chain, including: Parsing the received service access request to obtain initial call chain indicator data including the unique identifier of the target chain; Performing a cleaning operation on the initial call chain indicator data to obtain cleaned call chain indicator data; The target chain unique identifier is obtained by screening the cleaned call chain indicator data.

6. The call chain isomorphism determination method according to claim 3, It is characterized in that Calculating the string hash value and node out-degree corresponding to each of the microservices, including: Obtain the service name corresponding to each of the microservices; Calculate the string hash value corresponding to each of the service names, and calculate the node out-degree corresponding to each of the microservices.

7. The call chain isomorphism determination method according to claim 1, It is characterized in that When the target graph hash value does not exist in the preset graph structure hash table, the method further includes: The target graph structure, the target graph hash value and the target call chain are stored correspondingly in the preset graph structure hash table.

8. A call chain isomorphism determination device, It is characterized in that include: A request parsing module is used to parse the received service access request to obtain a target call chain composed of various microservices and a call relationship between the microservices; A graph structure construction module, used to construct a target graph structure corresponding to the target call chain according to the call relationship between the microservices; A string hash value and node out-degree calculation module, used to calculate the string hash value and node out-degree corresponding to each of the microservices; A graph hash value calculation module, used to calculate a target graph hash value corresponding to the target graph structure according to each of the string hash values ​​and each of the node out-degrees; A judgment module, used to judge whether the target graph hash value exists in the preset graph structure hash table; An isomorphic call chain determination module is used to determine the existing call chain corresponding to the target graph hash value in the preset graph structure hash table as the isomorphic call chain corresponding to the target call chain when it is determined that the target graph hash value exists in the preset graph structure hash table; wherein the preset graph structure hash table stores the correspondence between each graph structure, each graph hash value and each call chain.

9. A call chain isomorphism determination device, It is characterized in that include: Memory for storing computer programs; A processor, configured to implement the steps of the call chain isomorphism determination method as described in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the call chain isomorphism determination method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • SaaS application construction method based on microservice architecture

    CN106506605A

  • Block chain evidence storage method and system based on isomorphic multi-chain architecture

    CN113326317A