Graph calculation method and system

By dividing graph information subsets in the graph computing system and accessing data in order of storage addresses, the problem of low graph computing performance in distributed systems is solved, and more efficient data access and computing performance are achieved.

CN118733832APending Publication Date: 2024-10-01HUAWEI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310366163.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

When performing graph calculations in a distributed system, frequent data transfer results in long job times and low performance gains.

Method used

The graph information is divided into multiple subsets through the management node and distributed to the computing nodes. The computing nodes access the data in order according to the storage address, use push mode or pull mode to perform graph calculations, and realize remote sequential access to shorten data access time.

Benefits of technology

This effectively shortens the time it takes for a computing node to access data in other computing nodes, and improves the performance benefits of the graph computing system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733832A_ABST
    Figure CN118733832A_ABST
Patent Text Reader

Abstract

The invention discloses a graph calculation method and system, and belongs to the technical field of graph calculation. The method comprises the steps that a management node divides graph information into a plurality of graph information subsets and distributes the graph information subsets to a plurality of calculation nodes, and the graph information indicates calculation objects and needed calculation data of graph calculation; the computing node determines a first computing object indicated by the received graph information subset and a second computing object associated with the first computing object, and the second computing object is the computing object indicated by the graph information subset received by other computing nodes; any computing node executes graph computing based on the first computing object and the second computing object, and in the process of executing the graph computing, any computing node accesses the computing data of the second computing object in any other computing node in sequence according to the sequence of the storage addresses of the computing data in any other computing node. According to the method, the far-end access time consumption is shortened, and the performance income of the graph computing system is improved in time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of graph computing technology, and in particular to a graph computing method and system. Background Art

[0002] The data structure of graph can conveniently and intuitively describe the relationship between objects, which makes it widely used in many fields, such as social networks, web search, natural language processing, etc. Graph computing is a technology that uses the information represented by the graph to perform calculations and use the calculation results to solve problems.

[0003] At present, in order to ensure the efficiency of graph computing, multiple computing nodes in a distributed system are usually used to perform graph computing, and each computing node is responsible for part of the computing tasks in the graph computing.

[0004] However, when using a distributed system to perform graph computing, data will be frequently transferred between computing nodes, resulting in longer graph computing job time and lower performance benefits of graph computing. Summary of the invention

[0005] The present application provides a graph computing method and system. The present application shortens the time consumption of remote access and improves the performance benefits of the graph computing system in terms of time. The technical solutions provided by the present application are as follows:

[0006] In a first aspect, the present application provides a graph computing method, which is applied to a graph computing system, the graph computing system comprising: a management node and a computing node, the method comprising: the management node divides the graph information into multiple graph information subsets, and distributes the multiple graph information subsets to multiple computing nodes, the graph information indicating the computing objects and required computing data of the graph computing; any computing node determines a first computing object indicated by a received graph information subset, and a second computing object associated with the first computing object, the second computing object being the computing object indicated by the graph information subset received by other computing nodes; any computing node performs graph computing based on the first computing object and the second computing object, wherein, in the process of executing the graph computing, any computing node accesses the computing data of the second computing object in any other computing node in sequence according to the order of the storage addresses of the computing data in any other computing node.

[0007] In this way, when a computing node accesses the computing data of a second computing object in other computing nodes, it needs to access the computing data of all second computing objects in the other computing nodes in sequence according to the order of the storage addresses of the computing data in the other computing nodes, thus realizing remote sequential access to the computing data of all second computing objects in the other computing nodes, and no longer using remote random access to access the data in the other computing nodes. Since the speed of remote sequential access is fast, the latency of remote sequential access is significantly less than the latency of remote random access, which effectively shortens the time it takes for computing nodes to access data in other computing nodes, and improves the performance benefits of the graph computing system in terms of time.

[0008] Optionally, before any computing node performs graph computing based on the first computing object and the second computing object, the method further includes: each computing node stores the graph information subset received by each computing node, and the computing data in the same graph information subset has consecutive storage addresses in the storage medium of the corresponding computing node. In this way, when sequentially reading the computing data in the graph information subset, the time for reading the computing data can be effectively shortened.

[0009] The process of executing graph calculation includes the whole process of obtaining the data required for calculation, performing calculation based on the data, and updating the data based on the calculation results. In the present application, in order to obtain better performance benefits, the computing nodes can use different graph calculation modes to execute the graph calculation process for different calculation processes. Then any computing node performs graph calculation based on the first calculation object and the second calculation object, including: any computing node obtains the target graph calculation mode used to execute the graph calculation; any computing node performs graph calculation based on the first calculation object and the second calculation object according to the target graph calculation mode.

[0010] In one implementation, the target graph calculation mode is a push mode. In this push mode, the computing node needs to obtain the calculation data of the second calculation object from other computing nodes, and then update the calculation data of the first calculation object based on the calculation data of the second calculation object. Then any computing node performs graph calculation based on the first calculation object and the second calculation object according to the target graph calculation mode, including: any computing node obtains the calculation data of the second calculation object from any other computing node, and the second calculation object is the second calculation object that affects the first calculation object; any computing node calculates the first calculation data of the first calculation object based on the calculation data of the second calculation object, and uses the first calculation data to update the calculation data of the first calculation object.

[0011] Wherein, when any computing node needs to obtain computing data of multiple second computing objects from any other computing node, any computing node obtains the computing data of the second computing object, including: any computing node reads the computing data of multiple second computing objects in any other computing node in sequence according to the order of storage addresses of the computing data. That is, the any computing node can read the computing data of the multiple second computing objects in sequence in the any other computing node according to the order of storage addresses of the computing data.

[0012] By reading the computational data of multiple second computational objects in this manner, remote sequential access to the computational data of the second computational object in any other computational node can be achieved. Compared with remote random access, this can effectively shorten the reading time of the computational data of the second computational object and help shorten the execution time of graph computation.

[0013] In another implementation, the target graph calculation mode is a pull mode. In the pull mode, after the computing node determines the second computing object associated with the first computing object and the association relationship between the first computing object and the second computing object, it can calculate the second computing data of the second computing object according to the calculation data of the first computing object and the association relationship between the first computing object and the second computing object, according to the algorithm indicated by the graph calculation, and then provide the second computing data to other computing nodes where the second computing object is located, so that the other computing nodes update the computing data of the second computing object based on the second computing data. Then any computing node performs graph calculation based on the first computing object and the second computing object according to the target graph calculation mode, including: any computing node calculates the second computing data of the second computing object based on the computing data of the first computing object, and provides the second computing data to other computing nodes where the second computing object is located, and the second computing object is the second computing object affected by the first computing object; the other computing nodes where the second computing object is located update the computing data of the second computing object based on the second computing data.

[0014] Among them, when the first computing object affects multiple second computing objects indicated by the graph information subset received by the same other computing node, the other computing nodes where the second computing object is located update the computing data of the second computing object based on the second computing data, including: the other computing nodes where the second computing object is located update the computing data of the multiple second computing objects in the other computing nodes in sequence based on the second computing data and in the order of the storage addresses of the computing data. That is, the other computing node can sequentially write the second computing data of the multiple second computing objects in the other computing node based on the second computing data and in the order of the storage addresses of the original computing data of the second computing object.

[0015] By writing the second computing data of multiple second computing objects in this way, remote sequential access to the second computing data of the second computing object in any other computing node can be achieved. Compared with remote random access, the writing time of the computing data of the second computing object can be effectively shortened, which helps to shorten the execution time of graph calculations.

[0016] Graph computation includes multiple rounds of iterative processes. In one implementation, the target graph computation mode of any iterative process is determined based on the computational cost of the iterative process before any iterative process. For example, the computing node can calculate the computational costs of multiple alternative graph computation modes based on the iterative process before any iterative process, and then determine the alternative graph computation mode with the smallest computational cost as the target graph computation mode. Optionally, the iterative process for obtaining the computational cost reference can be the previous round of iterative process of any iterative process.

[0017] In one implementation, the computational cost of any iterative process is positively correlated with the first total number of computational objects updated in the any iterative process and the first total number of association relationships of each updated computational object. Optionally, the computational cost may be equal to the sum of the first total number and the first total number of association relationships. The computing node may determine the total number of all computational objects indicated by the graph information as the first total number. The computing node may separately count the total number of computational objects actively associated with each computational object among all computational objects, and then add the total number of computational objects actively associated with all computational objects, and the sum obtained is the first total number of association relationships.

[0018] Taking into account the different implementation methods of executing graph calculations according to different alternative graph calculation modes, the objects of the first total number and the first total number of pairs used in calculating the alternative graph calculation mode are slightly different. This application takes multiple alternative graph calculation modes as push mode and pull mode as examples to illustrate it. In the push mode, the computing node needs to obtain the calculation data of the second computing object from other computing nodes, and then update the calculation data of the first computing object based on the calculation data of the second computing object. In any round of iteration, if the calculation data of the second computing object has not been updated compared with the previous round of iteration, it is not necessary to update the calculation data of the first computing object based on the calculation data of the second computing object. Therefore, when calculating the computational cost of the push mode in an iterative process, the first total number can be the total number of computing objects whose calculation data is updated in the iterative process, and the first total number of pairs is the sum of the total number of computing objects actively associated with all the computing objects whose calculation data is updated. In the pull mode, the computing node needs to obtain the calculation data of the first computing object from the computing node, and update the calculation data of the second computing object according to the calculation method indicated by the graph calculation. When calculating the computational cost of the pull mode, the computing node may determine the total number of all computational objects indicated by the graph information as the first total number. Alternatively, the total number of computational objects whose data has been updated among all computational objects may be determined as the first total number, or the total number of computational objects whose data has not been updated among all computational objects may be determined as the first total number. The first total number is the sum of the total number of computational objects actively associated with each computational object among the computational objects used to calculate the first total number.

[0019] Optionally, the graph information also includes graph state information of the computing object, and the graph state information indicates whether the computing data of the computing object is updated. At this time, any computing node performs graph computing based on the first computing object and the second computing object, and also includes: updating the graph state information of the computing object whose computing data is updated by the graph computing result.

[0020] In one implementation, the graph information further includes graph structure information, the graph structure information indicates the relationship between different computing objects, and any computing node determines the second computing object associated with the first computing object, including: any computing node determines the second computing object associated with the first computing object based on the graph structure information in the received graph information subset. Wherein, when the graph information subset indicates that the first computing node is connected to another computing node, the other computing node can be determined as the second computing object.

[0021] Optionally, the management node divides the graph information into multiple graph information subsets, including: the management node obtains the second total logarithm of the association relationship between every two computing objects among all the computing objects indicated by the graph information; the management node divides all the computing objects indicated by the graph information into multiple object groups based on the second total logarithm; the management node divides the computing data of the computing objects in the same object group in the graph information into a graph information subset according to the division results of the multiple object groups, thereby obtaining multiple graph information subsets.

[0022] Among them, the management node divides all computing objects indicated by the graph information into multiple object groups based on the second total logarithm, including: the management node obtains the second total number of all computing objects indicated by the graph information; the management node divides all computing objects indicated by the graph information into multiple object groups based on the second total number and the second total logarithm.

[0023] In one implementation, the difference between the total number of targets of every two object groups in a plurality of object groups is less than a specified value, and the total number of targets of any object group is the sum of a third total number and a third total logarithm of any object group, the third total number is the total number of computing objects in any object group, and the third total logarithm is the total logarithm of association relationships between every two computing objects in any object group.

[0024] Since graph computing is mainly manifested as the association between computing objects represented by graph information, and the process of updating the computing data of another computing object affected by the association based on the computing data of a computing object with an association, it can be known that the factors affecting the computational amount of graph computing are the total number of computing objects and the total logarithm of the association between computing objects. When multiple object groups are divided based on the principle that the difference in the target total number of each two object groups in the multiple object groups obtained by division is less than the specified value, the computational amount of graph computing can be balanced. When the computing tasks corresponding to the multiple object groups are assigned to multiple computing nodes for execution, the computing tasks are basically balanced on multiple computing nodes, which can achieve the purpose of load balancing, thereby improving the performance of the graph computing system.

[0025] In one implementation, the graph information may be represented by a graph. The graph includes multiple vertices connected by edges, the vertices are used to indicate computing objects, and the edges between the vertices indicate the associations between the computing objects indicated by the vertices. At this time, the management node divides the computing data of the computing objects in the graph information belonging to the same object group into a graph information subset according to the division results of the multiple object groups, and obtains multiple graph information subsets, including: the management node obtains multiple sub-architecture graphs corresponding to the multiple object groups according to the division results of the multiple object groups and based on the relationships represented by the graph, the sub-architecture graphs indicate the association relationships between the computing objects in the corresponding object groups; the management node adds the computing data of the computing objects involved in the sub-architecture graph to the sub-architecture graph based on the computing data indicated by the graph, and obtains the graph information subset.

[0026] Optionally, in addition to the calculation data, the graph information may also include other information. In this case, it is also necessary to add other information related to the sub-architecture diagram to the sub-architecture diagram. For example, the graph information may also include graph state information, which is used to indicate the state of the calculation object. The management node then divides the calculation data of the calculation objects in the same object group in the graph information into a graph information subset according to the division results of the multiple object groups, and obtains multiple graph information subsets, which also includes: the management node adds the graph state information of the calculation objects involved in the sub-architecture diagram to the sub-architecture diagram based on the state of the calculation objects indicated by the graph, and the graph state information is used to indicate the state of the calculation objects.

[0027] In the present application, the association of one computing object with another computing object includes one or more of the following situations: one computing object actively associates with another computing object, and the other computing object actively associates with one computing object.

[0028] In the second aspect, the present application provides a graph computing system, which includes: a management node and a computing node; the management node is used to divide graph information into multiple graph information subsets, and distribute the multiple graph information subsets to multiple computing nodes, the graph information indicating the computing objects and required computing data of the graph computing; any computing node is used to determine a first computing object indicated by a received graph information subset, and a second computing object associated with the first computing object, the second computing object being the computing object indicated by the graph information subset received by other computing nodes; any computing node is also used to perform graph computing based on the first computing object and the second computing object, wherein, in the process of executing graph computing, any computing node accesses the computing data of the second computing object in any other computing node in sequence according to the order of the storage addresses of the computing data in any other computing node.

[0029] Optionally, each computing node is further used to store a graph information subset received by itself, and the storage addresses of the computing data in the same graph information subset in the storage medium of the corresponding computing node are continuous.

[0030] Optionally, any computing node is specifically used to: obtain a target graph computing mode used to execute graph computing; and execute graph computing based on the first computing object and the second computing object according to the target graph computing mode.

[0031] Optionally, the target graph calculation mode is a push mode, and any computing node is specifically used to: obtain the calculation data of a second computing object from any other computing node, where the second computing object is a second computing object that affects the first computing object; based on the calculation data of the second computing object, calculate the first calculation data of the first computing object, and use the first calculation data to update the calculation data of the first computing object.

[0032] Optionally, when any computing node needs to obtain computing data of multiple second computing objects from any other computing node, any computing node is specifically used to: in any other computing node, read the computing data of multiple second computing objects in any other computing node in sequence according to the order of storage addresses of the computing data.

[0033] Optionally, the target graph calculation mode is a pull mode; any computing node is specifically used to calculate the second calculation data of the second calculation object based on the calculation data of the first calculation object, and provide the second calculation data to other computing nodes where the second calculation object is located, and the second calculation object is the second calculation object affected by the first calculation object; the other computing nodes where the second calculation object is located are specifically used to update the calculation data of the second calculation object based on the second calculation data.

[0034] Optionally, when a first computing object affects multiple second computing objects indicated by the same other computing node's graph information subset, the other computing nodes where the second computing objects are located are specifically used to: based on the second computing data, in the order of the storage addresses of the computing data, in the other computing nodes, sequentially update the computing data of the multiple second computing objects.

[0035] Optionally, the graph computation includes multiple rounds of iterations, and a target graph computation mode of any iteration is determined based on a computational cost of an iteration before any iteration.

[0036] Optionally, the computation cost of any iterative process is positively correlated with a first total number of computation objects updated in any iterative process and a first total number of logarithms of association relationships of each updated computation object.

[0037] Optionally, the graph information also includes graph state information of the computing object, where the graph state information indicates whether the computing data of the computing object is updated. Any computing node is further used to update the graph state information of the computing object whose computing data is updated by the graph computing result.

[0038] Optionally, the graph information also includes graph structure information, which indicates the relationship between different computing objects. Any computing node is specifically used to determine a second computing object associated with a first computing object based on the graph structure information in the received graph information subset.

[0039] Optionally, the management node is specifically used to: obtain the second total logarithm of the association relationship between every two computing objects among all the computing objects indicated by the graph information; based on the second total logarithm, divide all the computing objects indicated by the graph information into multiple object groups; and according to the division results of the multiple object groups, divide the computing data of the computing objects in the graph information belonging to the same object group into a graph information subset to obtain multiple graph information subsets.

[0040] Optionally, the management node is specifically used to: obtain a second total number of all computing objects indicated by the graph information; and divide all computing objects indicated by the graph information into multiple object groups based on the second total number and the second total number of pairs.

[0041] Optionally, the difference between the total number of targets of every two object groups in the multiple object groups is less than a specified value, and the total number of targets of any object group is the sum of the third total number and the third total logarithm of any object group, the third total number is the total number of calculated objects in any object group, and the third total logarithm is the total logarithm of the association relationship between every two calculated objects in any object group.

[0042] Optionally, the graph information is represented by a graph, and the graph includes multiple vertices connected by edges, the vertices are used to indicate computing objects, and the edges between the vertices represent the association between the computing objects indicated by the vertices. The management node is specifically used to: according to the division results of the multiple object groups, based on the relationship represented by the graph, obtain multiple sub-architecture graphs corresponding to the multiple object groups, the sub-architecture graphs represent the association relationship between the computing objects in the corresponding object groups; based on the computing data indicated by the graph, add the computing data of the computing objects involved in the sub-architecture graph to the sub-architecture graph to obtain a subset of the graph information.

[0043] Optionally, the management node is further specifically used to: based on the state of the computing object indicated by the graph, add graph state information of the computing object involved in the sub-architecture graph to the sub-architecture graph, where the graph state information is used to indicate the state of the computing object.

[0044] Optionally, the association of one computing object with another computing object includes one or more of the following situations: one computing object actively associates with another computing object, and the other computing object actively associates with one computing object.

[0045] In a third aspect, the present application provides a computing device including a memory and a processor, wherein the memory stores program instructions, and the processor runs the program instructions to execute the method provided in the first aspect of the present application and any possible implementation thereof.

[0046] In a fourth aspect, the present application provides a computing device cluster, including multiple computing devices, the multiple computing devices including multiple processors and multiple memories, the multiple memories storing program instructions, and the multiple processors running the program instructions, so that the computing device cluster executes the method provided in the first aspect of the present application and any possible implementation thereof.

[0047] In a fifth aspect, the present application provides a computer-readable storage medium, which is a non-volatile computer-readable storage medium, and the computer-readable storage medium includes program instructions. When the program instructions are executed on a computing device, the computing device executes the method provided in the first aspect of the present application and any possible implementation thereof.

[0048] In a sixth aspect, the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method provided in the first aspect of the present application and any possible implementation thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 It is a schematic diagram of a diagram provided in an embodiment of the present application;

[0050] Figure 2 It is a structural schematic diagram of an implementation environment involved in a graph computing method provided in an embodiment of the present application;

[0051] Figure 3 is a flow chart of a graph calculation method provided in an embodiment of the present application;

[0052] Figure 4 It is a flowchart of a management node dividing graph information into multiple graph information subsets provided by an embodiment of the present application;

[0053] Figure 5 This is a method provided by the embodiment of the present application. Figure 1 The diagram shown shows a schematic diagram of a graph of edges;

[0054] Figure 6 A flowchart of a management node dividing all computing objects indicated by graph information into multiple object groups based on a second total logarithm provided by an embodiment of the present application;

[0055] Figure 7 A management node provided in an embodiment of the present application divides the calculation data of the calculation objects in the same object group in the graph information into a graph information subset according to the division results of multiple object groups, thereby obtaining a flowchart of multiple graph information subsets;

[0056] Figure 8 This is a method provided by the embodiment of the present application. Figure 1 A schematic diagram of a sub-architecture diagram of the object group 1 obtained by division;

[0057] Fig. 9 This is a method provided by the embodiment of the present application. Figure 1 A schematic diagram of a sub-architecture diagram of the object group 2 obtained by division;

[0058] Fig.10 A flowchart of a computing node performing graph computing based on a first computing object and a second computing object provided by an embodiment of the present application;

[0059] Fig.11 It is a flowchart of a computing node performing graph computing in a push mode provided by an embodiment of the present application;

[0060] Fig.12 It is a schematic diagram of a process of executing graph calculation in a push mode provided by an embodiment of the present application;

[0061] Fig.13 It is a flowchart of a computing node performing graph computing in a pull mode provided by an embodiment of the present application;

[0062] Fig.14 It is a schematic diagram of a process of executing graph calculation in a pull mode provided by an embodiment of the present application;

[0063] Fig.15 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application;

[0064] Fig.16 It is a structural diagram of a computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION

[0065] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0066] To facilitate understanding, the technology and background involved in the embodiments of the present application are first explained below.

[0067] 1. Graph

[0068] A graph is a structured data that abstractly expresses the entities and the relationships between entities in the information as vertices and the relationships between vertices. A graph is a data structure including at least one vertex and at least one edge. Vertices are used to represent entities. In some cases, vertices are also called points, nodes, or endpoints. Edges between vertices are used to represent the relationships between entities. When there is an association relationship between two vertices, the two vertices are connected by an edge. When there is no association relationship between two vertices, the two vertices are not connected. In one implementation, the association between an entity and another entity includes one or more of the following situations: one entity actively associates with another entity, and the other entity actively associates with an entity. Among them, both vertices and edges carry information. The information of the vertex may include: the name of the entity represented by the vertex and its attributes (such as in-degree) and other information. The information of the edge may include: information indicating the relationship between the two entities corresponding to the two vertices connected by the edge. Optionally, the graph may be a directed graph or an undirected graph. When the graph is a directed graph, the edge from one vertex to another vertex is called the out-edge of the one vertex, and correspondingly, the edge is called the in-edge of the other vertex. In addition, the graph can also include other data besides vertices and edges, such as attribute information such as vertex and edge labels.

[0069] In different application scenarios, the vertices and edges in the graph have different practical meanings. For example, in the scenario of friend recommendation, each vertex in the graph can represent a user, each edge in the graph can represent the social relationship between different users, and the data of each vertex in the graph is the user's portrait data and the user's behavior data (for example, the user's age, occupation or hobbies, etc.). For another example, in the scenario of product recommendation, each vertex in the graph can represent a user or a product, and each edge in the graph can represent the interactive relationship between the user and the product (for example, a purchase relationship or a collection relationship, etc.). For another example, in the scenario of financial risk control, each vertex in the graph can represent an account, a transaction or funds. The edge in the graph can represent the flow relationship of funds (for example, the loop in the graph can represent a circular transfer). For another example, in the scenario of enterprise network optimization, each vertex in the graph can represent a network element, such as a router, a switch, a terminal, etc., and each edge in the graph can represent the connection relationship between different network elements.

[0070] For example, Figure 1 Schematic diagram of a diagram provided in an embodiment of the present application. Figure 1 As shown, the graph includes 6 vertices connected by edges. The vertices are used to indicate the computational objects of the graph computation, and the edges between the vertices indicate the corresponding computational object associations. Among them, a one-way arrow from one vertex to another vertex indicates that the computational object indicated by the vertex actively associates with the other vertex. For example, a one-way arrow from vertex 1 to vertex 2 indicates that the computational object indicated by vertex 1 actively associates with vertex 2. A two-way arrow between a vertex and another vertex indicates that the computational object indicated by the vertex actively associates with the computational object indicated by the other vertex, and the computational object indicated by the other vertex actively associates with the computational object indicated by the vertex. That is, the two-way arrow indicates that the computational objects indicated by the two vertices actively associate with each other. For example, a two-way arrow between vertex 2 and vertex 3 indicates that the computational object indicated by vertex 2 actively associates with the computational object indicated by vertex 3, and the computational object indicated by vertex 3 actively associates with the computational object indicated by vertex 2.

[0071] 2. Subgraph

[0072] A subgraph is a part of a graph, including some vertices and some edges in the graph. A subgraph is also called a partition in the graph. A graph can include multiple subgraphs.

[0073] 3. Graph computing

[0074] Graph computing is a technology that uses information represented by graphs to study the relationships between things in the objective world and to fully characterize, calculate, and analyze them. In graph computing, the entities represented by the vertices of the graph are the computational objects of graph computing, and the edges of the graph represent the relationships between the computational objects.

[0075] 4. Push (PUSH) technology and pull (PULL) technology

[0076] Push technology is a mechanism built on the client and server. Push technology is a technology in which the server actively sends information to the client. Pull technology is a technology in which the client actively requests information from the server. Compared with pull technology, the advantage of push technology lies in the initiative and timeliness of information.

[0077] 5. Random access and sequential access

[0078] Sequential access is accessing a continuous range of disk blocks. For example, the process of accessing data in the order of storage addresses from small to large is a sequential access process. For example, the process of accessing a range of disk blocks in the order of storage addresses from small to large is a sequential access process. Alternatively, the disk blocks are accessed in a non-contiguous manner from small to large storage addresses.

[0079] The random access process includes both the process of accessing data in a first change direction of the storage address and the process of accessing data in a second change direction of the storage address, and the first change direction is opposite to the second change direction. For example, the first change direction refers to the storage address changing from small to large, and the second change direction refers to the storage address changing from large to small.

[0080] During sequential access, the hard disk head accesses the disk in a certain order, and the head does not seek frequently. During random access, due to the discontinuity of data on the disk, the hard disk head needs to move frequently, and the disk will seek frequently. Since seek time is the main reason affecting the disk read and write speed, the speed of random access is much slower than that of sequential access.

[0081] At present, in order to ensure the efficiency of graph computing, multiple computing nodes in a distributed system are usually used to perform graph computing, and each computing node is responsible for part of the computing tasks in the graph computing. When a distributed system is used to perform graph computing, a computing node may need to obtain the data required for computing from its own memory and from the memory of other computing nodes. The process of a computing node obtaining data from its own memory is called the process of a computing node accessing local memory. The process of a computing node obtaining data from the memory of other computing nodes is called the process of a computing node accessing remote memory. In this distributed system, for a certain computing node, the memory includes local memory and remote memory. At this time, the memory architecture composed of the memory in the distributed system can be called a non-uniform memory access architecture, and the characteristics of this non-uniform memory access architecture are: accessing local memory is faster than accessing remote memory.

[0082] When implementing graph computing based on a non-uniform memory access architecture, since a computing node may need to obtain the data required for computing from its own memory as well as from the memory of other computing nodes, data frequently needs to be transferred between computing nodes. For example, when a distributed system including 10 computing nodes is used to perform graph computing, for each of the 10 computing nodes, during the process of performing the computing, the computing node may need to obtain the data required for computing from its own memory as well as from the memory of other computing nodes, so data needs to be frequently transferred between computing nodes.

[0083] In addition, when using a distributed system to perform graph computing, since each computing node is responsible for part of the computing task, the computing node will obtain the data required for the calculation on demand during the execution of the computing task, resulting in the process of the computing node obtaining the data required for the calculation from other computing nodes usually being remote random access. Since the latency of remote random access is usually large, the entire graph computing operation takes a long time, and the performance benefit of the entire graph computing is low.

[0084] An embodiment of the present application provides a graph computing method. In the graph computing method, after receiving the graph information provided by the client, the management node divides the graph information into multiple graph information subsets, and distributes the multiple graph information subsets to multiple computing nodes. After each of the multiple computing nodes receives the graph information subset, it respectively determines the first computing object indicated by the graph information subset received by each computing node, and the second computing object associated with the first computing object, and then performs graph computing based on the first computing object and all the second computing objects. Wherein, in the process of executing the graph computing, any computing node accesses the computing data of the second computing object in any other computing node in sequence according to the order of the storage address of the computing data in any other computing node. The second computing object is the computing object indicated by the graph information subset received by other computing nodes. Other computing nodes are computing nodes other than the computing node among the computing nodes that receive the graph information subset.

[0085] In this way, when a computing node accesses the computing data of a second computing object in other computing nodes, it needs to access the computing data of all second computing objects in the other computing nodes in sequence according to the order of the storage addresses of the computing data in the other computing nodes, thus realizing remote sequential access to the computing data of all second computing objects in the other computing nodes, and no longer using remote random access to access the data in the other computing nodes. Since the speed of remote sequential access is fast, the latency of remote sequential access is significantly less than the latency of remote random access, which effectively shortens the time it takes for computing nodes to access data in other computing nodes, and improves the performance benefits of the graph computing system in terms of time.

[0086] Figure 2 Schematic diagram of the structure of an implementation environment involved in a graph computing method provided in an embodiment of the present application. Figure 2 As shown, the implementation environment includes: a client 01 and a graph computing system 02. A communication connection can be established between the client 01 and the graph computing system 02. For example, a communication connection can be established between the client 01 and the graph computing system 02 through a network. Optionally, the network can be a local area network, the Internet, or other networks, which is not limited in the embodiments of the present application.

[0087] In this implementation environment, a user can interact with the graph computing system 02 through the client 01. For example, a user can send a graph computing request to the graph computing system 02 through the client 01 to request the graph computing system 02 to perform a graph computing process based on the graph information provided by the client 01. The calculation result of the graph computing is used to implement the user's business. After receiving the graph computing request sent by the client 01, the graph computing system 02 can perform resource scheduling based on the graph computing request to use the scheduled resources to perform the graph computing process based on the graph information provided by the client 01.

[0088] like Figure 2 As shown, the graph computing system 02 includes a management node 021 and multiple computing nodes 022. A communication connection can be established between the management node 021 and each computing node 022, and a communication connection can be established between every two computing nodes 022. For example, the management node 021 and each computing node 022 can establish a communication connection through a network. Optionally, the network can be a local area network, the Internet, or other networks, which is not limited in the embodiment of the present application. The management node 021 is used to receive a graph computing request sent by the client 01, select a computing node 022 for executing the graph computing indicated by the graph computing request, and provide graph information to the selected computing node 022, so that the computing node 022 performs the graph computing based on the graph information. In the embodiment of the present application, the relationship between the above-mentioned management node 021 and the above-mentioned multiple computing nodes 022 is not limited. In some implementations, the above-mentioned management node 021 can be one of the multiple computing nodes 022. In other implementations, the above-mentioned management node 021 can be a node other than the multiple computing nodes 022.

[0089] Optionally, the client 01 can be a computer, a personal computer, a laptop computer, a mobile phone, a smart phone, a tablet computer, a cloud host, a portable mobile terminal, a multimedia player, an e-book reader, a wearable device, a smart home appliance, an artificial intelligence device, a smart wearable device, a smart vehicle-mounted device or an Internet of Things device. The computing node 022 and the management node 021 can both be a server, or a server cluster consisting of several servers, or a cloud computing service center. Among them, a large number of basic resources owned by a cloud service provider are deployed in the cloud computing service center. For example, computing resources, storage resources, and network resources are deployed in the cloud computing service center. The cloud computing service center can use this large amount of basic resources to implement the graph computing method provided in the embodiment of the present application.

[0090] When the computing node 022 and the management node 021 are implemented through a cloud computing service center. The user can access the cloud platform through the client 01 to send a graph computing request to the management node 021 through the cloud platform. Correspondingly, the management node 021 can schedule the computing node 022 through the cloud platform so that the scheduled computing node 022 performs the graph computing. At this time, the function of performing graph computing for the user can be abstracted into a graph computing cloud service by the cloud service provider on the cloud platform. After the user purchases the graph computing cloud service on the cloud platform, the cloud platform can use the resources of the cloud computing center and use the graph computing method provided in the embodiment of the present application to perform graph computing for the user. In addition, the graph computing cloud service can be provided as an independent cloud service or as an additional service to other cloud services. Optionally, the cloud platform can be a cloud platform of a central cloud, a cloud platform of an edge cloud, or a cloud platform including a central cloud and an edge cloud, and the embodiment of the present application does not specifically limit it.

[0091] It should be noted that in Figure 2 In the implementation environment shown, the computing node 022 can also be implemented by other resource platforms besides the cloud platform, which is not specifically limited in the present embodiment. At this time, the server can be implemented by resources in other resource platforms and provide users with related services for executing graph calculations.

[0092] It should be understood that the above content is an illustrative description of the application scenarios of the graph computing method provided in the embodiments of the present application, and does not constitute a limitation on the application scenarios of the graph computing method. A person of ordinary skill in the art will know that as business needs change, its application scenarios can be adjusted according to application needs, and the embodiments of the present application do not list them one by one.

[0093] The following is a description of the implementation process of the graph calculation method provided in the embodiment of the present application. Figure 3 As shown, the graph calculation method includes the following steps:

[0094] Step 301: The management node receives a graph computing request and graph information sent by a client, where the graph information indicates multiple computing objects of the graph computing and computing data required for the computing.

[0095] According to the previous description, when a user needs to use a graph computing system to perform graph computing, a graph computing request can be sent to the graph computing system through a client, and the graph computing system can be provided with the graph information required for graph computing. After the client sends the graph computing request and graph information to the graph computing system, the graph computing request and graph information can be received by the management node. In one implementation, the graph computing request may carry graph information. At this time, the graph computing request is used to request the graph computing system to perform graph computing based on the graph information carried by the graph computing request. In another implementation, the graph computing request may not carry graph information. At this time, the graph computing request may carry indication information of the graph information to instruct the graph computing system to perform graph computing based on the graph information indicated by the graph computing request. Alternatively, the graph computing request does not carry indication information of the graph information, and the graph information carries indication information of the graph computing request, which enables the graph computing system to perform the graph computing indicated by the indication information based on the graph information.

[0096] Among them, the graph calculation request can indicate the problem that needs to be solved when executing the graph calculation. The graph information indicates multiple calculation objects of the graph calculation and the calculation data required for the calculation. The calculation object of the graph calculation is the object targeted by the graph calculation. The calculation data is data that can reflect the relevant information of the technical problem that needs to be solved by the graph calculation. The calculation data is also called graph data information. For example, the graph calculation request indicates that the problem that needs to be solved when executing the graph calculation is: analyze the recommended products purchased by users on the recommendation page of the product, predict the user's shopping preferences, so as to determine the products that need to be recommended on the recommendation page of the product based on the shopping preferences. The calculation object indicated by the graph information is the product displayed on the recommendation page. The calculation data indicated by the graph information is the recommended product on the recommendation page, whether the product has been purchased and its purchase channel.

[0097] Optionally, the graph information may be represented by a graph. Alternatively, the graph information may be represented by a data form that can be converted into a graph. For example, the graph information is represented by a data table, and a graph can be obtained by converting the data table. For example, Figure 1 It is graph information represented by a graph. The vertices in the graph represent products. The edge from one vertex to another vertex in the graph represents that the product represented by the other vertex is displayed in the recommendation page of the vertex, and the product represented by the other vertex is purchased through the recommendation page.

[0098] Step 302: The management node divides the graph information into multiple graph information subsets.

[0099] After receiving the graph computing request and graph information sent by the client, the management node needs to first divide the graph information into multiple graph information subsets, so as to distribute the multiple graph information subsets to multiple computing nodes, so that multiple computing nodes can respectively implement computing tasks based on their respective received graph information subsets, thereby realizing the process of graph computing based on graph information. Each graph information subset indicates the computing data of some computing objects among multiple computing objects. In one implementation, Figure 4 As shown, the management node divides the graph information into multiple graph information subsets, including:

[0100] Step 3021: The management node obtains the second total number of association relationships between every two computing objects in all computing objects indicated by the graph information.

[0101] The association between a computing object and another computing object includes one or more of the following situations: one computing object actively associates with another computing object, and the other computing object actively associates with a computing object. In one implementation, when one computing object actively associates with another computing object, regardless of whether the other computing object actively associates with the one computing object, it can be recorded that there is an association relationship between the one computing object and the other computing object, and the second total logarithm of the association relationship in the graph information is increased by one. When the graph information is represented by a graph, one computing object actively associates with another computing object, and the association relationship can be represented by the outgoing edge of the vertex representing the one computing object in the graph. Then the implementation method of obtaining the second total logarithm is actually: the sum of the outgoing edges of all vertices in the statistical graph, and the sum is determined as the second total logarithm. That is, the sum of the outgoing degrees of all vertices in the graph is determined as the second total logarithm.

[0102] Alternatively, when another computing object actively associates with a computing object, regardless of whether the computing object actively associates with the other computing object, it can be recorded that there is an association relationship between the computing object and the other computing object, and the second total logarithm of the association relationship in the graph information is increased by one. When the graph information is represented by a graph, another computing object actively associates with a computing object, and the association relationship can be represented by the incoming edge of the vertex representing the computing object in the graph. Then the implementation method of obtaining the second total logarithm is actually: count the sum of the incoming edges of all vertices in the graph, and determine the sum as the second total logarithm. That is, the sum of the in-degrees of all vertices in the graph is determined as the second total logarithm.

[0103] Alternatively, when one computing object is actively associated with another computing object, it can be recorded that there is an association relationship between the one computing object and the other computing object, and the second total logarithm of the association relationship in the graph information is increased by one. When the graph information is represented by a graph, one computing object is actively associated with another computing object, and the association relationship can be represented by a bidirectional edge between the vertices representing the one computing object and the other computing object in the graph. Then the implementation method of obtaining the second total logarithm is actually: the sum of the bidirectional edges of all vertices in the statistical graph, and the sum is determined as the second total logarithm. That is, the sum of the degrees of all vertices in the graph is determined as the second total logarithm.

[0104] For example, taking the example of determining the second total logarithm based on the out-degree of the vertex, Figure 1 The graph shown is transformed into a graph showing the edges. Figure 5 , according to the Figure 5 It can be obtained that: Vertex 1 has two outgoing edges with an out-degree of 2, Vertex 2 has two outgoing edges with an out-degree of 2, Vertex 3 has three outgoing edges with an out-degree of 3, Vertex 4 has three outgoing edges with an out-degree of 3, Vertex 5 has four outgoing edges with an out-degree of 4, and Vertex 6 has one outgoing edge with an out-degree of 1. Figure 1 The sum of the out-degrees of all vertices in is 2+2+3+3+4+1=15, so we can get Figure 1 The corresponding second total number of pairs is 15.

[0105] Step 3022: The management node divides all computing objects indicated by the graph information into multiple object groups based on the second total logarithm.

[0106] Graph computing is mainly manifested as a process of updating the computing data of another computing object affected by the association relationship based on the computing data of a computing object with an association relationship, based on the association relationship between the computing objects represented by the graph information. Therefore, after obtaining the second total logarithm of the association relationship between the computing objects in the graph information, the management node can divide all the computing objects indicated by the graph information into multiple object groups based on the second total logarithm. For example, the management node can divide the multiple computing objects indicated by the graph information into N parts according to the second total logarithm, and the number of computing objects included in each part is close to the quotient of the second total logarithm and N, and each part includes some of the computing objects in the multiple computing objects, and the computing objects in any two of the N parts are not the same, and N is a positive integer. For example, the management node can divide the multiple computing objects indicated by the graph information into N parts according to the second total logarithm, and each part includes some of the computing objects in the multiple computing objects, and the computing objects in any two of the N parts are not the same.

[0107] Optionally, in addition to dividing the graph information subset based on the second total logarithm of the association relationship, the graph information subset may also be divided based on the total number of calculation objects. Figure 6 As shown, the implementation process of step 3022 includes:

[0108] Step 3022a1: The management node obtains the second total number of all computing objects indicated by the graph information.

[0109] The second total number is the sum of all the calculation objects indicated by the graph information. When implementing step 3022a1, the total number of all the calculation objects indicated by the graph information can be counted, and the total number is the second total number to be obtained. Figure 1 Take the figure shown as an example, Figure 1 Six vertices are shown, then Figure 1 The corresponding second total number is 6.

[0110] Step 3022a2: The management node divides all computing objects indicated by the graph information into multiple object groups based on the second total number and the second total number of pairs.

[0111] After the management node obtains the second total number and the second total number of pairs, all the computing objects indicated by the graph information can be divided into multiple object groups according to the second total number and the second total number of pairs. In one implementation, the principle of division based on the second total number and the second total number of pairs can be: the difference between the total number of targets of each two object groups in the multiple object groups obtained by division is less than the specified value. The total number of targets of any object group is the sum of the third total number and the third total number of pairs of any object group. The third total number is the total number of computing objects in any object group. The third total number of pairs is the total number of associations between every two computing objects in any object group. For example, when dividing multiple object groups, all the computing objects indicated by the graph information can be divided into multiple object groups with "the total number of targets of multiple object groups is close" as the optimization goal. Among them, the closeness of the total number of targets of multiple object groups can be determined according to application requirements. For example, when the load bearing capacity of the computing nodes in the graph computing system is strong, the closeness can be set slightly larger, such as the closeness can indicate that the difference between the total number of targets of any two object groups is within the range of [-5, 5]. When the load-bearing capacity of the computing nodes in the graph computing system is weak, the degree of proximity can be set slightly smaller. For example, the degree of proximity can indicate that the difference between the target totals of any two object groups is within the range of [-2, 2]. It should be noted that when dividing the object groups, the management node can first determine the total number of object groups that need to be divided, and then divide the object groups to obtain the total number according to the above rules. For example, the management node can estimate the amount of graph computing tasks based on the graph computing request, and then determine the total number of object groups that need to be divided based on the load conditions of the computing nodes in the graph computing system.

[0112] For example, continue with Figure 1 Taking the figure shown as an example, according to the previous steps 3021 and 3022a1, it can be known that: Figure 1 The corresponding second total logarithm is 15, Figure 1 The corresponding second total number is 6. The management node determines that the total number of object groups to be divided is 2 according to the load of the computing nodes in the graph computing system, and the division principle is that the difference between the target total numbers of each two object groups in the multiple object groups obtained by division is less than 3. According to the division principle, the management node obtains: object group 1 includes the computing objects represented by vertex 1, vertex 2 and vertex 3, and object group 2 includes the computing objects represented by vertex 4, vertex 5 and vertex 6.

[0113] Since graph computing is mainly manifested as the association between computing objects represented by graph information, and the process of updating the computing data of another computing object affected by the association based on the computing data of a computing object with an association, it can be known that the factors affecting the computational amount of graph computing are the total number of computing objects and the total logarithm of the association between computing objects. When multiple object groups are divided based on the principle that the difference in the target total number of each two object groups in the multiple object groups obtained by division is less than the specified value, the computational amount of graph computing can be balanced. When the computing tasks corresponding to the multiple object groups are assigned to multiple computing nodes for execution, the computing tasks are basically balanced on multiple computing nodes, which can achieve the purpose of load balancing, thereby improving the performance of the graph computing system.

[0114] Step 3023: The management node divides the computational data of the computational objects in the same object group in the graph information into a graph information subset according to the division results of the multiple object groups, thereby obtaining multiple graph information subsets.

[0115] Since the computational data in the graph information are divided by computational objects, after multiple object groups are obtained by division, the computational data of the computational objects in the same object group in the graph information can be divided into a graph information subset according to the division results of the multiple object groups, so as to obtain multiple graph information subsets corresponding to the multiple object groups one by one. This step 3023 can be regarded as a process of assigning computational data to the computational objects included in each object group according to the division results. The following takes the use of graph representation of graph phenomena as an example to illustrate the implementation process.

[0116] When the graph information used in graph computing is represented by a graph, the graph includes multiple vertices connected by edges. The vertices are used to indicate computing objects, and the edges between the vertices indicate the association between the computing objects indicated by the vertices. Figure 7 As shown, the implementation process of step 3023 includes:

[0117] Step 3023a1: The management node obtains multiple sub-architecture graphs corresponding to the multiple object groups according to the division results of the multiple object groups and based on the relationships represented by the graphs. The sub-architecture graphs represent the association relationships between the computing objects in the corresponding object groups.

[0118] The process of the management node obtaining multiple sub-architecture graphs corresponding to multiple object groups according to the division results can be regarded as a process of splitting the architecture graph of the graph according to the division results to obtain multiple sub-architecture graphs. In one implementation, the implementation process of step 3023a1 includes: for a sub-architecture graph corresponding to any object group, the sub-architecture graph includes vertices representing computing objects in the object group and their associated vertices. Among them, the architecture graph only represents the computing objects and the associations between them, and does not carry information such as computing data. The information used to represent the associations between computing objects can be called graph structure information. The process of step 3023a1 obtaining multiple sub-architecture graphs corresponding to multiple object groups according to the division results can be regarded as a process of dividing graph structure information.

[0119] For example, continue with Figure 1 Taking the figure shown in FIG. 1 as an example, according to the previous step 3022a2, the division result is: object group 1 includes the computing objects represented by vertices 1, 2 and 3, and object group 2 includes the computing objects represented by vertices 4, 5 and 6. The sub-architecture indicating the computing objects and their association relationships in object group 1 Figure 1 like Figure 8 As shown, the sub-architecture of the computing objects and their associations in object group 2 is indicated Figure 2 like Fig. 9 shown.

[0120] Among them, Figure 8 As shown, the sub-architecture Figure 1 Vertex 1, Vertex 2, and Vertex 3 are shown, along with their in-edges. The in-edge of Vertex 1 includes the out-edges of Vertex 4 and Vertex 5. The in-edge of Vertex 2 includes the out-edges of Vertex 1, Vertex 3, Vertex 5, and Vertex 6. The in-edge of Vertex 3 includes the out-edges of Vertex 1, Vertex 2, Vertex 4, and Vertex 5.

[0121] like Fig. 9 As shown, the sub-architecture Figure 2 Vertex 5 and vertex 6 are shown, as well as their incoming edges, while vertex 4 has no incoming edge. The incoming edge of vertex 5 includes the outgoing edges of vertex 2, vertex 3, and vertex 4. The incoming edge of vertex 6 includes the outgoing edges of vertex 3 and vertex 5.

[0122] Step 3023a2: The management node adds the computational data of the computational objects involved in the sub-architecture graph to the sub-architecture graph based on the computational data indicated by the graph, and obtains a graph information subset.

[0123] The process of adding the computational data of the computational objects involved in the sub-architecture graph to the sub-architecture graph can be regarded as the process of assigning computational data to each vertex in the sub-architecture graph. Then, in one implementation, after obtaining multiple sub-architecture graphs, the computational data of the computational object can be searched in the computational data indicated by the graph according to the computational objects included in the sub-architecture graph, and then the found computational data can be added to the computational object in the sub-architecture graph to obtain a graph information subset corresponding to the sub-architecture graph. The information used to represent the computational data can be referred to as graph data information. The process of adding the computational data of the computational objects involved in the sub-architecture graph to the sub-architecture graph in step 3023a2 can be regarded as the process of dividing the graph data information.

[0124] Optionally, in addition to the calculation data, the graph information may also include other information. In this case, it is also necessary to add other information related to the sub-architecture diagram to the sub-architecture diagram. For example, the graph information may also include graph state information, which is used to indicate the state of the calculation object (such as whether the calculation data of the calculation object has been updated). Figure 7 As shown, step 3023 may also include:

[0125] Step 3023a3: The management node adds graph state information of the computing objects involved in the sub-architecture graph to the sub-architecture graph based on the state of the computing objects indicated by the graph.

[0126] The process of adding the graph state information of the computing objects involved in the sub-architecture graph to the sub-architecture graph can be regarded as the process of assigning the graph state information to each vertex in the sub-architecture graph. Then, in one implementation, after obtaining multiple sub-architecture graphs, the graph state information of the computing object can be searched in the graph state information indicated by the graph according to the computing objects included in the sub-architecture graph, and then the found graph state information is added to the computing object in the sub-architecture graph to obtain the graph information subset corresponding to the sub-architecture graph.

[0127] Step 303: The management node distributes multiple graph information subsets to multiple computing nodes.

[0128] After the management node obtains multiple graph information subsets, it can distribute the multiple graph information subsets to multiple computing nodes so that the computing nodes can perform graph calculations based on the received graph information subsets. When executing step 303, the management node can select the same number of computing nodes in the graph computing system based on the total number of graph information subsets, and send a graph information subset to each selected computing node. Among them, the management node can select computing nodes in the graph computing system based on the load conditions and computing power of the computing nodes in the graph computing system to ensure the execution performance of the graph computing. For example, the management node sends a graph information subset indicating vertex 1, vertex 2, and vertex 3 to computing node 1, and sends a graph information subset indicating vertex 4, vertex 5, and vertex 6 to computing node 2.

[0129] Step 304: Each computing node stores the graph information subset received by itself, and the storage addresses of the computing data in the same graph information subset in the storage medium of the corresponding computing node are continuous.

[0130] After receiving the graph information subset, the computing node can store the received graph information subset in its own storage medium for use in calculations. For some or all of the computing nodes that receive the graph information subset, when the computing node stores the graph information subset, the computing data of all computing objects in the same graph information subset can be stored in a storage space with continuous storage addresses of the storage medium. For example, each computing node that receives the graph information subset can store the received graph information subset in the local memory of the computing node, and the storage addresses of the computing data in the graph information subset in any computing node in the local memory of the computing node are continuous. In this way, when sequentially reading the computing data in the graph information subset, the time for reading the computing data can be effectively shortened.

[0131] It should be noted that when the graph information also includes other information, the computing node can also store the same type of data of all computing objects in the same graph information subset in a storage space with continuous storage addresses of the storage medium. For example, the computing node stores the computing data of all computing nodes in the received graph information subset in a memory block with continuous storage addresses in the local memory, and stores the graph state information of all computing nodes in the received graph information subset in another memory block with continuous storage addresses in the local memory. Among them, when the graph information includes multiple types of information, the storage addresses of the multiple types of information in the storage medium may be continuous or discontinuous, and the embodiments of the present application do not specifically limit it.

[0132] Step 305: Any computing node determines the first computing object indicated by the received graph information subset, and the second computing object associated with the first computing object, where the second computing object is the computing object indicated by the graph information subset received by other computing nodes.

[0133] According to the previous description, each graph information subset indicates the calculation data of some of the calculation objects in the multiple calculation objects, and the first calculation object indicated by the graph information subset is the calculation object with calculation data in the graph information subset. When determining the first calculation object indicated by the graph information subset, the calculation object to which the calculation data belongs in the graph information subset can be obtained, and the obtained calculation object is the first calculation object indicated by the graph information subset. In one implementation, when the graph information subset is obtained according to the object group, the first calculation object indicated by the graph information subset is the calculation object included in the object group corresponding to the graph information subset. At this time, when determining the first calculation object indicated by the graph information subset, the correspondence between the pre-stored object group and the graph information subset can be checked to determine the object group corresponding to the graph information subset, and then the calculation object included in the object group is determined as the first calculation object indicated by the graph information subset. When multiple graph information subsets are distributed to multiple computing nodes, the multiple computing nodes are respectively responsible for the calculation tasks of the first calculation objects indicated by the graph information subsets they receive.

[0134] When a first computing object is associated with a second computing object, the data of the first computing object may affect the data of the second computing object, or the data of the second computing object may affect the data of the first computing object. Therefore, after determining the first computing object, it is also necessary to determine the second computing object associated with the first computing object, and then perform graph calculations based on the first computing object and the second computing object. The second computing object is the computing object indicated by the graph information subset received by other computing nodes. The other computing nodes are computing nodes other than the any computing node among the computing nodes that receive the graph information subset.

[0135] In one implementation, the graph information may indicate the relationship between different computing objects. When determining the second computing object, all computing objects associated with the first computing object may be determined as the second computing object based on the relationship between the computing objects indicated by the graph information. For example, the graph information also includes graph structure information, which indicates the relationship between different computing objects, and the graph information subset obtained according to the graph information also includes the graph structure information. Then, the implementation process of any computing node determining the second computing object associated with the first computing object includes: any computing node determines the second computing object associated with the first computing object based on the graph structure information in the received graph information subset. Among them, when the graph information subset indicates that the first computing node is connected to another computing node, the other computing node can be determined as the second computing object. It should be noted that there may be one or more computing objects associated with a first computing object. Here, the one or more computing objects associated with the first computing pair are collectively referred to as second computing objects, and their number is not distinguished.

[0136] Step 306: Any computing node performs graph calculation based on the first computing object and the second computing object, wherein, during the process of executing the graph calculation, any computing node accesses the computing data of the second computing object in any other computing node in sequence according to the order of the storage address of the computing data in any other computing node.

[0137] The process of executing graph calculation includes the whole process of obtaining the data required for calculation, executing calculation based on the data, and updating the data based on the calculation result. In the embodiment of the present application, in order to obtain better performance benefits, the computing node can use different graph calculation modes to execute the graph calculation process for different calculation processes. In one implementation, Fig.10 As shown, the implementation process of step 306 includes:

[0138] Step 3061: Any computing node obtains the target graph computing mode used to execute graph computing.

[0139] Graph calculations usually include multiple rounds of iterative processes. In one implementation, the target graph calculation mode of any iterative process is determined based on the computational cost of the iterative process before any iterative process. For example, the computing node can calculate the computational costs of multiple alternative graph calculation modes based on the iterative process before any iterative process, and then determine the alternative graph calculation mode with the smallest computational cost as the target graph calculation mode. Optionally, the iterative process for obtaining the computational cost reference can be the previous iterative process of any iterative process. For example, when obtaining the target graph calculation mode used in the nth round of iterative process, the computational costs of multiple alternative graph calculation modes can be calculated based on the n-1th round of iterative process, and then the alternative graph calculation mode with the smallest computational cost can be determined as the target graph calculation mode.

[0140] In one implementation, the computational cost of any iterative process is positively correlated with the first total number of computational objects updated in the any iterative process and the first total number of association relationships of each updated computational object. Optionally, the computational cost may be equal to the sum of the first total number and the first total number of association relationships. The computing node may determine the total number of all computational objects indicated by the graph information as the first total number. The computing node may separately count the total number of computational objects actively associated with each computational object among all computational objects, and then add the total number of computational objects actively associated with all computational objects, and the sum obtained is the first total number of association relationships.

[0141] Taking into account the different implementation methods of executing graph calculations according to different alternative graph calculation modes, the objects of the first total number and the first total number of pairs used in calculating the alternative graph calculation mode are slightly different. The embodiment of the present application takes the push mode and the pull mode as examples for multiple alternative graph calculation modes to illustrate it. In the push mode, the computing node needs to obtain the calculation data of the second computing object from other computing nodes, and then update the calculation data of the first computing object based on the calculation data of the second computing object. In any round of iteration, if the calculation data of the second computing object has not been updated compared with the previous round of iteration, it is not necessary to update the calculation data of the first computing object based on the calculation data of the second computing object. Therefore, when calculating the computational cost of the push mode in an iterative process, the first total number can be the total number of computing objects whose calculation data is updated in the iterative process, and the first total number of pairs is the sum of the total number of computing objects actively associated with all the computing objects whose calculation data is updated. In the pull mode, the computing node needs to obtain the calculation data of the first computing object from the computing node, and update the calculation data of the second computing object according to the calculation method indicated by the graph calculation. When calculating the computational cost of the pull mode, the computing node may determine the total number of all computational objects indicated by the graph information as the first total number. Alternatively, the total number of computational objects whose data has been updated among all computational objects may be determined as the first total number, or the total number of computational objects whose data has not been updated among all computational objects may be determined as the first total number. The first total number is the sum of the total number of computational objects actively associated with each computational object among the computational objects used to calculate the first total number.

[0142] It should be noted that the target graph computing mode used in the first round of iteration of graph computing may be the default graph computing mode of the graph computing system, or may be a graph computing mode specified by the user, and the embodiments of the present application do not specifically limit it.

[0143] Step 3062: Any computing node performs graph calculation based on the first computing object and the second computing object according to the target graph calculation mode.

[0144] The implementation methods of executing graph calculations according to different alternative graph calculation modes are different. The embodiments of the present application take executing graph calculations according to the push mode and the pull mode as examples to illustrate the implementation process of step 3062.

[0145] When the target graph computing mode is push mode, such as Fig.11 As shown, any computing node performs graph computing based on the first computing object and the second computing object according to the target graph computing mode, including:

[0146] Step 3062a1: Any computing node obtains computing data of a second computing object from any other computing node, where the second computing object is a second computing object that affects the first computing object.

[0147] In the push mode, the computing node needs to obtain the computing data of the second computing object from other computing nodes, and then update the computing data of the first computing object based on the computing data of the second computing object. The second computing object is the second computing object that affects the first computing object, which means that the second computing object is the computing object represented by the vertex pointed to by the edge representing the vertex of the first computing object in the graph.

[0148] In one implementation, when any computing node needs to obtain the computing data of multiple second computing objects from any other computing node, the implementation process of the computing node obtaining the computing data of the second computing object includes: the computing node reads the computing data of multiple second computing objects in any other computing node in sequence according to the order of the storage addresses of the computing data in the computing node. That is, the computing node can read the computing data of the multiple second computing objects in sequence in the computing node according to the order of the storage addresses of the computing data. For example, when the computing data of computing object 1 is stored in the storage space indicated by the storage address 1-10 of computing node 2, the computing data of computing object 2 is stored in the storage space indicated by the storage address 11-20, and the computing data of computing object 3 is stored in the storage space indicated by the storage address 21-30. If the second computing objects are computing object 1 and computing object 2, the computing data of computing object 1 and the computing data of computing object 2 can be read in sequence in the storage space indicated by the storage address 1-20 according to the order of the storage address from small to large. Alternatively, if the second computing object is computing object 1 and computing object 3, the computing data of computing object 1 can be read in the storage space indicated by storage addresses 1-10 in sequence, and then the computing data of computing object 3 can be read in the storage space indicated by storage addresses 21-30 in sequence.

[0149] By reading the computational data of multiple second computational objects in this manner, remote sequential access to the computational data of the second computational object in any other computational node can be achieved. Compared with remote random access, this can effectively shorten the reading time of the computational data of the second computational object and help shorten the execution time of graph computation.

[0150] Optionally, in any round of iteration, if the calculation data of the second calculation object has not been updated compared to the previous round of iteration, it is not necessary to update the calculation data of the first calculation object based on the calculation data of the second calculation object. Therefore, the calculation data to be obtained in step 3062a1 may be the calculation data of the second calculation object whose calculation data has been updated, and it is not necessary to obtain the calculation data of the second calculation object whose calculation data has not been updated, which can further shorten the reading time of the calculation data of the second calculation object and avoid the waste of resources caused by performing calculations based on the calculation data that has not been updated.

[0151] Step 3062a2: any computing node calculates first computing data of the first computing object based on the computing data of the second computing object, and uses the first computing data to update the computing data of the first computing object.

[0152] After the computing node obtains the computing data of the second computing object, it can calculate the first computing data of the first computing object based on the computing data of the second computing object according to the algorithm indicated by the graph computing, and then use the first computing data to update the computing data of the first computing object. Wherein, when the algorithm indicated by the graph computing indicates that the first computing data of the first computing object needs to be calculated based on the computing data of the first computing object or another computing object, it is also necessary to obtain the computing data of the corresponding computing object, and then calculate the first computing data of the first computing object based on the computing data of the second computing object and the computing data of the corresponding computing object. In addition, when reading the computing data stored locally in the computing node, the computing data of the corresponding computing object can also be read in the computing node in sequence according to the order of the storage addresses of the computing data.

[0153] It should be noted that, in addition to the calculation data, the graph information may also include other information. If other information is updated during the graph calculation process, the graph calculation process also includes updating other information of the corresponding calculation object based on the other information updated during the graph calculation process. For example, the graph information also includes graph state information of the calculation object, and the graph state information indicates whether the calculation data of the calculation object has been updated. At this time, any computing node performs graph calculation based on the first calculation object and the second calculation object, and also includes: updating the graph state information of the calculation object whose calculation data is updated by the graph calculation result. Among them, please refer to the implementation method of updating the calculation data for the implementation method of updating other information, which will not be repeated here.

[0154] Fig.12 Schematic diagram of a process of executing graph calculation in a push mode provided by an embodiment of the present application. Fig.12 As shown in the figure, the graph computation is performed by computing nodes 1 and 2. Computing node 1 is responsible for the computation of vertices 1, 2, and 3, while computing node 2 is responsible for the computation of vertices 4, 5, and 6. Fig.12 It illustrates the vertices involved in the graph calculation (as shown in "Topology / Vertex"), the vertices pointed to by the outgoing edges of the vertices (as shown in "Topology / Outgoing Edge"), the state of the vertices in the current iteration (as shown in "State / curr") and the calculated data (as shown in "Data / curr"), and the state of the vertices in the next iteration (as shown in "State / next") and the calculated data (as shown in "Data / next"). Among them, 0 in the "State / curr" and "State / next" rows indicates that the data has not been updated, and 1 indicates that the data has been updated. "Topology / Vertex" indicates the vertex. The arrow from "Topology / Vertex" to "Topology / Outgoing Edge" is used to indicate that the vertex pointed to by the outgoing edge of the vertex at the front end of the arrow is the vertex at the end of the arrow. The arrow from "Topology / Outgoing Edge" to "Data / curr" is used to indicate that the calculated data of the vertex at the front end of the arrow is the data at the end of the arrow. The arrow from "Data / curr" to "Data / next" is used to indicate the calculated data updated by the calculated data at the front end of the arrow, and the position of the calculated data in "Data / next" is used to indicate the vertex to which the calculated data belongs. The arrow from "data / next" to "status / next" is used to indicate the status of the updated vertex due to the update of the calculation data at the front of the arrow. The vertices in the solid circle represent the relevant data of the vertices that the current calculation node is responsible for calculating (also called the main vertex), and the vertices in the dotted circle represent the relevant data of the vertices that the current calculation node is not responsible for calculating (also called the proxy vertex). Fig.12 It also illustrates the access method used to access these data. "SEQ|R|G" means reading data in the global memory using sequential access, "SEQ|R|L" means reading data in the local memory using sequential access, "RAND|R|G" means reading data in the global memory using random access, and "RAND|R|L" means reading data in the local memory using random access.

[0155] In computing node 1, assuming that computing node 1 currently traverses to vertex 3 with a state of 1, and the graph information subset received by computing node 1 indicates that the outgoing edge of vertex 3 points to vertex 2, the computing node obtains the computing data D3 of vertex 3, and obtains the first computing data of vertex 2 according to the computing data D3 and the computing method indicated by the graph computing, and uses the first computing data of vertex 2 to update the computing data of vertex 2 stored in computing node 1, and at the same time updates the state of vertex 2 to 1.

[0156] In computing node 2, assuming that computing node 2 currently traverses to vertex 3 whose state is 1, and the graph information subset received by computing node 2 indicates that the outgoing edges of vertex 3 point to vertex 5 and vertex 6, the computing node obtains the computing data D3 of vertex 3, and according to the computing data D3 and the calculation method indicated by the graph calculation, obtains the first computing data of vertex 5 and the first computing data of vertex 6 respectively, and uses the first computing data of vertex 5 to update the computing data of vertex 5 stored in the computing node 2, and updates the state of vertex 5 to 1 at the same time, and uses the first computing data of vertex 6 to update the computing data of vertex 6 stored in the computing node 2, and updates the state of vertex 6 to 1 at the same time.

[0157] When the target graph calculation mode is pull mode, such as Fig.13 As shown, any computing node performs graph computing based on the first computing object and the second computing object according to the target graph computing mode, including:

[0158] Step 3062b1, any computing node calculates second computing data of a second computing object based on the computing data of the first computing object, and provides the second computing data to other computing nodes where the second computing object is located. The second computing object is the second computing object affected by the first computing object.

[0159] In the pull mode, after the computing node determines the second computing object associated with the first computing object and the association relationship between the first computing object and the second computing object, it can calculate the second computing data of the second computing object according to the computing data of the first computing object and the association relationship between the first computing object and the second computing object, and then provide the second computing data to other computing nodes where the second computing object is located, so that the other computing nodes update the computing data of the second computing object based on the second computing data. Wherein, when the algorithm indicated by the graph computing indicates that the second computing data of the second computing object needs to be calculated based on the computing data of the second computing object or other computing objects, it is also necessary to obtain the computing data of the corresponding computing object, and then calculate the second computing data of the second computing object based on the computing data of the first computing object and the computing data of the corresponding computing object. The second computing object is the second computing object affected by the first computing object, which means that the first computing object is the computing object represented by the vertex pointed to by the edge of the vertex representing the second computing object in the graph.

[0160] Step 3062b2: The other computing nodes where the second computing object is located update the computing data of the second computing object based on the second computing data.

[0161] After the other computing nodes where the second computing object is located obtain the second computing data, the computing data of the second computing object can be updated using the second computing data. In one implementation, when the first computing object affects multiple second computing objects indicated by the graph information subset received by the same other computing node, the other computing nodes where the second computing object is located update the computing data of the second computing object based on the second computing data, including: the other computing nodes where the second computing object is located update the computing data of the multiple second computing objects in sequence in the other computing nodes based on the second computing data of the multiple second computing objects, according to the order of the storage addresses of the computing data. That is, the other computing nodes can sequentially write the second computing data of the multiple second computing objects in the other computing nodes based on the second computing data, according to the order of the storage addresses of the original computing data of the second computing objects. For example, when the storage space indicated by the storage addresses 1-10 of computing node 2 stores the computing data of computing object 1, the storage space indicated by the storage addresses 11-20 stores the computing data of computing object 2, and the storage space indicated by the storage addresses 21-30 stores the computing data of computing object 3. If the second calculation object is calculation object 1 and calculation object 2, the second calculation data of calculation object 1 and the second calculation data of calculation object 2 can be written into the storage space indicated by storage addresses 1-20 in order of increasing storage addresses. Alternatively, if the second calculation object is calculation object 1 and calculation object 3, the second calculation data of calculation object 1 can be written into the storage space indicated by storage addresses 1-10 in order of increasing storage addresses, and then the second calculation data of calculation object 3 can be written into the storage space indicated by storage addresses 21-30 in order of increasing storage addresses.

[0162] By writing the second computing data of multiple second computing objects in this way, remote sequential access to the second computing data of the second computing object in any other computing node can be achieved. Compared with remote random access, the writing time of the computing data of the second computing object can be effectively shortened, which helps to shorten the execution time of graph calculations.

[0163] It should be noted that, in addition to the calculation data, the graph information may also include other information. If other information is updated during the graph calculation process, the graph calculation process also includes updating other information of the corresponding calculation object based on the other information updated during the graph calculation process. For example, the graph information also includes graph state information of the calculation object, and the graph state information indicates whether the calculation data of the calculation object has been updated. At this time, any computing node performs graph calculation based on the first calculation object and the second calculation object, and also includes: updating the graph state information of the calculation object whose calculation data is updated by the graph calculation result. Among them, please refer to the implementation method of updating the calculation data for the implementation method of updating other information, which will not be repeated here.

[0164] Fig.14 Schematic diagram of a process of executing graph calculation in a pull mode provided by an embodiment of the present application. Fig.14 As shown in the figure, the graph computation is performed by computing nodes 1 and 2. Computing node 1 is responsible for the computation of vertices 1, 2, and 3, while computing node 2 is responsible for the computation of vertices 4, 5, and 6. Fig.14 It illustrates the vertices involved in the graph calculation (as shown in "Topology / Vertex"), the vertices pointing to the current vertex through the incoming edge (as shown in "Topology / Incoming Edge"), the state of the vertex in the current iteration (as shown in "State / curr") and the calculated data (as shown in "Data / curr"), and the state of the vertex in the next iteration (as shown in "State / next") and the calculated data (as shown in "Data / next"). Among them, 0 in the "State / curr" and "State / next" rows indicates that the data has not been updated, and 1 indicates that the data has been updated. "Topology / Vertex" indicates the vertex. The arrow from "Topology / Vertex" to "Topology / Incoming Edge" is used to indicate that the vertex pointed to by the outgoing edge of the vertex at the front of the arrow is the vertex at the end of the arrow. The arrow from "Topology / Incoming Edge" to "Data / next" is used to indicate that the calculated data of the vertex at the front of the arrow in the next iteration is the data at the end of the arrow. The arrow from "Data / curr" to "Data / next" is used to indicate the calculated data updated by the calculated data at the front of the arrow, and the position of the calculated data in "Data / next" is used to indicate the vertex to which the calculated data belongs. The arrow from "status / curr" to "data / curr" is used to indicate that the state of the updated vertex is caused by the update of the calculation data at the front end of the arrow. The arrow from "status / curr" to "data / curr" is used to indicate that when the state indication data at the front end of the arrow is updated, the updated data is the data at the end of the arrow. The arrow from "status / curr" to "status / next" is used to indicate that the state at the end of the arrow is updated due to the update of the state indication data at the front end of the arrow. The vertices in the solid circle represent the relevant data of the vertices (also called main vertices) for which the current computing node is responsible for the calculation task, and the vertices in the dotted circle represent the relevant data of the vertices (also called proxy vertices) for which the current computing node is not responsible for the calculation task. Fig.14 It also illustrates the access method used to access these data. "SEQ|W|G" means writing data in the global memory using sequential access, "SEQ|R|L" means reading data in the local memory using sequential access, and "RAND|R|L" means reading data in the local memory using random access.

[0165] In computing node 1, assuming that computing node 1 currently traverses to vertex 3 with a state of 1, and the graph information subset received by computing node 1 indicates that vertex 3 is the vertex pointed to by the outgoing edges of vertex 1 and vertex 2, the computing node obtains the computing data D1 of vertex 1 and the computing data D2 of vertex 2, and obtains the second computing data of vertex 3 according to the computing data D1 and the computing data D2 and the computing method indicated by the graph computing, and uses the second computing data of vertex 3 to update the computing data of vertex 3 stored in computing node 1, and updates the state of vertex 3 to 1 at the same time.

[0166] In computing node 2, assuming that computing node 2 currently traverses to vertex 3 with a state of 1, and the graph information subset received by computing node 2 indicates that vertex 3 is the vertex pointed to by the outgoing edges of vertex 4 and vertex 5, the computing node obtains the calculation data D4 of vertex 4 and the calculation data D5 of vertex 5, obtains the second calculation data of vertex 3 according to the calculation method indicated by the graph calculation based on the calculation data D4 and the calculation data D5, and provides the second calculation data of vertex 3 to computing node 1. After computing node 1 receives the calculation data of vertex 3, it updates the calculation data of vertex 3 based on the second calculation data of vertex 3 in computing node 1, and updates the state of vertex 3 to 1 at the same time.

[0167] In summary, in the graph computing method provided in the embodiment of the present application, after receiving the graph information provided by the client, the management node divides the graph information into multiple graph information subsets, and distributes the multiple graph information subsets to multiple computing nodes. After each of the multiple computing nodes receives the graph information subset, it respectively determines the first computing object indicated by the graph information subset received by each of the multiple computing nodes, and the second computing object associated with the first computing object, and then performs graph computing based on the first computing object and all the second computing objects. Among them, in the process of executing graph computing, any computing node accesses the computing data of the second computing object in any other computing node in sequence according to the order of the storage address of the computing data in any other computing node. The second computing object is the computing object indicated by the graph information subset received by other computing nodes. Other computing nodes are computing nodes other than the computing node among the computing nodes that receive the graph information subset.

[0168] In this way, when a computing node accesses the computing data of a second computing object in other computing nodes, it needs to access the computing data of all second computing objects in the other computing nodes in sequence according to the order of the storage addresses of the computing data in the other computing nodes, thus realizing remote sequential access to the computing data of all second computing objects in the other computing nodes, and no longer using remote random access to access the data in the other computing nodes. Since the speed of remote sequential access is fast, the latency of remote sequential access is significantly less than the latency of remote random access, which effectively shortens the time it takes for computing nodes to access data in other computing nodes, and improves the performance benefits of the graph computing system in terms of time.

[0169] It should be noted that the sequence of steps of the graph calculation method provided in the embodiment of the present application can be adjusted appropriately, and the steps can be increased or decreased accordingly according to the situation. Any technician familiar with the technical field can easily think of a method of variation within the technical scope disclosed in the present application, which should be included in the protection scope of the present application, so it will not be repeated.

[0170] The above describes the graph computing method of the embodiment of the present application. Corresponding to the above method, the embodiment of the present application also provides a graph computing system. The structural diagram of the graph computing system is shown in FIG. Figure 2 It should be understood that the system may include more additional nodes than the structure shown or omit some of the nodes shown therein, and the present application embodiment does not limit this. Figure 2 As shown, the graph computing system 02 includes: a management node 021 and a computing node 022; the management node 021 is used to divide the graph information into multiple graph information subsets, and distribute the multiple graph information subsets to multiple computing nodes 022, the graph information indicates the computing objects and required computing data of the graph computing; any computing node 022 is used to determine the first computing object indicated by the received graph information subset, and the second computing object associated with the first computing object, the second computing object being the computing object indicated by the graph information subset received by other computing nodes 022; any computing node 022 is also used to perform graph computing based on the first computing object and the second computing object, wherein, in the process of executing the graph computing, any computing node 022 accesses the computing data of the second computing object in any other computing node 022 in sequence according to the order of the storage addresses of the computing data in any other computing node 022.

[0171] Optionally, each computing node 022 is also used to store the graph information subset received by each computing node 022 , and the computing data in the same graph information subset have consecutive storage addresses in the storage medium of the corresponding computing node 022 .

[0172] Optionally, any computing node 022 is specifically used to: obtain a target graph computing mode used to execute graph computing; and execute graph computing based on the first computing object and the second computing object according to the target graph computing mode.

[0173] Optionally, the target graph calculation mode is a push mode, and any computing node 022 is specifically used to: obtain the calculation data of a second computing object from any other computing node 022, where the second computing object is a second computing object that affects the first computing object; based on the calculation data of the second computing object, calculate the first calculation data of the first computing object, and use the first calculation data to update the calculation data of the first computing object.

[0174] Optionally, when any computing node 022 needs to obtain computing data of multiple second computing objects from any other computing node 022, any computing node 022 is specifically used to: in any other computing node 022, read the computing data of multiple second computing objects in any other computing node 022 in sequence according to the order of the storage addresses of the computing data.

[0175] Optionally, the target graph calculation mode is a pull mode; any computing node 022 is specifically used to calculate the second calculation data of the second calculation object based on the calculation data of the first calculation object, and provide the second calculation data to other computing nodes 022 where the second calculation object is located, and the second calculation object is a second calculation object affected by the first calculation object; the other computing nodes 022 where the second calculation object is located are specifically used to update the calculation data of the second calculation object based on the second calculation data.

[0176] Optionally, when a first computing object affects multiple second computing objects indicated by the same other computing node 022 received by the graph information subset, the other computing node 022 where the second computing objects are located is specifically used to: based on the second computing data, in the order of the storage addresses of the computing data, in the other computing nodes 022, sequentially update the computing data of the multiple second computing objects.

[0177] Optionally, the graph computation includes multiple rounds of iterations, and a target graph computation mode of any iteration is determined based on a computational cost of an iteration before any iteration.

[0178] Optionally, the computation cost of any iterative process is positively correlated with a first total number of computation objects updated in any iterative process and a first total number of logarithms of association relationships of each updated computation object.

[0179] Optionally, the graph information also includes graph state information of the computing object, where the graph state information indicates whether the computing data of the computing object is updated. Any computing node 022 is also used to update the graph state information of the computing object whose computing data is updated by the graph computing result.

[0180] Optionally, the graph information also includes graph structure information, which indicates the relationship between different computing objects. Any computing node 022 is specifically used to determine the second computing object associated with the first computing object based on the graph structure information in the received graph information subset.

[0181] Optionally, the management node 021 is specifically used to: obtain the second total logarithm of the association relationship between every two computing objects among all the computing objects indicated by the graph information; based on the second total logarithm, divide all the computing objects indicated by the graph information into multiple object groups; and according to the division results of the multiple object groups, divide the computing data of the computing objects in the graph information belonging to the same object group into a graph information subset to obtain multiple graph information subsets.

[0182] Optionally, the management node 021 is specifically used to: obtain a second total number of all computing objects indicated by the graph information; and divide all computing objects indicated by the graph information into multiple object groups based on the second total number and the second total number of pairs.

[0183] Optionally, the difference between the total number of targets of every two object groups in the multiple object groups is less than a specified value, and the total number of targets of any object group is the sum of the third total number and the third total logarithm of any object group, the third total number is the total number of calculated objects in any object group, and the third total logarithm is the total logarithm of the association relationship between every two calculated objects in any object group.

[0184] Optionally, the graph information is represented by a graph, and the graph includes multiple vertices connected by edges, the vertices are used to indicate computing objects, and the edges between the vertices indicate the association between the computing objects indicated by the vertices. The management node 021 is specifically used to: according to the division results of the multiple object groups, based on the relationship represented by the graph, obtain multiple sub-architecture graphs corresponding to the multiple object groups, the sub-architecture graphs indicate the association relationship between the computing objects in the corresponding object groups; based on the computing data indicated by the graph, add the computing data of the computing objects involved in the sub-architecture graph to the sub-architecture graph to obtain a graph information subset.

[0185] Optionally, the management node 021 is further specifically used to: based on the state of the computing object indicated by the graph, add graph state information of the computing object involved in the sub-architecture graph to the sub-architecture graph, where the graph state information is used to indicate the state of the computing object.

[0186] Optionally, the association of one computing object with another computing object includes one or more of the following situations: one computing object actively associates with another computing object, and the other computing object actively associates with one computing object.

[0187] In summary, in the graph computing system provided in the embodiment of the present application, after receiving the graph information provided by the client, the management node divides the graph information into multiple graph information subsets, and distributes the multiple graph information subsets to multiple computing nodes. After each of the multiple computing nodes receives the graph information subset, it respectively determines the first computing object indicated by the received graph information subset, and the second computing object associated with the first computing object, and then performs graph computing based on the first computing object and all second computing objects. Among them, in the process of executing graph computing, any computing node accesses the computing data of the second computing object in any other computing node in sequence according to the order of the storage address of the computing data in any other computing node. The second computing object is the computing object indicated by the graph information subset received by other computing nodes. Other computing nodes are computing nodes among the computing nodes that receive the graph information subset except the any computing node.

[0188] In this way, when a computing node accesses the computing data of a second computing object in other computing nodes, it needs to access the computing data of all second computing objects in the other computing nodes in sequence according to the order of the storage addresses of the computing data in the other computing nodes, thus realizing remote sequential access to the computing data of all second computing objects in the other computing nodes, and no longer using remote random access to access the data in the other computing nodes. Since the speed of remote sequential access is fast, the latency of remote sequential access is significantly less than the latency of remote random access, which effectively shortens the time it takes for computing nodes to access data in other computing nodes, and improves the performance benefits of the graph computing system in terms of time.

[0189] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of each node described above can refer to the corresponding content in the aforementioned method embodiment, and will not be repeated here.

[0190] The embodiment of the present application provides a computing device. The computing device is used to implement some or all of the functions in the graph computing method provided in the embodiment of the present application. For example, the function of managing nodes or computing nodes in the graph computing method is executed. Fig.15 Schematic diagram of a computing device provided in an embodiment of the present application. Fig.15 As shown, the computing device 1500 includes a processor 1501, a memory 1502, a communication interface 1503 and a bus 1504. The processor 1501, the memory 1502 and the communication interface 1503 are connected to each other through the bus 1504.

[0191] Processor 1501 may include a general-purpose processor and / or a dedicated hardware chip. A general-purpose processor may include: a central processing unit (CPU), a microprocessor or a graphics processing unit (GPU). The CPU is, for example, a single-core processor (single-CPU) or a multi-core processor (multi-CPU). A dedicated hardware chip is a hardware module for high-performance processing. A dedicated hardware chip includes at least one of a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or a network processor (NP). Processor 1501 may also be an integrated circuit chip having signal processing capabilities. In the implementation process, some or all of the functions of the graph calculation method of the present application may be completed by hardware integrated logic circuits in processor 1501 or instructions in software form.

[0192] The memory 1502 is used to store computer programs, and the computer programs include an operating system 1502a and executable codes (i.e., program instructions) 1502b. The memory 1502 is, for example, a read-only memory or other types of static storage devices that can store static information and instructions, or a random access memory or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory, a read-only optical disc or other optical disc storage, an optical disc storage (including a compressed optical disc, a laser disc, an optical disc, a digital versatile disc, a blue-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired executable code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. For example, the memory 1502 is used to store an outbound port queue, etc. The memory 1502 is, for example, independent and connected to the processor 1501 via a bus 1504. Or the memory 1502 and the processor 1501 are integrated together. The memory 1502 may store executable code. When the executable code stored in the memory 1502 is executed by the processor 1501, the processor 1501 is used to perform part or all of the functions of the graph computing method provided in the embodiment of the present application. For the implementation of the process executed by the processor 1501, please refer to the relevant description in the aforementioned embodiment. The memory 1502 may also include software modules and data required for other running processes such as an operating system.

[0193] The communication interface 1503 uses a transceiver module such as, but not limited to, a transceiver to achieve communication with other devices or communication networks. For example, the communication interface 1503 can be any one or any combination of the following devices: a network interface (such as an Ethernet interface), a wireless network card, and other devices with network access functions.

[0194] The bus 1504 is any type of communication bus for interconnecting the internal devices of the computing device (e.g., the memory 1502, the processor 1501, and the communication interface 1503). For example, a system bus. The embodiment of the present application takes the interconnection of the above-mentioned devices inside the computing device through the bus 1504 as an example. Optionally, the above-mentioned devices inside the computing device 1500 can also be connected to each other in communication with each other using other connection methods other than the bus 1504. For example, the above-mentioned devices inside the computing device 1500 are interconnected through an internal logical interface.

[0195] It should be noted that the above-mentioned multiple devices can be respectively arranged on independent chips, or at least partially or completely arranged on the same chip. Whether to independently arrange each device on different chips or to integrate and arrange it on one or more chips often depends on the needs of product design. The embodiments of the present application do not limit the specific implementation form of the above-mentioned devices. The descriptions of the processes corresponding to the above-mentioned figures have different focuses. For the parts not described in detail in a certain process, please refer to the relevant descriptions of other processes.

[0196] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product providing a program development platform includes one or more computer instructions, and when these computer program instructions are loaded and executed on a computing device, all or part of the functions of the graph computing method provided in the embodiments of the present application are implemented in whole or in part.

[0197] Furthermore, computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium stores computer program instructions that provide a program development platform.

[0198] The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.

[0199] Optionally, the structure of at least one computing device included in the computing device cluster can be found in Fig.15 The computing device 1500 is shown. The memory 1502 in one or more computing devices 1500 in the computing device cluster may store the same instructions for executing the graph computing method.

[0200] In some possible implementations, the memory 1502 of one or more computing devices 1500 in the computing device cluster may also store partial instructions for executing the graph computing method. In other words, the combination of one or more computing devices 1500 may jointly execute instructions for executing the graph computing method.

[0201] It should be noted that the memory 1502 in different computing devices 1500 in the computing device cluster can store different instructions, which are respectively used to execute part of the functions of the graph computing system. That is, the instructions stored in the memory 1502 in different computing devices 1500 can implement the functions of one or more modules in the above modules.

[0202] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Fig.16 A possible implementation is shown. Fig.16 As shown, two computing devices 1600A and 1600B are connected via a network. Specifically, the network is connected via a communication interface in each computing device. In this type of possible implementation, computing devices 1600A and 1600B include a bus 1602, a processor 1604, a memory 1606, and a communication interface 1608. For example, computing device 1600A can perform the function of a management node in the embodiment of the present application, and computing device 1600B can perform the function of a computing node in the embodiment of the present application.

[0203] It should be understood that Fig.16 The function of the computing device 1600A shown in the figure can also be completed by multiple computing devices 1600. Similarly, the function of the computing device 1600B can also be completed by multiple computing devices 1600. And the deployment mode of the modules used to implement the graph computing method in the computing device can also be adjusted according to the application requirements.

[0204] An embodiment of the present application also provides a computer-readable storage medium, which is a non-volatile computer-readable storage medium. The computer-readable storage medium includes program instructions. When the program instructions are executed on a computing device, the computing device implements a graph computing method as provided in an embodiment of the present application.

[0205] The embodiment of the present application also provides a computer program product including instructions. When the computer program product is executed on a computer, the computer implements the graph calculation method provided by the embodiment of the present application.

[0206] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0207] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions. For example, the image information and executable code involved in this application are all obtained with full authorization.

[0208] In the embodiments of the present application, the terms "first", "second" and "third" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. The term "at least one" means one or more, and the term "plurality" means a plurality, unless otherwise expressly defined.

[0209] The term "and / or" in this application is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0210] It should be understood that the terms used in the description of the various examples herein are only for describing specific examples and are not intended to be limiting. As used in the description of the various examples and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0211] It should also be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0212] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the concept and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A graph computing method, characterized in that: The method is applied to a graph computing system, the graph computing system comprising: a management node and a computing node, and the method comprises: The management node divides the graph information into a plurality of graph information subsets, and distributes the plurality of graph information subsets to a plurality of computing nodes, wherein the graph information indicates a computing object and required computing data of the graph computing; Any computing node determines a first computing object indicated by a received graph information subset, and a second computing object associated with the first computing object, where the second computing object is a computing object indicated by a graph information subset received by other computing nodes; Any one of the computing nodes executes the graph calculation based on the first computing object and the second computing object, wherein, during the process of executing the graph calculation, any one of the computing nodes accesses the computing data of the second computing object in any one of the other computing nodes in sequence according to the order of storage addresses of the computing data in any one of the other computing nodes.

2. The method according to claim 1, characterized in that Before any computing node performs the graph calculation based on the first computing object and the second computing object, the method further includes: Each computing node stores a graph information subset received by itself, and the computing data in the same graph information subset has consecutive storage addresses in the storage medium of the corresponding computing node.

3. The method according to claim 1 or 2, characterized in that The any one computing node performs the graph calculation based on the first computing object and the second computing object, including: Any one of the computing nodes obtains a target graph computing mode used to execute the graph computing; Any one of the computing nodes performs the graph calculation according to the target graph calculation mode and based on the first computing object and the second computing object.

4. The method according to claim 3, characterized in that The target graph computing mode is a push mode, and any computing node performs the graph computing based on the first computing object and the second computing object according to the target graph computing mode, including: The any one computing node obtains computing data of a second computing object from the any other computing node, where the second computing object is a second computing object that affects the first computing object; The any one computing node calculates first computing data of the first computing object based on the computing data of the second computing object, and uses the first computing data to update the computing data of the first computing object.

5. The method according to claim 4, characterized in that When any one of the computing nodes needs to obtain computing data of a plurality of second computing objects from any one of the other computing nodes, the any one of the computing nodes obtaining the computing data of the second computing objects includes: The any one computing node reads the computing data of the plurality of second computing objects in sequence from the any one other computing node in the order of storage addresses of the computing data.

6. The method according to claim 3, characterized in that The target graph calculation mode is a pull mode, and any one of the computing nodes performs the graph calculation based on the first computing object and the second computing object according to the target graph calculation mode, including: The any one computing node calculates second computing data of a second computing object based on the computing data of the first computing object, and provides the second computing data to other computing nodes where the second computing object is located, where the second computing object is a second computing object affected by the first computing object; The other computing nodes where the second computing object is located update the computing data of the second computing object based on the second computing data.

7. The method according to claim 6, characterized in that When the first computing object affects multiple second computing objects indicated by the graph information subset received by the same other computing node, the other computing nodes where the second computing object is located update the computing data of the second computing object based on the second computing data, including: The other computing nodes where the second computing objects are located sequentially update the computing data of the plurality of second computing objects in the other computing nodes based on the second computing data and in the order of storage addresses of the computing data.

8. The method according to claim 3, characterized in that The graph calculation includes multiple rounds of iterative processes, and the target graph calculation mode of any iterative process is determined based on the calculation cost of the iterative process before the iterative process.

9. The method according to claim 8, characterized in that The computation cost of any iterative process is positively correlated with a first total number of computation objects updated in the iterative process and a first total number of association relationships of each updated computation object.

10. The method according to any one of claims 1 to 9, characterized in that: The graph information further includes graph state information of the computing object, where the graph state information indicates whether computing data of the computing object is updated, and any computing node performs the graph computing based on the first computing object and the second computing object, further including: Updates the graph state information of the computation object whose computation data is updated by the graph computation result.

11. The method according to any one of claims 1 to 10, characterized in that: The graph information further includes graph structure information, where the graph structure information indicates the relationship between different computing objects. Any computing node determines the second computing object associated with the first computing object, including: Any one of the computing nodes determines the second computing object associated with the first computing object based on the graph structure information in the received graph information subset.

12. The method according to any one of claims 1 to 11, characterized in that: The management node divides the graph information into multiple graph information subsets, including: The management node obtains a second total number of association relationships between every two computing objects among all computing objects indicated by the graph information; The management node divides all computing objects indicated by the graph information into a plurality of object groups based on the second total number of pairs; The management node divides the computational data of computational objects in the same object group in the graph information into a graph information subset according to the division results of the multiple object groups, to obtain the multiple graph information subsets.

13. The method according to claim 12, characterized in that The management node divides all computing objects indicated by the graph information into a plurality of object groups based on the second total number of pairs, including: The management node obtains a second total number of all computing objects indicated by the graph information; The management node divides all computing objects indicated by the graph information into a plurality of object groups based on the second total number and the second total number of pairs.

14. The method according to claim 13, characterized in that The difference between the total number of targets of every two object groups in the multiple object groups is less than a specified value, and the total number of targets of any object group is the sum of the third total number and the third total logarithm of any object group, the third total number is the total number of calculated objects in any object group, and the third total logarithm is the total logarithm of the association relationship between every two calculated objects in any object group.

15. The method according to claim 12, characterized in that The graph information is represented by a graph, the graph includes a plurality of vertices connected by edges, the vertices are used to indicate the computing objects, the edges between the vertices indicate the association between the computing objects indicated by the vertices, and the management node divides the computing data belonging to the computing objects in the same object group in the graph information into a graph information subset according to the division result of the plurality of object groups, and obtains the plurality of graph information subsets, including: The management node obtains, according to the division results of the plurality of object groups and based on the relationships represented by the graphs, a plurality of sub-architecture graphs corresponding to the plurality of object groups, wherein the sub-architecture graphs represent association relationships between computing objects in the corresponding object groups; The management node adds the computation data of the computation objects involved in the sub-architecture graph to the sub-architecture graph based on the computation data indicated by the graph, so as to obtain the graph information subset.

16. The method according to claim 15, characterized in that The management node divides the computation data of computation objects in the same object group in the graph information into a graph information subset according to the division results of the multiple object groups to obtain the multiple graph information subsets, further comprising: The management node adds graph state information of the computing objects involved in the sub-architecture graph to the sub-architecture graph based on the state of the computing objects indicated by the graph, where the graph state information is used to indicate the state of the computing objects.

17. The method according to any one of claims 1 to 16, characterized in that: The association of one computing object with another computing object includes one or more of the following situations: the one computing object actively associates with the other computing object, and the other computing object actively associates with the one computing object.

18. A graph computing system, characterized in that: The graph computing system includes: a management node and a computing node; The management node is used to divide the graph information into multiple graph information subsets, and distribute the multiple graph information subsets to multiple computing nodes, wherein the graph information indicates a computing object and required computing data of the graph computing; Any computing node is used to determine a first computing object indicated by a received graph information subset, and a second computing object associated with the first computing object, where the second computing object is a computing object indicated by a graph information subset received by other computing nodes; Any one of the computing nodes is also used to perform the graph calculation based on the first computing object and the second computing object, wherein, during the process of executing the graph calculation, any one of the computing nodes accesses the computing data of the second computing object in any one of the other computing nodes in sequence according to the order of the storage addresses of the computing data in any one of the other computing nodes.

19. The system of claim 18, wherein: Each computing node is also used to store the graph information subset received by each computing node, and the computing data in the same graph information subset has continuous storage addresses in the storage medium of the corresponding computing node.

20. The system according to claim 18 or 19, characterized in that Any one of the computing nodes is specifically used for: Obtain a target graph calculation mode used to perform the graph calculation; The graph calculation is performed based on the first calculation object and the second calculation object according to the target graph calculation mode.

21. The system of claim 20, wherein: The target graph computing mode is a push mode, and any computing node is specifically used for: acquiring computing data of a second computing object from any other computing node, where the second computing object is a second computing object that affects the first computing object; Based on the calculation data of the second calculation object, first calculation data of the first calculation object is calculated and obtained, and the calculation data of the first calculation object is updated using the first calculation data.

22. The system of claim 21, wherein: When any one of the computing nodes needs to obtain computing data of multiple second computing objects from any one of the other computing nodes, any one of the computing nodes is specifically used to: In any of the other computing nodes, the computing data of the plurality of second computing objects are read in sequence in the order of storage addresses of the computing data.

23. The system of claim 20, wherein: The target graph calculation mode is a pull mode; The any one computing node is specifically used to calculate the second computing data of the second computing object based on the computing data of the first computing object, and provide the second computing data to other computing nodes where the second computing object is located, where the second computing object is a second computing object affected by the first computing object; The other computing nodes where the second computing object is located are specifically used to update the computing data of the second computing object based on the second computing data.

24. The system of claim 23, wherein: When the first computing object affects multiple second computing objects indicated by the graph information subset received by the same other computing node, the other computing nodes where the second computing objects are located are specifically configured to: Based on the second calculation data, the calculation data of the plurality of second calculation objects are updated in sequence in the other calculation nodes in the order of storage addresses of the calculation data.

25. The system of claim 20, wherein: The graph calculation includes multiple rounds of iterative processes, and the target graph calculation mode of any iterative process is determined based on the calculation cost of the iterative process before the iterative process.

26. The system of claim 25, wherein: The computation cost of any iterative process is positively correlated with a first total number of computation objects updated in the iterative process and a first total number of association relationships of each updated computation object.

27. The system according to any one of claims 18 to 26, characterized in that: The graph information further includes graph state information of the computing object, where the graph state information indicates whether computing data of the computing object is updated, and any computing node is further configured to: Updates the graph state information of the computation object whose computation data is updated by the graph computation result.

28. The system according to any one of claims 18 to 27, characterized in that: The graph information also includes graph structure information, where the graph structure information indicates the relationship between different computing objects. Any computing node is specifically used for: Based on the graph structure information in the received graph information subset, determine the second computing object associated with the first computing object.

29. The system according to any one of claims 18 to 28, characterized in that: The management node is specifically used for: Obtaining a second total number of association relationships between every two computing objects among all computing objects indicated by the graph information; Based on the second total number of pairs, dividing all the computing objects indicated by the graph information into a plurality of object groups; According to the division results of the multiple object groups, the calculation data of the calculation objects in the same object group in the graph information are divided into a graph information subset to obtain the multiple graph information subsets.

30. The system of claim 29, wherein: The management node is specifically used for: Obtaining a second total number of all computing objects indicated by the graph information; Based on the second total number and the second total number of pairs, all computing objects indicated by the graph information are divided into a plurality of object groups.

31. The system of claim 30, wherein: The difference between the total number of targets of every two object groups in the multiple object groups is less than a specified value, and the total number of targets of any object group is the sum of the third total number and the third total logarithm of any object group, the third total number is the total number of calculated objects in any object group, and the third total logarithm is the total logarithm of the association relationship between every two calculated objects in any object group.

32. The system of claim 29, wherein: The graph information is represented by a graph, the graph includes a plurality of vertices connected by edges, the vertices are used to indicate the computing objects, the edges between the vertices indicate the association between the computing objects indicated by the vertices, and the management node is specifically used to: According to the division results of the plurality of object groups, based on the relationships represented by the graphs, a plurality of sub-architecture graphs corresponding to the plurality of object groups are obtained, wherein the sub-architecture graphs represent association relationships between computing objects in the corresponding object groups; Based on the calculation data indicated by the graph, the calculation data of the calculation objects involved in the sub-architecture graph are added to the sub-architecture graph to obtain the graph information subset.

33. The system of claim 32, wherein: The management node is also specifically used for: Based on the state of the computing object indicated by the graph, graph state information of the computing object involved in the sub-architecture graph is added to the sub-architecture graph, where the graph state information is used to indicate the state of the computing object.

34. The system according to any one of claims 18 to 33, characterized in that: The association of one computing object with another computing object includes one or more of the following situations: the one computing object actively associates with the other computing object, and the other computing object actively associates with the one computing object.

35. A computing device cluster, characterized in that: It includes at least one computing device, each computing device includes a processor and a memory, and the processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 17.

36. A computer program product comprising instructions, characterized in that When the instructions are executed by a computing device cluster, the computing device cluster executes the method according to any one of claims 1 to 17.

37. A computer-readable storage medium, characterized in that: The method comprises computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster performs the method according to any one of claims 1 to 17.

Citation Information

Patent Citations

  • Large-scale distributed graph calculation end-to-end acceleration method and device

    CN113326125A