Data processing method, device, equipment and readable storage medium
During the system migration process, the target system and the original system execute tasks to be executed in parallel, which solves the problem of long-term migration process in the existing technology and achieves more efficient system migration.
Patent Information
- Application Number
- CN202011490493.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-16
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2040-12-16
AI Technical Summary
The existing system migration process takes a long time, especially in large system migrations, which requires sequential migration by organization, resulting in a particularly long time in the migration process.
When receiving the task to be executed sent by the task management platform, the target system executes the task and forwards the task to the original system through the interface, feedbacks the execution results to the task management platform, and feedbacks the migration success information after determining the execution results match, so as to achieve parallel migration between the target system and the original system.
Through the parallel execution of tasks to be executed between the target system and the original system, the limitation of sequential migration by organization is avoided, the time-consuming process of migration is reduced, and the efficiency of system migration is improved.
Smart Images

Figure CN112559150B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a data processing method, device, equipment and readable storage medium. Background Art
[0002] With the continuous development of computer technology, when migrating systems for some service projects, especially large projects, the target system completes the development of its own internal functions, verifies and confirms which functions are related, and then adopts the institutional pilot method to migrate institutions one by one in sequence, and needs to migrate multiple related interfaces, and requires additional development functions to synchronize the new and old interface data in real time. After verifying that the migration of an institution is normal, continue to promote it to multiple systems and institutions. During this period, it is also necessary to adjust the data synchronization function in real time to ensure the consistency of new and old data.
[0003] At present, most existing service projects adopt microservice architecture design, that is, the original large system is divided according to function, and split into small services with relatively independent data functions for management. However, because the system is too large and involves too many system functions with related impacts, it is necessary to ensure that the system functions cannot go wrong during the migration process. Using the existing system migration method, the migration of one institution at a time will make the migration process particularly time-consuming.
[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of the present invention is to provide a data processing method, device, equipment and readable storage medium, aiming to solve the technical problem that the existing system migration takes a long time.
[0006] To achieve the above object, the present invention provides a data processing method, which comprises the following steps:
[0007] Upon receiving the first task to be executed sent by the task management platform, the target system executes the first task to be executed to obtain a first execution result, wherein the task management platform randomly selects a function to be migrated from the target function, and sends the first task to be executed corresponding to the function to be migrated to the target system;
[0008] The target system forwards the first task to be executed to the original system through the interface corresponding to the first task to be executed, wherein the original system feeds back a second execution result corresponding to the first task to be executed;
[0009] The target system feeds back the second execution result to the task management platform, and when it is determined that the first execution result matches the second execution result, the target system feeds back successful migration information of the function to be migrated, wherein when the successful migration information is received, the task management platform updates the target function based on the function to be migrated, and returns to the step of randomly selecting a function to be migrated from the target function, and sending the first task to be executed corresponding to the function to be migrated to the target system.
[0010] Furthermore, after the step in which the target system feeds back the second execution result to the task management platform, and when it is determined that the first execution result is the same as the second execution result, the target system feeds back successful migration information of the function to be migrated, the data processing method further includes:
[0011] After the migration of the function to be migrated is completed, if a second task to be executed corresponding to the function to be migrated is received, the target system executes the first task to be executed to obtain first execution data;
[0012] The target system forwards the second task to be executed to the original system through the interface corresponding to the first task to be executed;
[0013] The target system receives the second execution data corresponding to the second task to be executed fed back by the original system, and feeds back the second execution data to the task management platform.
[0014] Furthermore, after the step of the target system receiving the second execution data corresponding to the second to-be-executed task fed back by the original system and feeding back the second execution data to the task management platform, the step further includes:
[0015] When the duration after the completion of migration of each target function reaches a preset duration, if the first execution data corresponding to each target function within the preset duration matches the second execution data, then determining whether the system resources of the target system meet the preset migration conditions based on the resource information of the target system within the preset duration;
[0016] If the system resources of the target system meet the preset migration conditions, the interfaces corresponding to the target functions between the target system and the original system are disconnected.
[0017] Further, when it is determined that the first execution result matches the second execution result, the step of the target system feeding back successful migration information of the function to be migrated includes:
[0018] the number of times the to-be-migrated function is called by the target system, and when it is determined that the first execution result is the same as the second execution result, updating the number of times the results are the same;
[0019] When the number of calls reaches a preset number, if the number of identical results is the same as the number of calls, the target system determines that the first execution result matches the second execution result, and feeds back successful migration information of the function to be migrated.
[0020] Furthermore, after the step in which the target system feeds back the second execution result to the task management platform, and when it is determined that the first execution result is the same as the second execution result, the target system feeds back successful migration information of the function to be migrated, the data processing method further includes:
[0021] When receiving a version update request, the target system obtains the system name of the version to be issued, and obtains the machine identifier to be updated that matches the system name of the version to be issued from the machines of the target system through the task management platform;
[0022] The target system determines a target update machine ID from among multiple machine IDs to be updated, and sends a release notification message to a target machine corresponding to the target update machine ID, wherein the target machine deregisters itself through a task management platform, and sends a transaction processing completion message to the target system after stopping the transaction processing operation;
[0023] Upon receiving a transaction processing completion message, the target system sends the version content to the target machine, wherein the target machine deploys the version content and sends a restart completion message to the target system when the deployment is complete and the restart is complete;
[0024] When receiving the restart completion message, the target system updates the machine identifier to be updated based on the target update machine identifier, and returns to the step of determining the target update machine identifier among multiple machine identifiers to be updated, and sending a release notification message to the target machine corresponding to the target update machine identifier.
[0025] Furthermore, the target system determines a target update machine identifier among multiple machine identifiers to be updated, and sends a release notification message to a target machine corresponding to the target update machine identifier, including:
[0026] The target system determines whether there is an unregistered machine in the target system that is not registered with the task management platform based on the machine of the target system and the machine identifier to be updated;
[0027] If the unregistered machine exists, the target system sends the version content to the unregistered machine, wherein the unregistered machine deploys the version content, and when the deployment is completed and the restart is completed, sends a registration request to the task management platform, and after the registration is completed, sends a restart completion message to the new system;
[0028] When receiving the restart completion message of the unregistered machine, the target system determines the target update machine ID from multiple machine IDs to be updated based on the number of unregistered machines, and sends a release notification message to the target machine corresponding to the target update machine ID.
[0029] Furthermore, after the step of determining whether there is an unregistered machine in the target system that is not registered with the task management platform, the step further includes:
[0030] If the unregistered machine does not exist, the target system determines a target update machine ID from among multiple machine IDs to be updated, and sends a release notification message to the target machine corresponding to the target update machine ID.
[0031] In addition, to achieve the above object, the present invention further provides a data processing device, the data processing device comprising:
[0032] an execution module, configured to execute the first task to be executed to obtain a first execution result upon receiving the first task to be executed sent by the task management platform, wherein the task management platform randomly selects a function to be migrated from the target function, and sends the first task to be executed corresponding to the function to be migrated to the target system;
[0033] a forwarding module, configured to forward the first task to be executed to an original system through an interface corresponding to the first task to be executed, wherein the original system feeds back a second execution result corresponding to the first task to be executed;
[0034] A feedback module is used to feed back the second execution result to the task management platform, and when it is determined that the first execution result matches the second execution result, feed back the successful migration information of the function to be migrated, wherein when the successful migration information is received, the task management platform updates the target function based on the function to be migrated, and returns to the step of randomly selecting a function to be migrated from the target function, and sending the first task to be executed corresponding to the function to be migrated to the target system.
[0035] In addition, to achieve the above-mentioned purpose, the present invention also provides a data processing device, which includes: a memory, a processor, and a data processing program stored in the memory and executable on the processor, and the data processing program implements the steps of the aforementioned data processing method when executed by the processor.
[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a data processing program is stored, and when the data processing program is executed by a processor, the steps of the aforementioned data processing method are implemented.
[0037] The present invention is that upon receiving a first task to be executed sent by a task management platform, the target system executes the first task to be executed to obtain a first execution result, wherein the task management platform randomly selects a function to be migrated from the target function, and sends the first task to be executed corresponding to the function to be migrated to the target system; then the target system forwards the first task to be executed to the original system through the interface corresponding to the first task to be executed, wherein the original system feeds back a second execution result corresponding to the first task to be executed, and then the target system feeds back the second execution result to the task management platform, and when it is determined that the first execution result matches the second execution result, the target system feeds back successful migration information of the function to be migrated, wherein upon receiving successful migration information, the task management platform updates the target function based on the function to be migrated, and returns to the step of randomly selecting a function to be migrated from the target function, and sending the first task to be executed corresponding to the function to be migrated to the target system, the target system and the original system simultaneously execute the task to be executed, and there is no need to perform sequential migration one by one, so that there is no need to consider the correlation and coupling between each target function during the migration process, and each function is independently migrated to reduce the time consumption of the migration process and improve the efficiency of system migration. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a structural diagram of a data processing device in a hardware operating environment involved in an embodiment of the present invention;
[0039] Figure 2 It is a flowchart of a first embodiment of a data processing method of the present invention;
[0040] Figure 3 A schematic diagram of functional modules of a data processing device according to an embodiment of the present invention.
[0041] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0042] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0043] like Figure 1 As shown, Figure 1 It is a structural diagram of a data processing device in a hardware operating environment involved in an embodiment of the present invention.
[0044] The data processing device of the embodiment of the present invention may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0045] Those skilled in the art will understand that Figure 1 The data processing device structure shown in the figure does not constitute a limitation of the data processing device, and may include more or less components than shown in the figure, or combine some components, or arrange the components differently.
[0046] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a data processing program.
[0047] exist Figure 1 In the data processing device shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the data processing program stored in the memory 1005 and perform the operations in the various embodiments of the following data processing method.
[0048] The present invention also provides a data processing method, referring to Figure 2 , Figure 2 FIG. 1 is a flow chart of a first embodiment of a data processing method according to the present invention.
[0049] In this embodiment, the data processing method includes:
[0050] Step S100, upon receiving the first task to be executed sent by the task management platform, the target system executes the first task to be executed to obtain a first execution result, wherein the task management platform randomly selects a function to be migrated from the target function, and sends the first task to be executed corresponding to the function to be migrated to the target system;
[0051] In this embodiment, when the function development of the target system is completed, a control switch for calling the old interface of the original system is added to the function of the target system, so that the various functions of the original system can be called through the target system, wherein the target system can realize the various target functions of the original system, that is, the target system has the various functions of the original system.
[0052] In this embodiment, the task management platform is communicatively connected with the target system and the original system, and the target system and the original system can be managed through the task management platform. After the target system is connected to the task management platform, the task management platform randomly selects the function to be migrated from each target function, and sends the first task to be executed corresponding to the function to be migrated to the target system. The target system executes the first task to be executed to obtain a first execution result without considering the correlation and coupling between the various target functions.
[0053] Step S200, the target system forwards the first task to be executed to the original system through the interface corresponding to the first task to be executed, wherein the original system feeds back a second execution result corresponding to the first task to be executed;
[0054] In this embodiment, when the target system receives the first task to be executed, the target system sends the first task to be executed to the original system through the interface corresponding to the first task to be executed. Specifically, the target system sends the first task to be executed to the original system by controlling the interface corresponding to the first task to be executed during opening. The original system executes the received first task to be executed through its own target function and feeds back the second execution result of the first task to be executed.
[0055] Step S300, the target system feeds back the second execution result to the task management platform, and when it is determined that the first execution result matches the second execution result, the target system feeds back successful migration information of the function to be migrated, wherein upon receiving the successful migration information, the task management platform updates the target function based on the function to be migrated, and returns to the step of randomly selecting a function to be migrated from the target function, and sending the first task to be executed corresponding to the function to be migrated to the target system.
[0056] In this embodiment, when the second execution result is received, the target system feeds back the second execution result to the task management platform, so as to use the second execution result as the actual execution result of the first task to be executed, so as to avoid errors in the first execution result of the target system, so that the task management platform can receive the correct result of the first task to be executed.
[0057] Then, the target system determines whether the first execution result matches the second execution result. Specifically, when the first execution result is consistent with the second execution result, it is determined that the first execution result matches the second execution result. At this time, the target system feeds back the successful migration information of the function to be migrated, wherein the task management platform receives the successful migration information, and the task management platform updates the target function based on the function to be migrated, that is, deletes the function corresponding to the task to be executed in the target function, and returns to the step of randomly selecting the function to be migrated in the target function, and sending the first task to be executed corresponding to the function to be migrated to the target system, until all target functions are successfully migrated.
[0058] It should be noted that if the first execution result is different from the second execution result, the target system will feedback the migration failure information of the function to be migrated to the task management platform, so that the task management platform outputs the migration failure information to facilitate updating the program or framework of the target system according to the migration failure information.
[0059] The data processing method proposed in this embodiment is as follows: upon receiving the first task to be executed sent by the task management platform, the target system executes the first task to be executed to obtain a first execution result, wherein the task management platform randomly selects a function to be migrated from the target function, and sends the first task to be executed corresponding to the function to be migrated to the target system; then the target system forwards the first task to be executed to the original system through the interface corresponding to the first task to be executed, wherein the original system feeds back a second execution result corresponding to the first task to be executed, and then the target system feeds back the second execution result to the task management platform, and when it is determined that the first execution result matches the second execution result, the target system feeds back successful migration information of the function to be migrated, wherein upon receiving the successful migration information, the task management platform updates the target function based on the function to be migrated, and returns to the step of randomly selecting a function to be migrated from the target function, and sending the first task to be executed corresponding to the function to be migrated to the target system, the target system and the original system simultaneously execute the task to be executed, and there is no need to perform sequential migration one by one, so that there is no need to consider the correlation and coupling between the various target functions during the migration process, and the migration of each function is performed independently to reduce the time consumption of the migration process and improve the efficiency of system migration.
[0060] Based on the first embodiment, a second embodiment of the data processing method of the present invention is proposed. In this embodiment, after step S300, the data processing method further includes:
[0061] Step S210, after the migration of the function to be migrated is completed, if a second task to be executed corresponding to the function to be migrated is received, the target system executes the second task to be executed to obtain first execution data;
[0062] Step S220, the target system forwards the second task to be executed to the original system through the interface corresponding to the second task to be executed;
[0063] Step S230: the target system receives the second execution data corresponding to the second to-be-executed task fed back by the original system, and feeds back the second execution data to the task management platform.
[0064] In this embodiment, after the migration of the function to be migrated is completed, if a second task to be executed corresponding to the function to be migrated is received, the target system executes the second task to be executed to obtain first execution data. At the same time, the target system sends the second task to be executed to the original system through the interface corresponding to the second task to be executed. The original system executes the received second task to be executed through its own target function and feeds back the second execution data of the second task to be executed.
[0065] Then, when receiving the second execution data, the target system feeds back the second execution data to the task management platform, so as to use the second execution data as the actual execution result of the second task to be executed. By running the target system in parallel with the original system, errors in the second execution data of the target system can be avoided, so that the task management platform can receive the correct result of the second task to be executed, ensuring that the target system fully meets the requirements when the switch is completed, thereby reducing business risks.
[0066] The data processing method proposed in this embodiment is as follows: after the migration of the function to be migrated is completed, if the target system receives a second task to be executed corresponding to the function to be migrated, the target system executes the first task to be executed to obtain first execution data; then the target system forwards the second task to be executed to the original system through the interface corresponding to the first task to be executed; then the target system receives the second execution data corresponding to the second task to be executed fed back by the original system, and feeds back the second execution data to the task management platform, and the target system and the original system are run in parallel to avoid errors in the second execution data of the target system, so that the task management platform can receive the correct result of the second task to be executed, thereby ensuring that the target system fully meets the requirements when the switch is completed, thereby reducing business risks.
[0067] Based on the second embodiment, a third embodiment of the data processing method of the present invention is proposed. In this embodiment, after step S230, the data processing method further includes:
[0068] Step S310, when the duration after each target function migration is completed reaches a preset duration, if the first execution data corresponding to each target function within the preset duration matches the second execution data, then determining whether the system resources of the target system meet the preset migration conditions based on the resource information of the target system within the preset duration;
[0069] Step S320: If the system resources of the target system meet the preset migration conditions, the interfaces corresponding to the target functions between the target system and the original system are disconnected.
[0070] In this embodiment, when the duration after the completion of migration of each target function reaches a preset duration, the target system obtains the first execution data and the second execution data corresponding to each target function within the preset duration, and determines whether the first execution data and the second execution data match, that is, determines whether the first execution data and the second execution data corresponding to each task within the preset duration are consistent; if the first execution data and the second execution data corresponding to each target function within the preset duration match, then based on the resource information of the target system within the preset duration, it is determined whether the system resources of the target system meet the preset migration conditions.
[0071] Then, if the system resources of the target system meet the preset migration conditions, the interfaces corresponding to the target functions between the target system and the original system are disconnected, and the control switch is turned off so that when the target system receives a new execution task, the execution result obtained by executing the execution task is used as the actual execution result, thereby completing the switching between the target system and the original system.
[0072] Among them, the preset duration can be set reasonably, for example, the preset duration is 1-3 months.
[0073] It should be noted that if the first execution data and the second execution data are different, the target system will feedback the migration failure information of the function to be migrated to the task management platform, so that the task management platform outputs the migration failure information to facilitate updating the program or framework of the target system according to the migration failure information.
[0074] The data processing method proposed in this embodiment is as follows: when the duration after the completion of migration of each target function reaches a preset duration, if the first execution data corresponding to each target function within the preset duration matches the second execution data, then whether the system resources of the target system meet the preset migration conditions is determined based on the resource information of the target system within the preset duration; then if the system resources of the target system meet the preset migration conditions, the interfaces corresponding to each target function between the target system and the original system are disconnected, and the target system and the original system are run in parallel to avoid errors in the second execution data of the target system, so that the task management platform can receive the correct result of the second task to be executed, thereby ensuring that the target system fully meets the requirements when the switch is completed, thereby reducing business risks.
[0075] Based on the first embodiment, a fourth embodiment of the data processing method of the present invention is proposed. In this embodiment, step S300 includes:
[0076] Step S410, the number of calls of the to-be-migrated function of the target system, and when it is determined that the first execution result is the same as the second execution result, updating the number of identical results;
[0077] Step S410, when the number of calls reaches a preset number, if the number of identical results is the same as the number of calls, the target system determines that the first execution result matches the second execution result, and feeds back successful migration information of the function to be migrated.
[0078] In this embodiment, to ensure the successful migration of the function to be migrated, after the target system executes the task to be executed multiple times, it can be determined whether the migration is successful based on the execution results. Specifically, the target system calls the function to be migrated, and when it is determined that the first execution result is the same as the second execution result, the number of times the result is the same is updated, and then it is determined whether the number of calls reaches the preset number.
[0079] If the number of calls reaches the preset number, it is determined whether the number of identical results is the same as the number of calls; if the number of identical results is the same as the number of calls, the target system determines that the first execution result matches the second execution result, and feeds back the successful migration information of the function to be migrated.
[0080] The data processing method proposed in this embodiment is as follows: if it is determined that the first execution result is the same as the second execution result, the target system updates the number of identical results and the number of calls to the target function; then when the number of calls reaches a preset number, if the number of identical results is the same as the number of calls, the target system determines that the first execution result matches the second execution result, and feeds back the successful migration information of the function to be migrated, and accurately determines whether the migration of the task to be executed is successful by calling the execution results of the task to be executed multiple times, so that each target function can be accurately migrated, thereby improving the accuracy and efficiency of the migration of the target system.
[0081] Based on the above embodiments, a fifth embodiment of the data processing method of the present invention is proposed. In this embodiment, after step S300, the data processing method further includes:
[0082] Step S510, when receiving the version update request, the target system obtains the system name of the version to be issued, and obtains the machine identifier to be updated that matches the system name of the version to be issued from the machines of the target system through the task management platform;
[0083] Step S520, the target system determines a target update machine ID from among multiple machine IDs to be updated, and sends a release notification message to the target machine corresponding to the target update machine ID, wherein the target machine deregisters itself through the task management platform, and sends a transaction processing completion message to the target system after stopping the transaction processing operation;
[0084] Step S530, upon receiving the transaction processing completion message, the target system sends the version content to the target machine, wherein the target machine deploys the version content and sends a restart completion message to the target system when the deployment is completed and the restart is completed;
[0085] Step S540, when receiving the restart completion message, the target system updates the machine identifier to be updated based on the target update machine identifier, and returns to the step of determining the target update machine identifier among multiple machine identifiers to be updated, and sending a release notification message to the target machine corresponding to the target update machine identifier.
[0086] In this embodiment, after the target system completes the functional migration, the machine in the target system can be updated. Specifically, after the development of the to-be-released version of the system is completed, the task management platform sends a version update request to the target system, the target system obtains the name of the to-be-released version of the system, and obtains the to-be-updated machine identifier that matches the to-be-released version of the system in the machine of the target system through the task management platform; specifically, the target system sends an acquisition request for the to-be-updated machine to the task management platform, and the task management platform queries the currently registered machine on the task management platform for the to-be-updated machine that matches the machine of the target system based on the acquisition request. Specifically, if the machine identifier of the registered machine is consistent with the machine identifier of the target system, it is determined that the registered machine matches the machine of the target system, and the to-be-updated machine identifier corresponding to the to-be-updated machine is obtained, and the to-be-updated machine identifier is fed back to the target system.
[0087] Then, after obtaining the machine identifier to be updated, the target system determines the target update machine identifier among the machine identifiers to be updated. The task management platform allocates transactions to the machines corresponding to the machine identifiers to be updated in a load balancing manner. When the storage method of the machine identifiers to be updated is list storage, the target system uses the first machine identifier in the list as the target update machine identifier, or the target system randomly determines any machine identifier among the machine identifiers to be updated as the target update machine identifier. If the task management platform does not allocate transactions to the machines corresponding to the machine identifiers to be updated in a load balancing manner, the target system determines the identifier corresponding to the machine with the lightest load among the machines corresponding to the machine identifiers to be updated as the target update machine identifier. In other embodiments, if the number of machine identifiers to be updated is large, for example, the number of machine identifiers to be updated is greater than a preset number, the target system uses the machine identifiers of the first preset number in the list as the target update machine identifier, or the target system uses the identifiers corresponding to the preset number of machines with the lightest load among the machines corresponding to the machine identifiers to be updated as the target update machine identifier.
[0088] After determining the target update machine ID, the target system sends a release notification message to the target machine corresponding to the target update machine ID. Upon receiving the release notification message, the target machine deregisters the target machine on the task management platform based on the release notification message, stops the transaction processing operation corresponding to the target machine, and then sends a transaction processing completion message to the target system.
[0089] Then, when the target system receives the message of completing the transaction processing, it sends the version content to the target machine, and the target machine performs the corresponding update deployment operation according to the version content, restarts after the version content deployment is completed, and then sends a restart completion message to the target system, and sends a registration request to the task management platform to register the target machine with the updated version in the task management platform, so that the task management platform can assign transactions to the updated target machine. Specifically, after receiving the restart completion information, the target system deletes the target update machine identifier from the machine identifier to be updated, obtains a new machine identifier to be updated, determines the target update machine identifier in the new machine identifier to be updated, and continues to execute the step of sending a version release notification message to the target machine corresponding to the target update machine identifier, until all machines corresponding to the machine identifier to be updated are fully deployed.
[0090] The system release deployment method in this embodiment no longer requires the target system to be shut down when releasing a new version. By restarting a single machine or part of the machines of the target system, the start and stop and unavailability of the entire service of the target system are avoided. During the deployment process, the response message strategy between the target machine and the target system ensures the safety of the start and stop.
[0091] The data processing method proposed in this embodiment is as follows: when receiving a version update request, the target system obtains the system name of the version to be issued, and obtains the machine identifier to be updated in the machine of the target system that matches the system name of the version to be issued through the task management platform; then the target system determines the target update machine identifier among multiple machine identifiers to be updated, and sends a version issuance notification message to the target machine corresponding to the target update machine identifier, wherein the target machine deregisters the local machine through the task management platform, and sends a transaction processing completion message to the target system after stopping the transaction processing operation; then, when receiving the transaction processing completion message, the target system sends the version content to the target machine, wherein the target machine part The version content is deployed, and a restart completion message is sent to the target system when the deployment is completed and the restart is completed; then, upon receiving the restart completion message, the target system updates the machine identifier to be updated based on the target update machine identifier, and returns to execute the steps of determining the target update machine identifier among multiple machine identifiers to be updated, and sending a version release notification message to the target machine corresponding to the target update machine identifier. The release of a new version no longer requires the target system to be shut down. By restarting a single machine or part of the machines of the target system, the start and stop and unavailability of the overall service of the target system are avoided, and the safety of the start and stop is ensured through the response message strategy between the target machine and the target system during the deployment process.
[0092] Based on the fifth embodiment, a sixth embodiment of the data processing method of the present invention is proposed. In this embodiment, step S520 includes:
[0093] Step S610, the target system determines whether there is an unregistered machine in the target system that is not registered with the task management platform based on the machine of the target system and the machine identifier to be updated;
[0094] Step S620, if the unregistered machine exists, the target system sends the version content to the unregistered machine, wherein the unregistered machine deploys the version content, and when the deployment is completed and the restart is completed, sends a registration request to the task management platform, and after the registration is completed, sends a restart completion message to the new system;
[0095] Step S630, when receiving the restart completion message of the unregistered machine, the target system determines the target update machine ID from multiple machine IDs to be updated based on the number of unregistered machines, and sends a release notification message to the target machine corresponding to the target update machine ID.
[0096] In this embodiment, in order to ensure the processing efficiency of each task in the task management platform and the efficiency of version updating, the target system determines whether there is an unregistered machine in the target system that is not registered with the task management platform based on the machine of the target system and the machine identification to be updated. If the unregistered machine exists, the unregistered machine is updated first. Specifically, the target system sends version content to the unregistered machine, and the unregistered machine deploys the version content, and when the deployment is completed and the restart is completed, a registration request is sent to the task management platform. After the registration is completed, a restart completion message is sent to the new system; the updated unregistered machine is registered with the task management platform, and then tasks are assigned to the task management platform through the character management platform.
[0097] Then, when receiving the restart completion message of the unregistered machine, the target system determines the target update machine identifier among multiple machine identifiers to be updated based on the number of unregistered machines, that is, the number of target update machine identifiers is less than or equal to the number of unregistered machines, so as to ensure the processing efficiency of each task in the task management platform and the version update efficiency of the target system.
[0098] Furthermore, in one embodiment, after step S610, the following steps are further included:
[0099] Step S640: If the unregistered machine does not exist, the target system determines a target update machine ID from among multiple machine IDs to be updated, and sends a release notification message to the target machine corresponding to the target update machine ID.
[0100] The data processing method proposed in this embodiment determines whether there is an unregistered machine in the target system that is not registered with the task management platform based on the machine of the target system and the machine identifier to be updated; then if the unregistered machine exists, the target system sends the version content to the unregistered machine, wherein the unregistered machine deploys the version content, and when the deployment is completed and the restart is completed, sends a registration request to the task management platform, and after the registration is completed, sends a restart completion message to the new system; then, when receiving the restart completion message of the unregistered machine, the target system determines the target update machine identifier among multiple machine identifiers to be updated based on the number of unregistered machines, and sends a version release notification message to the target machine corresponding to the target update machine identifier, by first updating the unregistered and its, so as to ensure the processing efficiency of each task in the task management platform and the version update efficiency of the target system, and further improve the efficiency of the target system version update.
[0101] Reference Figure 3 , Figure 3 It is a schematic diagram of functional modules of a data processing device according to an embodiment of the present invention.
[0102] In this embodiment, the data processing device includes:
[0103] An execution module 10 is used for executing the first task to be executed to obtain a first execution result when receiving the first task to be executed sent by the task management platform, wherein the task management platform randomly selects a function to be migrated from the target function, and sends the first task to be executed corresponding to the function to be migrated to the target system;
[0104] A forwarding module 20, configured to forward the first task to be executed to an original system through an interface corresponding to the first task to be executed, wherein the original system feeds back a second execution result corresponding to the first task to be executed;
[0105] The feedback module 30 is used to feed back the second execution result to the task management platform, and when it is determined that the first execution result matches the second execution result, feed back the successful migration information of the function to be migrated, wherein when the successful migration information is received, the task management platform updates the target function based on the function to be migrated, and returns to the step of randomly selecting the function to be migrated from the target function, and sending the first task to be executed corresponding to the function to be migrated to the target system.
[0106] Furthermore, the data processing device further comprises:
[0107] After the migration of the function to be migrated is completed, if a second task to be executed corresponding to the function to be migrated is received, the target system executes the first task to be executed to obtain first execution data;
[0108] The target system forwards the second task to be executed to the original system through the interface corresponding to the first task to be executed;
[0109] The target system receives the second execution data corresponding to the second task to be executed fed back by the original system, and feeds back the second execution data to the task management platform.
[0110] Furthermore, the data processing device further comprises:
[0111] When the duration after the completion of migration of each target function reaches a preset duration, if the first execution data corresponding to each target function within the preset duration matches the second execution data, then determining whether the system resources of the target system meet the preset migration conditions based on the resource information of the target system within the preset duration;
[0112] If the system resources of the target system meet the preset migration conditions, the interfaces corresponding to the target functions between the target system and the original system are disconnected.
[0113] Furthermore, the feedback module 30 is also used for:
[0114] the number of times the to-be-migrated function is called by the target system, and when it is determined that the first execution result is the same as the second execution result, updating the number of times the results are the same;
[0115] When the number of calls reaches a preset number, if the number of identical results is the same as the number of calls, the target system determines that the first execution result matches the second execution result, and feeds back successful migration information of the function to be migrated.
[0116] Furthermore, the data processing device further comprises:
[0117] When receiving a version update request, the target system obtains the system name of the version to be issued, and obtains the machine identifier to be updated that matches the system name of the version to be issued from the machines of the target system through the task management platform;
[0118] The target system determines a target update machine ID from among multiple machine IDs to be updated, and sends a release notification message to a target machine corresponding to the target update machine ID, wherein the target machine deregisters itself through a task management platform, and sends a transaction processing completion message to the target system after stopping the transaction processing operation;
[0119] Upon receiving a transaction processing completion message, the target system sends the version content to the target machine, wherein the target machine deploys the version content and sends a restart completion message to the target system when the deployment is complete and the restart is complete;
[0120] When receiving the restart completion message, the target system updates the machine identifier to be updated based on the target update machine identifier, and returns to the step of determining the target update machine identifier among multiple machine identifiers to be updated, and sending a release notification message to the target machine corresponding to the target update machine identifier.
[0121] Furthermore, the data processing device further comprises:
[0122] The target system determines whether there is an unregistered machine in the target system that is not registered with the task management platform based on the machine of the target system and the machine identifier to be updated;
[0123] If the unregistered machine exists, the target system sends the version content to the unregistered machine, wherein the unregistered machine deploys the version content, and when the deployment is completed and the restart is completed, sends a registration request to the task management platform, and after the registration is completed, sends a restart completion message to the new system;
[0124] When receiving the restart completion message of the unregistered machine, the target system determines the target update machine ID from multiple machine IDs to be updated based on the number of unregistered machines, and sends a release notification message to the target machine corresponding to the target update machine ID.
[0125] Furthermore, the data processing device further comprises:
[0126] If the unregistered machine does not exist, the target system determines a target update machine ID from among multiple machine IDs to be updated, and sends a release notification message to the target machine corresponding to the target update machine ID.
[0127] It should be noted that the various embodiments of the data processing device are basically the same as the various embodiments of the above-mentioned data processing method, and will not be described in detail here.
[0128] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a data processing program is stored. When the data processing program is executed by a processor, the steps of the data processing method as described in any one of the above are implemented.
[0129] The specific embodiments of the computer-readable storage medium of the present invention are basically the same as the embodiments of the above-mentioned data processing method, and will not be described in detail here.
[0130] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0131] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0132] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus necessary general hardware devices, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0133] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A data processing method, characterized in that: The data processing method comprises the following steps: Upon receiving the first task to be executed sent by the task management platform, the target system executes the first task to be executed to obtain a first execution result, wherein the task management platform randomly selects a function to be migrated from the target function, and sends the first task to be executed corresponding to the function to be migrated to the target system; The target system forwards the first task to be executed to the original system through the interface corresponding to the first task to be executed, wherein the original system feeds back a second execution result corresponding to the first task to be executed; The target system feeds back the second execution result to the task management platform, and when determining that the first execution result matches the second execution result, the target system feeds back successful migration information of the function to be migrated, wherein upon receiving the successful migration information, the task management platform updates the target function based on the function to be migrated, and returns to the step of randomly selecting a function to be migrated from the target function, and sending the first to-be-executed task corresponding to the function to be migrated to the target system; When receiving a version update request, the target system obtains the system name of the version to be issued, and obtains the machine identifier to be updated that matches the system name of the version to be issued from the machines of the target system through the task management platform; The target system determines a target update machine ID from among multiple machine IDs to be updated, and sends a release notification message to a target machine corresponding to the target update machine ID, wherein the target machine deregisters itself through a task management platform, and sends a transaction processing completion message to the target system after stopping the transaction processing operation; Upon receiving a transaction processing completion message, the target system sends the version content to the target machine, wherein the target machine deploys the version content and sends a restart completion message to the target system when the deployment is complete and the restart is complete; When receiving the restart completion message, the target system updates the machine identifier to be updated based on the target update machine identifier, and returns to the step of determining the target update machine identifier among multiple machine identifiers to be updated, and sending a release notification message to the target machine corresponding to the target update machine identifier.
2. The data processing method according to claim 1, characterized in that: After the step of the target system feeding back the second execution result to the task management platform, and when determining that the first execution result is the same as the second execution result, the target system feeding back successful migration information of the function to be migrated, the data processing method further includes: After the migration of the to-be-migrated function is completed, if a second to-be-executed task corresponding to the to-be-migrated function is received, the target system executes the first to-be-executed task to obtain first execution data; The target system forwards the second task to be executed to the original system through the interface corresponding to the first task to be executed; The target system receives the second execution data corresponding to the second task to be executed fed back by the original system, and feeds back the second execution data to the task management platform.
3. The data processing method according to claim 2, characterized in that: After the step of the target system receiving the second execution data corresponding to the second to-be-executed task fed back by the original system and feeding back the second execution data to the task management platform, the method further includes: When the duration after the completion of migration of each target function reaches a preset duration, if the first execution data corresponding to each target function within the preset duration matches the second execution data, then determining whether the system resources of the target system meet the preset migration conditions based on the resource information of the target system within the preset duration; If the system resources of the target system meet the preset migration conditions, the interfaces corresponding to the respective target functions between the target system and the original system are disconnected.
4. The data processing method according to claim 1, characterized in that: The step of the target system feeding back successful migration information of the function to be migrated when it is determined that the first execution result matches the second execution result comprises: the number of times the to-be-migrated function is called by the target system, and when it is determined that the first execution result is the same as the second execution result, updating the number of times the results are the same; When the number of calls reaches a preset number, if the number of identical results is the same as the number of calls, the target system determines that the first execution result matches the second execution result, and feeds back successful migration information of the function to be migrated.
5. The data processing method according to any one of claims 1 to 4, characterized in that: The target system determines a target update machine identifier among multiple machine identifiers to be updated, and sends a release notification message to a target machine corresponding to the target update machine identifier, including: The target system determines whether there is an unregistered machine in the target system that is not registered with the task management platform based on the machine of the target system and the machine identifier to be updated; If the unregistered machine exists, the target system sends the version content to the unregistered machine, wherein the unregistered machine deploys the version content, and when the deployment is completed and the restart is completed, sends a registration request to the task management platform, and after the registration is completed, sends a restart completion message to the new system; When receiving the restart completion message of the unregistered machine, the target system determines the target update machine ID from multiple machine IDs to be updated based on the number of unregistered machines, and sends a release notification message to the target machine corresponding to the target update machine ID.
6. The data processing method according to claim 5, characterized in that: After the step of determining whether there is an unregistered machine in the target system that is not registered with the task management platform, the method further includes: If the unregistered machine does not exist, the target system determines a target update machine ID from among multiple machine IDs to be updated, and sends a release notification message to the target machine corresponding to the target update machine ID.
7. A data processing device, characterized in that: The data processing device comprises: an execution module, configured to execute the first task to be executed to obtain a first execution result upon receiving the first task to be executed sent by the task management platform, wherein the task management platform randomly selects a function to be migrated from the target function, and sends the first task to be executed corresponding to the function to be migrated to the target system; a forwarding module, configured to forward the first task to be executed to an original system through an interface corresponding to the first task to be executed, wherein the original system feeds back a second execution result corresponding to the first task to be executed; a feedback module, configured to feed back the second execution result to the task management platform, and, when determining that the first execution result matches the second execution result, feed back successful migration information of the function to be migrated, wherein upon receiving the successful migration information, the task management platform updates the target function based on the function to be migrated, and returns to the step of randomly selecting a function to be migrated from the target function, and sending the first to-be-executed task corresponding to the function to be migrated to the target system; The data processing device is also used for: When a version update request is received, the system name of the version to be issued is obtained, and the machine identifier to be updated that matches the system name of the version to be issued is obtained from the machine of the target system through the task management platform; Determine a target update machine ID from among multiple machine IDs to be updated, and send a release notification message to a target machine corresponding to the target update machine ID, wherein the target machine deregisters itself through a task management platform, and sends a transaction processing completion message to the target system after stopping the transaction processing operation; When receiving a transaction processing completion message, sending the version content to the target machine, wherein the target machine deploys the version content and sends a restart completion message to the target system when the deployment is completed and the restart is completed; When the restart completion message is received, the to-be-updated machine identifier is updated based on the target update machine identifier, and the process returns to the step of determining the target update machine identifier among multiple to-be-updated machine identifiers, and sending a release notification message to the target machine corresponding to the target update machine identifier.
8. A data processing device, characterized in that: The data processing device comprises: a memory, a processor, and a data processing program stored in the memory and executable on the processor, wherein the data processing program implements the steps of the data processing method according to any one of claims 1 to 6 when executed by the processor.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a data processing program, and when the data processing program is executed by a processor, the steps of the data processing method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Testing method and device for optical character recognition application, and storage medium
CN111078569A
Coordinating Application Migration Processes
US20140359053A1