Offline data storage and calculation method based on time-slicing intelligent inspection control

Through the intelligent inspection control method based on time slicing, the problems of data integrity, timeliness and accuracy in offline data processing are solved, intelligent control of offline data processing activities is realized, and the integrity and timeliness of data processing are ensured. .

CN113867844BActive Publication Date: 2024-10-18CHINA YOUKE COMM TECH
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the process of offline data processing, how to ensure the integrity, timeliness and accuracy of data, especially when the data are interrelated and dependent, is difficult to effectively solve with existing technology.

Method used

Adopt an intelligent inspection control method based on time slicing, establish standardized data processing activities by presetting and encapsulating offline data processing activities, and use time slicing cycle rules to mark data, combined with the intelligent scheduling and heartbeat mechanism of the process control center to ensure that data Completeness and timeliness of the disposal process.

Benefits of technology

It realizes intelligent control of offline data processing activities, ensures the integrity, timeliness and accuracy of data processing, avoids delays and errors in data results, and improves the reliability of data calculations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113867844B_ABST
    Figure CN113867844B_ABST
Patent Text Reader

Abstract

The present invention relates to an offline data storage and calculation method and system based on time-slice intelligent inspection and control, including: a configuration center, which is responsible for the management of offline activity abstract models and the information storage of offline activity parameters; a process control center, which is used to initialize, start, run monitoring, and release the intelligent scheduling function of activity instances for offline data activities; the process control center also includes one or more running nodes, and all offline data activities instantiated by the process control center are on the running nodes as the activity instance running environment. In the scenario of offline data processing, the present invention relies on taking the data time as a precondition from the beginning of the receiving activity, marking the data with a timestamp according to a certain time rule, and combining inspection control to ensure the integrity, timeliness and accuracy of the data processing process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information technology, and in particular to an offline data storage and calculation method based on time-slice intelligent inspection control. Background Art

[0002] Offline and real-time data processing has always been an important part of information technology data storage and computing. Compared with real-time processing, offline data processing is more suitable for post-analysis scenarios with low timeliness requirements. It includes a complete set of standardized definition processes from data reception, processing, storage, analysis / computation in the industry, but in actual applications, it faces the following problems:

[0003] How to ensure the integrity of offline data processing? Data must go through a series of data processing processes from reception to final storage (analysis and calculation), and it is necessary to ensure that each process can be executed completely and correctly.

[0004] How to improve the timeliness of offline data calculation results? Although offline data has a certain time tolerance compared to real-time calculation, the data results must also be "relatively" timely.

[0005] How to ensure the accuracy of offline data calculation results? Because the data are interrelated and interdependent, for example, the provincial data of Huitong must wait for the city-level data to be loaded before the results are valid. Summary of the invention

[0006] In view of this, the purpose of the present invention is to provide an offline data storage and calculation method based on time-sliced ​​intelligent inspection and control. In the scenario of offline data processing, the data time is used as a prerequisite from the beginning of the receiving activity, and the data is timestamped according to certain time rules, combined with inspection and control to ensure the integrity, timeliness and accuracy of the data processing process.

[0007] To achieve the above object, the present invention adopts the following technical solution:

[0008] An offline data storage and calculation method based on time-slicing intelligent inspection control includes the following steps:

[0009] Step S1: Preset and encapsulate common offline data processing activities, and establish standardized data processing activities;

[0010] Step S2: Create and configure the startup, operation, and parameter attributes of each data processing activity instance, including time slice cycle rules;

[0011] Step S3: Read the activity check configuration at the time of initialization or when the startup parameters are updated, and add it to the control check table of the process control center, and monitor the changes of the activity check parameters (especially the time slice related parameters);

[0012] Step S4: when it is found that the subscription parameters in the check table have changed, each activity condition will be scanned to see if it is met. If it is met, the relevant activity instance will be started to perform offline data processing;

[0013] Step S5: ensuring that only one instance of the same activity is running at the same time in terms of startup parameters;

[0014] Step S6: For long-term active instances, heartbeats will be sent to the process control center at regular intervals. If the heartbeat is interrupted for more than a certain period of time, the process control center will restart the active instance;

[0015] Step S7: After the activity instance is successfully executed, the startup parameter value information is updated according to the execution result;

[0016] Step S8: After the execution of the activity instance fails, the task will be discarded to the failure queue. For the activities in the failure queue, the instance will not be executed even if the conditions are met;

[0017] Step S9: According to the configuration parameters of the failure waiting time, the activity is retrieved from the failure queue and put into the startup parameter management range of the center.

[0018] Furthermore, the standardized data processing activities include data access activities, data storage activities, data deletion activities, data download activities, etc., where the activities are divided into long-term activities and temporary activities.

[0019] Furthermore, the offline data processing processes in the standardized data processing activities are marked and distinguished according to certain time slice period rules to facilitate time slice identification of the data.

[0020] Furthermore, the parameter types are divided into startup parameters, operation parameters and activity decision parameters, and all activity parameters are time slice attributes.

[0021] An offline data storage and computing system based on time-slicing intelligent inspection control, comprising:

[0022] Configuration center, responsible for the management of offline activity abstract models and the storage of offline activity parameter information;

[0023] The process control center is used to initialize, start, monitor and release the intelligent scheduling function of offline data activities;

[0024] The process control center includes one or more running nodes. All offline data activities instantiated by the process control center are on the running nodes as the activity instance running environment.

[0025] Compared with the prior art, the present invention has the following beneficial effects:

[0026] 1. The present invention establishes the standardization of offline activities and the normalization of parameters, decomposes and abstracts offline data processing into multiple independent activities, and selects and defines the required activities from the abstract activity model to complete the offline data processing requirements;

[0027] 2. The present invention ensures the instantiation and executability of offline activities by predefining different types of activity parameters, including runtime parameters, which are used for parameter attribute information used during the activity operation process; startup parameters, which are used for judgment conditions when the activity is started, and inspection parameters, which are used for attribute information of the startup parameters of the activity for regular inspection;

[0028] 3. The present invention innovatively proposes to use time slicing as a core prerequisite, and the intelligent process control center is responsible for managing the instantiation and operation of offline data processing activities and guarding the activity running instances through conditional confirmation of the startup parameters, thereby realizing intelligent process control of offline data processing activities. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is a system framework diagram of the present invention;

[0030] Figure 2 It is a flow chart of offline data processing activities in one embodiment of the present invention. DETAILED DESCRIPTION

[0031] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0032] refer to Figure 1 The present invention provides an offline data storage and computing system based on time-sliced ​​intelligent inspection control, which includes three components:

[0033] Configuration center: responsible for the management of offline activity abstract models and the information storage of offline activity parameters.

[0034] Process control center: responsible for the intelligent scheduling functions of offline data activity instance initialization, startup, operation monitoring, release, etc.

[0035] Running node: It can contain one or more running nodes at the same time. All offline data activities instantiated by the process control center are on the running node, which is the running environment of the activity instance.

[0036] refer to Figure 2 The present invention also provides an offline data storage and calculation method based on time-sliced ​​intelligent inspection control. In this embodiment, the method specifically includes the following steps:

[0037] 1. Define and encapsulate common offline data processing activities to establish standardized data processing activities;

[0038] a) Configuration center - activity abstraction management (abstract offline data processing activities)

[0039]

[0040]

[0041] Preferably, the data activities can be abstractly expanded according to actual requirements, and also include data compression / decompression activities, data file processing and formatting activities, etc., and others are not listed one by one.

[0042] b) Activity classification (two categories)

[0043]

[0044] There is a one-to-many relationship between the activity abstract model and the activity instance. The abstract model of the same activity can set different disposal activities by defining different parameters.

[0045] 2. The activity configuration center extracts activities according to real-time business requirements and defines the parameters of each data activity. The parameter types are divided into decision parameters, startup parameters and operation parameters;

[0046] Decision parameters: defined by the activity abstract model and used to determine whether the activity instance meets the running conditions.

[0047] Startup parameters: defined when the activity is defined, used for environmental conditions such as activity type and number of activity instances when the activity instance is started.

[0048] Running parameters: defined when the activity is defined, used for parameter information required by the activity instance during operation.

[0049] The activity parameters must include attributes associated with time slicing, including the most recent time slicing partition, time slicing period, and time slicing period unit, to confirm the time slicing rules and provide the control center with a basis for inspection decisions through time slicing.

[0050] a) Configuration Center - Activity Parameter Management Example

[0051] i. Activity 1

[0052]

[0053]

[0054] Activity 1 uses the time slice parameter to define the received data to be output into files every 5 minutes.

[0055] The default value of {time slice} is 14-bit time + time slice period + time slice period unit, as follows

[0056] yyyyMMddHHmmss_5_MINUTES

[0057] That is, the output file is PeopleView_20200720180000_5_MINUTES.csv

[0058] ii. Activity 2

[0059]

[0060]

[0061] Activity 2 determines the downloaded file list information through the local path, time slice period, and time slice unit.

[0062] iii. Activity 3

[0063]

[0064] Activity 3 determines the uploaded file list information through the local path, time slice period, and time slice unit.

[0065] iv. Activity 4

[0066]

[0067]

[0068]

[0069] Data table partitions are uniformly created according to time slices. Activity 4 uses the time slice period to calculate the table partition name and loads the corresponding files into the table partition according to the time slice.

[0070] v.Activity 5

[0071]

[0072]

[0073] Activity 5 uses the time slicing period to confirm the data period range that needs to be calculated.

[0074] 3. The process control center reads the active inspection configuration at initialization (or when the startup parameters are updated) and adds it to the control inspection table of the process control center. The activity monitors the changes in the inspection parameters;

[0075] Control check management is used to record the status of dependent information of process control center activities. When the process control center is started, it will immediately register the activity operation parameters that need to be monitored, subscribe to their status, and confirm the status change of the checklist by calculating the time slice parameters.

[0076] a) Activity parameter registration and subscription, taking the activity in step S3 as an example

[0077]

[0078]

[0079] Note:

[0080] 1. Check table parameters and value changes by registering the corresponding file directory monitoring / table partition monitoring function.

[0081] 2. The corresponding table in Activity 5 (data calculation and analysis activity) is obtained by parsing SQL.

[0082] 3. Check the parameters in the table to which the activity is subscribed that will trigger the activity execution when changed.

[0083] b) Check the information type description

[0084]

[0085] 4. When the process control center finds that the subscription parameters in the checklist have changed, it will scan whether the conditions of each activity are met. If they are met, it will start the relevant activity instance to perform offline data processing;

[0086] The control center activity decision management is a service module maintained by the control management center. Its main function is to provide activity operation decision services. All activities defined in the configuration center will register activity operation decision information with the control center activities so that when the relevant activity subscription information of the control checklist changes, the activity operation decision is triggered to generate an activity instance.

[0087]

[0088]

[0089] For example:

[0090]

[0091] To make decisions and manage the start / stop of activities, when the "Database Table Information Type-HIVE Table Time Slice Table Partition" information of the control check table changes from "PeopleView_20200720000000_1_DAYS" to "PeopleView_20200721000000_1_DAYS", the process control center receives the event subscription message and injects the change condition into the "Activity Operation Decision" parameter of Activity 5. If it returns to being executable, Activity 5 will be instantiated. If it returns to being not executable, it will continue to subscribe to monitor the changes in the check table.

[0092] 5. The process control center ensures that only one instance of an activity with the same defined parameters is running at the same time;

[0093] 6. The process control center will periodically send heartbeats to the process control center for long-term active instances. If the heartbeat is interrupted for more than a certain period of time, the process control center will restart the active instance;

[0094] Active instance running status management records the recent active status of the active instance on the running node.

[0095]

[0096]

[0097] The process control center monitors the status of activity instances by maintaining the activity instance status table, ensures the stability and normal operation of the instance number of long-term activities, closes and removes abnormal and unresponsive long-term activities, and starts new instances; for short-term activity instances, single instance operation is guaranteed, and task instances are closed when timeout occurs.

[0098] 7. After the activity instance is successfully executed, the process control center will update the operation parameter value information according to the execution results;

[0099] Taking Activity 5 as an example, when the execution is completed, the variable value in the running parameter will be updated:

[0100]

[0101] 8. After an activity instance fails to execute, the process control center will discard the task to the failure queue. For activities in the failure queue, the instance will not be executed even if the conditions are met;

[0102] The process activity failure table is maintained by the process control center and is used to temporarily store failed activities:

[0103]

[0104] The process control center configures parameters according to the failure waiting time, retrieves activities from the failure queue and puts them into the center's process control checklist parameter management range;

[0105] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0106] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0107] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0108] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0109] The above is only a preferred embodiment of the present invention, and does not limit the present invention in other forms. Any technician familiar with the profession may use the above disclosed technical content to change or modify it into an equivalent embodiment with equivalent changes. However, any simple modification, equivalent change and modification made to the above embodiment according to the technical essence of the present invention without departing from the technical solution of the present invention still belongs to the protection scope of the technical solution of the present invention.

Claims

1. An offline data storage and calculation method based on time-slicing intelligent inspection control, characterized in that: The following steps are involved: Step S1: Preset and encapsulate common offline data processing activities, and establish standardized data processing activities; Step S2: Create and configure the startup and operation parameter attributes of each data processing activity instance; The activity configuration center extracts activities according to real-time business requirements and defines the parameters of each data activity. The parameter types are divided into decision parameters, startup parameters, and operation parameters. The activity parameters must include attributes associated with time slicing, including the most recent time slicing partition, time slicing period, and time slicing period unit, to confirm the time slicing rules and provide the control center with inspection and decision-making basis through time slicing. Step S3: Read the active inspection configuration at the time of initialization or when the startup parameters are updated, and add it to the control inspection table of the process control center, and monitor the changes of the active inspection parameters; Step S4: when it is found that the subscription parameters in the check table have changed, each activity condition will be scanned to see if it is met. If it is met, the relevant activity instance will be started to perform offline data processing; Step S5: ensuring that only one instance of the same activity is running at the same time in terms of startup parameters; Step S6: For long-term active instances, heartbeats will be sent to the process control center at regular intervals. If the heartbeat is interrupted for more than a certain period of time, the process control center will restart the active instance; Step S7: After the activity instance is successfully executed, the startup parameter value information is updated according to the execution result; Step S8: After the execution of the activity instance fails, the task will be discarded to the failure queue. For the activities in the failure queue, the instance will not be executed even if the conditions are met; Step S9: According to the configuration parameters of the failure waiting time, the activity is retrieved from the failure queue and then put into the startup parameter management range of the center.

2. The offline data storage and calculation method based on time-sliced ​​intelligent inspection control according to claim 1 is characterized in that: The standardized data processing activities include data access activities, data storage activities, data deletion activities, and data download activities, where the activities are divided into long-term activities and temporary activities.

3. The offline data storage and calculation method based on time-sliced ​​intelligent inspection control according to claim 1 is characterized in that: The offline data processing processes in the standardized data processing activities are marked and distinguished according to the preset time slice period rules.

4. An offline data storage and computing system based on time-sliced ​​intelligent inspection control, characterized in that: The system is implemented by using the offline data storage and calculation method based on time-sliced ​​intelligent inspection control as described in any one of claims 1-3, including The configuration center is responsible for the management of the abstract model of offline activities and the information storage of offline activity parameters; The process control center is used to initialize, start, monitor and release the intelligent scheduling function of offline data activities; The process control center includes one or more running nodes. All offline data activities instantiated by the process control center are on the running nodes as the activity instance running environment.

Citation Information

Patent Citations

  • Electricity consumption data batch high speed processing method and system based on distributed offline technology

    CN106502772A

  • Semantic net based large scale offline data analysis framework

    CN106570081A