[0034] In order to clarify the purposes of the present invention, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0035] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are in order to distinguish between two identical names of different entities or non-identical parameters, visible "first" "second" For the convenience of expression, it is not understood to be limited to the embodiment of the present invention, and the subsequent embodiment will not be described herein.
[0036] Based on the above object, the first aspect of the embodiments of the present invention is proposed in an embodiment of a processing method of associated data for data sheet redundant storage. like figure 1 As shown, it includes the following steps:
[0037] Step S101, the data processing status table is constructed;
[0038] In step S103, the 1-stage distribution device, a plurality of 2-stage distribution devices are activated in response to the distribution service manager receives the original data transmission.
[0039] Step S105, based on the 1-stage distribution device, the 1-stage distribution is initiated, and the 1-stage distribution record and the corresponding processing state are generated in the data processing status table;
[0040] In response to the level 1 distribution request transmitted by the distribution service manager, the 1-stage distribution apparatus is received, and the 1-stage distribution record corresponding to the 1-stage distribution record is updated in terms of the 1-stage distribution. The device sequentially calls the 2-stage distribution device to initiate the 2-stage distribution, and register the 2-stage distribution record and generate a corresponding processing state in the data processing status table;
[0041] In response to the 2-stage distribution apparatus, the 2-stage distribution record corresponding to the level 2 distribution record is updated, and the associated data corresponding to the 2-stage distribution device is updated. .
[0042] Specifically, the data processing status table is used to record the data distribution update, which is easy to distribute the management server trace program process.
[0043] Data processing status tables include: data type, data ID, new data value, processing node, startup time, last processing time, processing status, and message, see Table 1 for details, given several data status registration, level 1 when updated Distribution records and level 2 distribution records.
[0044] Table 1
[0045]
[0046] When the distribution service manager receives the data update request sent by the original data asynchronously, the Distribution Service Manager starts a level 1 distribution device, multiple level 2 distribution devices, and calls the 1-level distribution device to start level 1 distribution, and data processing The status table registers Level 1 distribution record and sets the processing status of Level 1 distribution record to start.
[0047]When the 1-stage distribution device receives the level 1 distribution request sent by the Distribution Service Manager, the processing status corresponding to the 1-stage distribution record in the data processing status table is in the process, and the 1-stage distribution device is used to call 2 Level distribution devices to initiate 2-level distribution, and register a 2-level distribution record in the data processing status table and set the processing status of Level 1 distribution record to start.
[0048] Sending a level 2 distribution request from the Level 1 distribution device, and the processing status corresponding to the 2-stage distribution record in the data processing status table is processed by the launched update, and each 2-level distribution is updated based on the 2-stage distribution device. The correlation data corresponding to the device.
[0049] According to the method as described above, the asynchronous manner is used to reduce the resource consumption and waiting for each stage; a multi-stage manner, the first stage processing apparatus is called to start a plurality of secondary processing means simultaneously to multiple associated data tables. Distribute update data, improves the efficiency of data processing; Processing failure is not found, resulting in redundant storage associated data is not updated in time.
[0050] In some embodiments, the method also includes:
[0051] Start the 1-level distribution device, while multiple 2-level distribution devices, start the polling check data processing status table.
[0052] By polling the data processing status table, check the abnormal data in the status table in the data processing status table, and transfer to the processing exception data table, where the processing exception data table is used to summarize the data update recorded in the status table. Abnormal information, and feedback to user by distributing service manager and reminding users to make decisions to corresponding processing methods.
[0053] In some embodiments, the 2-level distribution device is sequentially invoked based on the level 1 distribution device, and further includes:
[0054] Respond to all level 2 distribution devices successfully, logout 1 level distribution record.
[0055] In some embodiments, the method also includes: in response to successful data update, the corresponding level 2 distribution record is logged out.
[0056] In some embodiments, the method also includes: in response to unsuccessful data update, updating the processing status of the 2-stage distribution record.
[0057] In some embodiments, the startup polling check data processing status table includes: checking the data processing status table according to the preset check period, and processing exception data based on the polling check policy.
[0058] In some embodiments, abnormal data is processed according to polling inspection policies, including:
[0059] If the processing state of the processing node is in the startup or processing, the last processing time of the processing node exceeds the predetermined node processing for the longest time, or the processing state of the processing node is failed, The corresponding exception record in the data processing status table corresponding to the processing node is sent to the processing exception data sheet.
[0060] With the embodiment of the present invention, the data update work can be recorded, logged out, and the corresponding data status can be recorded, which facilitates the status of the data processing state when the original data is asynchronously updated, and the data processing failed to prevent data processing, resulting in The associated data for redundant storage is not updated in time, and by using multi-stage distribution, asynchronous processing, it is guaranteed that the performance of the original data processing is not affected, and the fast and reliable update of redundant data is guaranteed.
[0061] Based on the same inventive concept, according to another aspect of the invention, such as figure 2 As shown, a processing system for associated data for data sheet redundancy storage, including:
[0062] Building module 110, the build module 110 is configured to build a data processing status table;
[0063] Start module 120, the startup module 120 is configured to initiate a 1-stage distribution device, a plurality of 2-stage distribution devices in response to the distribution service manager.
[0064] The first registration module 130, the first registration module 130 is configured to initiate Level 1 distribution based on the Level 1 distribution device, and register 1 level distribution record and generate a corresponding processing state in the data processing status table;
[0065] The second registration module 140, the second registration module 140 is configured to update the level 1 distribution record in the data processing status table in response to the level 1 distribution device to receive the 1-stage distribution request sent by the distribution service manager. The corresponding processing status is sequentially invoked by the level 1 distribution device, and the 2-stage distribution record is registered in the data processing status table and the corresponding processing state is generated;
[0066] The update module 150 is configured to update the 2-stage distribution record corresponding to the 2-stage distribution request in response to the 2-stage distribution device, update the processing state of the 2-stage distribution record, and update the The associated data corresponding to the 2-level distribution device.
[0067] Based on the same inventive concept, according to another aspect of the invention, such as image 3 As shown, the embodiment of the present invention further provides a computer device 20, including processor 210 and memory 220 in the computer device 20, and memory 220 stores computer program 221 that can be run on the processor. The step of executing the method is performed when the program is executed.
[0068] Based on the same inventive concept, according to another aspect of the invention, such as Figure 4 As shown, the embodiment of the present invention further provides a computer readable storage medium 30 that stores a computer program 310 that performs the above method when executed by the processor.
[0069] It will be noted that one of ordinary skill in the art will appreciate that all or part of the flow in the above-described embodiment can be done by a computer program to perform related hardware, and the program can be stored in a computer readable storage medium, which When the program is executed, the flow of embodiments such as the above methods can be included. Wherein, the storage medium of the program can be a disk, an optical disk, a read-only storage memory (ROM), or a random storage memory (RAM), and the like. Embodiments of the above computer program can achieve the same or similar effects as the corresponding foregoing arbitrary method embodiments.
[0070] The above is an exemplary embodiment of the disclosure of the present invention, but it should be noted that a variety of changes and modifications can be made without departing from the scope of the invention as defined by the invention. The functionality, steps, and / or actions according to the method according to the method described herein, the steps, and / or the actions are not required to be performed in any particular order. Further, although the elements disclosed in the present invention may be described or required in an individual, unless it is clearly limited, it is understood to be plural.
[0071] It should be understood that, in this paper, unless the context clearly supports exception, the singular form "one" is intended to include multiple forms. It should also be understood that "and / or" as used herein refers to arbitrary and all possible combinations of items that include one or more associated items.
[0072] The above-described embodiments of the present invention discloses that the sequence number of the present invention is described only for describing, and does not represent the advantages and disadvantages of the embodiment.
[0073] One of ordinary skill in the art will appreciate that all or some of the steps that implement the above embodiment can be accomplished by hardware, and can also be stored in a computer readable storage medium via hardware, and the program can be stored in a computer readable storage medium. The storage medium can be read-only memory, disk, or disc.
[0074] One of ordinary skill in the art will appreciate that the discussion of any of the above embodiments is merely exemplary, and is not intended to impose a range (including the claims) of the embodiments of the present invention (including the claims); The technical features of the above embodiments or in different embodiments may also be combined, and there are many other changes in the different aspects of the embodiments of the present invention, and they are not provided in detail in the details. Therefore, any other omitted, modification, equivalent replacement, improvement, etc., which is omitted within the spirit and principles of the embodiments of the present invention, should be included within the protection range of the embodiment of the present invention.