Data management method and device, electronic equipment and medium
By dynamically monitoring and building a data quality map, it solves the problem that existing data governance methods cannot cope with changes in enterprise organizational structure and data links, improves the stability and applicability of data quality, and is suitable for data governance in different scenarios.
Patent Information
- Application Number
- CN202310193958.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-02
- Publication Date
- 2024-09-03
AI Technical Summary
Existing data governance methods adopt fixed policy management, which cannot respond to changes in enterprise organizational structure and data links in a timely manner, affecting the stability of data quality.
By pulling matching data from the source data of multiple business units according to data loading rules, determining the scheduling relationship between tasks, dynamically monitoring tasks in batches according to monitoring rules and scheduling relationships, and building a data quality map after task execution. Make sure the data loading rules match the business scenario.
It improves the stability and applicability of data quality, is suitable for data governance in different scenarios, avoids data loss, drift and misalignment, and enhances data layout management and quality monitoring functions.
Smart Images

Figure CN118586749A
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data technology, and in particular to a method, device, electronic device and medium for data governance. Background Art
[0002] Data governance is a collection of activities that exercise power and control over data asset management, including the development and implementation of a set of management behaviors for business applications and technical management of data within the entire enterprise. Data governance is the foundation for enterprises to achieve digital strategies, and its ultimate goal is to enhance the value of data and provide reliable, timely and relevant information to support good business decisions.
[0003] At present, most data governance adopts fixed policy management, which monitors the execution of computing tasks based on pre-set policies to complete data management. However, this method is not generally applicable and cannot respond to changes in the enterprise organizational structure and data links in a timely manner, affecting the stability of data quality. Summary of the invention
[0004] The embodiments of the present application provide a method, device, electronic device, and medium for data governance to improve the stability of data quality. The technical solution is as follows:
[0005] In a first aspect, an embodiment of the present application provides a method for data governance, including:
[0006] Pull matching data from source data of multiple business units according to data loading rules;
[0007] Determine the scheduling relationship between tasks of each business unit;
[0008] Dynamically monitor each task in batches according to the monitoring rules and the scheduling relationship;
[0009] After each task performs calculations on the data, a data quality map is constructed based on the calculation results;
[0010] The data loading rules match the business scenarios of the multiple business units.
[0011] In a second aspect, an embodiment of the present application provides a data governance device, including:
[0012] The pull module is used to pull matching data from the source data of multiple business units according to the data loading rules;
[0013] A determination module is used to determine the scheduling relationship between the tasks of each business unit;
[0014] A monitoring module, used to dynamically monitor each task in batches according to the monitoring rules and the scheduling relationship;
[0015] A construction module, used for constructing a data quality map according to the calculation results after each task performs calculation on the data;
[0016] The data loading rules match the business scenarios of the multiple business units.
[0017] In a third aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor so that the at least one processor can execute the above method.
[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on a computer, the method in any one of the above-mentioned embodiments is executed.
[0019] The advantages or beneficial effects of the above technical solution include at least:
[0020] According to the data loading rules, matching data is pulled from the source data of multiple business units, the scheduling relationship between the tasks of each business unit is determined, and each task is dynamically monitored in batches according to the monitoring rules and the scheduling relationship. After each task performs calculations on the data, a data quality map is constructed according to the calculation results. Since the data loading rules match the business scenarios of the business units, they can be applied to data governance in different scenarios and are more practical. In addition, tasks are dynamically monitored based on monitoring rules and scheduling relationships, which improves the stability of data quality.
[0021] The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present application will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in the present application and should not be regarded as limiting the scope of the present application.
[0023] Figure 1 A flowchart of a method for data governance according to an embodiment of the present application;
[0024] Figure 2 A flowchart of a method for data governance according to another embodiment of the present application;
[0025] Figure 3 is a structural diagram of a data management device according to another embodiment of the present application;
[0026] Figure 4 It is a block diagram of an electronic device used to implement the data governance method of an embodiment of the present application. DETAILED DESCRIPTION
[0027] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present application. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.
[0028] The embodiments of the present application provide a method and device for data governance to improve the quality of data governance. The technical solution can be applied to the process of stream batch computing, and can ensure the stability of data quality in complex data scenarios. The above method and device can be applied to electronic devices, including but not limited to: computers, laptops, servers, mobile terminals or vehicle-mounted terminals, etc. Exemplarily, the electronic device can be a server for managing data within an enterprise, and the server can be one or more, which is not specifically limited in the embodiments of the present application.
[0029] Figure 1 A flow chart of a method for data governance according to an embodiment of the present application is shown. Figure 1 As shown, the method may include:
[0030] S101: Pull matching data from source data of multiple business units according to data loading rules.
[0031] In the embodiment of the present application, the data loading rule is used to specify how to pull data, and can be set according to the business scenario of the business unit. For multiple business scenarios of multiple business units, one or more data loading rules can be set, that is, one business scenario can match one data loading rule, or one business scenario can match multiple data loading rules. In order to improve the accuracy of data pulling, a matching data loading rule can be set for each business scenario, so that a higher control granularity can be achieved, unnecessary data can be avoided, and the pulling efficiency can be improved.
[0032] S102: Determine the scheduling relationship between the tasks of each business unit.
[0033] In the embodiment of the present application, each business unit may correspond to one or more tasks. Among all the tasks corresponding to multiple business units, any two tasks may or may not have a scheduling relationship. This step is to find out which tasks have a scheduling relationship, so as to serve as the basis for task batch division.
[0034] S103: Dynamically monitor each task in batches according to monitoring rules and scheduling relationships.
[0035] In the embodiment of the present application, the monitoring rules can be pre-set as needed, or dynamically adjusted during the data governance process, and the embodiment of the present application does not make specific limitations on this.
[0036] Among them, dynamic batch monitoring of tasks means dividing each task into multiple groups, which can also be understood as multiple batches. Then dynamically monitor the tasks in batches or groups in parallel. For example, N tasks are divided into 5 groups according to the monitoring rules and scheduling relationships, and then the 5 groups of tasks are dynamically monitored in parallel. This dynamic parallel monitoring method can improve the efficiency of task monitoring and save monitoring time.
[0037] S104: After each task performs calculation on the data, a data quality map is constructed according to the calculation results.
[0038] The tasks in the embodiments of the present application generally involve calculating the pulled data. For example, if a task of a business unit is to count the number of vehicles that have completed charging in a day, all the pulled vehicle data is calculated to count the number of vehicles that have completed charging in that day.
[0039] In an embodiment of the present application, the data quality map can characterize the relationship between data and reflect the quality of data. It can also be used to analyze task execution results and trigger subsequent operations of related tasks, such as determining to roll back or re-execute related tasks based on the data quality map.
[0040] In one implementation, the method may further include: upgrading the data loading rules to obtain different versions. For example, the data loading rules initially set are version 1, which are modified and upgraded to obtain version 2 after a period of time according to scene changes, and then upgraded to obtain version 3 after a period of time.
[0041] In another embodiment, the above method may further include: switching different versions of data loading rules according to business scenarios. Among them, when pulling data, the corresponding version of the data loading rules can be adapted according to the current scenario, and then the pulling is performed. Exemplarily, different data loading rules are set in advance according to the vehicle model and the vehicle computer software version. Vehicle model A and vehicle computer software version 1.0 correspond to data loading rule 1, vehicle model A and vehicle computer software version 2.0 correspond to data loading rule 2, vehicle model B and vehicle computer software version 1.0 correspond to data loading rule 3, and vehicle model B and vehicle computer software version 2.0 correspond to data loading rule 4. When performing the task of counting vehicle mileage, you can first determine the vehicle model and vehicle computer software version of the vehicle to be counted. If it is determined to be vehicle model B and vehicle computer software version 1.0, you can use data loading rule 3 to pull data.
[0042] The above method provided in this embodiment pulls matching data from the source data of multiple business units according to the data loading rules, determines the scheduling relationship between the tasks of each business unit, and dynamically monitors each task in batches according to the monitoring rules and the scheduling relationship. After each task performs calculations on the data, a data quality map is constructed according to the calculation results. Since the data loading rules match the business scenarios of the business units, data governance in different scenarios can be applied, and the applicability is stronger. Pulling data based on data loading rules can avoid situations such as data loss, data drift, and data misalignment. In addition, dynamically monitoring tasks based on monitoring rules and scheduling relationships improves the stability of data quality.
[0043] Figure 2 A flowchart of a method for data governance according to another embodiment of the present application is shown. Figure 2 As shown, the method may include:
[0044] S201: Pre-set data loading rules based on business scenarios of multiple business units.
[0045] The data loading rules match the business scenarios of the multiple business units.
[0046] S202: Determine whether the source data of the multiple business units conform to the data loading rules, and perform a pull operation on the data in the source data that conforms to the data loading rules.
[0047] S203: Determine the scheduling relationship between the tasks of each business unit.
[0048] S204: Divide the tasks of each business unit into multiple groups according to monitoring rules and scheduling relationships.
[0049] Among them, this step can be completed by using a stream-batch integrated computing controller, which can perform fault-tolerant management while managing tasks, etc., which will not be explained in detail here.
[0050] In one implementation, the above step S204 may include:
[0051] Obtain task node attributes for tasks of each business unit based on metadata analysis;
[0052] According to the monitoring rules, tasks with the same task node attributes are divided into a group, and / or tasks with a scheduling relationship are divided into a group, so as to obtain a plurality of groups.
[0053] In the embodiment of the present application, the above-mentioned task node attributes may include at least one of the calculation position of the task node, the monitoring priority and the subordinate department of the task node. Among them, the calculation position refers to the position of the task node in the overall flow batch processing process, which can be represented by information such as the time when the task node executes the task and / or the priority of executing the task.
[0054] Exemplarily, the monitoring rules may be configured to monitor in order of priority from high to low. The priority list may be pre-stored in a database, such as a high priority for monitoring user-oriented data and a low priority for monitoring business behavior analysis data. After obtaining the task node attributes, tasks with high priority may be grouped into one group and tasks with low priority may be grouped into another group according to the priority in the task node attributes.
[0055] S205: Dynamically allocate a corresponding waterline to each group, and monitor the tasks in each waterline in parallel.
[0056] In the embodiment of the present application, the role of the water level is to distinguish the monitoring level of the task and facilitate parallel processing. Each water level has its own corresponding task group, and the task group has corresponding monitoring rules. Therefore, different water levels correspond to different monitoring rules. Each task in a water level is monitored using the same monitoring rule, that is, the monitoring rule corresponding to the water level is used to monitor. By adopting the above method, tasks of different levels can be controlled to be monitored separately, and parallel processing also improves efficiency and saves time.
[0057] S206: After each task performs calculation on the data, sensitive lineage of the data is generated according to the calculation results.
[0058] In the embodiment of the present application, the sensitive lineage of data records the link relationship generated by data in the entire life cycle of the data. Data sensitive lineage is an important basis for metadata management, which can sort out the relationship between systems, tables, views, stored procedures, program codes and fields, and can be visualized.
[0059] S207: Construct a data quality map based on the sensitive lineage of the data and the quality information of each task.
[0060] In the embodiment of the present application, the quality information of the task is used to characterize the execution of the task, such as whether the quality of the task execution is high, average, or failed. The quality of the task can be reflected by performance indicators, and the quality threshold of the performance indicator can be dynamically generated or pre-configured. For example, a performance indicator can be set to the number of tasks for batch monitoring, with a threshold of 3 million, and the corresponding alarm level is "successful". It can be further set to 2.8 to 2.9 million, with the corresponding alarm level being "alarm", and less than 2.8 million, with the corresponding alarm level being "error", etc., so that the quality of the task execution can be clearly counted and the corresponding warning information can be given.
[0061] The above method provided in this embodiment can be applied to data governance in different scenarios because the data loading rules match the business scenarios of the business units, and can achieve the penetration of the global data link, which is more applicable. Dynamic parallel monitoring tasks based on monitoring rules and scheduling relationships not only improve the efficiency of data governance, but also improve the stability of data quality, strengthen data layout management, pay attention to the in-process management link, and improve the quality monitoring function in multiple dimensions, which helps to establish clear decision-making rules and decision-making processes for shared data, enhance the value of data assets, and make the company's data an efficient and organic whole.
[0062] Figure 3 FIG. 2 shows a device structure diagram of data management according to another embodiment of the present application. Figure 3 As shown, the device may include:
[0063] The pulling module 301 is used to pull matching data from source data of multiple business units according to data loading rules;
[0064] A determination module 302 is used to determine the scheduling relationship between the tasks of each business unit;
[0065] Monitoring module 303, used to dynamically monitor each task in batches according to monitoring rules and scheduling relationships;
[0066] A construction module 304 is used to construct a data quality map according to the calculation results after each task performs calculation on the data;
[0067] The data loading rules match the business scenarios of the multiple business units.
[0068] In one implementation, the pulling module 301 is specifically used for:
[0069] Pre-set data loading rules based on business scenarios of multiple business units;
[0070] Determine whether the source data of multiple business units conform to the data loading rules;
[0071] Pull data from source data that meets the data loading rules.
[0072] In one implementation, the monitoring module 303 may include:
[0073] A division unit is used to divide the tasks of each business unit into multiple groups according to monitoring rules and scheduling relationships;
[0074] An allocation unit, used to dynamically allocate a corresponding water level line to each group;
[0075] The monitoring unit is used to monitor the tasks in each waterline in parallel.
[0076] In one implementation manner, the above-mentioned division unit may be specifically used for:
[0077] Obtain task node attributes for tasks of each business unit based on metadata analysis;
[0078] According to the monitoring rules, tasks with the same task node attributes are divided into a group, and / or tasks with a scheduling relationship are divided into a group, so as to obtain a plurality of groups.
[0079] In one implementation, the above-mentioned task node attributes may include: a computing location of the task node and / or a department to which the task node belongs.
[0080] In one implementation, the construction module 304 is specifically used to:
[0081] After each task performs calculations on the data, the sensitive lineage of the data is generated based on the calculation results;
[0082] Construct a data quality map based on the sensitive lineage of the data and the quality information of each task.
[0083] In one embodiment, the above device further comprises:
[0084] The version module is used to upgrade data loading rules to obtain different versions.
[0085] In one implementation, the version module may also be used to switch between different versions of data loading rules according to business scenarios.
[0086] The functions of each module in each device in the embodiments of the present application can be found in the corresponding description in the above method, and will not be repeated here.
[0087] The above-mentioned device provided in this embodiment can execute the method provided in any of the above-mentioned method embodiments. The detailed process is described in the method embodiment and will not be repeated here.
[0088] The above-mentioned device provided in this embodiment pulls matching data from the source data of multiple business units according to the data loading rules, determines the scheduling relationship between the tasks of each business unit, and dynamically monitors each task in batches according to the monitoring rules and the scheduling relationship. After each task performs calculation on the data, a data quality map is constructed according to the calculation results. Since the data loading rules match the business scenarios of the business units, it can be applied to data governance in different scenarios and has stronger applicability. In addition, tasks are dynamically monitored based on monitoring rules and scheduling relationships, which improves the stability of data quality.
[0089] Figure 4 FIG. 1 is a block diagram showing a structure of an electronic device according to an embodiment of the present application. Figure 4 As shown, the electronic device includes: a memory 410 and a processor 420, and the memory 410 stores instructions that can be run on the processor 420. When the processor 420 executes the instruction, the method of data governance in the above-mentioned embodiment is implemented. The number of the memory 410 and the processor 420 can be one or more. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices 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 application described and / or required herein.
[0090] The electronic device may also include a communication interface 430 for communicating with external devices and performing data exchange transmission. The various devices are interconnected using different buses and may be installed on a common motherboard or in other ways as needed. The processor 420 may process instructions executed within the electronic device, including instructions stored in or on a memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to an interface). In other embodiments, if necessary, multiple processors and / or multiple buses may be used together with multiple memories and multiple memories. Similarly, multiple electronic devices may be connected, each device providing some of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). The bus may be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0091] Optionally, in a specific implementation, if the memory 410, the processor 420 and the communication interface 430 are integrated on a chip, the memory 410, the processor 420 and the communication interface 430 can communicate with each other through an internal interface.
[0092] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the Advanced RISC Machines (ARM) architecture.
[0093] An embodiment of the present application provides a computer-readable storage medium (such as the memory 410 described above), which stores computer instructions. When the program is executed by a processor, the method provided in the embodiment of the present application is implemented.
[0094] Optionally, the memory 410 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device for data management, etc. In addition, the memory 410 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 410 may optionally include a memory remotely arranged relative to the processor 420, and these remote memories may be connected to the electronic device for data management via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0095] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.
[0096] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0097] Any process or method description in the flow chart or otherwise described herein can be understood to represent a module, fragment or portion of a code including one or more (two or more) executable instructions for implementing the steps of a specific logical function or process. And the scope of the preferred embodiment of the present application includes other implementations, in which the functions may not be performed in the order shown or discussed, including in a substantially simultaneous manner or in a reverse order according to the functions involved.
[0098] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, which can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or used in combination with these instruction execution systems, apparatuses or devices.
[0099] It should be understood that the various parts of the present application can be implemented with hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented with software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the above embodiment method can be completed by instructing the relevant hardware through a program, which can be stored in a computer-readable storage medium, and when the program is executed, it includes one of the steps of the method embodiment or a combination thereof.
[0100] In addition, each functional unit in each embodiment of the present application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the above-mentioned integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a disk or an optical disk, etc.
[0101] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method of data governance, It is characterized in that include: Pull matching data from source data of multiple business units according to data loading rules; Determine the scheduling relationship between tasks of each business unit; Dynamically monitor each task in batches according to the monitoring rules and the scheduling relationship; After each task performs calculations on the data, a data quality map is constructed based on the calculation results; The data loading rules match the business scenarios of the multiple business units.
2. The method according to claim 1, It is characterized in that Pulling matching data from source data of multiple business units according to data loading rules includes: Pre-set data loading rules based on business scenarios of multiple business units; Determining whether the source data of the multiple business units conform to the data loading rules; A pull operation is performed on the data in the source data that complies with the data loading rule.
3. The method according to claim 1, It is characterized in that The dynamically monitoring each task in batches according to the monitoring rules and the scheduling relationship includes: Dividing the tasks of each business unit into multiple groups according to the monitoring rules and the scheduling relationship; Dynamically assign a corresponding waterline to each group; Monitor tasks in each watermark in parallel.
4. The method according to claim 3, It is characterized in that The tasks of each business unit are divided into multiple groups according to the monitoring rules and the scheduling relationship, including: Obtain task node attributes for tasks of each business unit based on metadata analysis; According to the monitoring rules, tasks with the same task node attributes are divided into a group, and / or tasks with a scheduling relationship are divided into a group, so as to obtain a plurality of groups.
5. The method according to claim 3, It is characterized in that The task node attributes include the computing location of the task node and / or the department to which the task node belongs.
6. The method according to claim 1, It is characterized in that After each task performs calculation on the data, a data quality map is constructed according to the calculation results, including: After each task performs calculation on the data, a sensitive lineage of the data is generated according to the calculation result; A data quality map is constructed based on the sensitive lineage of the data and the quality information of each task.
7. The method according to claim 1, It is characterized in that The method further comprises: The data loading rules are upgraded to obtain different versions.
8. The method according to claim 7, It is characterized in that The method further comprises: Switch between different versions of data loading rules according to business scenarios.
9. A data management device, It is characterized in that include: The pull module is used to pull matching data from the source data of multiple business units according to the data loading rules; A determination module is used to determine the scheduling relationship between the tasks of each business unit; A monitoring module, used to dynamically monitor each task in batches according to the monitoring rules and the scheduling relationship; A construction module, used for constructing a data quality map according to the calculation results after each task performs calculation on the data; Wherein, the data loading rules match the business scenarios of the multiple business units.
10. An electronic device, It is characterized in that include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, wherein computer instructions are stored in the computer-readable storage medium, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 8 is implemented.
