Fault influence assessment analysis method and system based on data blood relationship
The PageRank algorithm is used to calculate the importance score of data nodes, which solves the problem of data management relying on personal experience in the existing technology, realizes the automation and refined analysis of data impact assessment, and improves the efficiency and security of data management.
Patent Information
- Application Number
- CN202410709839.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-08-30
AI Technical Summary
Existing applications based on data kinship rely on personal experience in data management and maintenance, resulting in untimely handling of data problems and lack of analysis of data processing processes and content, affecting the normal operation of applications.
The fault impact assessment and analysis method based on the PageRank algorithm is used to obtain and analyze the blood relationship map data, calculate the initial weight and importance score of the data table fields, construct a directed acyclic graph, dynamically calculate the importance score of the node, and realize fault early warning. Automatic assessment and impact analysis of levels.
It realizes the quantitative importance scoring of data nodes, improves the precision and automation of data impact assessment, reduces the dependence on personal experience, and improves the efficiency and security of data full life cycle management.
Smart Images

Figure CN118568191A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of big data analysis and operation technology, and in particular relates to a fault impact assessment and analysis method and system based on data lineage. Background Art
[0002] With the improvement of the digital construction level of domestic enterprises, digital pioneers such as power grids, finance, and communications have basically achieved full life cycle management of data. Relevant enterprises generally construct blood relationship diagrams in the form of directed acyclic graphs to intuitively display the entire process of data from generation, collection, processing to application, thereby assisting system operation and maintenance or data operation personnel to carry out data management, maintenance, and optimization.
[0003] At present, applications based on data kinship mainly use visualization of data kinship, or combine some simple rules to give early warnings, and then system maintenance or data operation personnel use personal experience to complete related data management and maintenance tasks. For example, when a data processing link fails, the data operation personnel will check the data kinship diagram, check the corresponding operation log information, and then use personal experience to evaluate the corresponding impact, and then confirm the corresponding data maintenance method and work plan. In this mode, data management and maintenance work still heavily relies on personal ability. On the one hand, it is easy for personal mistakes to cause data problems not to be handled in time, thus affecting the normal operation of related applications. On the other hand, the corresponding impact can only be presented when a program error occurs in the relevant data link, and there is a lack of analysis of the data processing process and the data content itself. Summary of the invention
[0004] In order to solve the deficiencies in the prior art, the present invention provides a method and system for fault impact assessment and analysis based on data lineage, so as to solve the technical problem of intelligent assessment and analysis of the impact of data lineage nodes.
[0005] In order to solve the above technical problems, the present invention adopts the following technical solutions.
[0006] The present invention first discloses a fault impact assessment and analysis method based on data lineage, which comprises the following steps:
[0007] Step 1: Obtain blood relationship map data, parse the blood relationship map data, obtain data tables, data table fields, dependencies between data table fields, data table field types, and data table field application times, use the data table fields as nodes and the dependencies as edges to construct a directed acyclic graph;
[0008] Step 2: Calculate the initial weight of each leaf node in the directed acyclic graph based on the application times of the data table field;
[0009] Step 3: Take the initial weight of each leaf node as the importance score of each leaf node, and calculate the importance score of the associated non-leaf nodes layer by layer based on the PageRank algorithm through the initial weight of each leaf node;
[0010] Step 4: summing up the importance scores of all node sets to determine the importance scores of each data table in the blood relationship map data, wherein the node sets represent multiple fields in the same data table;
[0011] Step 5: Set the fault warning level of the corresponding node set according to the importance score of each data table, and perform impact assessment analysis on the failed nodes based on the fault warning level.
[0012] The present invention further includes the following preferred embodiments:
[0013] The calculating the initial weight of each leaf node in the directed acyclic graph based on the application times of the data table field further includes:
[0014] Calculate the initial weight Q of the i-th leaf node i :
[0015]
[0016] where n i is the number of times the data table field of the i-th leaf node is applied, n is the number of leaf nodes, Q i is the initial weight of the i-th leaf node.
[0017] The data table field application times are the service call times or page reference times of each field.
[0018] The step of summing up the importance scores of all node sets to determine the importance score of each data table in the blood relationship map data further includes:
[0019] Weighted calculation of the importance score IMAa of the current data table:
[0020] IMAa=d i *(IMa1+IMa2+IMa3+…+IMa i )
[0021] Where IMai is the importance score of node ai, d i is the weight of the corresponding type of data table i.
[0022] The present invention also discloses a fault impact assessment and analysis system based on data lineage relationship using the above-mentioned fault impact assessment and analysis method based on data lineage relationship, comprising:
[0023] A graph data acquisition module is used to acquire blood relationship graph data, parse the blood relationship graph data, obtain data tables, data table fields, dependencies between data table fields, data table field types and data table field application times, and construct a directed acyclic graph using the data table fields as nodes and the dependencies as edges;
[0024] An initial weight calculation module, used to calculate the initial weight of each leaf node in the directed acyclic graph based on the number of application times of the data table field;
[0025] The node score calculation module is used to use the initial weight of each leaf node as the importance score of each leaf node, and calculate the importance score of the associated non-leaf nodes layer by layer based on the initial weight of each leaf node based on the PageRank algorithm;
[0026] A data table score calculation module, used for summing up the importance scores of all node sets to determine the importance score of each data table in the blood relationship map data, wherein the node sets represent multiple fields in the same data table;
[0027] The impact assessment and analysis module is used to set the fault warning level of the corresponding node set according to the importance score of each data table, and perform impact assessment and analysis on the failed nodes based on the fault warning level.
[0028] Accordingly, the present application also discloses a terminal, including a processor and a storage medium;
[0029] The storage medium is used to store instructions;
[0030] The processor is used to operate according to the instructions to execute the steps of the aforementioned fault impact assessment analysis method based on data lineage.
[0031] Correspondingly, the present application also discloses a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the aforementioned fault impact assessment and analysis method based on data lineage are implemented.
[0032] The beneficial effect of the present invention is that, compared with the prior art, the present invention provides a method and system for fault impact assessment and analysis based on data kinship, dynamically and automatically calculates the importance score of each data node based on the PageRank algorithm, realizes the importance of data nodes in a quantitative manner, and more effectively supports data impact assessment and analysis. Combined with the initial weight of the number of data node applications, the comprehensiveness of importance calculation is improved by eliminating the dimensional difference of the number of data applications. At the same time, the initial weight can be weighted according to different types of nodes to ensure the applicability of importance scoring, solve the cold start problem of data node initial weight calculation in the absence of data, and ensure that the initial weight of the data node can still be used in the absence of initial data. At the same time, the user can manually adjust the corresponding initial weight to meet the user's various weight requirements. Weighted calculation is performed according to the type of fault to meet the impact analysis of data under different fault conditions, and improve the precision of impact score analysis and processing. Weighted calculation is performed according to table field type and table type, highlighting the importance of different field types and table types to meet the impact analysis of different types of data. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is the core flow chart of the fault impact assessment analysis based on data lineage relationship in the present invention;
[0034] Figure 2 It is a schematic diagram of the data blood relationship map in the present invention. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the present invention more clear, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0036] The embodiments described in this application are only some embodiments of the present invention, not all embodiments. Based on the spirit of the present invention, other embodiments obtained by ordinary technicians in this field without creative work are all within the protection scope of the present invention.
[0037] In view of the shortcomings of the prior art, the present invention proposes a fault impact assessment and analysis method and system based on data lineage relationship, acquires and analyzes lineage relationship graph data, takes fields as nodes, and takes the dependency relationship between fields as the edge representing the node relationship to form a directed acyclic graph, and embodies multiple fields contained in the same table in the form of a node set. The data table fields and their application times are represented by a multidimensional array. Based on the difference in importance of different nodes, according to the principle that the more nodes are applied, the more important they are, the initial weight of each leaf node is calculated based on the application times of the data table fields. The nodes of the directed acyclic graph formed based on the data lineage relationship graph data are used as web page nodes, and the importance score of each node is calculated according to the PageRank algorithm. The algorithm calculation process is adjusted, and the weight is calculated for the leaf nodes, and for the non-leaf nodes, it is calculated layer by layer from the terminal level. The importance scores of each node in the data table are summed, and then the importance score of the data table is obtained by weighting the weight of the table type. The importance score result is output and the impact assessment analysis is performed. By adopting more quantitative and intelligent methods to implement data impact assessment and analysis, effectively assisting system operation and maintenance or data operation personnel to carry out related data management and maintenance work, and realizing automated data management and maintenance, the level of data management and work efficiency throughout the entire life cycle can be improved, and data management costs and risks can be reduced.
[0038] See also Figure 1 As shown, the fault impact assessment and analysis method based on data lineage relationship disclosed in the present invention includes the following steps:
[0039] Step 1: Obtain blood relationship map data, parse the blood relationship map data, obtain data tables, data table fields, dependencies between data table fields, data table field types and data table field application times, use the data table fields as nodes and the dependencies as edges to construct a directed acyclic graph.
[0040] First, obtain the relevant data of the data lineage relationship map, including data tables, data table fields, dependencies between data table fields, data table field types, and data table field application times. The data table field types include attribute types, label types, and indicator types.
[0041] The data table fields are used as nodes, and the dependencies between the fields are used as the edges of the node relationships to form a directed acyclic graph. The nodes and node relationships are stored as a multidimensional array (A1 = {{a1, b1}, {a2, b2}, {a3, c2}, {…}}) or in the form of a matrix (M1).
[0042] Multiple fields contained in the same table are grouped into a node set, such as fields a1, a2, a3, a4, ..., ai, then Aa = {a1, a2, a3, a4, ..., ai}.
[0043] The application times of the data table fields are organized into a multidimensional array (C1={{y1, n1}, {y2, n2}, {y3, n3}, {…}, {yi, ni}}), where yi is a specific node and ni is the application times corresponding to the node yi.
[0044] In an optional embodiment, tables may be used as nodes, and relationships between tables may be used as edges of node relationships to perform importance calculation and impact analysis of table-level nodes.
[0045] Among them, the time period for obtaining the number of application times of the data table field can be realized through dynamic configuration so that the algorithm can better reflect the characteristics of different enterprise data. For example, it can be configured to the past year, the past six months, the past three months, or dynamically calculated through the corresponding algorithm.
[0046] Step 2: Calculate the initial weight of each leaf node in the directed acyclic graph based on the application times of the data table field.
[0047] The data table fields are divided into leaf nodes and non-leaf nodes. The importance of different nodes varies. Generally, the more nodes are used, the more important they are. Based on this principle, the present invention calculates the initial weight of each leaf node based on the number of times the data table field is used. The specific formula is:
[0048]
[0049] where n i is the number of times the data table field of the i-th leaf node is applied, n is the number of all leaf nodes, Q i is the initial weight of the i-th leaf node.
[0050] The data table field application times may be service call times, page reference times, etc. of each field.
[0051] For leaf nodes with no call count, default values can be assigned. In actual situations, if the application count of some nodes cannot be counted, the default weight can be directly set to 1. The initial weight can also be weighted by field type, such as the weight coefficient B of the attribute type. i The weighting coefficient of the indicator type is 0.5. i 1, weighted coefficient B of label type i It is 1.5.
[0052] Step 3: Use the initial weight of each leaf node as the importance score of each leaf node. Based on the PageRank algorithm, calculate the importance scores of the associated non-leaf nodes layer by layer through the initial weight of each leaf node.
[0053] The nodes of the directed acyclic graph formed based on the data blood relationship map are taken as a web page node, and the importance score of each node is calculated according to the PageRank algorithm.
[0054] Since the directional relationship between the data lineage relationship map and the directional relationship between web pages is different, the algorithm calculation process needs to be adjusted. The adjusted process is as follows:
[0055] Leaf node y i Importance Rating IMy i The initial weight calculated in step 2. The weighted calculation is performed based on the number of times the node is applied and the field type.
[0056] For non-leaf nodes, we calculate layer by layer from the end level. Assume that node y i The set of nodes pointed to is Po = {po1, po2, ..., pon}, L(pok) is the total number of times the pok node in the set is pointed to, that is, the total number of times the po1 node is pointed to is L(po1), and the total number of times the po2 node is pointed to is L(po2). Then the non-leaf node y i Importance Rating IMy i for y i The weights of the node set Po pointed to are divided and added:
[0057]
[0058] Where n represents the node y i The number of nodes pointed to, k represents node y i points to the kth node, IM represents the importance score, i.e., IMpok represents the node y i The importance score of the node k pointed to, IMy i That is, node y i Importance score.
[0059] The above calculation process mainly reflects the corresponding calculation principle. In the actual calculation process, the corresponding nodes and relationships can be converted into matrix storage, and the power method or algebraic algorithm can be used for calculation to improve the corresponding calculation efficiency and performance.
[0060] Step 4: Sum the importance scores of all node sets to determine the importance score of each data table in the blood relationship map data, where the node sets represent multiple fields in the same data table.
[0061] The importance score of the data table can be obtained by summing the importance scores of each node in the data table:
[0062] IMAa=IMa1+IMa2+IMa3+…+IMa i .
[0063] Preferably, weighted calculation can be performed according to the level at which the table is located to highlight the importance of the source table of the base layer:
[0064] IMAa=d i *(IMa1+IMa2+IMa3+…+IMa i )
[0065] Among them, IMa i For node a i The importance score, d i is the weight of the corresponding type of data table i. Different data table types have different weights. In theory, the more bottom-level tables are more important and have higher weights. For example, the weight of the table in the original layer should be higher than that of the shared layer and the analysis layer.
[0066] Step 5: Set the fault warning level of the corresponding node set according to the importance score of each data table, and perform impact assessment analysis on the failed nodes based on the fault warning level.
[0067] Based on step 4, the importance scores of the corresponding nodes and node sets can be obtained, and the fault warning levels of the nodes can be set according to the importance scores of the nodes and node sets. For example, a preset percentage of nodes are given a first-level warning. When the weight ratio of the nodes and node sets exceeds a certain threshold, the nodes can be set as key focus nodes, and graded predictions can be made according to the pre-configured warning thresholds. For example, if the weight of the failed node is 10 and the medium-risk warning threshold is 8, the medium-risk warning action is triggered in real time to achieve intelligent impact assessment and analysis.
[0068] The failures include situations where the relevant data cannot be updated and the data is empty due to errors in the system running program, and also include data quality problems caused by processing logic exceptions, field type mismatches, input errors, etc.
[0069] Preferably, a data node fault strategy and measure library is built to intelligently recommend treatment measures based on fault characterization and impact assessment analysis when a fault occurs. When performing impact assessment analysis applications, the full link of the node can be highlighted, automatic warnings can be triggered, and upgrades can be performed.
[0070] The impact relationship link diagram is displayed according to the importance scores of the corresponding nodes and node sets, and active early warning is carried out to support applications such as node impact assessment, impact analysis, impact early warning, and impact tracing.
[0071] The following is a detailed description of the method of the present invention by taking the acquisition of the blood relationship graph data of the business expansion work order scenario data as a specific embodiment:
[0072] Step 1: Obtain the dependencies between the data table fields of the data lineage relationship map, including the multidimensional array A1 = {{analysis layer work order details table. Work order number, work order index table. Total number of work orders}, {analysis layer work order details table. Work order number, work order index table. Number of overdue work orders}, {analysis layer work order details table. Overdue time, work order index table. Number of overdue work orders}, {analysis layer work order details table. Work order type, work order index table. Number of overdue work orders}, {analysis layer work order details table. Overdue time, work order label table. Overdue users}, {electricity user table. Electricity user number, work order label table. Overdue users}...}.
[0073] Get the relationship between the leaf node field and the number of times the node field is used in the data lineage relationship map, that is, the multidimensional array C1. If the leaf node field has no usage count, it defaults to 1 time. In this example, C1 = {{total number of work orders, 20}, {number of overdue work orders, 30}, {overdue users, 30}, {statistical date, 1}}.
[0074] Step 2: Calculate the number of times each leaf node field is used. By calculating the number of times the leaf node fields in the three tables of the analysis layer work order table, work order indicator table, and work order label table are used, the multidimensional array C1 obtained in step 1 = {{total number of work orders, 20}, {number of overdue work orders, 30}, {overdue users, 30}, {statistical date, 1}} can be obtained. 工单总数 =20,n 超期工单数 =30,n 超期用户 =30,n 统计日期 =1.
[0075] Get the weight set of field type B = {b 属性 , b 指标 , b 标签}, where b 属性 refers to the weight of the field node of the attribute type, b 指标 refers to the weight of the field node of the indicator type, b 标签 Refers to the weight of the field node of the tag type, which is a positive number. In this embodiment, b is obtained by manual assignment based on experience in business scenarios. 属性 =0.5, b 指标 =1, b 标签 =1.5. In this embodiment, the total number of work orders in the leaf node work order indicator table and the number of overdue work orders in the work order indicator table are indicator types, so the weight is 1, the overdue users in the work order tag table are tag types, so the weight is 1.5, and the statistical date of the analysis layer work order detail table is an attribute type, so the weight is 0.5.
[0076] Calculate the score of each leaf node based on the number of leaf node field applications and field type:
[0077]
[0078] Q 工单总数 =(20*1) / (20*1+30*1+30*1.5+1*0.5)=0.2094
[0079] Q 超期工单数 =(30*1) / (20*1+30*1+30*1.5+1*0.5)=0.3141
[0080] Q 超期用户 =(30*1.5) / (20*1+30*1+30*1.5+1*0.5)=0.4712
[0081] Q 统计日期 =(1*0.5) / (20*1+30*1+30*1.5+1*0.5)=0.0052
[0082] Step 3: Take each table field of the data lineage relationship map as a web page node, and the pointing relationship between the fields as a directed edge to form a directed acyclic graph. According to the PageRank algorithm, adjust the algorithm calculation process and divide it into leaf nodes and non-leaf nodes. The weight of the leaf node IMyi is the importance weight calculated in step 2, and the non-leaf node is calculated layer by layer from the terminal level. Taking the importance score of the overdue time field of the work order details table in the calculation analysis layer as an example, the calculation process is as follows:
[0083] Get the weight IM of the leaf node calculated in step 2 超期工单数 =Q 超期工单数 =0.3141,IM 超期用户 =Q 超期用户 =0.4712.
[0084] Get the node set Po pointed to by the overdue time node field = {overdue work order number, overdue user}, and get the total number of times each node in each set is pointed to. In this example, L (overdue work order number) = 3, L (overdue user) = 2.
[0085] S302, obtaining the importance score of the node IMyi is the weighted sum of the weights of the node set Po pointed to by yi, that is, IM 超期时间 =IM 超期工单数 / 3+IM 超期用户 / 2, that is, IM expiration time = 0.3141 / 3 + 0.4712 / 2 = 0.3403.
[0086] Step 4: Calculate the importance score of the table (node set) based on the sum of the field importance scores of the analysis layer work order details table and the table weight:
[0087] Set the table weight according to the level where the table is located to highlight the importance of the source table in the base layer. i Manually set to d based on experience 分析层表 =1,d 共享层表 =2,d 贴源层表 =3;
[0088] According to IMAa=d i *(IMa1+IMa2+IMa3+…+IMai) calculation table importance score:
[0089] IM analysis layer work order details table = d 分析层表 *(IM 工单编号 +IM 工单类型 +IM 超期时间 +IM 统计日期 )
[0090] From the process and logic of step 3, we can get:
[0091] IM 工单编号 =IM 工单总数 =0.2094
[0092] IM 工单类型 =IM 超期工单数 / 3=0.1047
[0093] IM 超期时间 =0.3403
[0094] IM 统计日期 =0.0052
[0095] IM 分析层工单明细表 =1*(0.2094+0.1047+0.3403+0.0052)=0.6596
[0096] Similarly, calculate the scores of other tables:
[0097] IM 工单指标表 =0.5235
[0098] IM 标签表 =0.4712
[0099] IM 共享层工单明细表 =0.6282
[0100] IM 贴源层工单明细表 =0.9423
[0101] Step 5: Set the fault warning level of the node set according to the importance score of the node and node set. For example, if the node set with a table weight of more than 20% is set to level 1 warning, the importance score of the table can be obtained from step 4:
[0102] IM 分析层工单明细表 =0.6596
[0103] IM 工单指标表 =0.5235
[0104] IM 标签表 =0.4712
[0105] IM 共享层工单明细表 =0.6282
[0106] IM 贴源层工单明细表 =0.9423
[0107] Assuming that the above five tables are all the tables involved in the blood relationship diagram, the proportion of each table can be calculated to obtain IM 分析层工单明细表 The proportion is 20.45%, IM 贴源层工单明细表 The proportion is 29.22%, and the tables for the first-level fault warning are the analysis layer work order details table and the source layer work order details table.
[0108] When a node fails, the affected links and nodes will be highlighted and automatically warned. If a failure occurs at the overdue time node in the work order details table of the analysis layer, the affected downstream overdue users and the number of overdue work orders can be highlighted.
[0109] The warning level of the node is set according to the node score. From the node score, it can be seen that the overdue time node is the most important in the work order details table of the analysis layer. If this node fails, it will affect the overdue users and the number of overdue work orders downstream, while the statistical date node is the least important and has no impact on the downstream. Therefore, the warning level of the overdue time node can be set to be much higher than the warning level of the statistical date.
[0110] The beneficial effect of the present invention is that, compared with the prior art, the present invention provides a method and system for fault impact assessment and analysis based on data kinship, dynamically and automatically calculates the importance score of each data node based on the PageRank algorithm, realizes the importance of data nodes in a quantitative manner, and more effectively supports data impact assessment and analysis. Combined with the initial weight of the number of data node applications, the comprehensiveness of importance calculation is improved by eliminating the dimensional difference of the number of data applications. At the same time, the initial weight can be weighted according to different types of nodes to ensure the applicability of importance scoring, solve the cold start problem of data node initial weight calculation in the absence of data, and ensure that the initial weight of the data node can still be used in the absence of initial data. At the same time, the user can manually adjust the corresponding initial weight to meet the user's various weight requirements. Weighted calculation is performed according to the type of fault to meet the impact analysis of data under different fault conditions, and improve the precision of impact score analysis and processing. Weighted calculation is performed according to table field type and table type, highlighting the importance of different field types and table types to meet the impact analysis of different types of data.
[0111] The present invention may be a system, a method and / or a computer program product. The present invention also discloses a data lineage-based fault impact assessment and analysis system based on the aforementioned data lineage-based fault impact assessment and analysis method, comprising:
[0112] A graph data acquisition module is used to acquire blood relationship graph data, parse the blood relationship graph data, obtain data tables, data table fields, dependencies between data table fields, data table field types and data table field application times, and construct a directed acyclic graph using the data table fields as nodes and the dependencies as edges;
[0113] An initial weight calculation module, used to calculate the initial weight of each leaf node in the directed acyclic graph based on the number of application times of the data table field;
[0114] The node score calculation module is used to use the initial weight of each leaf node as the importance score of each leaf node, and calculate the importance score of the associated non-leaf nodes layer by layer based on the initial weight of each leaf node based on the PageRank algorithm;
[0115] A data table score calculation module, used for summing up the importance scores of all node sets to determine the importance score of each data table in the blood relationship map data, wherein the node sets represent multiple fields in the same data table;
[0116] The impact assessment and analysis module is used to set the fault warning level of the corresponding node set according to the importance score of each data table, and perform impact assessment and analysis on the failed nodes based on the fault warning level.
[0117] Based on the spirit of the present invention, those skilled in the art can easily think that a computer program product can be obtained based on the aforementioned fault impact assessment and analysis method based on data lineage. The computer program product may include a computer-readable storage medium, which carries computer-readable program instructions for enabling a processor to implement various aspects of the present disclosure. That is, the present application also includes a terminal, including a processor and a storage medium; the storage medium is used to store instructions; the processor is used to operate according to the instructions to execute the steps of the aforementioned fault impact assessment and analysis method based on data lineage.
[0118] Computer readable storage medium can be a tangible device that can keep and store the instructions used by the instruction execution device. Computer readable storage medium can be, for example, - but not limited to - electrical storage device, magnetic storage device, optical storage device, electromagnetic storage device, semiconductor storage device or any suitable combination of the above. More specific examples (non-exhaustive list) of computer readable storage medium include: portable computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, for example, punch card or groove protrusion structure with instructions stored thereon and any suitable combination of the above. Computer readable storage medium used here is not interpreted as instantaneous signal itself, such as radio wave or other free propagating electromagnetic wave, electromagnetic wave propagated by waveguide or other transmission medium (for example, light pulse by optical fiber cable) or electric signal transmitted by wire.
[0119] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0120] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages-such as Smalltalk, C++, etc., and conventional procedural programming languages-such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network-including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA) may be personalized by utilizing the state information of a computer-readable program instruction, and the electronic circuit may execute a computer-readable program instruction, thereby realizing various aspects of the present disclosure.
[0121] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A fault impact assessment and analysis method based on data lineage, characterized in that: The following steps are involved: Step 1: Obtain blood relationship map data, parse the blood relationship map data, obtain data tables, data table fields, dependencies between data table fields, data table field types, and data table field application times, use the data table fields as nodes and the dependencies as edges to construct a directed acyclic graph; Step 2: Calculate the initial weight of each leaf node in the directed acyclic graph based on the application times of the data table field; Step 3: Take the initial weight of each leaf node as the importance score of each leaf node, and calculate the importance score of the associated non-leaf nodes layer by layer based on the PageRank algorithm through the initial weight of each leaf node; Step 4: summing up the importance scores of all node sets to determine the importance scores of each data table in the blood relationship map data, wherein the node sets represent multiple fields in the same data table; Step 5: Set the fault warning level of the corresponding node set according to the importance score of each data table, and perform impact assessment analysis on the failed nodes based on the fault warning level.
2. The method for fault impact assessment and analysis based on data lineage relationship according to claim 1 is characterized in that: The calculating the initial weight of each leaf node in the directed acyclic graph based on the application times of the data table field further includes: Calculate the initial weight Q of the i-th leaf node i : where n i is the number of times the data table field of the i-th leaf node is applied, n is the number of leaf nodes, Q i is the initial weight of the i-th leaf node.
3. The fault impact assessment and analysis method based on data lineage relationship according to claim 2 is characterized in that: The data table field application times are the service call times or page reference times of each field.
4. The method for fault impact assessment and analysis based on data lineage relationship according to claim 3 is characterized in that: The step of summing up the importance scores of all node sets to determine the importance score of each data table in the blood relationship map data further includes: Weighted calculation of the importance score IMAa of the current data table: <h2 style=";text-align:left;direction:ltr">IMAa=d<h2 style=";text-align:left;direction:ltr"> i <h2 style=";text-align:left;direction:ltr"> *(IMa1+IMa2+IMa3+…+IMa<h2 style=";text-align:left;direction:ltr"> i <h2 style=";text-align:left;direction:ltr"> ) Where IMai is the importance score of node ai, d i is the weight of the corresponding type of data table i.
5. A fault impact assessment and analysis system based on data lineage, characterized in that: include: A graph data acquisition module is used to acquire blood relationship graph data, parse the blood relationship graph data, obtain data tables, data table fields, dependencies between data table fields, data table field types and data table field application times, and construct a directed acyclic graph using the data table fields as nodes and the dependencies as edges; An initial weight calculation module, used to calculate the initial weight of each leaf node in the directed acyclic graph based on the number of application times of the data table field; The node score calculation module is used to use the initial weight of each leaf node as the importance score of each leaf node, and calculate the importance score of the associated non-leaf nodes layer by layer based on the initial weight of each leaf node based on the PageRank algorithm; A data table score calculation module, used for summing up the importance scores of all node sets to determine the importance score of each data table in the blood relationship map data, wherein the node sets represent multiple fields in the same data table; The impact assessment and analysis module is used to set the fault warning level of the corresponding node set according to the importance score of each data table, and perform impact assessment and analysis on the failed nodes based on the fault warning level.
6. The fault impact assessment and analysis system based on data lineage relationship according to claim 5, characterized in that: The initial weight calculation module is further used for: Calculate the initial weight Q of the i-th leaf node i : where n i is the number of times the data table field of the i-th leaf node is applied, n is the number of leaf nodes, Q i is the initial weight of the i-th leaf node.
7. The fault impact assessment and analysis system based on data lineage relationship according to claim 6 is characterized in that: The data table field application times are the service call times or page reference times of each field.
8. The fault impact assessment and analysis system based on data lineage relationship according to claim 7 is characterized in that: The data table scoring calculation module is further used to: Weighted calculation of the importance score IMAa of the current data table: <h2 style=";text-align:left;direction:ltr">IMAa=d<h2 style=";text-align:left;direction:ltr"> i <h2 style=";text-align:left;direction:ltr"> *(IMa1+IMa2+IMa3+…+IMa<h2 style=";text-align:left;direction:ltr"> i <h2 style=";text-align:left;direction:ltr"> ) Where IMai is the importance score of node ai, d i is the weight of the corresponding type of data table i.
9. A terminal comprising a processor and a storage medium; characterized in that: The storage medium is used to store instructions; The processor is used to operate according to the instruction to execute the steps of the fault impact assessment and analysis method based on data lineage relationship according to any one of claims 1-4.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the fault impact assessment and analysis method based on data lineage relationship described in any one of claims 1 to 4 are implemented.
Citation Information
Cited By
Power grid data consanguinity management system
CN119671548A
A power grid data lineage management system
CN119671548B
