A data lineage analysis system and analysis method

Through the cooperation of the computing engine allocator and the metadata service, parallel processing of the graph computing system is realized, which solves the problems of low throughput and large memory resource occupation of data lineage analysis in the existing technology, improves the computing efficiency and realizes real-time analysis. .

CN118467175BActive Publication Date: 2024-09-24BEIJING FENGQING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410910106.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-09-24
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

Existing graph computing systems have low throughput and occupy a large amount of memory resources during data lineage analysis, and cannot effectively handle parallel tasks, resulting in low computing efficiency.

Method used

Allocate data lineage analysis tasks to appropriate computing engines through the computing engine allocator, and use metadata services and memory storage devices for distributed storage and query to achieve parallel processing of computing tasks and avoid the high demand for memory resources in multi-instance deployments. .

Benefits of technology

Without increasing system hardware resources, it significantly improves the computing throughput of data lineage analysis, realizes real-time lineage analysis, and solves the problems of low throughput and excessive memory resource usage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118467175B
    Figure CN118467175B
Patent Text Reader

Abstract

The present invention discloses a data lineage analysis system and analysis method, which relates to the field of data processing technology. The method comprises: when a computing engine distributor receives a data lineage analysis task, the data lineage analysis task is allocated to the computing engine according to computing resource information; the target metadata corresponding to the lineage analysis task is queried through the computing engine and metadata service, and the target metadata is returned to the computing engine; the computing engine obtains the target lineage map data in the memory storage device according to the target metadata, and processes the data lineage analysis task based on the target lineage map data; wherein the memory storage device is used for distributed storage of at least one lineage map data, and the metadata of the lineage map data is synchronized to the metadata service. The system throughput is increased several times, and memory resources are greatly saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing and analysis, and in particular to a data lineage analysis system and analysis method. Background Art

[0002] Data lineage refers to the path that data takes from its source to its final use, including the entire process of its generation, change, transmission, storage, and use. It can help enterprises understand the flow of data, the impact of data changes, and ensure data governance and compliance. When implementing data lineage, graph databases are an ideal choice due to their structure and characteristics. Data lineage models are generally represented by graph databases. Specifically, data lineage is usually represented as data nodes (such as tables and fields) and the relationships between them (such as extraction, transformation, loading processes, and data transmission). The node and edge structure of the graph database is naturally suitable for expressing this relationship model, making the representation of data lineage intuitive and easy to understand.

[0003] In the prior art, data lineage analysis is usually performed based on a graph computing system. However, when performing data lineage analysis, the throughput of existing graph computing systems is generally very low. This is because these graph computing systems can generally only execute graph computing analysis tasks serially. Some graph computing systems also implement multi-instance deployment to support task parallelism, that is, deploy multiple instances on the service node. Each group of "computing engine + memory copy of the full data" represents an instance of the graph computing system and can independently accept a graph computing task. However, this mechanism places a large demand on memory resources.

[0004] Therefore, the current data lineage analysis method has low throughput and occupies a lot of memory resources, which is a technical problem that needs to be solved urgently. Summary of the invention

[0005] The present invention provides a data lineage analysis system and analysis method to improve the system throughput when executing data lineage analysis tasks and save memory resources.

[0006] According to one aspect of the present invention, a data lineage analysis system is provided, comprising: a computing engine distributor, a computing engine, a metadata service and a memory storage device, wherein:

[0007] A computing engine allocator, configured to determine a computing engine according to computing resource information of the data lineage analysis system when receiving a data lineage analysis task, and allocate the data lineage analysis task to the computing engine;

[0008] The computing engine is used to analyze the data lineage analysis task, obtain the to-be-queried information corresponding to the data lineage analysis task, and send the to-be-queried information to the metadata service;

[0009] The metadata service is used to query the target metadata corresponding to the blood relationship analysis task according to the information to be queried, and return the target metadata to the computing engine;

[0010] The computing engine is further used to obtain target blood relationship map data corresponding to the target metadata in the memory storage device according to the target metadata, and process the data blood relationship analysis task based on the target blood relationship map data;

[0011] The memory storage device is used for distributed storage of at least one bloodline map data, and synchronizing metadata of the bloodline map data to the metadata service.

[0012] According to another aspect of the present invention, a data lineage analysis method is provided, which is applied to a data lineage analysis system, wherein the data lineage analysis system includes a computing engine distributor, a computing engine, a metadata service, and a memory storage device, and the method includes:

[0013] When the computing engine allocator receives the data lineage analysis task, it determines the computing engine according to the computing resource information of the data lineage analysis system, and allocates the data lineage analysis task to the computing engine;

[0014] The computing engine analyzes the data lineage analysis task to obtain information to be queried corresponding to the data lineage analysis task, and sends the information to be queried to the metadata service;

[0015] According to the information to be queried, query the target metadata corresponding to the blood relationship analysis task through the metadata service, and return the target metadata to the computing engine;

[0016] According to the target metadata, the target blood relationship map data corresponding to the target metadata in the memory storage device is obtained through the computing engine, and the data blood relationship analysis task is processed based on the target blood relationship map data;

[0017] At least one bloodline map data is distributedly stored through the memory storage device, and metadata of the bloodline map data is synchronized to the metadata service.

[0018] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0019] at least one processor; and

[0020] a memory communicatively connected to the at least one processor; wherein,

[0021] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data lineage analysis method described in any embodiment of the present invention.

[0022] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data lineage analysis method described in any embodiment of the present invention when executed.

[0023] The technical solution of the embodiment of the present invention is to add the bloodline analysis task to the task queue through the task manager; select the data bloodline analysis task from the task queue according to the concurrent number of the computing engine and send it to the computing engine allocator. The computing engine allocator allocates the data bloodline analysis task to the computing engine according to the computing resource information; queries the target metadata corresponding to the bloodline analysis task through the computing engine and the metadata service, and returns the target metadata to the computing engine; the computing engine obtains the target bloodline map data in the memory storage device according to the target metadata, and processes the data bloodline analysis task based on the target bloodline map data. The memory storage device is used for distributed storage of at least one bloodline map data, and synchronizes the metadata of the bloodline map data to the metadata service. It solves the current data bloodline analysis method with low throughput and high memory resource usage, which is a technical problem that urgently needs to be solved, realizes the parallelism of computing tasks, and does not increase memory usage, thereby greatly improving the computing throughput of bloodline analysis without increasing system hardware resources, thereby realizing real-time bloodline analysis.

[0024] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0026] Figure 1 This is a diagram of the architecture of a graph computing system that serially executes graph computing tasks in the prior art;

[0027] Figure 2 This is a diagram of the architecture of a graph computing system for executing graph computing tasks in parallel in the prior art;

[0028] Figure 3A data lineage analysis system architecture diagram provided in Example 1 of the present invention;

[0029] Figure 4 A schematic diagram of concurrently processing multiple computing tasks based on the same memory data provided in the first embodiment of the present invention;

[0030] Figure 5 A flow chart of a data lineage analysis method provided in Embodiment 2 of the present invention;

[0031] Figure 6 A flowchart of another data lineage analysis method provided in Embodiment 2 of the present invention;

[0032] Figure 7 A schematic diagram showing the principle of distributed computing engines sharing the same distributed memory data provided in the second embodiment of the present invention;

[0033] Figure 8 This is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

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

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

[0036] In order to further clarify the technical effects of the present invention, before introducing specific embodiments, the problems existing in the prior art are further explained as follows:

[0037] When existing graph computing systems perform data lineage analysis, the system throughput is generally very low, that is, the number of tasks that the system can handle per unit time is extremely low. This is because these graph computing systems can generally only execute graph computing analysis tasks serially. Figure 1 This is a diagram of the architecture of a graph computing system that serially executes graph computing tasks in the prior art, such as Figure 1 As shown in the figure, the cluster consists of 3 nodes, and both the computing layer and the memory storage layer are distributed. First, the system will load the graph data into the memory storage. Later, when a graph computing task enters the system, the computing layer will try to call all system resources (all CPUs of 3 nodes) for computing, and then accept the next task request after completion. Therefore, this system is a typical serial mode. The reason for the above defects is that almost all graph computing systems are considered to have extremely high complexity at the beginning of design. In theory, each computing task can fully use the system CPU resources at runtime, and there will not be too many additional resources left for other tasks to run in parallel. Therefore, in its architecture, the computing layer and the memory storage layer are tightly coupled, and can only serve one task at a time.

[0038] In the prior art, some graph computing systems have implemented multi-instance deployment to support task parallelism. Figure 2 FIG. 1 is a diagram of the architecture of a graph computing system for executing graph computing tasks in parallel in the prior art. Figure 2 As shown in the figure, each set of "computing engine + memory copy of full data" represents an instance of the graph computing system and can independently accept a graph computing task. Figure 2 A total of 12 instances are deployed on the two nodes, which can theoretically support 12 concurrent tasks. This mechanism seems to solve the defect that the graph computing system cannot support concurrent tasks, but in fact it creates a bigger defect that is more difficult to solve in practice: the demand for memory resources is 12 times that of a single instance.

[0039] Due to the high complexity of graph computing and the requirements for efficiency, all graph data involved in the calculation needs to be fully loaded into the memory. Each instance in the graph holds a complete copy of the full data in the memory to support the computing engine of the instance. This results in doubling the memory resource usage for each additional concurrency. In actual scenarios, customers are very sensitive to the memory resources of the cluster. Therefore, this mechanism will cause the cost of using the graph computing system to increase exponentially.

[0040] Embodiment 1.

[0041] Figure 3 This is an architecture diagram of a data lineage analysis system provided in Example 1 of the present invention. The system includes: a computing engine distributor, a computing engine, a metadata service, and a memory storage device.

[0042] The computing engine allocator is used to determine the computing engine according to the computing resource information of the data lineage analysis system when receiving the data lineage analysis task, and allocate the data lineage analysis task to the computing engine.

[0043] Data lineage refers to the path that data takes from its source to its final use, including the entire process of its generation, change, transmission, storage and use. It can help enterprises understand the flow of data, the impact of data changes, and ensure data governance and compliance.

[0044] The data lineage analysis task can be a task for analyzing the path that the data passes through. The data lineage analysis task can be sent to the data lineage analysis system through the API service, and then forwarded to the computing engine allocator. The computing engine allocator can allocate a suitable computing engine for the data lineage analysis task according to the computing resources of the data lineage analysis system.

[0045] For example, assuming that field a in table A is obtained from field b in table B through a series of data processing processes, if you need to know how to get field a through field b, the data lineage analysis task can be: analyze the data processing process from field b to field a.

[0046] The computing engine is used to analyze the data lineage analysis task, obtain the information to be queried corresponding to the data lineage analysis task, and send the information to be queried to the metadata service.

[0047] The information to be queried may be metadata that needs to be queried in the metadata service, and the information to be queried includes but is not limited to point and edge information required to perform data lineage analysis tasks.

[0048] Specifically, the computing engine can parse the data lineage analysis task, determine the information to be queried corresponding to the data lineage analysis task, that is, determine which information needs to be queried in the metadata service, and then send the information to be queried to the metadata service.

[0049] The metadata service is used to query the target metadata corresponding to the blood relationship analysis task according to the information to be queried, and return the target metadata to the computing engine.

[0050] The target metadata may be metadata that matches the information to be queried and is retrieved through a metadata service, and the target metadata is data that describes the target bloodline map data.

[0051] It is understandable that the metadata service synchronizes a large amount of metadata of bloodline graph data, including the types and attributes of points and edges in the bloodline graph data, the ID of the bloodline graph data, the storage location of the bloodline graph data in the memory storage device, etc. However, not all bloodline graph data are graph data related to the bloodline analysis task that needs to be processed currently. Therefore, when the computing engine receives the data bloodline analysis task, it can parse the data bloodline analysis task to obtain the information to be queried, and then search for the target metadata that matches it in a large amount of metadata according to the information to be queried, and return the target metadata to the computing engine.

[0052] The computing engine is further used to obtain target blood relationship map data corresponding to the target metadata in the memory storage device according to the target metadata, and process the data blood relationship analysis task based on the target blood relationship map data.

[0053] The target bloodline map data may be the bloodline map data corresponding to the target metadata in the memory storage device. The target metadata is data describing the target bloodline map data. Therefore, after the computing engine receives the target metadata returned by the metadata service, the target bloodline map data may be read in the memory storage device according to the target metadata. The target bloodline map data may serve as the basis for executing the current data bloodline analysis task.

[0054] For example, when the data lineage analysis task is to analyze the data processing process from field b to field a, the target lineage map data may be lineage map data including field b and field a.

[0055] The memory storage device is used for distributed storage of at least one bloodline map data, and synchronizing metadata of the bloodline map data to the metadata service.

[0056] Specifically, whenever there is new bloodline map data, it can be loaded into the memory storage device. The memory storage device loads and stores each bloodline map data in a distributed memory storage manner, and synchronizes the metadata of each bloodline map data to the metadata service.

[0057] In an optional embodiment, the data lineage analysis system further includes a task manager, which includes a task adding submodule and a concurrent number determination submodule. The task adding submodule is used to add at least one data lineage analysis task to a task queue when receiving at least one data lineage analysis task; the concurrent number determination submodule is used to determine the concurrent number of the computing engine, select the data lineage analysis task from the task queue according to the concurrent number, and send it to the computing engine distributor.

[0058] Specifically, the task manager is responsible for effectively managing the execution of data lineage analysis tasks. The task adding submodule can receive data lineage analysis tasks from external requests and add these tasks to the task queue. The task queue is a first-in-first-out data structure used to store data lineage analysis tasks to be executed. When a new data lineage analysis task arrives, the task adding submodule will put it at the end of the queue and wait for subsequent processing.

[0059] The concurrency number refers to the number of computing engines that execute data lineage analysis tasks simultaneously, and the concurrency number determination submodule is responsible for determining the concurrency number of computing engines.

[0060] The concurrency number of the computing engine can be determined by the concurrency determination submodule, and then a corresponding number of data lineage analysis tasks are selected from the task queue according to the concurrency number, and sent to the computing engine allocator so that the computing engine allocator allocates a suitable computing engine for it.

[0061] By properly managing the task queue, determining the number of concurrent tasks, and allocating tasks, the system can fully utilize computing resources, reduce task waiting time, and improve the overall efficiency of data lineage analysis, enabling the data lineage analysis system to handle a large number of concurrent tasks while maintaining system stability and reliability.

[0062] In an embodiment of the present invention, preferably, the concurrency determination submodule is specifically used to: determine whether the concurrency of the computing engine is less than a preset concurrency threshold; if so, send the data lineage analysis task at the head of the task queue to the computing engine allocator; if not, stop selecting the data lineage analysis task from the task queue until the concurrency is less than the preset concurrency threshold.

[0063] The preset concurrent number can be understood as a pre-set concurrent number threshold.

[0064] Specifically, the concurrency determination submodule can monitor the current concurrency of the computing engine in real time, that is, how many computing engines are currently processing tasks in parallel. Then, the current concurrency is compared with the preset concurrency threshold. If the current concurrency is less than the preset concurrency threshold, it means that the system has enough resources to handle more tasks. At this time, the data lineage analysis task at the head of the task queue can be sent to the computing engine allocator, which will be responsible for allocating these tasks to the appropriate computing engine for execution.

[0065] If the current number of concurrent tasks has reached or exceeded the preset concurrent task threshold, it means that the system has approached or reached the upper limit of its processing capacity. In this case, you can stop selecting new data lineage analysis tasks from the task queue to avoid system overload or crash, until the current number of concurrent tasks drops and is less than the preset concurrent task threshold again, then start selecting data lineage analysis tasks from the task queue again and send them to the computing engine distributor.

[0066] In the embodiment of the present invention, preferably, the computing engine allocator further comprises a task allocation submodule, which is used to create a computing engine or determine a computing engine in an idle state according to the computing resource information of the data lineage analysis system, and allocate the data lineage analysis task to the computing engine.

[0067] Specifically, when the data lineage system still has sufficient computing resources (CPU resources) and all existing computing engines are busy, the task allocation submodule will create a new computing engine and use the new computing engine to process the data lineage analysis task. If there are idle computing engines in the system, the task allocation submodule will give priority to these engines to process the data lineage analysis task. By dynamically allocating computing engines to data lineage analysis tasks, not only can we ensure that data lineage analysis tasks can be processed in a timely manner, but we can also improve the system throughput.

[0068] In the embodiment of the present invention, the metadata service may be specifically used to: match the information to be queried with each metadata in the metadata service, and determine the target metadata from each metadata based on the matching result.

[0069] Among them, each metadata in the metadata service is metadata corresponding to each bloodline graph data in the memory storage device. For example, the metadata may include the type and attributes of points and edges in the bloodline graph data, the ID of the bloodline graph data, the partition information of the bloodline graph data in the distributed memory storage, etc.

[0070] In an embodiment of the present invention, the computing engine may further include a target blood relationship map acquisition submodule and a task processing submodule.

[0071] The target blood relationship map acquisition submodule is used to acquire blood relationship map data matching the target metadata in the memory storage device, and use the blood relationship map data as the target blood relationship map data;

[0072] The task processing submodule is used to traverse the target blood relationship map data to obtain the target blood relationship analysis result corresponding to the data blood relationship analysis task.

[0073] Specifically, the target blood relationship map acquisition submodule can search for target blood relationship map data that matches the target metadata in the memory storage device according to the target metadata. For example, according to the map ID in the target metadata, the partition information of the map in the distributed memory storage, etc., the target blood relationship map data in the memory storage device is read. Furthermore, the task processing submodule can traverse the target blood relationship map data according to the preset algorithm or logic, collect and analyze relevant blood relationship information during the traversal process, such as the source of the data, conversion method, storage location, etc., and finally generate the target blood relationship analysis results.

[0074] In a preferred embodiment, the computing engine further includes an automatic release submodule, wherein the automatic release submodule is used to release the resources of the data lineage analysis system occupied by the computing engine and update the concurrency number after the computing engine completes the data lineage analysis task.

[0075] Specifically, in order to ensure efficient utilization of resources, the resource release of the computing engine can be achieved through the automatic release sub-module. The task execution status of the computing engine can be monitored through the automatic release sub-module. Once it is detected that the data lineage analysis task has been completed, all system resources occupied by the computing engine during the execution of the task can be released, such as CPU, memory, etc. At the same time, the concurrent number of computing engines in the data lineage analysis system can also be updated.

[0076] In an embodiment of the present invention, the number of parallel computing engines is at least two, and at least two computing engines are distributedly deployed on at least two service nodes; at least two computing engines share the bloodline map data in the memory storage device. Figure 4 The schematic diagram of the concurrent processing of multiple computing tasks based on the same memory data provided in the first embodiment of the present invention is as follows: Figure 4 As shown in the figure, the lineage graph data is loaded into the distributed memory storage, and there is only one full copy of the data, which is shared by all computing engines. When receiving a data lineage analysis task, the data lineage analysis system can generate multiple computing engines based on the cluster resources to process the analysis task in parallel.

[0077] It should be noted that the graph computing complexity of data lineage analysis scenarios is relatively low, and each computing task does not fully utilize the multi-core CPU. For example, a typical lineage link query usually starts from a given starting point and performs multi-hop queries. The notable feature of multi-hop in this scenario is that each hop has a small number of neighbors but a large depth. Therefore, the multi-hop algorithm based on depth-first traversal is more suitable for this scenario, and depth-first traversal is far less effective than breadth-first traversal in utilizing multi-core CPUs. Therefore, in the data lineage analysis scenario, when an algorithm task is executed, there will be sufficient idle CPU resources in the system to serve possible concurrent tasks.

[0078] The solution of the embodiment of the present invention only needs to store a copy of the full data in the memory for sharing by all computing engines, which greatly saves the system's memory resources. In addition, multiple computing engines process different lineage analysis tasks in parallel, making full use of CPU resources, thereby improving the execution efficiency of data lineage analysis tasks and increasing the system's throughput.

[0079] The technical solution of the embodiment of the present invention is to add the bloodline analysis task to the task queue through the task manager; select the data bloodline analysis task from the task queue according to the concurrent number of the computing engine and send it to the computing engine allocator. The computing engine allocator allocates the data bloodline analysis task to the computing engine according to the computing resource information; queries the target metadata corresponding to the bloodline analysis task through the computing engine and the metadata service, and returns the target metadata to the computing engine; the computing engine obtains the target bloodline map data in the memory storage device according to the target metadata, and processes the data bloodline analysis task based on the target bloodline map data. The memory storage device is used for distributed storage of at least one bloodline map data, and synchronizes the metadata of the bloodline map data to the metadata service. It solves the current data bloodline analysis method with low throughput and high memory resource usage, which is a technical problem that urgently needs to be solved, realizes the parallelism of computing tasks, and does not increase memory usage, thereby greatly improving the computing throughput of bloodline analysis without increasing system hardware resources, thereby realizing real-time bloodline analysis.

[0080] Embodiment 2.

[0081] Figure 5 This is a flow chart of a data lineage analysis method provided in the second embodiment of the present invention. This embodiment is applicable to the case of parallel processing of data lineage analysis tasks. The method can be executed by a data lineage analysis system, which includes a computing engine distributor, a computing engine, a metadata service, a memory storage device and a task manager. Figure 5 As shown, the method includes:

[0082] S210. Distributively store at least one bloodline map data through the memory storage device, and synchronize metadata of the bloodline map data to the metadata service.

[0083] Specifically, whenever there is new bloodline map data, it can be loaded into the memory storage device. The memory storage device loads and stores each bloodline map data in a distributed memory storage manner, and synchronizes the metadata of each bloodline map data to the metadata service.

[0084] S220. When the computing engine allocator receives a data lineage analysis task, it determines a computing engine according to computing resource information of the data lineage analysis system, and allocates the data lineage analysis task to the computing engine.

[0085] Data lineage refers to the path that data takes from its source to its final use, including the entire process of its generation, change, transmission, storage and use. It can help enterprises understand the flow of data, the impact of data changes, and ensure data governance and compliance.

[0086] The data lineage analysis task can be a task for analyzing the path that the data passes through. The data lineage analysis task can be sent to the data lineage analysis system through the API service, and then forwarded to the computing engine allocator. The computing engine allocator can allocate a suitable computing engine for the data lineage analysis task according to the computing resources of the data lineage analysis system.

[0087] For example, assuming that field a in table A is obtained from field b in table B through a series of data processing processes, if you need to know how to get field a through field b, the data lineage analysis task can be: analyze the data processing process from field b to field a.

[0088] S230. Analyze the data lineage analysis task through the computing engine to obtain the to-be-queried information corresponding to the data lineage analysis task, and send the to-be-queried information to the metadata service.

[0089] The information to be queried may be metadata that needs to be queried in the metadata service, and the information to be queried includes but is not limited to point and edge information required to perform data lineage analysis tasks.

[0090] Specifically, the computing engine can parse the data lineage analysis task, determine the information to be queried corresponding to the data lineage analysis task, that is, determine which information needs to be queried in the metadata service, and then send the information to be queried to the metadata service.

[0091] S240: According to the information to be queried, query the target metadata corresponding to the blood relationship analysis task through the metadata service, and return the target metadata to the computing engine.

[0092] The target metadata may be metadata that matches the information to be queried and is retrieved through a metadata service, and the target metadata is data that describes the target bloodline map data.

[0093] It is understandable that the metadata service synchronizes a large amount of metadata of bloodline graph data, including the types and attributes of points and edges in the bloodline graph data, the ID of the bloodline graph data, the storage location of the bloodline graph data in the memory storage device, etc. However, not all bloodline graph data are graph data related to the bloodline analysis task that needs to be processed currently. Therefore, when the computing engine receives the data bloodline analysis task, it can parse the data bloodline analysis task to obtain the information to be queried, and then search for the target metadata that matches it in a large amount of metadata according to the information to be queried, and return the target metadata to the computing engine.

[0094] S250. According to the target metadata, the target blood relationship map data corresponding to the target metadata in the memory storage device is obtained through the computing engine, and the data blood relationship analysis task is processed based on the target blood relationship map data.

[0095] The target bloodline map data may be the bloodline map data corresponding to the target metadata in the memory storage device. The target metadata is data describing the target bloodline map data. Therefore, after the computing engine receives the target metadata returned by the metadata service, the target bloodline map data may be read in the memory storage device according to the target metadata. The target bloodline map data may serve as the basis for executing the current data bloodline analysis task.

[0096] For example, when the data lineage analysis task is to analyze the data processing process from field b to field a, the target lineage map data may be lineage map data including field b and field a.

[0097] On the basis of the above technical solution, it also includes: when at least one of the data lineage analysis tasks is received, at least one of the lineage analysis tasks is added to the task queue through the task adding submodule of the task manager; the concurrency number of the computing engine is determined through the concurrency determination submodule, and the data lineage analysis task is selected from the task queue according to the concurrency number and sent to the computing engine allocator.

[0098] Specifically, the task manager is responsible for effectively managing the execution of data lineage analysis tasks. The task adding submodule can receive data lineage analysis tasks from external requests and add these tasks to the task queue. The task queue is a first-in-first-out data structure used to store data lineage analysis tasks to be executed. When a new data lineage analysis task arrives, the task adding submodule will put it at the end of the queue and wait for subsequent processing.

[0099] The concurrency number refers to the number of computing engines that execute data lineage analysis tasks at the same time, and the concurrency number determination submodule is responsible for determining the concurrency number of computing engines. The concurrency number determination submodule can determine the concurrency number of computing engines, and then select a corresponding number of data lineage analysis tasks from the task queue according to the concurrency number, and send them to the computing engine allocator, so that the computing engine allocator allocates a suitable computing engine for them.

[0100] By properly managing the task queue, determining the number of concurrent tasks, and allocating tasks, the system can fully utilize computing resources, reduce task waiting time, and improve the overall efficiency of data lineage analysis, enabling the data lineage analysis system to handle a large number of concurrent tasks while maintaining system stability and reliability.

[0101] In a preferred embodiment, Figure 6 As shown, it is a flow chart of another data lineage analysis method provided in the second embodiment of the present invention. The processing of the data lineage analysis task can be performed through the following steps:

[0102] 1. The bloodline graph data is loaded into the memory storage device; 2. The memory storage device synchronizes metadata to the metadata service; 3. The bloodline analysis task is submitted to the API service; 4. The API service forwards the bloodline analysis task to the task manager; 5. The task manager adds the bloodline analysis task to the task queue; 6. The task queue returns the head task; 7. The task manager reads the maximum concurrency configured by the system and the current concurrency of the system; 8. The task manager determines whether the current concurrency is greater than or equal to the maximum concurrency; 9. If so, block the queue until the current concurrency is less than the maximum concurrency. If not, forward the bloodline analysis task to the computing engine distributor; 10. The computing engine distributor creates a computing engine and distributes computing tasks; 11. Update the current concurrency of the system; 12. The computing engine obtains the graph ID from the metadata service; 13. The computing engine reads the graph data corresponding to the graph ID; 14. After the computing engine calculates and outputs the results, it self-destructs; 15. Update the current concurrency of the system.

[0103] In a preferred embodiment, the distributed storage of the present invention is further introduced in detail. Figure 7 The schematic diagram of the distributed computing engine sharing the same distributed memory data provided in the second embodiment of the present invention is as follows: Figure 7As shown, the present invention decouples the computing engine and the memory storage device, so that the memory storage device provides data services to the upper computing engine in a service manner. The memory storage device adopts a distributed design and performs distributed storage of the bloodline graph data. The partitioning strategy can select a hash strategy or a range strategy as needed. The memory storage and computing engine processes run simultaneously in each node. After the memory storage device process loads the data, it provides data sharing to the outside through the shared memory of the operating system (such as the Linux system). The computing process accesses the data in the shared memory to achieve zero-copy use of the data.

[0104] The technical solution of the embodiment of the present invention is to add the bloodline analysis task to the task queue through the task manager; select the data bloodline analysis task from the task queue according to the concurrent number of the computing engine and send it to the computing engine allocator. The computing engine allocator allocates the data bloodline analysis task to the computing engine according to the computing resource information; queries the target metadata corresponding to the bloodline analysis task through the computing engine and the metadata service, and returns the target metadata to the computing engine; the computing engine obtains the target bloodline map data in the memory storage device according to the target metadata, and processes the data bloodline analysis task based on the target bloodline map data. The memory storage device is used for distributed storage of at least one bloodline map data, and synchronizes the metadata of the bloodline map data to the metadata service. It solves the current technical problems that the throughput of data bloodline analysis is low and the memory resource occupation is high, which is an urgent problem to be solved at present. It realizes the parallelism of computing tasks without increasing the memory occupation, thereby greatly improving the computing throughput of bloodline analysis without increasing the system hardware resources, and then realizing real-time bloodline analysis.

[0105] Embodiment three.

[0106] Figure 8 A schematic diagram of the structure of an electronic device provided for Embodiment 3 of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0107] like Figure 8As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11 in communication, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, ROM 12 and RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0108] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0109] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the data lineage analysis method.

[0110] In some embodiments, the data lineage analysis method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the data lineage analysis method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the data lineage analysis method in any other appropriate manner (e.g., by means of firmware).

[0111] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0112] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0113] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0114] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0115] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0116] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0117] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0118] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A data lineage analysis system, characterized in that: include: A computing engine distributor, a computing engine, a metadata service and a memory storage device, wherein: The computing engine allocator is used to determine the computing engine according to the computing resource information of the data lineage analysis system when receiving the data lineage analysis task, and allocate the data lineage analysis task to the computing engine; The computing engine is used to analyze the data lineage analysis task, obtain the to-be-queried information corresponding to the data lineage analysis task, and send the to-be-queried information to the metadata service; The metadata service is used to query the target metadata corresponding to the blood relationship analysis task according to the information to be queried, and return the target metadata to the computing engine; The computing engine is further used to obtain target blood relationship map data corresponding to the target metadata in the memory storage device according to the target metadata, and process the data blood relationship analysis task based on the target blood relationship map data; The memory storage device is used for distributed storage of at least one bloodline map data, and synchronization of metadata of the bloodline map data to the metadata service; The computing engine distributor includes a task distribution submodule, wherein: The task allocation submodule is used to create a computing engine or determine a computing engine in an idle state according to the computing resource information of the data lineage analysis system, and allocate the data lineage analysis task to the computing engine; The number of parallel computing engines is at least two, and at least two computing engines are distributed and deployed on at least two service nodes; At least two of the computing engines share the bloodline map data in the memory storage device; A complete copy of the bloodline map data is stored in the memory storage device.

2. The system according to claim 1, characterized in that The data lineage analysis system also includes a task manager, which includes a task adding submodule and a concurrent number determination submodule, wherein: The task adding submodule is used to add at least one of the data lineage analysis tasks to the task queue when receiving at least one of the data lineage analysis tasks; The concurrency determination submodule is used to determine the concurrency of the computing engine, select the data lineage analysis task from the task queue according to the concurrency and send it to the computing engine distributor.

3. The system according to claim 2, characterized in that The concurrent number determination submodule is specifically used for: Determine whether the concurrent number of the computing engine is less than a preset concurrent number threshold; If yes, the data lineage analysis task at the head of the task queue is sent to the computing engine distributor; If not, stop selecting the data lineage analysis task from the task queue until the concurrent number is less than the preset concurrent number threshold.

4. The system according to claim 1, characterized in that The metadata service is specifically used for: The information to be queried is matched with each metadata in the metadata service, and the target metadata is determined from each metadata based on the matching result.

5. The system according to claim 1, characterized in that The computing engine also includes a target blood relationship map acquisition submodule and a task processing submodule, wherein: The target blood relationship map acquisition submodule is used to acquire blood relationship map data matching the target metadata in the memory storage device, and use the blood relationship map data as the target blood relationship map data; The task processing submodule is used to traverse the target blood relationship map data to obtain the target blood relationship analysis result corresponding to the data blood relationship analysis task.

6. The system according to claim 1, characterized in that The computing engine also includes an automatic release submodule, wherein: The automatic release submodule is used to release the resources of the data lineage analysis system occupied by the computing engine and update the concurrency quantity after the computing engine completes executing the data lineage analysis task.

7. A data lineage analysis method, characterized in that: Applied to a data lineage analysis system, the data lineage analysis system includes a computing engine distributor, a computing engine, a metadata service and a memory storage device, and the method includes: Distributively storing at least one bloodline map data through the memory storage device, and synchronizing metadata of the bloodline map data to the metadata service; When the computing engine allocator receives the data lineage analysis task, it determines the computing engine according to the computing resource information of the data lineage analysis system, and allocates the data lineage analysis task to the computing engine; The computing engine analyzes the data lineage analysis task to obtain information to be queried corresponding to the data lineage analysis task, and sends the information to be queried to the metadata service; According to the information to be queried, query the target metadata corresponding to the blood relationship analysis task through the metadata service, and return the target metadata to the computing engine; According to the target metadata, the target blood relationship map data corresponding to the target metadata in the memory storage device is obtained through the computing engine, and the data blood relationship analysis task is processed based on the target blood relationship map data; The computing engine allocator includes a task allocation submodule, and the method further includes: Through the task allocation submodule, according to the computing resource information of the data lineage analysis system, a computing engine is created or a computing engine in an idle state is determined, and the data lineage analysis task is allocated to the computing engine; The number of parallel computing engines is at least two, and at least two computing engines are distributed and deployed on at least two service nodes; At least two of the computing engines share the bloodline map data in the memory storage device; A complete copy of the bloodline map data is stored in the memory storage device.

8. The method according to claim 7, characterized in that Also includes: When at least one of the data lineage analysis tasks is received, adding at least one of the lineage analysis tasks to a task queue through a task adding submodule of a task manager; The concurrency number of the computing engine is determined by a concurrency determination submodule, and the data lineage analysis task is selected from the task queue according to the concurrency number and sent to the computing engine distributor.