Data cutover method and apparatus
By generating orchestration interfaces and dependencies, the method of calling data sources to perform subtasks solves the problems of low data cutover efficiency and flexibility in the existing technology, and achieves an efficient, observable and traceable data cutover process.
Patent Information
- Application Number
- PCT/CN2023/127593
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-28
- Filing Date
- 2023-10-30
- Publication Date
- 2024-09-06
AI Technical Summary
Data cutover methods in the existing technology have low efficiency and flexibility, resulting in complex cross-domain cutover processes, untimely rollback operations, and lack of full-process observability and end-to-end traceability.
Provide a data cutover method and device that receives orchestration operations by generating an orchestration interface, determines dependencies between data cutover subtasks, and calls data sources to execute subtasks based on dependencies, supporting visual orchestration, rollback, and retry. Rule configuration to realize progress interface display and progress control.
It improves the efficiency and flexibility of data cutover, simplifies the operation process, enhances managers' intuitive understanding of the cutover progress and problem location capabilities, and achieves end-to-end traceability and audit support for the data cutover process.
Smart Images

Figure CN2023127593_06092024_PF_FP
Abstract
Description
Data cutover method and device
[0001] This application claims priority to Chinese patent application No. 202310179640.2, filed on February 28, 2023, entitled “Data Cutover Method and Apparatus,” the entire contents of which are incorporated herein by reference. Technical Field
[0002] The present application relates to the field of data processing technology, and in particular to a data cutover method and device. Background Art
[0003] When data stored in a distributed system is updated or the data model changes, data stored in the various subsystems of the distributed system needs to be cutover. Data cutover generally includes at least one of the following operations: data update, data patching, data deletion, data supplementation, and data migration.
[0004] In the related art, it is generally necessary to configure the data cutover range and data cutover process in each subsystem separately, and execute the data cutover script separately through the data management platform of each subsystem to achieve data cutover. However, the above data cutover method has low efficiency and flexibility.
[0005] Summary of the Invention
[0006] The present application provides a data cutover method and device, which can solve the technical problem of low efficiency and flexibility of data cutover methods in related technologies.
[0007] In a first aspect, a data cutover method is provided for performing data cutover on at least one data source. The method can be applied to a data cutover device, which may also be referred to as a data cutover platform and may be a service software package or cloud service. The method includes generating an orchestration interface for the cutover process, receiving an orchestration operation through the orchestration interface, the orchestration operation being used to orchestrate subtasks of the data cutover. Based on the orchestration operation, the method determines dependencies between the subtasks of the data cutover, and invokes at least one data source to execute the subtasks of the data cutover according to the dependencies. Subsequently, the method generates a progress interface that displays the execution progress of the subtasks of the data cutover.
[0008] Because the method provided in this application enables visual orchestration of data cutover subtasks and can uniformly call at least one data source to execute data cutover subtasks based on orchestrated dependencies, it effectively improves the efficiency and flexibility of data cutover. Furthermore, because the method can visualize the execution progress of data cutover subtasks, it allows cutover managers to intuitively understand the progress of the data cutover and quickly identify problems and their causes during the data cutover process.
[0009] Optionally, the at least one data source may include a data system, and the data cutover subtask includes at least one first data cutover subtask to be executed by the data system. Accordingly, the process of invoking the at least one data source to execute the data cutover subtask may include: invoking a cutover interface of the data system to instruct the data system to execute the at least one first data cutover subtask.
[0010] Among them, the first data cutover subtask can also be called an interface-type cutover task. The method provided in this application can implement the execution of the first data cutover subtask by calling the cutover interface, effectively improving the efficiency and flexibility of data cutover.
[0011] Optionally, before invoking at least one data source to perform the data cutover subtask, the method may further include: configuring an interface specification of the cutover interface and a data cutover software development kit (SDK). The interface specification may be used to develop the cutover interface, and the data cutover SDK may be integrated into the data system.
[0012] The method provided in this application can uniformly configure the interface specifications and SDK of the cutover interface, thereby effectively improving the development efficiency and quality of the cutover interface.
[0013] Optionally, the at least one data source may include a database, and the data cutover subtask includes at least one second data cutover subtask to be executed by the database. Accordingly, the process of invoking the at least one data source to execute the data cutover subtask may include instructing the database to execute a data cutover script and instructing the database to execute the at least one second data cutover subtask.
[0014] The second data cutover subtask can also be referred to as a script-based cutover task. The data cutover script can be a structured query language (SQL) script, and the data cutover script can be pre-configured in the data cutover device. The method provided in this application supports the cutover of data from different types of data sources, effectively improving the flexibility of data cutover.
[0015] Optionally, before receiving the orchestration operation for the data cutover subtask through the orchestration interface, the method may further include: configuring the at least one data source and the data cutover subtask to be executed by the at least one data source.
[0016] The data cutover apparatus may configure the at least one data source and the data cutover subtask based on the configuration operation performed by the R&D personnel. Furthermore, the at least one data source may be of different types, for example, including a data system and a database. The data cutover apparatus configuring the data cutover subtask may include metadata for the data cutover subtask. The metadata for each data cutover subtask may include a task identifier, a task name, a task type, a task description, and an access endpoint for the data source referenced by the task.
[0017] Optionally, the method may further include: receiving a first configuration operation through an orchestration interface, and determining a rollback rule for the data cutover subtask based on the first configuration operation; in the process of calling at least one data source to execute the data cutover subtask, if it is detected that any of the data cutover subtasks triggers a rollback rule, executing the rollback process from the data cutover subtask that triggers the rollback rule as a rollback trigger point, wherein the progress of the rollback process is also displayed in the progress interface.
[0018] The method provided in this application can automatically trigger and execute the rollback process based on the configured rollback rules, thereby effectively improving the efficiency and reliability of data cutover.
[0019] Optionally, before executing the rollback process, the method may further include: reverse-arranging the dependency relationships between the subtasks of the data cutover to obtain the rollback process.
[0020] Since the method provided in this application can automatically generate a rollback process, it can effectively improve the design efficiency and quality of the rollback process and prevent planning errors caused by human rollback.
[0021] Optionally, the method may further include: receiving a second configuration operation through the orchestration interface; determining a retry rule for at least one of the data cutover subtasks based on the second configuration operation; in the process of calling at least one data source to execute the data cutover subtask, if it is detected that any of the at least one data cutover subtask fails to execute, performing a retry operation on the failed data cutover subtask according to the retry rule, wherein the execution progress of the retry operation is also displayed in the progress interface.
[0022] The method provided in this application can automatically perform retry operations based on the configured retry rules, thereby effectively improving the efficiency and reliability of data cutover.
[0023] Optionally, before determining the dependencies between the sub-tasks of the data cutover, the method may further include: providing at least one cutover process template in the orchestration interface, providing the target cutover process template in the orchestration interface based on a selection operation of a target cutover process template in the at least one cutover process template, and receiving an orchestration operation for the sub-tasks of the data cutover in the target cutover process template.
[0024] By configuring a cutover process template, planners can quickly complete the orchestration of data cutover subtasks based on the appropriate cutover process template, thereby effectively simplifying the data cutover operation and improving the efficiency of data cutover.
[0025] Optionally, before calling at least one data source to execute the data cutover subtask according to the dependency relationship, the method may further include: generating a parameter configuration interface, and receiving configuration parameters of the data cutover subtask through the parameter configuration interface.
[0026] The configuration parameters of each data cutover subtask may include the data range to be cutover by the data cutover subtask. By visually configuring the configuration parameters of the data cutover subtask in the parameter configuration interface, the efficiency and reliability of parameter configuration can be effectively improved.
[0027] Optionally, the method may further include: providing a progress control control in the progress interface, and controlling the execution progress of the subtask of the data cutover based on a received selection operation on the progress control control.
[0028] The progress control control may include at least one of the following: a stop process control, a continue process control, an end process control, and a rollback process control. Providing the progress control control allows operation and maintenance personnel involved in the cutover to flexibly adjust and control the execution progress of the data cutover subtasks.
[0029] Optionally, after calling at least one data source to execute the data cutover subtask according to the dependency relationship, the method may further include: recording the cutover process data of the data cutover subtask, and generating a history management interface based on the received data viewing instruction, wherein the cutover process data is displayed in the history management interface.
[0030] By recording and archiving the cutover process data, the end-to-end traceability of the data cutover process can be achieved, and compliance review of the data cutover process can be facilitated.
[0031] In a second aspect, a data cutover device is provided. The data cutover device may include at least one module. The at least one module may be used to implement the data cutover method provided in the above aspect.
[0032] In a third aspect, a computing device is provided, the computing device including a processor and a memory, wherein the processor is configured to execute instructions stored in the memory to implement the data cutover method provided in the above aspect.
[0033] In a fourth aspect, a computing device cluster is provided, comprising at least one computing device, each computing device including a processor and a memory. The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster performs the data cutover method provided in the above aspects.
[0034] In a fifth aspect, a computer-readable storage medium is provided, in which computer program instructions are stored. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the data cutover method provided in the above aspects.
[0035] In a sixth aspect, a computer program product comprising instructions is provided. When the instructions are executed by a computing device cluster, the computing device cluster executes the data cutover method provided in the above aspects.
[0036] In summary, the present application provides a data cutover method and device. The solution provided by the present application can generate an orchestration interface, receive orchestration operations through the orchestration interface, and determine the dependency relationships between the subtasks of data cutover. Afterwards, at least one data source can be called to execute the subtasks of data cutover according to the dependency relationships. Since the method provided by the present application realizes the visual orchestration of the subtasks of data cutover and can uniformly call at least one data source to execute the subtasks of data cutover based on the orchestrated dependency relationships, it can effectively improve the efficiency and flexibility of data cutover. Furthermore, since the execution progress of the subtasks of data cutover can be visually presented, it is convenient for cutover managers to intuitively understand the progress of data cutover and quickly locate problems and causes that arise during the data cutover process. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] FIG1 is a schematic diagram of an application scenario of a data cutover method provided in an embodiment of the present application;
[0038] FIG2 is a flow chart of a data cutover method provided in an embodiment of the present application;
[0039] 3 is a schematic diagram of a workflow of a data cutover apparatus according to an embodiment of the present application performing data cutover on data of multiple data systems;
[0040] FIG4 is a flow chart of another data cutover method provided in an embodiment of the present application;
[0041] FIG5 is an architectural diagram of a data source configuration model provided in an embodiment of the present application;
[0042] FIG6 is a schematic diagram of a cutover process data management interface provided in an embodiment of the present application;
[0043] FIG7 is a schematic diagram of an orchestration interface for a cutover process according to an embodiment of the present application;
[0044] FIG8 is a schematic diagram of a parameter configuration interface provided in an embodiment of the present application;
[0045] FIG9 is a schematic diagram of a progress interface provided in an embodiment of the present application;
[0046] FIG10 is a schematic diagram of a history management interface provided in an embodiment of the present application;
[0047] FIG11 is a schematic diagram of another history management interface provided in an embodiment of the present application;
[0048] FIG12 is a schematic structural diagram of a data cutover device provided in an embodiment of the present application;
[0049] FIG13 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application;
[0050] FIG14 is a schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION
[0051] The data cutover method and device provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0052] In scenarios involving data storage, such as monolithic or distributed software systems, various factors may cause data records to need to be updated, added, or deleted, or the data model to need to be changed (field type changes, adding or deleting fields). In this case, in order to support the use requirements of the latest system, coordination and cooperation between system design, development, operation and maintenance, and testing personnel are required to achieve data cutover in the system. Data cutover (cut over / cut away) refers to updating, patching, deleting, supplementing, and / or migrating data. Factors that lead to data cutover include but are not limited to:
[0053] 1. Data model design changes involve single-system or distributed system subsystems that need to update data to adapt to the new model.
[0054] 2. Data quality issues caused by software defects include: data inconsistency in distributed systems, data recording errors, data incompleteness, and data failure. Accordingly, data needs to be patched or deleted during data cutover.
[0055] 3. Business drivers require batch data import, involving a single system or multiple subsystems in a distributed system that need to collaboratively supplement or migrate data.
[0056] In a distributed system architecture, different business domains run distinct subsystems (for example, in a microservices architecture), each with its own call dependencies. When data in a subsystem becomes corrupted due to domain model refactoring or system defects, data that needs to be maintained consistent may exist in subsystems in other business domains. Consequently, the data being migrated may span subsystems across multiple business domains.
[0057] Related technologies require coordination and confirmation of the data cutover scope and cutover process for subsystems in different business domains. This includes confirming the data cutover scope, cutover sequence, selected cutover method, and verification methods and procedures. Data cutover is then performed by executing a data cutover script or manually triggering an interface through the respective data management platforms. However, this data cutover method presents the following issues:
[0058] 1. The cross-domain cutover process requires coordination of the cutover processes of different business domains, resulting in high coordination complexity and workload, low efficiency, and the need to coordinate across multiple business domains makes coordination prone to errors.
[0059] 2. If an error occurs during the cutover process, the rollback operation cannot be automatically triggered in a timely manner, resulting in low efficiency.
[0060] 3. Data cutover lacks full-process observability. Problems and their causes cannot be quickly visualized, and effective decision-making reference cannot be provided for downstream cutover execution.
[0061] 4. The cutover process may not have operation logs, or the logs may be scattered across various subsystems, making it impossible to achieve end-to-end traceability of the cutover process and providing an end-to-end audit path.
[0062] 5. There is a lack of effective support for cutover risk management, including the impact of data scale and the management of subtasks for high-risk data cutover.
[0063] Figure 1 is a schematic diagram of an application scenario of a data cutover method provided in an embodiment of the present application. As shown in Figure 1 , the application scenario may include a data cutover device and at least one data source for which data cutover is to be performed. For example, Figure 1 shows n data sources, from data source 1 to data source n, where n is an integer greater than 1. The data cutover device may also be referred to as a data cutover platform, which may be a service software package or a cloud service, such as a software-as-a-service (SaaS) cloud service.
[0064] In an embodiment of the present application, the data cutover apparatus may include a cutover configuration management console, a data cutover process design platform, and a data cutover operation console. The cutover configuration management console can be used by R&D personnel in related business areas to configure at least one data source requiring data cutover, configure subtasks to be executed for the data cutover of the at least one data source, configure the interface schema of the cutover interface, configure the cutover SDK and development guide, and configure a data cutover script for the data cutover.
[0065] The cutover interface is an interface configured in the data system. The data cutover device can call this cutover interface to instruct the data system to execute the data cutover subtask. The interface specification is used to define the transaction and idempotency parameters of the cutover interface, and can also define the cutover interface's payload, response specifications, and error code specifications. The cutover SDK is a toolkit integrated into the data system to work with the cutover interface. It simplifies the acquisition of cutover request parameters, implements encapsulation and authentication processing, response parameter encapsulation, and response error code setting. The data cutover script is a script for the database to execute to complete the data cutover subtask. For example, the data cutover script can be an SQL script.
[0066] The data cutover process design platform allows cutover planners to visually orchestrate the data cutover process. For example, planners can visually orchestrate the dependencies between data cutover subtasks, as well as the rollback and retry rules for each subtask.
[0067] The data cutover console is used by cutover administrators to manage the lifecycle of the cutover process. For example, the data cutover console can implement the following functions:
[0068] 1. Allows managers to plan a cutover time interval so that relevant stakeholders can be notified and promptly participate. The cutover time interval refers to the execution period of the data cutover process, which can be a period with minimal impact on users.
[0069] 2. Allows administrators to initiate the cutover process.
[0070] 3. Visualize the progress of the data cutover process. For example, you can display the stage of the data cutover process, the status and problems of each stage, and the parameter transmission and response data of each stage.
[0071] 4. Support manual suspension or termination of the data cutover process to facilitate manual intervention.
[0072] 5. After the manual processing is completed, the support manager fills in the reason and continues the cutover process.
[0073] 6. Automatically perform rollback or retry operations based on configured rules.
[0074] 7. Supports the termination of the cutover process and allows managers to fill in the reasons.
[0075] 8. The subtask of data cutover of interfaces that have not been used for a long time or have been cutover can periodically dial to check whether the cutover interface still exists and notify the cutover interface to go offline in time.
[0076] 9. Record and archive process data from the data cutover process to facilitate retrospective audits to identify issues during the data cutover process. For example, the data cutover console can record and archive data such as the cutover process definition, task configuration, and data cutover scripts. Furthermore, operation logs for each data source (e.g., microservices) can be captured and recorded, and trace IDs can be recorded in interface logs to link these operation logs.
[0077] It is understood that, as shown in Figure 1, the at least one data source may include a data system and / or a database. A data system refers to a system with data storage and management capabilities, which may also be referred to as a business system. Furthermore, the data system may employ a microservices architecture, and accordingly, the data system may also be referred to as a business microservice. A database (DB) refers to a storage space within a data system for storing data, and may be a relational database (e.g., MySQL) or a non-relational database (e.g., MongoDB).
[0078] It is also understood that the solutions provided in the embodiments of the present application can be used to perform data cutover on a single data system, or can be used to collaboratively perform data cutover on multiple different data systems. The multiple different data systems can be multiple subsystems within a distributed system, or can include a local system and its dependent third-party business systems; or can include data systems with different database storage types. The data systems with different database storage types can include data systems using relational databases and data systems using non-relational databases, etc.
[0079] In an embodiment of the present application, if a data system requiring data cutover is configured with a cutover interface, the data cutover apparatus can directly call the cutover interface to instruct the data system to execute the corresponding data cutover subtask. If the data system requiring data cutover is not configured with a cutover interface, the data cutover apparatus can instruct the database in the data system to execute a data cutover script, thereby executing the corresponding data cutover subtask.
[0080] Based on the above analysis, it can be seen that the data cutover device provided in the embodiment of the present application can be used by R&D personnel in different business fields to configure the data sources to be cutover and the subtasks of data cutover, and can realize the visual arrangement of the subtasks of data cutover, thereby effectively improving the efficiency and flexibility of data cutover. In addition, the data cutover device can automatically perform rollback or retry operations based on the configured rules, which can further improve the efficiency and reliability of data cutover. Since the data cutover device can visually present the execution progress of the subtasks of data cutover, it is convenient for the cutover management personnel to intuitively understand the progress of data cutover, quickly locate the problems and causes that arise during the data cutover process, and provide effective decision-making references for downstream cutover execution. In addition, the data cutover device can also automatically record and archive the process data of the data cutover process, thereby realizing end-to-end traceability of the cutover process and facilitating the audit of the data cutover process.
[0081] The following explains the key terms in the embodiments of this application:
[0082] Data source: The target of the data cutover operation, which may include a data system and / or a database. A data system refers to a system with data storage and management capabilities, and may also be referred to as a business system, such as a business microservice. A database refers to the storage space within a data system used to store data, and may be a relational or non-relational database.
[0083] Cutover interface: An interface deployed in a data system, which is used to be called by a data cutover device to instruct the data system to execute the corresponding data cutover subtask.
[0084] Cutover SDK: A toolkit integrated into the data system, used to work with the cutover interface.
[0085] Data cutover script: A script that is executed by the database to complete the corresponding data cutover subtask.
[0086] The data cutover subtask orchestrated by the orchestration operation is a set consisting of all data cutover operations on at least one data source. It is understandable that the set includes multiple subtasks.
[0087] Subtask: A schedulable unit in a cutover operation.
[0088] Cutover steps: the subtasks of data cutover.
[0089] Data cutover process: the execution process of the subtasks of data cutover.
[0090] Cutover job: instantiated cutover process.
[0091] Process node: A task mounting node orchestrated in the orchestration interface, used to mount subtasks for data cutover.
[0092] Cutover process template: A pre-configured template for the data cutover process, which defines multiple commonly used process nodes and the dependencies between the process nodes.
[0093] Rollback process: the process of rolling back the data cutover subtask that triggered the rollback rule, as well as other data cutover subtasks executed before the data cutover subtask that triggered the rollback rule.
[0094] Rollback trigger point: The trigger point of the rollback process, that is, the first subtask that needs to be rolled back in the rollback process.
[0095] Retry operation: Re-execute the data cutover subtask operation.
[0096] Cutover process data: Various data involved in the data cutover process, such as the reason for initiating the data cutover process, information about participants in different roles in the data cutover process, and the execution results of each data cutover subtask.
[0097] FIG2 is a flow chart of a data cutover method provided in an embodiment of the present application. The method can be applied to a data cutover device such as that shown in FIG1 and is used to perform data cutover on at least one data source. As shown in FIG2 , the method includes:
[0098] Step 101: Generate an orchestration interface for the cutover process.
[0099] In an embodiment of the present application, the data cutover apparatus can generate a cutover process orchestration interface for display on a terminal in response to a cutover process planner's orchestration trigger operation. The terminal can be a terminal with a display screen, such as a computer, mobile phone, wearable device, vehicle-mounted device, or smart home device. The cutover process orchestration interface can display the data cutover subtasks to be orchestrated and at least one orchestration control (also referred to as an orchestration tool).
[0100] For example, the cutover configuration management console in the data cutover apparatus may configure subtasks of data cutover to be orchestrated, and the data cutover process design platform may generate an orchestration interface of the cutover process based on the subtasks of data cutover to be orchestrated.
[0101] Step 102: Receive an orchestration operation through the orchestration interface, where the orchestration operation is used to orchestrate a subtask of data cutover.
[0102] The planner can operate the at least one orchestration control on the orchestration interface displayed on the terminal to orchestrate the data cutover subtask. Accordingly, the data cutover device can receive the orchestration operation for orchestrating the data cutover subtask via the orchestration interface. It should be understood that the data cutover subtask orchestrated by the orchestration operation refers to the set of all data cutover operations for at least one data source.
[0103] Step 103: Determine the dependency relationships between the subtasks of data cutover based on the orchestration operation.
[0104] After receiving the orchestration operation, the data cutover device can determine the dependencies between the subtasks of the data cutover based on the orchestration operation. For example, the data cutover process design platform in the data cutover device can receive the orchestration operation and determine the dependencies between the subtasks of the data cutover based on the received orchestration operation.
[0105] The data cutover subtask is a subtask to be executed by at least one data source. The dependency relationship may refer to the execution order of the data cutover subtask. For example, the dependency relationship may define the execution order of the data cutover subtasks, such as the sequential execution relationship and the parallel execution relationship.
[0106] Step 104: According to the dependency relationship, call at least one data source to execute the subtask of data cutover.
[0107] After determining the dependencies between the data cutover subtasks, the data cutover apparatus can call at least one data source to execute the data cutover subtask according to the dependencies. For example, a data cutover console in the data cutover apparatus can call at least one data source to execute the data cutover subtask.
[0108] It is understood that the data cutover apparatus can call a single data source to execute multiple data cutover subtasks. Alternatively, the data cutover apparatus can call each of multiple data sources to execute at least one data cutover subtask. The at least one data cutover subtask required to be executed by each data source can be pre-configured in the data cutover apparatus by R&D personnel.
[0109] Step 105: Generate a progress interface, which displays the execution progress of the subtask of data cutover.
[0110] In an embodiment of the present application, after invoking at least one data source to execute a data cutover subtask, the data cutover apparatus can also generate a progress interface for terminal display. For example, a data cutover console within the data cutover apparatus can generate this progress interface. This progress interface displays the execution progress of the data cutover subtask in real time. This allows cutover management personnel to intuitively understand the progress of the data cutover and quickly identify any problems and their causes during the data cutover process.
[0111] In summary, an embodiment of the present application provides a data cutover method that can generate an orchestration interface, receive orchestration operations through the orchestration interface, and determine the dependency relationships between the subtasks of data cutover. Afterwards, at least one data source can be called to execute the subtasks of data cutover according to the dependency relationships. Since the method provided by the embodiment of the present application realizes the visual orchestration of the subtasks of data cutover and can uniformly call at least one data source to execute the subtasks of data cutover based on the orchestrated dependency relationships, the efficiency and flexibility of data cutover are effectively improved. Furthermore, since the execution progress of the subtasks of data cutover can be visually presented, it is convenient for cutover managers to intuitively understand the progress of data cutover and quickly locate problems and causes that arise during the data cutover process.
[0112] Figure 3 is a schematic diagram of a data cutover apparatus provided in an embodiment of the present application, illustrating a workflow for performing data cutover on multiple data systems. Figure 3 uses the multiple data systems as business microservices as an example. As shown in Figure 3, the data cutover apparatus includes a cutover configuration management console, a data cutover process design platform, and a data cutover console.
[0113] The cutover configuration management console can be used to configure data cutover subtasks and data sources, test data sources, configure cutover interface specifications, and configure the data cutover SDK and SDK development guide. Testing the data source can refer to testing the connectivity of the data source.
[0114] The data cutover process design platform enables visual orchestration of the data cutover process, configuration of conditional decision rules, management of cutover process templates, and configuration of retry and rollback rules. Visual orchestration of the data cutover process is used to orchestrate the dependencies between cutover subtasks, including serial and parallel dependencies. Conditional decision rules can be the conditions that must be met for the execution of a cutover subtask.
[0115] The data cutover console is used to manage the data cutover lifecycle and visualize the cutover progress. This lifecycle management includes triggering the execution of cutover subtasks, monitoring the cutover process status, controlling the cutover progress, and recording cutover process data. Visualization of the cutover process includes real-time display of the cutover progress and historically recorded cutover process data.
[0116] As shown in Figure 3, the data cutover device can also provide underlying cutover process metadata management services for the cutover configuration management console and the data cutover process design platform, and can also provide underlying data cutover coordination services for the data cutover operation console. The cutover process metadata management service manages process metadata and task metadata. Process metadata can refer to process information about the data cutover process, including the name, involved fields, and dominant fields. Task metadata refers to data related to subtasks of the data cutover, including, for example, task identifiers (IDs), task names, task types, task descriptions, and the access endpoints of the data sources referenced by the tasks. The data cutover coordination service manages the cutover process status, executes SQL tasks (i.e., instructs the database to execute SQL scripts), calls cutover interfaces, records and archives cutover process data, and allows viewing of cutover history data.
[0117] Continuing with Figure 3, the data cutover process can include the following steps: 1.1. Configuring data cutover subtasks; 1.2. Developing cutover interfaces; 2.1. Orchestrating the cutover process; 3.1. Managing the cutover process; 3.2. Reviewing progress issues; 3.3. Manually accessing and handling; 4.1. Auditing the data cutover process. Participants in this data cutover process include: R&D personnel from the business domain (i.e., developers of the data cutover subtasks); cutover process planners (designers); cutover operation managers and participants (including relevant business domain cutover parties); and trusted auditors of the R&D process.
[0118] FIG4 is a flow chart of another data cutover method provided in an embodiment of the present application. The method can be applied to a data cutover device such as that shown in FIG1 and is used to perform data cutover on at least one data source. As shown in FIG4 , the method includes:
[0119] Step 201: Configure at least one data source and a data cutover subtask to be executed by the at least one data source.
[0120] In an embodiment of the present application, when data cutover needs to be performed on at least one data source, R&D personnel in the business field to which the at least one data source belongs can configure the at least one data source and the subtask of data cutover to be performed for the at least one data source in the data cutover device. That is, the data cutover device can determine the at least one data source that needs to perform data cutover and the subtask of data cutover to be performed for the at least one data source based on the configuration operation received from the R&D personnel. It is understandable that the data cutover device can configure one data source and configure multiple subtasks of data cutover to be performed for the one data source. Alternatively, the data cutover device can configure multiple data sources and configure at least one subtask of data cutover to be performed for each of the multiple data sources.
[0121] For example, referring to Figure 3, a R&D personnel in a business domain can configure at least one data source and at least one data cutover subtask to be executed for each data source in the cutover configuration management console of a data cutover device. In other words, the cutover configuration management console of the data cutover device can configure at least one data source and at least one data cutover subtask to be executed for that data source based on the R&D personnel's configuration operations.
[0122] The data cutover subtask is a programmable unit of the data cutover process. When configuring the data cutover subtask, the metadata of the data cutover subtask needs to be configured. The metadata of the data cutover subtask may include: task identifier, task name, task type, task description, and the access endpoint of the data source referenced by the task. The task type may include interface class and script class. The interface class refers to the data cutover subtask executed by calling the cutover interface (such as RESTful interface), and the script class refers to the data cutover subtask implemented by executing the data cutover script (such as SQL script). The task description can be used to describe the type of data that needs to be cutover by the data cutover subtask, as well as the specific cutover method (such as data update, data patching, data deletion, data supplementation and data migration, etc.).
[0123] For example, suppose the mapping between a certain shopping platform's product models and the product types on the trading platform is inappropriate, necessitating a data cutover. In this case, developers can configure two data sources in the cutover configuration management console: the product platform's data source and the trading platform's data source. Furthermore, developers can configure data cutover subtasks for the product platform: product data cutover and transaction data cutover, and for the trading platform: product type cutover and order data cutover.
[0124] Optionally, the data cutover device can support the configuration of multiple different types of data sources. For example, it can support interface type data sources, and it can also support database type data sources. Among them, the interface type data source may include a RESTful interface, and REST refers to representational state transfer. The database type data source may include a relational database and a non-relational database, etc. The non-relational database may include a non-relational SQL (NoSQL) database. In addition, for different data sources, the data cutover device can also support the configuration of different access endpoints and authentication credentials. For example, for an interface type data source, the access endpoint configured by the R&D personnel may be the uniform resource locator (URL) address of the interface; for a database, the access endpoint configured by the R&D personnel may be the link address of the database.
[0125] For example, a general data source configuration model is configured in the cutover configuration management console of the data cutover device, and R&D personnel can configure the data source based on the data source configuration model. Figure 5 is an architectural diagram of a data source configuration model provided in an embodiment of the present application. As shown in Figure 5, the data source configuration model can configure the basic parameters of the data source, data source product parameters, database classification parameters, data source classification parameters, data source connection parameters, extended configuration parameters, data source access credentials, and user name and password authentication parameters, etc. Among them, the basic parameters of the data source may include the ID of the organization to which the data source belongs, the data source classification ID, the site, the data source name, the authentication credential ID, and the creation information, etc. Among them, the organization to which the data source belongs may refer to the system to which the data source belongs (also referred to as the platform).
[0126] Optionally, as shown in FIG3 , after determining that the configuration of at least one data source is completed, the cutover configuration management station in the data cutover apparatus may further test the connectivity of the at least one data source to ensure that the at least one data source can be effectively connected.
[0127] Based on the above analysis, the cutover configuration management console of the data cutover device supports low-code data cutover subtask configuration and supports data source configuration of multiple types and multiple authentication credentials, thereby achieving high scalability.
[0128] Step 202: Configure the interface specification of the cutover interface and the data cutover SDK.
[0129] In an embodiment of the present application, if at least one data source requiring data cutover includes an interface-type data source, i.e., if the at least one data source includes a data system (e.g., a business microservice) capable of configuring a cutover interface, then R&D personnel in the business domain can configure the interface specification and data cutover SDK for the cutover interface in the data cutover device. In other words, the data cutover device can determine the interface specification and data cutover SDK for the cutover interface to be developed based on the configuration operations received from the R&D personnel.
[0130] For example, referring to Figure 3, developers can configure interface specifications, a data cutover SDK, and the SDK's development guide in the cutover configuration management console of the data cutover device. The interface specifications can be used by developers to develop the cutover interface for the data system, and the data cutover SDK can be integrated into the data system to work with the cutover interface.
[0131] The cutover interface can include a data cutover interface for implementing the data cutover process and a data rollback interface for implementing the rollback process. The interface schema can define transaction and interface idempotency parameters, as well as the interface payload, response, and error code specifications. This effectively improves cutover fault tolerance and problem location efficiency.
[0132] The Data Cutover SDK is primarily used to coordinate interface-based data cutover subtasks (i.e., to coordinate the invocation of the cutover interface). It simplifies the acquisition of cutover request parameters, implements encapsulation and authentication processing, response parameter encapsulation, and response error code setting. Therefore, by coordinating the cutover interface with the Data Cutover SDK and establishing a unified and standardized definition of the cutover interface, the development efficiency and quality of the cutover interface for data systems can be significantly improved.
[0133] It is understood that if the at least one data source includes a database type data source, the interface specification, data cutover SDK, and development guide can also be used by developers to develop a data cutover script to be executed for the database. The data cutover script can be an SQL script.
[0134] Step 203: Generate an orchestration interface for the cutover process.
[0135] In an embodiment of the present application, the data cutover apparatus can generate a cutover process orchestration interface in response to an orchestration trigger operation by a cutover process planner for display on a terminal. The cutover process orchestration interface can display the data cutover subtasks to be orchestrated, as well as at least one orchestration control (also referred to as an orchestration tool). The cutover process planner can visually orchestrate the data cutover subtasks by operating the at least one orchestration control.
[0136] For example, referring to FIG3 , the data cutover process design platform in the data cutover apparatus can generate a cutover process orchestration interface based on the data cutover subtasks to be orchestrated configured in the cutover configuration management console. Furthermore, the data cutover process design platform can display the orchestration interface on the terminal.
[0137] Step 204: Receive an orchestration operation through the orchestration interface, where the orchestration operation is used to orchestrate the subtask of the data cutover.
[0138] The planner can operate at least one scheduling control on the scheduling interface displayed on the terminal to schedule the subtasks of data cutover. Accordingly, the data cutover device can receive the scheduling operation for scheduling the subtasks of data cutover through the scheduling interface.
[0139] Step 205: Determine the dependency relationships between the subtasks of the data cutover based on the orchestration operation.
[0140] After receiving the orchestration operation, the data cutover device can determine the dependency relationships between the subtasks of the data cutover based on the orchestration operation. The data cutover subtasks are to-be-executed data cutover subtasks for at least one data source, and can be a set consisting of all data cutover operations for at least one data source. It is understood that the set can include multiple subtasks. The dependency relationships can refer to the execution order of the subtasks of the data cutover. For example, the dependency relationships can define the sequential execution relationship and the parallel execution relationship of the subtasks of the data cutover.
[0141] In an embodiment of the present application, a data cutover process including multiple data cutover subtasks can be referred to as a data cutover process. Before arranging the data cutover subtasks in the data cutover process, the data cutover device can generate a cutover process data management interface for display by the terminal. For example, referring to Figure 3, the data cutover process design platform in the data cutover device can generate the cutover process data management interface. Planners can edit the process information (also referred to as process metadata) of the data cutover process in the cutover process data management interface. The process information may include: the name of the data cutover process, the fields involved and the dominant fields, etc. Correspondingly, the data cutover device can determine and store the process information of the data cutover process based on the editing operation received in the management interface.
[0142] For example, as shown in Figure 6, planners can edit the name of the data cutover process, "XX Product and Transaction Data Cutover," in the cutover process data management interface and select the domains and dominant domains involved in the data cutover process. The domains involved in the data cutover process can include at least one of the following: trading platform, mall, cloud service, business support system (BSS), elastic compute service (ECS), and object storage service (OBS). As shown in Figure 6, the data cutover device can manage the process information of multiple data cutover processes. Planners can define new data cutover processes in the cutover process data management interface and view, edit, delete, or revoke the process information of any defined data cutover process.
[0143] To ensure the reliability of the data cutover process, after the planner submits the data cutover process information, the data cutover device can also submit this process information to backend reviewers for review. Accordingly, referring to Figure 6 , the data cutover device (e.g., the data cutover process design platform) can also provide the review status of the data cutover process in the cutover process data management interface. This status can include draft status, pending review status, approved status, or failed status.
[0144] Optionally, as shown in Figure 6, the data cutover device can also save an operation record for each operation performed on the process information of the data cutover process. For example, the data cutover process design platform can save this operation record. This operation record may include information such as the operation type, operator, and operation time. Operation types may include modifying an application and creating an application. Saving operation records facilitates subsequent review of the operation process information, thereby improving the efficiency and accuracy of problem location.
[0145] After the planner completes the editing of the process information, he can trigger the orchestration of the data cutover process. The data cutover process design platform in the data cutover device can generate an orchestration interface for the cutover process based on the trigger operation of the planner for terminal display. As shown in Figure 7, the orchestration interface may include a tool panel, a process orchestration panel, a process attribute panel, and a node attribute panel. Among them, at least one orchestration control is displayed in the tool panel. The planner can orchestrate multiple process nodes and the dependency relationships between the multiple process nodes (such as serial relationships or parallel relationships, etc.) in the data cutover process by operating the at least one orchestration control. In addition, the planner can mount the subtasks of the data cutover to the multiple process nodes, thereby realizing the orchestration of the subtasks of the data cutover. That is, the process nodes in the data cutover process are the mounting nodes of the subtasks of the data cutover.
[0146] Referring to Figure 7 , the at least one orchestration control may include: a control for selecting a custom process node, a control for selecting a built-in process node, a control for adding a new decision point, a control for synchronous interface call, a control for asynchronous event notification, a start control, a stop control, and a branch and merge control. Built-in process nodes are pre-configured process nodes in the data cutover device and may include: a start node, an end node, a node for initiating the rollback process, and a node for initiating the verification process. Custom process nodes are defined by planners based on application scenario requirements. For example, a node for mounting a subtask for data cutover may be a custom process node.
[0147] New decision point controls allow planners to orchestrate conditional decision rules between different process nodes, specifically between different data cutover subtasks. These conditional decision rules can be the conditions that must be met when executing a data cutover subtask mounted on a specific process node.
[0148] Synchronous interface call controls can be used to orchestrate synchronously called process nodes. Asynchronous event notification controls can be used to orchestrate asynchronously called process nodes. Merge and branch controls can be used to orchestrate parallel relationships between process nodes. For example, suppose the downstream process nodes of process node A include both process nodes B and C. Process nodes B and C can execute simultaneously, forming a parallel relationship. In this case, a branch control is needed to express the fan-out of process node A to parallel branches to process nodes B and C. If, after process nodes B and C complete execution, the downstream needs to continue executing process node D, a join control is needed to express the merge relationship.
[0149] Continuing with Figure 7, the process orchestration panel can include a sub-panel for each data source's organization and a sub-panel for the cutover platform. Planners can edit at least one process node in the sub-panel for each data source's organization. This at least one process node is used to mount at least one data cutover subtask required for that data source. Furthermore, planners can also plan at least one process node in the cutover platform's sub-panel. This at least one process node can include a decision point, built-in process nodes (such as a start node and an end node), and a process node for mounting a rollback task.
[0150] The process properties panel can be used to display the process information and description information of the data cutover process, where the description information can be used to describe the reason for initiating the data cutover process. The node properties panel is used to display the node information of the process node, which can include: node name, node type, processing role, and affiliated organization. Among them, the node type can include: custom process node and built-in process node. The affiliated organization can refer to the organization to which the subtask for executing the data cutover mounted on the process node belongs, and the processing role can refer to the cutover party (i.e., participant) in the affiliated organization who handles the subtask for processing the data cutover.
[0151] For example, referring to Figure 7, a planner can use the process orchestration panel to plan two process nodes for the mall platform's data source: Product Cutover Processing and Transaction Cutover Processing. These two process nodes are used to mount the data cutover subtasks for product data and transaction data, respectively. Furthermore, the planner can use the process orchestration panel to plan two process nodes for the transaction platform's data source: Product Type Cutover Processing and Order Cutover Processing. These two process nodes are used to mount the data cutover subtasks for product type and order data, respectively.
[0152] As can be seen from Figure 7, the commodity data cutover subtask and the product type data cutover subtask are two parallel subtasks. Only after both of these parallel subtasks are successfully executed can the transaction data cutover be initiated, i.e., the transaction data cutover subtask and the order data cutover subtask are initiated. In other words, the conditional decision rules for the transaction data cutover subtask and the order data cutover subtask can include the following: both the commodity data cutover subtask and the product type data cutover subtask are successfully executed. As can also be seen from Figure 7, the transaction data cutover subtask and the order data cutover subtask are also two parallel data cutover subtasks. Once both of these parallel data cutover subtasks are successfully executed, the data cutover process is complete.
[0153] Optionally, as shown in FIG3 , the data cutover process design platform of the data cutover apparatus may further include at least one cutover process template. Each cutover process template may define commonly used (i.e., reusable) process nodes and dependencies between process nodes. The process nodes defined in the cutover process template may include a process node for mounting data cutover subtasks, a process node for mounting rollback tasks, and a process node for mounting verification tasks.
[0154] In response to a trigger operation for the data cutover process, the data cutover process design platform of the data cutover device can first provide at least one cutover process template in an orchestration interface. Based on a planner's selection of a target cutover process template from the at least one cutover process template, the target cutover process template can also be provided in the orchestration interface. The data cutover device can then receive orchestration operations for data cutover subtasks in the target cutover process template. By configuring the cutover process templates, planners can quickly complete the orchestration of data cutover subtasks based on the appropriate cutover process template, effectively simplifying data cutover operations and improving data cutover efficiency.
[0155] For example, the data cutover process design platform of the data cutover device can be configured with multiple cutover process templates suitable for data cutovers of different scales (such as small scale, medium scale and large scale, etc.). Among them, for the data cutover process when the scale of the cutover data reaches a certain order of magnitude, the cutover process template can guide the configuration of multiple data cutover operations, that is, the data cutover process can be divided into multiple sub-processes at different levels. The sub-tasks of data cutover and the dependencies between tasks included in each sub-process are the same, but the data scales they target are different. In this way, it can be ensured that the scale of the cutover data can be gradually expanded, so that the possible impact of the cutover on the business can be gray-scale controlled. That is, the cutover process template can define the gray-scale expansion method of the data cutover process.
[0156] Step 206: Receive a first configuration operation through the orchestration interface.
[0157] In an embodiment of the present application, the planner can also perform a first configuration operation in the orchestration interface to configure the rollback rule of the data cutover subtask. Accordingly, the data cutover device (e.g., the data cutover process design platform) can receive the first configuration operation through the orchestration interface.
[0158] Step 207: Based on the first configuration operation, determine a rollback rule for the subtask of data cutover.
[0159] A data cutover device (e.g., a data cutover process design platform) can determine rollback rules for the data cutover subtask based on the received first configuration operation. The rollback rules can refer to rules that must be met to trigger the rollback process. For example, the rollback rules may include: failure to execute at least one data cutover subtask. By configuring the rollback rules in the data cutover device, the data cutover device can automatically trigger and execute the rollback process based on the rollback rules, thereby effectively improving the efficiency and reliability of the data cutover.
[0160] For example, as shown in FIG7 , planners can configure rollback rules through controls of newly added decision points. The rollback rules may include: failure to execute any of the data cutover subtasks of commodity data, product type data cutover subtasks, transaction data data cutover subtasks, and order data data cutover subtasks.
[0161] Step 208: Receive a second configuration operation through the orchestration interface.
[0162] In an embodiment of the present application, the planner may also perform a second configuration operation on the orchestration interface to configure a retry rollback rule for at least one of the data cutover subtasks. Accordingly, the data cutover device (e.g., the data cutover process design platform) may also receive the second configuration operation via the orchestration interface.
[0163] Step 209: Based on the second configuration operation, determine a retry rule for at least one of the data cutover subtasks.
[0164] The data cutover device (such as a data cutover process design platform) can determine the retry rules of at least one data cutover subtask based on the received second configuration operation. Among them, the retry rules of a certain data cutover subtask may include the number of retries and the retry interval after the data cutover subtask fails to execute. The number of retries refers to the number of times the data cutover subtask is re-executed, and the retry interval refers to the interval time between two adjacent retry operations. It is understandable that the planner can configure retry rules for at least one data cutover subtask in the data cutover subtask, and the retry rules configured for different data cutover subtasks can be the same or different. By configuring the retry rules in the data cutover device, it can be convenient for the data cutover device to automatically perform a retry operation based on the retry rules after detecting that a certain data cutover subtask has failed to execute, thereby effectively improving the efficiency of data cutover.
[0165] For example, as shown in Figure 7, a planner can configure retry rules for the data cutover subtask attached to the "Product Type Cutover Processing" process node in the node properties panel. The retry rules can include: 3 retries and a retry interval of 30 seconds.
[0166] Optionally, the planner can also estimate the time required for the data cutover process and configure the planned time required for the data cutover process in the orchestration interface. This allows the data cutover device to calculate and display the planned end time of the data cutover process based on the planned time required after starting the data cutover process.
[0167] Optionally, after the planner completes the orchestration of the data cutover process and configures rollback and retry rules, the data cutover device can automatically check whether key tasks are included in the data cutover process. If a key task is not configured, a prompt message can be generated for display on the terminal. This key task can include at least one of a verification task and a rollback task. This effectively reduces the error rate of the data cutover process and its subtasks, achieving risk management for large-scale data cutovers.
[0168] Step 210: Generate a parameter configuration interface, and receive configuration parameters of the data cutover subtask through the parameter configuration interface.
[0169] After completing the configuration of the data cutover subtasks and planning the cutover process based on the above steps, the data cutover device will generate a parameter configuration interface. The cutover administrator can use this interface to configure the parameters for the data cutover subtasks. The data cutover device can then receive the configuration parameters through this interface and instantiate the data cutover process.
[0170] For example, referring to FIG3 , the data cutover apparatus may include a data cutover console (also known as a cutover job management platform). This console supports cutover parameter configuration at the cutover job (process instance) level, as well as lifecycle management of the cutover process. As shown in FIG8 , the console can generate a parameter configuration interface for terminal display, allowing the cutover administrator to configure parameters for data cutover subtasks within this interface. These configuration parameters may include global parameters for the data cutover process, as well as local parameters (also known as input parameters) for each data cutover subtask.
[0171] Among them, global parameters can refer to parameters that must be met by all subtasks of data cutover. For example, the global parameters may include charging mode, period type, and coverage region. The charging mode can refer to the billing mode of the product targeted by the data cutover process (such as a package period or an on-demand billing mode), the period type can refer to the period type of the package period product (such as an annual package or a monthly package), and the coverage region can refer to the cloud service region targeted by the data cutover process (such as East China-Shanghai 1 or South China Guangzhou 1).
[0172] The local parameters of a data cutover subtask can include the data range to be cutover by the subtask. For example, a data cutover process caused by a product model change requires both product data and corresponding transaction data to be cutover. For a subtask related to product data cutover, its configuration parameters can include the product data range to be cutover. Referring to Figure 8 , this data range can be a set of offering IDs.
[0173] As shown in Figure 8, the cutover administrator can configure the input parameters for each data cutover subtask attached to each step (i.e., process node). If the data source for the data cutover subtask named "Cutover Product Data" and the data source for the data cutover subtask named "Cutover Order Data" are both interface-type data sources, the task type for both data cutover subtasks is a standard cutover interface. If the data source for the data cutover subtask named "Cutover Order Data" is a database, the task type for that data cutover subtask can be a SQL script.
[0174] Optionally, after confirming that the orchestration and parameter configuration of the data cutover process are complete, the data cutover apparatus can also perform preliminary checks and verifications on non-production systems through the data cutover console. This check and verification can verify whether the cutover interface implementation meets specification requirements, whether the interface idempotence and transaction parameters meet specification requirements, etc. For example, the data cutover process can include a verification node capable of hosting verification tasks. The data cutover apparatus can perform preliminary checks and verifications on the data cutover process by executing these verification tasks.
[0175] Based on steps 203 to 210 above, it can be seen that in the solution provided by this application, cutover process planners (such as business architects or system designers, as well as system designers of surrounding related systems) can assess the impact of data cutover. Furthermore, through the data cutover process design platform, they can visually orchestrate the data cutover process, plan the dependencies between data cutover subtasks, configure decision rules for key branches in the cutover process, assess and configure the cutover process duration, and configure retry and rollback rules.
[0176] Understandably, this visual process orchestration requires support from a data cutover domain model and a corresponding domain-specific language (DSL). This DSL, based on the traditional workflow engine DSL, adds the following key domain concepts and models: task types, including data cutover subtasks, verification tasks (such as preliminary checks and verification tasks for non-production systems), and rollback tasks; cutover data source types, including interfaces, relational databases, and non-relational databases; and a general data source configuration domain model.
[0177] Based on steps 201 to 210 above, it can be seen that the method provided in this embodiment of the application, based on service-oriented process orchestration, low-code, and domain-specific language concepts, achieves visual orchestration of the cutover process and can define data cutover processes across multiple organizations (i.e., across business domains). This effectively improves the design and communication efficiency of data cutover processes across business domains.
[0178] Step 211: According to the dependency relationship, call at least one data source to execute the subtask of data cutover.
[0179] After determining the data cutover process and the configuration parameters for each data cutover subtask within the process, the data cutover apparatus can then invoke at least one data source to execute the data cutover subtask based on the dependencies between the data cutover subtasks. If the data cutover apparatus is configured with a single data source, the apparatus can invoke that data source to execute multiple data cutover subtasks. If the data cutover apparatus is configured with multiple data sources, the apparatus can invoke each of the multiple data sources to execute at least one data cutover subtask.
[0180] Optionally, the at least one data source may include a data system, and the data cutover subtask may include at least one first data cutover subtask to be executed by the data system. This first data cutover subtask is also referred to as an interface-based cutover task, or the task type of the first data cutover subtask may be a standard cutover interface. Accordingly, the data cutover apparatus may instruct the data system to execute the at least one first data cutover subtask by invoking the cutover interface of the data system.
[0181] For example, as shown in Figure 3, assuming that the at least one data source includes a cutover interface of business microservice A, the data cutover process design platform in the data cutover device can call the cutover interface (for example, the data cutover interface) of the business microservice A through the data cutover coordination service, and instruct the business microservice A to perform at least one first data cutover subtask.
[0182] Optionally, if the at least one data source includes a database, the data cutover subtask may include at least one second data cutover subtask to be executed by the database. The task type of the second data cutover subtask may be a script, such as an SQL script. Accordingly, the data cutover apparatus may instruct the database to execute the data cutover script, so that the database executes the at least one second data cutover subtask.
[0183] For example, as shown in Figure 3, assuming that the at least one data source includes the database of business microservice B, the data cutover process design platform in the data cutover device can send instructions to the database of the business microservice B through the data cutover coordination service, instructing the database of the business microservice B to execute the data cutover script, thereby realizing the execution of at least one second data cutover sub-task.
[0184] Step 212: Generate a progress interface, which displays the execution progress of the subtask of data cutover.
[0185] In an embodiment of the present application, after invoking at least one data source to execute the data cutover subtask, the data cutover apparatus can also generate a progress interface for terminal display. This progress interface can display the execution progress of the data cutover subtask in real time. This allows cutover management personnel to intuitively understand the progress of the data cutover and quickly identify any problems and causes that arise during the data cutover process. For example, referring to Figure 3, the data cutover console in the data cutover apparatus can generate this progress interface to visualize the cutover progress.
[0186] For example, as shown in Figure 9, the progress interface generated by the data cutover apparatus can display a directed acyclic graph (DAG) of the data cutover process. Based on the progress of the data cutover process, the data cutover apparatus can configure different display effects for executed data cutover subtasks and unexecuted data cutover subtasks in the DAG. For example, in Figure 9, executed data cutover subtasks are represented by solid lines, while unexecuted data cutover subtasks are represented by dashed lines.
[0187] As can be seen in Figure 9, the progress interface generated by the data cutover device also displays the cutover process's activation time, planned end time, elapsed duration, and remaining duration. Furthermore, to help operations personnel involved in the cutover (e.g., the business domain cutover party) intuitively understand the progress of the cutover process (i.e., the execution progress of the cutover subtasks), the progress interface also displays a progress bar.
[0188] Optionally, with continued reference to FIG9 , the data cutover apparatus may further provide progress control controls within the progress interface. These progress control controls may include at least one of the following: a process abort control, a process continue control, a process end control, and a process rollback control. While monitoring the progress of the data cutover process, if maintenance personnel discover a problem with the process, they may operate the progress control controls. The data cutover apparatus may then control the progress of the data cutover process based on the received selections made with respect to the progress control controls. For example, a data cutover console within the data cutover apparatus may control the progress of the data cutover process.
[0189] Based on the above analysis, the data cutover device generates a progress interface for terminal display, allowing operators involved in the cutover to visually view the status of the data cutover process and any issues that arise in real time, facilitating problem identification. Furthermore, after collective decision-making, operators can coordinate with the job administrator to perform emergency actions such as aborting, ending, or rolling back the process. This enables visual cutover process management and collaboration, effectively improving the efficiency of emergency response during the cutover process. If the process is aborted, operators can manually intervene or wait for repairs, then instruct the data cutover platform to continue the subsequent process by operating the continue process control.
[0190] Step 213: During the process of calling at least one data source to execute a data cutover subtask, if it is detected that any of the data cutover subtasks triggers a rollback rule, the rollback process is executed starting from the data cutover subtask that triggers the rollback rule as the rollback trigger point.
[0191] In this embodiment of the present application, during the execution of the data cutover process, if the data cutover device detects that any of the data cutover subtasks in the data cutover process has triggered a rollback rule, it can execute the rollback process using the data cutover subtask that triggered the rollback rule as the rollback trigger point. Referring to step 207 above, it can be seen that the triggering of a rollback rule by a data cutover subtask may mean that the execution of the data cutover subtask has failed.
[0192] Optionally, the data cutover device can first use the data cutover subtask that triggered the rollback rule as the rollback trigger point and reverse-orchestrates the dependencies between the data cutover subtasks to generate a rollback process. The data cutover device can then execute the rollback process, thereby rolling back the data cutover subtask that triggered the rollback rule, as well as any other data cutover subtasks that were executed before the data cutover subtask that triggered the rollback rule. If the rollback process includes an interface-based data cutover subtask, the data cutover device can implement the rollback of the data cutover subtask by invoking the data system's data rollback interface.
[0193] For example, the data cutover console in the data cutover device can use the rollback trigger point (i.e., the failed data cutover subtask) as the starting point of the rollback process based on its location in the data cutover process. Based on the DAG of the data cutover process, the DAG of the rollback process can be reversely generated. Furthermore, the data cutover device can visualize the rollback process for reference by the process planner, allowing the process planner to add, remove, or edit steps in the rollback process, or to mount a rollback task.
[0194] Based on the above step 210, it can be seen that the data cutover device can automatically generate a rollback process, thereby effectively improving the design efficiency and quality of the rollback process and preventing planning errors caused by manual rollback.
[0195] Step 214: Provide the execution progress of the rollback process in the progress interface.
[0196] During the rollback process, the data cutover device can also provide real-time progress of the rollback process on a progress interface, allowing operations and maintenance personnel involved in the cutover to visually view the rollback process status and any problems that arise. For example, the data cutover console in the data cutover device can provide the progress of the rollback process on a generated progress interface.
[0197] Step 215: During the process of calling at least one data source to execute the data cutover subtask, if it is detected that any of the at least one data cutover subtask fails to execute, a retry operation is performed on the failed data cutover subtask according to the retry rule.
[0198] In an embodiment of the present application, during the execution of a data cutover process, if the data cutover apparatus detects that any data cutover subtask in the data cutover process has failed to execute, and the failed data cutover subtask is a data cutover subtask configured with a retry rule, the data cutover apparatus can retry the failed data cutover subtask according to the retry rule. For example, a data cutover console in the data cutover apparatus can retry the failed data cutover subtask according to the retry rule.
[0199] For example, referring to Figure 7, assuming that the data cutover device detects that the subtask of data cutover of the product type of the trading platform fails to execute, it can repeat the retry operation of the data cutover subtask three times according to the retry rule of the data cutover subtask, where the interval between each two retry operations is 30 seconds.
[0200] Optionally, as shown in FIG9 , if the data cutover apparatus detects that any data cutover subtask in the data cutover process has failed to execute, it can also provide preliminary diagnostic results of the failed data cutover subtask on the progress interface. Furthermore, it can also provide information such as the request data and response data of the failed data cutover subtask.
[0201] Step 216: Provide the execution progress of the retry operation in the progress interface.
[0202] During the retry operation, the data cutover device can also display the progress of the retry operation in real time on a progress interface, allowing operation and maintenance personnel involved in the cutover to visually view the status of the retry operation and any problems that may have occurred. For example, the data cutover console in the data cutover device can display the progress of the retry operation on a generated progress interface.
[0203] Based on the description of steps 206 to 216 above, it can be seen that the data cutover device can make collaborative data cutover between systems across multiple organizations more controllable and efficient by configuring rollback and retry rules and providing progress control controls.
[0204] Step 217: Record the cutover process data of the subtask of data cutover.
[0205] After the data cutover process is completed, it may be necessary to conduct a compliance review of the data cutover process based on the needs of different industries. Based on this, the data cutover device can record the cutover process data of the subtasks of the data cutover during the execution of the data cutover process. For example, referring to Figure 3, the data cutover console in the data cutover device can record the cutover process data, that is, record and archive the cutover process. Among them, the cutover process data recorded by the data cutover device may include: the reason for initiating the data cutover process, the information of the participants of different roles in the data cutover process, and the execution results of each data cutover subtask, etc. By recording and archiving the cutover process data, the end-to-end process traceability of the cutover operation element information can be achieved.
[0206] Step 218: Based on the received data viewing instruction, a history management interface is generated, where the cutover process data is displayed.
[0207] In an embodiment of the present application, if the data cutover device receives a data viewing instruction for a data cutover process, it can generate a history management interface for terminal display, displaying the cutover process data for that data cutover process. For example, the data cutover console in the data cutover device can generate the history management interface based on its existing cutover process data. Because the data cutover device also supports historical record viewing, it can effectively ensure the credibility and traceability of the data R&D, operations, and maintenance process.
[0208] For example, as shown in Figure 10, the data cutover console of the data cutover device can call the data cutover coordination service to generate a cutover operation history management interface. This history management interface includes a data cutover history list, which displays process information for at least one completed data cutover process. For example, this process information may include the name, status, involved areas, and dominant areas of the data cutover process. If a trusted auditor of the R&D process needs to audit any data cutover process, they can trigger a data review instruction for that data cutover process. The data cutover device can then respond to this data review instruction and display the cutover process data for the data cutover process in the cutover operation history management interface.
[0209] As shown in Figure 11, the cutover process data displayed in the history management interface may include a directed acyclic graph (DAG) of the data cutover process. This DAG displays executed and unexecuted data cutover subtasks using different display effects. The cutover process data may also include time information for the data cutover process, cutover results, and information about each participant in the cutover process. Time information may include activation time, planned end time, actual time, and remaining time. Participants in the cutover process may include the overall cutover process designer, participating cutover process designers, data cutover subtask configurators, cutover job parameter configurators, and the cutover process creator.
[0210] It is understood that the order of the steps in the data cutover method provided in the embodiments of the present application can be adjusted appropriately, and the number of steps can be increased or decreased depending on the circumstances. For example, steps 206 and 207, and / or steps 208 and 209 can be deleted as appropriate; or, steps 208 and 209 can be performed before step 206; or, steps 213 and / or 215 can be deleted as appropriate; or, steps 217 and 218 can be deleted as appropriate, or performed before step 216.
[0211] In summary, the embodiment of the present application provides a data cutover method that can generate an orchestration interface, receive orchestration operations through the orchestration interface, and determine the dependency relationships between the subtasks of data cutover. Afterwards, at least one data source can be called to execute the subtasks of data cutover according to the dependency relationships. Since the method provided by the embodiment of the present application realizes the visual orchestration of the subtasks of data cutover and can uniformly call at least one data source to execute the subtasks of data cutover based on the orchestrated dependency relationships, the efficiency and flexibility of data cutover are effectively improved. Furthermore, since the execution progress of the subtasks of data cutover can be visually presented, it is convenient for cutover managers to intuitively understand the progress of data cutover and quickly locate problems and causes that arise during the data cutover process.
[0212] The embodiment of the present application provides a data cutover device, which can be applied to the application scenario shown in Figure 1 and can be used to implement the data cutover method provided by the above method embodiment. As shown in Figure 12, the data cutover device includes:
[0213] The first generation module 301 is configured to generate an interface for orchestrating the cutover process. The implementation of the functionality of this first generation module 301 can be found in the descriptions of steps 101 and 203 in the aforementioned method embodiment. Furthermore, referring to FIG12 , this first generation module 301 may be part of the data cutover process design platform within the data cutover apparatus shown in FIG1 .
[0214] Receiving module 302 is configured to receive an orchestration operation via the orchestration interface, wherein the orchestration operation is used to orchestrate the data cutover subtask. The implementation of the functions of receiving module 302 can be referenced to the description of steps 102 and 204 in the above method embodiment. Furthermore, referring to FIG12 , receiving module 302 may be included in the data cutover process design platform within the data cutover apparatus shown in FIG1 .
[0215] Determination module 303 is configured to determine the dependencies between the subtasks of the data cutover based on the orchestration operation. The implementation of the functionality of determination module 303 can be found in the description of steps 103 and 205 in the above method embodiment. Furthermore, referring to FIG12 , determination module 303 may be part of the data cutover process design platform within the data cutover apparatus shown in FIG1 .
[0216] Cutover module 304 is configured to call the at least one data source to execute the data cutover subtask according to the dependency relationship. The implementation of the functionality of cutover module 304 can be found in the description of steps 104 and 211 in the above method embodiment. Furthermore, referring to FIG12 , cutover module 304 can be included in the data cutover console in the data cutover apparatus shown in FIG1 .
[0217] The second generation module 305 is configured to generate a progress interface displaying the execution progress of the data cutover subtask. The implementation of the functionality of the second generation module 305 can be found in the description of steps 105 and 212 in the aforementioned method embodiment. Furthermore, referring to FIG12 , the second generation module 305 can be included in the data cutover console of the data cutover apparatus shown in FIG1 .
[0218] Optionally, the at least one data source may include a data system, and the data cutover subtask includes at least one first data cutover subtask to be executed by the data system. The cutover module 304 may be specifically configured to call a cutover interface of the data system to instruct the data system to execute the at least one first data cutover subtask.
[0219] Optionally, as shown in FIG12 , the device may further include:
[0220] A first configuration module 306 is configured to configure the interface specification of the cutover interface and the data cutover SDK before invoking at least one data source to perform the data cutover subtask. The interface specification is used to develop the cutover interface, and the data cutover SDK is integrated into the data system. The implementation of the functions of the first configuration module 306 can be found in the description of step 202 in the above-mentioned method embodiment. Furthermore, referring to Figure 12 , the first configuration module 306 may be included in the cutover configuration management console in the data cutover apparatus shown in Figure 1 .
[0221] Optionally, the at least one data source may include a database, and the data cutover subtask includes at least one second data cutover subtask to be executed by the database. The cutover module 304 may be specifically configured to instruct the database to execute a data cutover script, instructing the database to execute the at least one second data cutover subtask.
[0222] Optionally, as shown in FIG12 , the device may further include:
[0223] A second configuration module 307 is configured to configure the at least one data source and the data cutover subtask to be executed by the at least one data source before receiving an orchestration operation for the data cutover subtask via the orchestration interface. The implementation of the functionality of this second configuration module 307 can be found in the description of step 201 in the aforementioned method embodiment. Furthermore, referring to Figure 12 , this second configuration module 307 may be part of the cutover configuration management console in the data cutover apparatus shown in Figure 1 .
[0224] Optionally, the receiving module 302 may also be configured to receive the first configuration operation via the orchestration interface. The implementation of the functions of the receiving module 302 may also refer to the description of step 206 in the above method embodiment.
[0225] The determining module 303 can also be used to determine the rollback rule of the subtask of the data cutover based on the first configuration operation. The function of the determining module 303 can also refer to the relevant description of step 207 in the above method embodiment.
[0226] The cutover module 304 is further configured to, during the process of calling at least one data source to execute the data cutover subtask, if it is detected that any of the data cutover subtasks triggers a rollback rule, execute the rollback process starting from the data cutover subtask that triggered the rollback rule as the rollback trigger point. The implementation of the functions of the cutover module 304 may be referred to the description of step 213 in the above method embodiment.
[0227] The progress interface may also display the execution progress of the rollback process. The implementation of the function of the second generation module 305 may also refer to the description of step 214 in the above method embodiment.
[0228] Optionally, the cutover module 304 may also be used to reverse-orchestrates the dependency relationships between the subtasks of the data cutover to obtain a rollback process.
[0229] Optionally, the receiving module 302 may also be configured to receive a second configuration operation via an orchestration interface. The implementation of the functions of the receiving module 302 may also refer to the description of step 208 in the above method embodiment.
[0230] The determining module 303 may also be used to determine a retry rule for at least one of the data cutover subtasks based on the second configuration operation. The implementation of the function of the determining module 303 may also refer to the description of step 209 in the above method embodiment.
[0231] The cutover module 304 is further configured to, when calling at least one data source to execute the data cutover subtask, retry the failed data cutover subtask according to the retry rule if it is detected that any of the at least one data cutover subtasks has failed to execute. The implementation of the functions of the cutover module 304 may also refer to the description of step 215 in the above method embodiment.
[0232] The progress of the retry operation is also displayed in the progress interface. The function of the second generation module 305 can also refer to the relevant description of step 216 in the above method embodiment.
[0233] Optionally, the first generation module 301 can also be used to provide at least one cutover process template in the orchestration interface before determining the dependency relationship between the sub-tasks of the data cutover; and provide the target cutover process template in the orchestration interface based on the selection operation of the target cutover process template in the at least one cutover process template.
[0234] The receiving module 302 may be specifically configured to receive an orchestration operation for a data cutover subtask in the target cutover process template.
[0235] Optionally, the second generating module 305 may also be configured to generate a parameter configuration interface before the cutover module 304 calls at least one data source to execute the subtask of data cutover according to the dependency relationship.
[0236] The receiving module 302 is further configured to receive the configuration parameters of the data cutover subtask through the parameter configuration interface. The functions of the second generating module 305 and the receiving module 302 can also be implemented by referring to the description of step 210 in the above method embodiment.
[0237] Optionally, the second generating module 305 is further configured to provide a progress control control in the progress interface.
[0238] The cutover module 304 is further configured to control the execution progress of the subtask of the data cutover based on the received selection operation on the progress control control.
[0239] Optionally, with continued reference to FIG12 , the apparatus may further include:
[0240] Recording module 308 is configured to record cutover process data of the data cutover subtask after cutover module 304 invokes at least one data source to execute the data cutover subtask according to the dependency relationship. The implementation of the functions of recording module 308 can be found in the description of step 217 in the above-mentioned method embodiment. Furthermore, referring to FIG12 , recording module 308 can be included in the data cutover console of the data cutover apparatus shown in FIG1 .
[0241] The second generation module 305 is further configured to generate a history management interface based on the received data viewing instruction, wherein the history management interface displays the cutover process data. The implementation of the second generation module 305 can also refer to the description of step 218 in the above method embodiment.
[0242] It is understood that the data cutover device provided in the embodiments of the present application can be applied in public cloud, private cloud, or hybrid cloud scenarios. Specifically, for public cloud scenarios, the data cutover device can be used as a SaaS cloud service, targeting data cutover scenarios for enterprise-level distributed systems. Through a multi-tenant design, a cutover platform system instance is created for each tenant. Furthermore, through dedicated network isolation, the cutover platform services, databases, and authentication credentials of different tenants can be isolated and managed. For private or hybrid cloud scenarios, the data cutover device can be delivered as a software package and can provide offline manual deployment services and technical support to meet business security and trust requirements.
[0243] In summary, an embodiment of the present application provides a data cutover device that can generate an orchestration interface, receive orchestration operations through the orchestration interface, and determine the dependency relationships between the subtasks of data cutover. Afterwards, at least one data source can be called to execute the subtasks of data cutover according to the dependency relationships. Since the method provided by the embodiment of the present application realizes the visual orchestration of the subtasks of data cutover and can uniformly call at least one data source to execute the subtasks of data cutover based on the orchestrated dependency relationships, the efficiency and flexibility of data cutover are effectively improved. Furthermore, since the execution progress of the subtasks of data cutover can be visually presented, it is convenient for cutover managers to intuitively understand the progress of data cutover and quickly locate problems and causes that arise during the data cutover process.
[0244] Those skilled in the art will clearly understand that for the convenience and brevity of description, the specific working process of the data cutover device and each module described above can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.
[0245] It is understood that each module in the data cutover apparatus (e.g., the first generation module 301, the receiving module 302, the determination module 303, the cutover module 304, and the second generation module 305) can be implemented via software or hardware. For example, the implementation of the determination module 303 will be described below using the determination module 303 as an example. Similarly, the implementation of the first generation module 301, the receiving module 302, the cutover module 304, the second generation module 305, the first configuration module 306, the second configuration module 307, and the recording module 308 can refer to the implementation of the determination module 303.
[0246] As an example of a software functional unit, the module 303 can be determined to include code running on a computing instance. The computing instance can include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the computing instance can be one or more. For example, the module 303 can be determined to include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code can be distributed in the same region or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code can be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple geographically close data centers. Typically, a region can include multiple AZs.
[0247] Similarly, multiple hosts / virtual machines / containers running the code can be distributed within the same virtual private cloud (VPC) or across multiple VPCs. Typically, a VPC is set up within a region. Cross-region communication between two VPCs within the same region, or between VPCs in different regions, requires a communication gateway within each VPC to interconnect the VPCs.
[0248] As an example of a hardware functional unit, the determination module 303 may include at least one computing device, such as a server. Alternatively, the determination module 303 may be implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0249] The multiple computing devices included in the determination module 303 can be distributed in the same region or in different regions. The multiple computing devices included in the determination module 303 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the determination module 303 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.
[0250] It is understood that in other embodiments, the determination module 303 can be used to execute any step in the above-described data cutover method, and the first generation module 301, the receiving module 302, the cutover module 304, the second generation module 305, the first configuration module 306, the second configuration module 307, and the recording module 308 can also be used to execute any step in the above-described data cutover method. The steps that the first generation module 301, the receiving module 302, the determination module 303, the cutover module 304, the second generation module 305, the first configuration module 306, the second configuration module 307, and the recording module 308 are responsible for can be specified as needed. By having each of these modules implement different steps in the data cutover method, the full functionality of the data cutover device is realized.
[0251] Figure 13 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application. Referring to Figure 13 , the computing device may include a bus 402, a processor 404, a memory 406, and a communication interface 408. Processor 404, memory 406, and communication interface 408 communicate with each other via bus 402. The computing device may be a server or a terminal device. It should be understood that the embodiments of the present application do not limit the number of processors and memories in the computing device.
[0252] Bus 402 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, among others. Buses may be classified as address buses, data buses, control buses, and the like. For ease of illustration, FIG13 shows a single line, but this does not imply a single bus or type of bus. Bus 404 may include a path for transmitting information between various components of a computing device (e.g., memory 406, processor 404, and communication interface 408).
[0253] The processor 404 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0254] The memory 406 may include volatile memory, such as random access memory (RAM). The processor 404 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).
[0255] Memory 406 stores executable program code. Processor 404 executes the executable program code to implement the functions of the first generation module 301, receiving module 302, determination module 303, cutover module 304, second generation module 305, first configuration module 306, second configuration module 307, and recording module 308, thereby implementing the data cutover method provided in the above-described method embodiment. In other words, memory 406 stores instructions for executing the data cutover method.
[0256] The communication interface 403 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device and other devices or a communication network.
[0257] Embodiments of the present application also provide a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smartphone.
[0258] As shown in Figure 14, the computing device cluster includes at least one computing device. The memory 406 of one or more computing devices in the computing device cluster may store the same instructions for executing the above-mentioned data cutover method.
[0259] In some possible implementations, the memory 406 of one or more computing devices in the computing device cluster may also store partial instructions for executing the above-mentioned data cutover method. In other words, the combination of one or more computing devices can jointly execute the instructions for executing the above-mentioned data cutover method.
[0260] It should be noted that the memory 406 in different computing devices in the computing device cluster can store different instructions, each used to execute a portion of the functions of the data cutover apparatus. That is, the instructions stored in the memory 406 in different computing devices can implement the functions of one or more of the first generation module 301, the receiving module 302, the determination module 303, the cutover module 304, the second generation module 305, the first configuration module 306, the second configuration module 307, and the recording module 308.
[0261] In some possible implementations, one or more computing devices in a computing device cluster may be connected via a network, which may be a wide area network or a local area network.
[0262] The present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium capable of storing data on a computing device, or a data storage device such as a data center that includes one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, or a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive). The computer-readable storage medium includes instructions that instruct the computing device to execute the data cutover method provided in the above method embodiment.
[0263] Embodiments of the present application also provide a computer program product containing instructions. This computer program product can be software or a program product containing instructions that can be executed on a computing device or stored on any available medium. When executed on at least one computing device, this computer program product causes the at least one computing device to execute the data cutover method provided in the above method embodiment.
[0264] In the embodiments of the present application, the terms "first", "second" and "third" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance. In the embodiments of the present application, the term "at least one" refers to one or more, and "a plurality" refers to two or more. In the embodiments of the present application, the term "and / or" is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the related objects before and after are in an "or" relationship.
[0265] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present application, and not to limit them. Although the embodiments of the present application are described in detail with reference to the aforementioned embodiments, ordinary technicians in this field should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present application.
Claims
1. A data cutover method, characterized in that: For performing data cutover on at least one data source, the method comprises: Generate an orchestration interface for the cutover process; Receiving an orchestration operation through the orchestration interface, wherein the orchestration operation is used to orchestrate the subtask of the data cutover; Determining dependencies between subtasks of the data cutover based on the orchestration operation; According to the dependency relationship, calling the at least one data source to execute the subtask of data cutover; A progress interface is generated, in which the execution progress of the subtask of the data cutover is displayed.
2. The method according to claim 1, characterized in that The at least one data source includes a data system, and the data cutover subtask includes at least one first data cutover subtask to be executed by the data system; The subtask of calling the at least one data source to perform the data cutover includes: The cutover interface of the data system is called to instruct the data system to execute the at least one first data cutover subtask.
3. The method according to claim 2, characterized in that Before calling the at least one data source to perform the subtask of data cutover, the method further includes: The interface specification of the cutover interface and a data cutover software development kit SDK are configured, wherein the interface specification is used to develop the cutover interface, and the data cutover SDK is integrated into the data system.
4. The method according to any one of claims 1 to 3, characterized in that: The at least one data source includes a database, and the data cutover subtask includes at least one second data cutover subtask to be executed by the database; The subtask of calling the at least one data source to perform the data cutover includes: Instructing the database to execute a data cutover script, and instructing the database to execute the at least one second data cutover subtask.
5. The method according to any one of claims 1 to 4, characterized in that: Before receiving the orchestration operation for the subtask of data cutover through the orchestration interface, the method further includes: The at least one data source and the subtask of the data cutover to be performed by the at least one data source are configured.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Receiving a first configuration operation through the orchestration interface; Determining a rollback rule for the subtask of the data cutover based on the first configuration operation; In the process of calling the at least one data source to execute the data cutover subtask, if it is detected that any of the data cutover subtasks triggers a rollback rule, the data cutover subtask that triggers the rollback rule is used as a rollback trigger point to execute a rollback process; The progress interface also displays the execution progress of the rollback process.
7. The method according to claim 6, characterized in that Before executing the rollback process, the method further includes: The dependency relationships between the subtasks of the data cutover are reversely arranged to obtain the rollback process.
8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: receiving a second configuration operation through the orchestration interface; Determining a retry rule of at least one data cutover subtask among the data cutover subtasks based on the second configuration operation; In the process of calling the at least one data source to execute the data cutover subtask, if it is detected that any data cutover subtask of the at least one data cutover subtask fails to execute, a retry operation is performed on the data cutover subtask that failed to execute according to the retry rule; The progress interface also displays the execution progress of the retry operation.
9. The method according to any one of claims 1 to 8, characterized in that: Before determining the dependency relationship between the subtasks of the data cutover, the method further includes: Providing at least one cutover process template in the orchestration interface; Based on a selection operation on a target cutover process template in the at least one cutover process template, providing the target cutover process template in the orchestration interface; An orchestration operation for the data cutover subtask in the target cutover process template is received.
10. The method according to any one of claims 1 to 9, characterized in that: Before calling the at least one data source to perform the subtask of data cutover according to the dependency relationship, the method further includes: Generate parameter configuration interface; The configuration parameters of the subtask of the data cutover are received through the parameter configuration interface.
11. The method according to any one of claims 1 to 10, characterized in that: The method further comprises: Providing a progress control widget in the progress interface; Based on the received selection operation on the progress control control, the execution progress of the subtask of the data cutover is controlled.
12. The method according to any one of claims 1 to 11, characterized in that: After calling the at least one data source to perform the subtask of data cutover according to the dependency relationship, the method further includes: Recording the cutover process data of the subtask of the data cutover; Based on the received data viewing instruction, a history management interface is generated, and the cutover process data is displayed in the history management interface.
13. A data cutover device, characterized in that: The device is used to perform data cutover on at least one data source, comprising: A first generating module, used to generate an orchestration interface for a cutover process; A receiving module, used for receiving an orchestration operation through the orchestration interface, wherein the orchestration operation is used for orchestrating the subtask of the data cutover; A determination module, configured to determine the dependency relationship between the subtasks of the data cutover based on the orchestration operation; A cutover module, configured to call the at least one data source to execute the data cutover subtask according to the dependency relationship; The second generating module is used to generate a progress interface, in which the execution progress of the subtask of the data cutover is displayed.
14. The device according to claim 13, characterized in that The at least one data source includes a data system, and the data cutover subtask includes at least one first data cutover subtask to be executed by the data system; The cutover module is specifically configured to call the cutover interface of the data system to instruct the data system to execute the at least one first data cutover subtask.
15. The device according to claim 14, characterized in that The device also includes: The first configuration module is used to configure the interface specification of the cutover interface and the data cutover software development kit SDK before calling the at least one data source to perform the data cutover subtask, wherein the interface specification is used to develop the cutover interface and the data cutover SDK is integrated into the data system.
16. The device according to any one of claims 13 to 15, characterized in that The at least one data source includes a database, and the data cutover subtask includes at least one second data cutover subtask to be executed by the database; The cutover module is specifically configured to instruct the database to execute a data cutover script, and to instruct the database to execute the at least one second data cutover subtask.
17. The device according to any one of claims 13 to 16, characterized in that The device also includes: The second configuration module is used to configure the at least one data source and the data cutover subtask to be executed by the at least one data source before receiving the orchestration operation for the data cutover subtask through the orchestration interface.
18. The device according to any one of claims 13 to 17, characterized in that The receiving module is further configured to receive a first configuration operation through the orchestration interface; The determination module is further configured to determine a rollback rule of the subtask of the data cutover based on the first configuration operation; The cutover module is further configured to, during the process of calling the at least one data source to execute the data cutover subtask, if it is detected that any of the data cutover subtasks triggers a rollback rule, execute the rollback process from the data cutover subtask that triggers the rollback rule as a rollback trigger point; The progress interface also displays the execution progress of the rollback process.
19. The device according to claim 18, characterized in that The cutover module is further used to reversely arrange the dependency relationships between the subtasks of the data cutover to obtain the rollback process.
20. The device according to any one of claims 13 to 19, characterized in that The receiving module is further configured to receive a second configuration operation through the orchestration interface; The determining module is further configured to determine a retry rule of at least one of the data cutover subtasks based on the second configuration operation; The cutover module is further configured to, in the process of calling the at least one data source to execute the data cutover subtask, if it is detected that any data cutover subtask of the at least one data cutover subtask fails to execute, perform a retry operation on the data cutover subtask that failed to execute according to the retry rule; The progress interface also displays the execution progress of the retry operation.
21. The device according to any one of claims 13 to 20, characterized in that The first generating module is further used for: Before determining the dependency relationship between the subtasks of the data cutover, providing at least one cutover process template on the orchestration interface; Based on a selection operation on a target cutover process template in the at least one cutover process template, providing the target cutover process template in the orchestration interface; The receiving module is specifically configured to receive an orchestration operation for the data cutover subtask in the target cutover process template.
22. The device according to any one of claims 13 to 21, characterized in that The second generating module is further used for: Before calling the at least one data source to execute the subtask of data cutover according to the dependency relationship, generating a parameter configuration interface; The receiving module is further configured to receive the configuration parameters of the subtask of the data cutover through the parameter configuration interface.
23. The device according to any one of claims 13 to 22, characterized in that The second generating module is further used to provide a progress control control in the progress interface; The cutover module is further configured to control the execution progress of the subtask of the data cutover based on the received selection operation for the progress control control.
24. The device according to any one of claims 13 to 23, characterized in that The device also includes: a recording module, configured to record the cutover process data of the data cutover subtask after the cutover module calls the at least one data source to execute the data cutover subtask according to the dependency relationship; The second generating module is further configured to generate a history management interface based on the received data viewing instruction, wherein the cutover process data is displayed in the history management interface.
25. A computing device cluster, characterized in that: comprising at least one computing device, each computing device comprising a processor and a memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 12.
26. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Method and device of establishing service cutover plan
CN106411541A
Optical fiber cutover method and device, SDN controller, system and storage medium
CN111314802A
Interface-based project cutover method and system
CN112256186A
System and method for automatic orchestration and scheduling of task processing
US20220147893A1
Cited By
Task rollback method and device
CN119718690A
Performance detection method of artificial intelligence model and related device
CN119718890A
