Resource migration method and device based on business system, medium and program product

By collecting and mapping resource parameters of business systems, formulating resource scheduling schemes, and splitting and executing migration tasks, the limitations of the scope of business system migration and the low degree of automation in existing technologies are solved, and efficient and reliable resource migration is achieved.

CN122633374APending Publication Date: 2026-08-25CHINA MOBILE INFORMATION TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610616637.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-05-07
Publication Date
2026-08-25

AI Technical Summary

Technical Problem

Existing technologies cannot achieve the overall packaged migration of business systems, have low automation levels, and insufficient migration reliability, resulting in long migration cycles, long business interruption times, and easy operational errors.

Method used

Collect migration source resource parameters of business systems, including computing power, storage and network resources, generate resource mapping relationships, match target resource pools with resource parameters, formulate resource scheduling schemes, break down into multiple migration tasks and execute them in sequence to achieve collaborative migration of all resources.

Benefits of technology

It enabled the overall migration of all resources across the business system, improving automation and migration reliability, shortening the migration cycle, and reducing business downtime and operational errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122633374A_ABST
    Figure CN122633374A_ABST
Patent Text Reader

Abstract

The application discloses a resource migration method and device based on a business system, a medium and a program product, and relates to the technical field of resource migration. The method comprises the following steps: collecting resource parameters of migration source resources of a business system, wherein the migration source resources comprise computing power resources of the business system and associated resources of the computing power resources; matching target resources according to the resource parameters; determining the target resources; generating a resource mapping relationship between the migration source resources and the target resources; creating or reserving corresponding resources in the target resources according to the resource mapping relationship; arranging and scheduling the migration of the business system; generating a resource scheduling scheme, wherein the resource scheduling scheme comprises a plurality of migration tasks and an execution time sequence relationship between the plurality of migration tasks; and executing the plurality of migration tasks according to the resource scheduling scheme. The scheme of the application solves the problems that the existing resource migration scheme cannot pack and migrate the business system as a whole, and the automation is low and the reliability is insufficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of resource migration technology, specifically to a resource migration method, apparatus, medium, and program product based on a business system. Background Technology

[0002] With the advancement of digitalization and cloudification, and in line with the strategic requirements of information security and independent control, the need to migrate business systems to the cloud is becoming increasingly urgent. Traditional operating system resource migration solutions typically only target single virtual machines or Platform as a Service (PaaS) layer applications, lacking the ability to package and migrate the entire business system (including computing, storage, and network resources), and failing to cover the migration needs of the Infrastructure as a Service (IaaS) layer. Furthermore, their low level of automation and reliance on manual intervention not only leads to long migration cycles and business interruptions, but also increases the risk of operational errors and reduces migration reliability, failing to meet the requirements for efficient and integrated migration. Summary of the Invention

[0003] At least one embodiment of this application provides a resource migration method, apparatus, medium, and program product based on a business system, which solves the problems of existing resource migration solutions being unable to migrate the entire business system in a package, and having low automation and insufficient reliability.

[0004] To solve the above-mentioned technical problems, this application is implemented as follows:

[0005] In a first aspect, embodiments of this application provide a resource migration method based on a business system, including:

[0006] Collect resource parameters of the migration source resources of the business system. The migration source resources include the computing power resources of the business system and the associated resources of the computing power resources. The associated resources include storage resources and / or network resources.

[0007] The target resource is determined by matching the target resource pool according to the resource parameters.

[0008] Generate a resource mapping relationship between the source resource and the target resource, and create or reserve corresponding resources in the target resource according to the resource mapping relationship;

[0009] The migration of the business system is orchestrated and scheduled to generate a resource scheduling scheme. The resource scheduling scheme includes multiple migration tasks and the execution timing relationship between the multiple migration tasks. Each migration task is used to migrate a portion of the resources in the migration source resources.

[0010] The multiple migration tasks are executed according to the resource scheduling scheme.

[0011] Optionally, the target resource is determined by matching the target resource pool according to the resource parameters, including:

[0012] The priority of the resource parameters is set according to their importance.

[0013] The source resource of the migration is matched with the candidate resources in the target resource pool for the same resource parameter to determine the score of the resource parameter;

[0014] The score of the candidate resource is determined based on the score and weight of each resource parameter, wherein the weight of the resource parameter is positively correlated with the priority of the resource parameter.

[0015] Select the candidate resource with the highest score from at least one candidate resource as the target resource.

[0016] Optionally, the resource scheduling scheme further includes a time window corresponding to each migration task, wherein the duration of the time window includes a pre-estimated execution time of the migration task and a preset fault tolerance time.

[0017] Executing the multiple migration tasks according to the resource scheduling scheme includes:

[0018] During the execution of the first migration task, the execution time of the first migration task is calculated and the execution status of the first migration task is monitored. The first migration task is one of the plurality of migration tasks, and the execution status includes normal execution, execution failure, and execution success; wherein:

[0019] If the first migration task fails to execute and the execution time does not exceed the duration of the first time window, the first migration task is re-executed; the first time window is the time window corresponding to the first migration task.

[0020] If the first migration task is executed normally and the execution time reaches or exceeds the duration of the first time window, the first migration task continues to be executed until it is successful or fails.

[0021] Optionally, the resource scheduling scheme may also include at least two migration tasks executed concurrently.

[0022] Optionally, the first migration task is used to migrate a first resource; the resource parameters of the first resource include stable resource parameters and / or variable resource parameters, wherein the stable resource parameters are resource parameters whose change frequency is less than a preset frequency threshold, and the variable resource parameters are resource parameters whose change frequency is not less than the preset frequency threshold; the stable resource parameters are collected before executing the first migration task, and the variable resource parameters are collected in real time during the execution of the first migration task.

[0023] Optionally, generating the resource mapping relationship between the source resource and the target resource, and creating or reserving corresponding resources in the target resource according to the resource mapping relationship, includes:

[0024] The system obtains computing power, storage and network resource information during the migration process through the mapping unit, performs resource-level and attribute-level comparison mapping of resources before and after the migration, marks resource differences and constructs a resource mapping report.

[0025] Based on the resource mapping relationships in the resource mapping report, create or reserve corresponding resources in the target resource.

[0026] Optionally, the plurality of migration tasks includes network migration tasks and computing power migration tasks, and executing the plurality of migration tasks according to the resource scheduling scheme includes:

[0027] The network migration task and the computing power migration task are executed by a preset execution unit in accordance with the resource scheduling scheme.

[0028] The network migration task includes calling the network management capabilities of a preset cloud platform to create and bind network resources associated with the resource scheduling scheme; the computing power migration task is executed collaboratively by a disk management submodule, a file management submodule, a transmission submodule, and a system repair submodule, and is used to select the storage unit to be migrated according to the migration instruction. Each submodule performs a corresponding preset operation. The computing power migration task is used to copy and migrate the source resources in the form of a whole machine.

[0029] Secondly, embodiments of this application provide a resource migration apparatus based on a business system, comprising:

[0030] The acquisition module is used to acquire resource parameters of the migration source resources of the business system. The migration source resources include the computing power resources of the business system and the associated resources of the computing power resources. The associated resources include storage resources and / or network resources.

[0031] The first determining module is used to match the target resource pool according to the resource parameters and determine the target resource;

[0032] The first processing module is used to generate a resource mapping relationship between the source resource and the target resource, and to create or reserve corresponding resources in the target resource according to the resource mapping relationship.

[0033] The second processing module is used to orchestrate and schedule the migration of the business system and generate a resource scheduling scheme. The resource scheduling scheme includes multiple migration tasks and the execution timing relationship between the multiple migration tasks. Each migration task is used to migrate a portion of the resources in the migration source resources.

[0034] The third processing module is used to execute the multiple migration tasks according to the resource scheduling scheme.

[0035] Thirdly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the method as described in any one of the first aspects.

[0036] Fourthly, embodiments of this application provide a computer program product, including computer instructions, which, when executed by a processor, implement the steps of the method as described in any one of the first aspects.

[0037] Compared with existing technologies, the resource migration method, apparatus, medium, and program products based on business systems provided in this application collect computing resources and associated storage and network resource parameters of the business system to fully obtain the resource information of the migration source; match the target resource pool with the resource parameters to determine the suitable target resources; establish a mapping relationship between the migration source and the target resources, and create or reserve corresponding resources in the target resources in advance. Furthermore, the migration process is orchestrated and scheduled, splitting into multiple migration tasks and configuring their execution sequence. Based on the generated resource scheduling scheme, each migration task is executed in an orderly manner, thereby achieving overall resource collaborative migration of the business system and overcoming the problems of limited migration scope and low automation in traditional solutions. Attached Figure Description

[0038] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:

[0039] Figure 1 A flowchart illustrating the resource migration method provided in an embodiment of this application;

[0040] Figure 2 This is a schematic diagram of the architecture of the resource migration system provided in the embodiments of this application;

[0041] Figure 3 This is a schematic diagram of staggered scheduling of tasks provided in an embodiment of this application;

[0042] Figure 4 This is a schematic diagram of the structure of the resource migration device provided in the embodiments of this application. Detailed Implementation

[0043] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0044] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and are not used to describe a specified order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of the same class, not limited in number; for example, a first object can be one or more. Furthermore, in the specification and claims, "and" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0045] The term "instruction" in this application can be either a direct instruction (or explicit instruction) or an indirect instruction (or implicit instruction). A direct instruction can be understood as one in which the sender explicitly informs the receiver of specific information, the operation to be performed, or the requested result, etc.; an indirect instruction can be understood as one in which the receiver determines the corresponding information based on the instruction sent by the sender, or makes a judgment and determines the operation to be performed or the requested result, etc., based on the judgment result.

[0046] As described in the background section, existing technologies face numerous challenges during actual cloud migration or expansion: difficulties in assessing resource lists and network environments, significant issues with large-scale data replication, complex network environment mapping, and long service interruption times. Business migration primarily involves migrating PaaS clusters, lacking IaaS-level migration, failing to provide intuitive and simple cloud migration services, and exhibiting issues such as the inability to migrate business systems as a whole, low automation, and insufficient reliability. To address at least one of these problems, this application provides a resource migration method, apparatus, medium, and program product based on business systems, resolving the limitations of existing resource migration solutions in terms of migration scope, low automation, and low migration efficiency.

[0047] This application provides a method, apparatus, medium, and program product for resource migration based on a business system. The method and apparatus are based on the same concept, and since the principles by which they solve problems are similar, their implementations can be mutually referenced; repeated details will not be repeated.

[0048] Please refer to Figure 1 This application provides a resource migration method based on a business system, comprising:

[0049] Step 11: Collect the resource parameters of the migration source resources of the business system. The migration source resources include the computing power resources of the business system and the associated resources of the computing power resources. The associated resources include storage resources and / or network resources.

[0050] The business system described in this application is a comprehensive business operation carrier supported by computing power resources, storage resources, and network resources. The normal operation of the business system is highly dependent on the coordinated cooperation of various underlying infrastructure resources. Therefore, the migration process requires synchronous adaptation and migration of all related resources across the entire chain.

[0051] Here, step 11 comprehensively collects all attribute parameters of the source resources to be migrated in the business system to be migrated. The source resources to be migrated are not limited to a single computing resource, but also include related resources such as storage resources and network resources that are deeply bound to and work together with computing resources. All underlying resource information required for the operation of the business system is fully collected, providing complete data support for subsequent resource matching and migration configuration.

[0052] Optionally, the specific scope of the migration source resources includes computing resources under the business system, as well as storage resources and network resources associated with the computing resources. The specific types of each resource are as follows: (1) Computing resources: mainly include virtual machines, bare metal servers, and may also include containers, server clusters, etc., which are the computing carriers for the operation of the business system; (2) Storage resources: associated with computing resources, mainly include block storage, file storage, object storage, etc., used to store business data, system configuration files, etc.; (3) Network resources: work in conjunction with computing resources and storage resources, mainly including networks, subnets, bearer networks, VIPs, firewalls, load balancing devices, etc., used to ensure network connectivity and data transmission security between resources.

[0053] Step 12: Match the target resource pool according to the resource parameters to determine the target resource. This application uses the collected computing power, storage, network and other resource parameters as the matching basis, compares and adapts the specifications, attributes and operating requirements of the source resource with the various available resources in the target resource pool item by item, and selects the resources that are compatible with the source resource and can support the operation of the business system as the target resources for subsequent migration and deployment.

[0054] Step 13: Generate a resource mapping relationship between the source resource and the target resource, and create or reserve corresponding resources in the target resource according to the resource mapping relationship.

[0055] Based on the selected target resources, a one-to-one mapping relationship is established between the original resources on the source side and the new resources on the target side, and the migration rules for various types of resources are clarified. In accordance with this mapping relationship, the corresponding resources are newly configured or space is reserved in the target resource pool in advance to ensure that the resources can be directly adapted to business operation after migration.

[0056] Step 14: Orchestrate and schedule the migration of the business system to generate a resource scheduling scheme. The resource scheduling scheme includes multiple migration tasks and the execution timing relationship between the multiple migration tasks. Each migration task is used to migrate a portion of the resources in the migration source resources.

[0057] This application combines the overall migration requirements of the business system to orchestrate and schedule the entire migration process, forming a standardized resource scheduling scheme. The overall migration work is broken down into multiple independent migration tasks, and the execution sequence and collaboration logic between each migration task are defined, so that each migration task is only responsible for migrating a part of the source resources, realizing the modular decomposition of complex migration work.

[0058] Step 15: Execute the multiple migration tasks according to the resource scheduling scheme. Here, Step 15 executes each of the split migration tasks sequentially and orderly based on the preset task division rules and execution timing relationships in the resource scheduling scheme, completing the migration operations of various resources such as computing power, storage, and network step by step, and finally completing the full migration and deployment of the business system's source resources.

[0059] In this embodiment, parameters of the computing power and associated resources of the business system are first collected. Based on these parameters, target resource pool matching and screening are completed to determine suitable target resources. A mapping relationship between the migration source and target resources is constructed, and resource creation or reservation is completed on the target side according to the mapping rules. By uniformly orchestrating and scheduling the migration process, multiple migration tasks are divided and their execution sequences are set to form a complete resource scheduling scheme. The migration tasks are executed in an orderly manner according to the established rules. This achieves the overall migration of resources across the entire business system, standardizes the migration process, improves the level of migration automation and operational reliability, and effectively solves the technical defects of traditional solutions, such as limited migration scope, high dependence on manual intervention, and poor migration stability.

[0060] Reference Figure 2As shown, this application also provides an integrated resource migration system based on a business system. Through a coherent automated process, it achieves unified discovery, analysis, scheduling, and migration of all computing resources and their associated network and storage resources under the business system, enabling the implementation of each step of the aforementioned resource migration method. The overall system architecture of this application includes the following functional units: A perception unit: Based on a specified business system, it automatically discovers and collects all virtual machines, physical machines, and other computing resources under it, and further perceives associated storage resources, network configurations (such as subnets, firewalls, load balancers), and network interconnection relationships, ensuring the integrity and accuracy of migration source information; An analysis unit: Based on the collected resource specifications, capacity, network dependencies, and other information, it uses a multi-parameter comprehensive evaluation algorithm to automatically match and recommend target resource pools that meet migration conditions from the entire network resource pool, ensuring that the target environment meets business needs; A scheduling unit: Based on the dependencies and resource requirements of migration tasks, it performs intelligent orchestration and scheduling. It supports concurrent execution of multiple tasks and peak-shifting management (such as...). Figure 2 (As shown in the diagram of staggered scheduling of tasks), by introducing a two-dimensional time pane and fault tolerance mechanism, the migration task flow is efficiently coordinated to avoid system overload and ensure migration efficiency. The mapping unit automatically generates a detailed mapping report of resources before and after migration, covering attribute comparisons of computing, storage, and network resources to ensure transparency and traceability of the migration process. It also calls cloud platform interfaces to create or reserve necessary network resources in advance according to the mapping relationships. The execution unit is the system's execution module. By triggering the migration scheduling of computing resources, it realizes the migration transformation of virtual machine to virtual machine (V2V), physical machine to physical machine (B2B), and physical machine to virtual machine (B2V). It also calls cloud platform services to realize network resource activation and resource relationship association, ensuring the efficiency and reliability of migration execution.

[0061] It's important to note that V2V refers to migrating (copying / replicating) a virtual machine from a source host to a target host on the same virtualization platform, maintaining the integrity of the virtual machine's state (including memory and disk states) to ensure continuous business operation. It is primarily used for resource allocation, load balancing, and fault recovery scenarios in virtualization environments. B2B refers to completely migrating the operating system and applications of a physical server to another physical server, including the entire stack environment migration such as hardware, operating system, drivers, and application software. This is commonly seen in data center relocation, hardware upgrades, and physical server replacements, and typically requires system booting and data verification after migration. B2V refers to completely converting the business environment on a physical server into a virtual machine, including virtualization adaptation of the underlying environment such as the operating system, drivers, BIOS settings, and firmware. While maintaining business continuity, it upgrades the physical architecture to a virtualization architecture. It is the core technology for migrating physical resources to cloud resource pools and is the fundamental process of server virtualization.

[0062] In an optional embodiment, step 12 described above includes:

[0063] The priority of the resource parameters is set according to their importance.

[0064] The source resource of the migration is matched with the candidate resources in the target resource pool for the same resource parameter to determine the score of the resource parameter;

[0065] The score of the candidate resource is determined based on the score and weight of each resource parameter, wherein the weight of the resource parameter is positively correlated with the priority of the resource parameter.

[0066] Select the candidate resource with the highest score from at least one candidate resource as the target resource.

[0067] In this embodiment, based on the actual needs of business operation and resource migration, and considering the impact of various resource parameters on the stable operation and migration adaptation of the business system, all collected resource parameters are hierarchically divided, and different priority levels are set for different resource parameters, distinguishing between core key parameters and regular auxiliary parameters. Resource parameters of the same type are extracted sequentially from the source migration resource and each candidate resource in the target resource pool, and a point-by-point matching is performed. Based on the degree of parameter matching and satisfaction, the matching score of each resource parameter is quantitatively evaluated. Combining the matching scores of each resource parameter with the parameter weights positively correlated with priority, a weighted calculation method is used to accurately calculate the comprehensive score of each candidate resource, quantifying the overall adaptability of the candidate resource. Among multiple candidate resources in the target resource pool, the comprehensive score results of all candidate resources are compared horizontally, and the candidate resource with the highest comprehensive score is selected as the final target resource for the business system migration and deployment.

[0068] In one specific implementation method, based on Figure 2As shown, this solution relies on an analysis unit to uniformly complete the overall resource analysis and intelligent matching. Based on the previously collected and perceived information such as the type, specifications, and capacity of the migration source and related resources, it filters target resources that meet the migration rule constraints within the entire network resource pool, providing reliable analysis and matching support for subsequent migration scheduling. Traditional resource matching modes only focus on simple comparisons of basic parameters of the migration source, without considering joint analysis and filtering of surrounding environmental factors, which easily leads to the problem that matched resources cannot meet the long-term operational requirements of the business. This application introduces a multi-parameter comprehensive evaluation and calculation mechanism and dynamic programming logic, prioritizing parameters according to their impact level, setting key conditions such as resource type and system limitations as high priority, and parameters such as specifications, capacity, and network resources as hierarchical levels; at the same time, it adjusts the matching rules in real time based on dynamic changes in information such as storage capacity, network bandwidth, and available IPs, and finally filters out the optimal matching resources, comprehensively improving the rationality of resource matching and business adaptability.

[0069] Furthermore, the parameters of the source resources to be migrated are prioritized and the hierarchical relationship of the parameter priorities is clarified. The specific rules are as follows: (1) First priority: including resource type and operating system restrictions. These parameters are the premise for the target resource to adapt to the source resource and directly determine whether the target resource can support the business operation of the source resource. For example, if the source resource is a bare metal server, the target resource must also be a bare metal server; if the operating system of the source resource is Linux, the operating system of the target resource must also be Linux or a system compatible with Linux, otherwise the migration cannot be completed. (2) Second priority: including specifications and capacity. These parameters affect the operating performance of the resources after migration and are important limiting parameters. For example, if the source resource has 16 CPU cores, 32GB of memory, and 1TB of storage capacity, the number of CPU cores, memory capacity, and storage capacity of the target resource must not be lower than those of the source resource to ensure that the business system can run normally after migration and avoid problems such as lag and crash due to insufficient resources. (3) Third priority: including available network information. These parameters affect the smoothness of the migration process and the connectivity of the business after migration and are auxiliary limiting parameters. For example, the target resource must have a network environment that can communicate with the source resource and business system, the available bandwidth must meet the data transmission requirements, and the available IP addresses must conform to the network planning of the business system to ensure smooth data transmission during the migration process and normal access to the business after the migration.

[0070] The hierarchy of priorities is as follows: the first priority is greater than the second priority, and the second priority is greater than the third priority. That is, when filtering target resources, the matching requirements of the first priority parameter are met first, and then the matching requirements of the second priority and third priority parameters are met in turn.

[0071] Based on the above parameter priorities, resources in the entire network resource pool are progressively screened. The specific process is as follows: Screening resources that meet the first priority parameters: Traverse the entire network resource pool, screen resources whose resource type and operating system restrictions completely match the source resources, and remove resources that do not meet the first priority requirements, forming a first candidate resource set; Further screen the resources in the first candidate resource set, screen resources whose specifications and capacity are not lower than the source resources, and remove resources with insufficient specifications and capacity, forming a second candidate resource set; Screen the resources in the second candidate resource set, screen resources whose available network information meets the requirements, and remove resources whose network environment does not meet the requirements, forming a final candidate resource set; From the final candidate resource set, based on actual business needs (such as cost, performance, geographical location, etc.), select one or more target resources that meet the preset migration rules for subsequent scheduling; If the final candidate resource set is empty, that is, there are no target resources in the entire network resource pool that meet all priority requirements, output a matching failure message, prompting staff to adjust the migration rules (such as relaxing some non-core parameter requirements) or supplement target resources to ensure the smooth progress of the migration work.

[0072] It should be noted that traditional analysis methods only focus on matching the type, specifications, and capacity of the migration source, lacking joint analysis and filtering of surrounding factors. This results in the matched resource pool failing to meet the final business requirements. This application analyzes the resources to be migrated. Based on the perceived migration source and related resource type, specifications, and capacity information, it matches target resources that meet migration rules from the entire network resource pool, providing a foundation for analysis and matching capabilities for migration scheduling. This application employs a dynamic programming and multi-parameter comprehensive evaluation algorithm. First, parameters are prioritized according to their importance. For example, parameters with switching effects, resource type, and operating system limitations are set to the highest priority, followed by specifications and capacity, and then available network information parameters. Simultaneously, the analysis conditions are dynamically adjusted based on changes in capacity and changes in network available bandwidth and available IPs, ultimately selecting one or more matching results that meet the conditions.

[0073] In an optional embodiment, the resource scheduling scheme further includes a time window corresponding to each migration task, wherein the duration of the time window includes a pre-estimated execution time of the migration task and a preset fault tolerance duration;

[0074] Executing the multiple migration tasks according to the resource scheduling scheme includes:

[0075] During the execution of the first migration task, the execution time of the first migration task is calculated and the execution status of the first migration task is monitored. The first migration task is one of the plurality of migration tasks, and the execution status includes normal execution, execution failure, and execution success; wherein:

[0076] If the first migration task fails to execute and the execution time does not exceed the duration of the first time window, the first migration task is re-executed; the first time window is the time window corresponding to the first migration task.

[0077] If the first migration task is executed normally and the execution time reaches or exceeds the duration of the first time window, the first migration task continues to be executed until it is successful or fails.

[0078] In this embodiment, the constructed resource scheduling scheme further configures a dedicated time window for each migration task. The duration of a single time window consists of two parts: the pre-calculated standard execution time of the migration task and the pre-configured fault tolerance time. This defines a reasonable execution cycle boundary for each migration task and reserves buffer space for exception handling. During the batch migration task execution phase, taking any first migration task as the execution object, the cumulative execution time of the task from startup is counted in real time, and the real-time running status of the task is continuously monitored. The task running status is divided into three categories: normal execution, execution failure, and execution success, so as to achieve full-process controllability of the migration process. When the first migration task runs abnormally and fails, if the current cumulative execution time does not exceed the total duration of its corresponding first time window, it is determined that it is still within the fault tolerance period, and the migration task is automatically restarted and rerun, using the fault tolerance time to deal with instantaneous abnormal problems. When the first migration task is running normally without errors or interruptions, but the actual execution time reaches or exceeds the first time window limit, the task will not be forcibly terminated. Instead, the task will continue to run until it is finally completed or fails, ensuring the integrity of business in large-capacity and complex resource migration scenarios and avoiding hard truncation that could damage the migration.

[0079] Furthermore, if the first migration task fails and the cumulative execution time exceeds the first time window limit, it is determined that the fault tolerance resources for the task have been exhausted. All operations of the current first migration task are stopped directly, the abnormal task is skipped, and the subsequent migration tasks to be run are continued in chronological order.

[0080] In a specific implementation, the core implementation of resource scheduling in this solution depends on... Figure 2The scheduling unit shown is a core component of the system. It not only possesses flexible scheduling capabilities but also enables collaborative scheduling and off-peak orchestration of multiple tasks. Furthermore, it allows users to freely configure diverse scheduling strategies, such as scheduled execution, immediate execution, and combined retries, based on actual application scenarios and needs. This ensures the system can adapt to different working environments and maximizes scheduling efficiency. The scheduling unit works closely with the analysis unit. Based on the target resource matching results output by the analysis unit, it intelligently analyzes the optimal path for resource migration, execution sequence, and associated resource creation logic, thereby formulating an optimized resource scheduling scheme to ensure the orderly progress of the migration process.

[0081] For scenarios involving concurrent execution of multiple tasks, based on Figure 2 The scheduling unit shown adopts a two-dimensional time pane mechanism. Based on the expected execution time and actual running status of each migration task, it allocates a dedicated execution time period to each task, anchoring each task in the corresponding time cell. At the same time, it sets a fault tolerance space of 20% of the expected execution time to offset the time delay caused by task failure retry and avoid task execution interruption.

[0082] During task execution, if the first migration task (such as a specific migration task) fails, and its execution time does not exceed the corresponding time window limit, the scheduling unit will prioritize retrying using the fault tolerance space to prevent task termination. If the first migration task executes normally, even if its execution time exceeds the time window limit, task execution will continue without forced interruption, ensuring task integrity. Simultaneously, by staggering the scheduling of multiple tasks, resource contention between tasks is effectively avoided, system load is balanced, and overload or idle situations are prevented, ensuring the entire migration process is efficient and stable, achieving rational resource utilization and orderly task progression.

[0083] For example, refer to Figure 3 As shown, the data is structured with a 24-hour timeframe (0:00-22:00) as the row axis and multiple-day spans (1 day, 2 days, 3 days, etc.) as the column axis, using... Figure 2 The system intuitively displays the staggered distribution and concurrent execution status of tasks 1 to 4. Task 1 is presented as a continuous task block concentrated during a specific period of the day, Task 2 is executed in time slots, Task 3 is a single short-term task, and Task 4 reflects long-cycle operations throughout most of the time. The blank areas between each task not only reflect execution avoidance but also provide fault tolerance space for failure retry and time compensation. This effectively avoids resource conflicts and competition, balances system load, and avoids overload or idleness, thereby maximizing system utilization within a limited time. This verifies the effectiveness of multi-dimensional time pane and fault tolerance mechanism in coordinating scheduling to improve resource migration efficiency.

[0084] Combining the multi-task scheduling logic described above, this application achieves staggered execution of multiple migration tasks through the staggered scheduling and fault-tolerant retry mechanism of the two-dimensional time pane. This effectively avoids conflicts and resource competition between migration tasks, balances the system load, prevents system overload or idle situations, improves the overall performance and stability of the system, and ensures that resource migration tasks are completed efficiently and in an orderly manner.

[0085] Furthermore, the resource scheduling scheme also includes at least two migration tasks executed concurrently.

[0086] It should be noted that the generated resource scheduling scheme includes at least two migration tasks with concurrent execution requirements. The scheduling unit, combining two-dimensional time pane orchestration rules, rationally divides parallel execution intervals based on the different running attributes, resource consumption requirements, and estimated execution duration of each migration task. While ensuring the independent operation of each task, it allows two or more migration tasks to perform migration operations simultaneously. Simultaneously, based on peak-shaving scheduling and load balancing mechanisms, it avoids resource contention and operational interference between concurrent tasks, and with preset fault tolerance space, it ensures the stability of task operation in concurrent scenarios, fully utilizes idle system resources, and improves the overall processing efficiency of multi-task synchronous migration.

[0087] Optionally, the first migration task is used to migrate a first resource; the resource parameters of the first resource include stable resource parameters and / or variable resource parameters, wherein the stable resource parameters are resource parameters whose change frequency is less than a preset frequency threshold, and the variable resource parameters are resource parameters whose change frequency is not less than the preset frequency threshold; the stable resource parameters are collected before executing the first migration task, and the variable resource parameters are collected in real time during the execution of the first migration task.

[0088] It should be noted that traditional acquisition modules focus more on information about the source itself, while ignoring environmental information such as storage and network conditions. This results in the inability to quickly resume services after migration, extending the service interruption time.

[0089] In this application, a first migration task is defined to migrate a first resource, and the resource parameters of the first resource are classified into two types: stable resource parameters and variable resource parameters. Among them, stable resource parameters refer to static parameters whose change frequency is lower than a preset frequency threshold, and whose attributes are fixed in the long term and are not easily changed; variable resource parameters are dynamic parameters whose change frequency is greater than or equal to the preset frequency threshold, and are prone to real-time fluctuations during operation.

[0090] Based on this, this application adopts a phased and differentiated data collection method. Stable resource parameters are collected uniformly before the first migration task is officially started, ensuring the accuracy and effectiveness of basic configuration parameters. Variable resource parameters do not need to be collected in batches in advance, but are collected dynamically in real time as the first migration task progresses, capturing parameter changes in real time. This adapts to the changing characteristics of different types of resource parameters, improves the accuracy and timeliness of resource parameter collection, and provides accurate data support for subsequent resource matching, task scheduling, and migration execution.

[0091] It should be noted that this application uses resource discovery and integrated collection, employing both active and passive methods to collaboratively collect information such as the status, specifications, operating system, disk size, image, resource type, and associated resources of the first resource (migration source), thereby achieving comprehensive perception of the first resource and its associated storage, network, and other information. Among them, the resource scope of the first resource includes computing resources, storage resources, and network resources, as follows: (1) Computing resources: mainly include virtual machines and bare metal servers, and may also include containers, server clusters, etc., which are the computing carriers for the operation of business systems; (2) Storage resources: associated with computing resources, mainly include block storage, file storage, object storage, etc., used to store business data, system configuration files, etc.; (3) Network resources: working in conjunction with computing resources and storage resources, mainly including networks, subnets, bearer networks, virtual IP addresses (VIPs), firewalls, load balancing devices, etc., used to ensure network connectivity and data transmission security between resources.

[0092] Based on the frequency of change of the resource parameters of the first resource, this application classifies the resource parameters of the first resource into stable resource parameters and variable resource parameters. The classification standard is based on the information fluctuation situation in actual applications, and the specific definitions are as follows:

[0093] (1) Stable resource parameters: These are parameters that change less than a preset frequency threshold, remain stable over a long period, and do not require frequent collection during the execution of the first migration task. For example, the resource type, operating system version, basic hardware specifications, network topology, and related network, subnet, firewall, and other information of the first resource. These parameters are usually determined before the start of the first migration task and will not change or have a very low probability of changing during the migration process.

[0094] (2) Variable resource parameters: These are parameters that change at a frequency no less than a preset frequency threshold, are prone to fluctuation, and require real-time collection to ensure accuracy. Examples include the real-time capacity and used space ratio of storage resources, the available bandwidth, available IP addresses, and port occupancy of network resources, the real-time load of computing resources, and the status of the first resource, the effective disk space size, and the business read / write status. If these parameters are not collected in real time, it may lead to problems such as resource mismatch and migration failure during the execution of the first migration task.

[0095] For the above two different types of resource parameters, the corresponding collection methods are adopted as follows: (1) Collection of stable resource parameters: a passive collection method is adopted, without actively initiating collection requests, but receiving the first resource-related information actively pushed by the upper-level platform; the upper-level platform can periodically push the latest information of stable resource parameters, and if the parameters change, the upper-level platform will push updates in time to ensure the accuracy of stable resource parameters and reduce resource collection overhead. (2) Collection of variable resource parameters: an active collection method is adopted, and the latest information of the first resource is collected in real time through a preset interface or protocol; the preset interface can be the Application Programming Interface (API), and the preset protocol can be the Secure Shell Protocol (SSH), which can be flexibly selected according to the type of the first resource and the deployment environment; for example, the first resource host can be remotely logged in through the SSH protocol to collect load information such as CPU usage and memory usage in real time, and the network management system can be called through the API interface to obtain network information such as available bandwidth and available IP in real time. The collection frequency can be set according to the information change frequency to ensure the real-time performance of variable resource parameters.

[0096] This classification and acquisition strategy can reduce the overhead of resource acquisition and improve acquisition efficiency while ensuring the accuracy of the resource parameters of the first resource, thus providing accurate and real-time data support for resource matching, scheduling and execution of the first migration task.

[0097] Optionally, generating the resource mapping relationship between the source resource and the target resource, and creating or reserving corresponding resources in the target resource according to the resource mapping relationship, includes:

[0098] The system obtains computing power, storage and network resource information during the migration process through the mapping unit, performs resource-level and attribute-level comparison mapping of resources before and after the migration, marks resource differences and constructs a resource mapping report.

[0099] Based on the resource mapping relationships in the resource mapping report, create or reserve corresponding resources in the target resource.

[0100] In this embodiment, the mapping unit of the business system comprehensively acquires information on all types of resources involved in the migration process, including complete information on computing resources, storage resources, and network resources, ensuring that all relevant resources before and after the migration are included in the mapping scope. After acquiring the resource information, the mapping unit performs a two-level comparison mapping between the source and target resources. On the one hand, it conducts a resource-level comparison mapping to verify the correspondence between the source and target resources at the overall level, such as resource type and resource scale. On the other hand, it conducts an attribute-level comparison mapping to meticulously compare the matching of the two types of resources in specific attributes (such as computing power configuration, storage capacity, network parameters, etc.). During the comparison process, all resource differences between the source and target resources are accurately marked. Based on the comparison results, difference information, and correspondence, a complete resource mapping report is constructed. This report clearly presents the one-to-one correspondence between the source and target resources, details of resource differences, and mapping rules, providing a clear basis for subsequent resource creation or reservation.

[0101] Furthermore, based on the resource mapping relationships specified in the resource mapping report, targeted resource creation or reservation operations are carried out in the target resource pool: for resources that exist in the migration source but are missing in the target resource pool, corresponding resources that are completely matched are created in the target resource pool according to the requirements of the mapping relationship, ensuring that the resource attributes and specifications are consistent with the migration source resources; for resources that already exist in the target resource pool and meet the mapping requirements, they are reserved directly to avoid resource waste caused by repeated creation, and finally achieve accurate correspondence between target resources and migration source resources, laying a solid resource foundation for the smooth execution of subsequent migration tasks.

[0102] In one specific implementation, this application first uses a resource discovery and integrated collection mechanism, combining active and passive collection methods, to comprehensively collect information on the first resource and its associated storage, network, and other multi-dimensional resources, fully covering various resource categories such as computing power, storage, and network. Simultaneously, based on the frequency of resource parameter changes, the resource parameters of the first resource are divided into stable and variable resource parameters, and a differentiated collection method is used to acquire the data. Stable resource parameters are passively pushed by the upper-layer platform, while variable resource parameters are actively collected in real time based on API, SSH, and other interface protocols. This approach reduces collection overhead and improves overall collection efficiency while ensuring the accuracy and effectiveness of resource information, providing complete and reliable basic data for resource mapping.

[0103] Based on this, the mapping unit uniformly completes the resource setting and mapping processing between the source and target resources for migration. The mapping unit integrates all collected computing power, storage, and network resource information, and conducts comprehensive comparison and mapping at the resource and attribute levels for various resources before and after migration. Among them, computing power resources include the configuration specifications and operating status of CPU and memory; storage resources include hard disk capacity, storage space allocation, and operating status; and network resources include key information such as IP address, port configuration, and connection relationships, enabling detailed comparison of various resource information item by item.

[0104] During the comprehensive comparison process, the mapping unit determines the differences between the source and target resources in terms of deployment location, resource attributes, and configuration specifications. It automatically identifies and marks these resource differences and intelligently generates a detailed resource mapping report based on the complete comparison results, clearly presenting the correspondence and changes of each resource before and after the migration. Finally, based on the resource mapping relationships established in the resource mapping report, the corresponding resources are created or reserved on the target resource side. This not only intuitively displays the resource changes throughout the migration process, improving the transparency and overall controllability of resource migration, but also ensures accurate adaptation between the source and target resources, effectively avoiding migration anomalies caused by resource parameter mismatches, and ensuring the smooth and orderly execution of the first migration task.

[0105] Optionally, the plurality of migration tasks includes network migration tasks and computing power migration tasks, and executing the plurality of migration tasks according to the resource scheduling scheme includes:

[0106] The network management capabilities of the preset cloud platform are invoked to execute the network migration task according to the resource scheduling scheme.

[0107] Based on the coordinated execution of the preset disk management submodule, file management submodule, transmission submodule and system repair submodule, the computing power migration task is executed in a whole-machine replication manner according to the resource scheduling scheme.

[0108] It's important to note that network migration involves utilizing the cloud platform's network management capabilities to create and bind network resources related to the migration task. This ensures that the target resource can maintain normal connectivity with business systems and other resources after migration. Network migration can be performed by the execution unit calling the cloud platform's network management interface. Based on the network resource requirements specified in the resource scheduling plan, it sequentially creates network resources such as VIPs, bearer networks, firewalls, and load balancers. VIPs ensure the stability of business access, bearer networks carry data transmission and business communication during the migration process, firewalls ensure network security, and load balancers distribute business traffic. After creation, these network resources are bound to the target resource, and network routing, port mapping, and other parameters are configured to ensure that the target resource can normally access the business system network and achieve network interoperability with the source resource and other related resources, providing a network foundation for subsequent computing power migration and business switching.

[0109] It should also be noted that computing power migration is to achieve efficient migration of computing power resources from the migration source. Depending on the actual business needs, one of the two migration methods can be selected: (1) Whole machine replication migration: The migration source is replicated in the form of a whole machine, that is, all data, system configuration, business applications, etc. of the migration source are completely copied, including the entire contents of the system disk and data disk. After the migration is completed, the system environment and business configuration of the target resource are completely consistent with the migration source, and there is no need to redeploy the business applications. It is suitable for scenarios with high requirements for business continuity and complex migration source configuration. For example, if the migration source is a virtual machine running core business, whole machine replication migration can ensure that the business can be quickly restored after the migration, reducing business interruption time. (2) On-demand disk migration: Abandoning the traditional full disk migration method, the disk to be migrated is selected according to the preset requirements. There is no need to migrate all disks. It is suitable for scenarios where only some business data and system configuration need to be migrated. It can optimize resource configuration, reduce unnecessary storage overhead, and improve migration efficiency. The disks to be migrated may include system disks, independent data disks, and logical volumes managed by specific logical volume managers (LVM). Staff can flexibly choose which disks to migrate based on actual needs. For example, they can migrate only the business data disks and not the system disks, which can significantly shorten the migration time.

[0110] This application leverages the network management capabilities of a pre-defined cloud platform to execute network migration tasks, completing the creation and binding of resources related to the bearer network, virtual IP addresses, firewalls, and load balancers. Based on four sub-modules—disk management, file management, transmission, and system repair—it executes computing power migration tasks, selects storage units to be migrated, and completes disk partitioning configuration and file merging and organization. This application adopts a whole-machine replication approach, with each sub-module working collaboratively to complete the segmentation, compression, and transmission of the data to be migrated, simultaneously performing system boot repair to ensure accurate migration of computing resources. Compared to traditional migration solutions, this application allows for fine-grained customization of the disk content of the source and target servers during the migration process. It avoids rigid full-disk migration, allowing for the selection of disks to be migrated as needed. Whether it's the system disk, independent data disk, or a specific LVM logical volume, accurate migration is possible, greatly optimizing resource allocation, reducing unnecessary storage overhead, and improving operational flexibility and efficiency.

[0111] Specifically, this application achieves integrated migration execution and system self-healing through a pre-defined execution unit, including network migration tasks and computing power migration tasks. The network migration task primarily utilizes the cloud platform's network management capabilities to create and bind various network resources such as VIPs, bearer networks, firewalls, and load balancers, providing stable and secure network support for the entire migration process. The computing power migration task employs a self-developed method, replicating and migrating the migration source as a whole machine to achieve rapid migration of computing and storage resources. Its execution unit consists of a disk management submodule, a file management submodule, a transmission submodule, and a system repair submodule. Based on migration instructions, it performs disk partition checks and creation on the file system to be migrated, collects the data files to be migrated and completes merging, compression, and orchestration for transmission. Finally, the system repair module performs final checks and processing to ensure the system can start normally and achieve rapid resource creation.

[0112] Compared to traditional migration solutions, this application allows for fine-grained customization of the disk content of the source and target servers during the migration process. It eliminates the need for rigid full-disk migration and allows users to select the disks to be migrated as needed. Whether it is a system disk, a separate data disk, or a specific LVM logical volume, precise migration can be achieved, effectively optimizing resource allocation, reducing unnecessary storage overhead, and significantly improving job flexibility and execution efficiency.

[0113] At the disk management level, this application employs deeply intelligent methods, demonstrating superior performance, particularly in multi-path device and partition information processing. Leveraging advanced fault tolerance mechanisms, it ensures accurate and error-free operations within complex storage architectures. The specific processing flow is as follows: 1. Obtain detailed information on all disks and their partitions under the host to be migrated; 2. Delete the corresponding LVM device on the target disk; 3. Save the config-drive partition on the target disk to a temporary file; 4. Copy the same partition structure to the target disk based on the partition information of the disk to be migrated; 5. Create an LVM device on the target disk based on the LVM device information of the disk to be migrated; 6. Format the corresponding target disk partitions based on the partition information of the disk to be migrated; 7. Restore the config-drive partition on the target disk.

[0114] In terms of file system management, this application adopts a preset universal unique identifier (UUID) mapping technology, abandoning the old drive letter dependency, enhancing the robustness and continuous operation capability of the migrated system, and laying a solid foundation for the long-term stable operation of the system. The relevant processing flow is as follows: mount the file system on the corresponding target disk according to the mount point information of the disk to be migrated; update the fstab and grub configuration information; unmount the file system on the target disk; merge the files before transferring them.

[0115] At the transmission optimization level, this application integrates cutting-edge technologies such as intelligent file aggregation, multi-threaded breakpoint resumption, dynamic data compression, and intelligent algorithm selection. This not only accelerates the data transmission process but also maximizes resource utilization, setting a new benchmark for data migration speed and efficiency. The processing flow is as follows: before file transmission, large files are divided into blocks according to a preset block size; during file transmission, the information of the transmitted file blocks is recorded in real time; when file transmission is interrupted, transmission continues from the breakpoint based on the breakpoint record information; and intelligent compression of data is performed during transmission to reduce the amount of transmitted data and the number of connections, thereby improving transmission efficiency.

[0116] Furthermore, the system repair submodule achieves a high degree of integration between automation and intelligent recognition, enabling it to automatically perform compatibility repairs for different system environments. This ensures that the migrated system can be put into operation immediately, guaranteeing business continuity. The specific processing flow is as follows: Obtain the path of the shallowest mount point in the target disk as the starting point for boot repair; Based on the selected mount point, determine the repair commands that the system needs to use; Use the repair commands to repair the system boot; After the repair operation is completed, the system will systematically unmount all previously mounted temporary directories.

[0117] In summary, compared with existing technologies, the solution proposed in this application achieves the following: Higher migration dimensionality: Overcoming the limitations of existing technologies that focus primarily on migrating single resources, it realizes a comprehensive, packaged migration at the business system level, which is more in line with actual operation and maintenance scenarios. Enhanced automation and intelligence: Through an integrated automated process, it solves the problems of excessive manual intervention and long migration cycles in existing solutions, and introduces intelligent analysis, matching, and scheduling algorithms, improving migration efficiency and reliability. Fundamentally improved migration experience: It provides business personnel with a "black box" automated migration service, allowing them to complete complex migrations with a single click without needing in-depth technical knowledge, truly achieving one-stop migration.

[0118] The proposed solution can be applied to scenarios such as business transformation, data center relocation, and disaster recovery deployment. In these scenarios, businesses need to redeploy their applications on the target resource pool servers. For example, data center relocation involves moving an entire data center or servers from one location to another. This involves redeploying a large number of services in the new data center, reorganizing the network environment, and requiring service interruptions for cutover. Disaster recovery deployment is a measure and strategy to ensure rapid system recovery and business continuity in the event of various unexpected events (such as natural disasters, hardware failures, and human error). In this scenario, the same business environment needs to be deployed in different resource pools in two different regions, maintaining similar deployment scale and architecture, and conducting regular disaster recovery drills. The implementation process of these scenarios involves many stages, including resource surveys, network planning, resource application, business deployment, configuration adjustments, and business verification. Each stage is time-consuming, and the entire migration process can take weeks or even months. The massive workload during business migration severely impacts the progress of cloud migration. This application provides an integrated migration service, achieving: automatic resource and network environment analysis, supporting rapid identification of computing resources to be migrated along with associated storage and network resources from a business perspective, ensuring comprehensive migration; efficient data replication and transmission mechanisms to guarantee the efficiency of computing power migration; and fully automated migration, providing tenants with automated resource migration services, saving manpower and reducing business downtime.

[0119] The various methods of the embodiments of this application have been described above. Apparatus for implementing the above methods will now be provided.

[0120] Please refer to Figure 4 This application also provides a resource migration apparatus based on a business system, including:

[0121] The acquisition module 41 is used to acquire resource parameters of the migration source resources of the business system. The migration source resources include the computing power resources of the business system and the associated resources of the computing power resources. The associated resources include storage resources and / or network resources.

[0122] The first determining module 42 is used to match the target resource pool according to the resource parameters and determine the target resource;

[0123] The first processing module 43 is used to generate a resource mapping relationship between the source resource and the target resource, and to create or reserve corresponding resources in the target resource according to the resource mapping relationship.

[0124] The second processing module 44 is used to orchestrate and schedule the migration of the business system and generate a resource scheduling scheme. The resource scheduling scheme includes multiple migration tasks and the execution sequence relationship between the multiple migration tasks. Each migration task is used to migrate a portion of the resources in the migration source resources.

[0125] The third processing module 45 is used to execute the multiple migration tasks according to the resource scheduling scheme.

[0126] Optionally, the first determining module 42 described above is specifically used for:

[0127] The priority of the resource parameters is set according to their importance.

[0128] The source resource of the migration is matched with the candidate resources in the target resource pool for the same resource parameter to determine the score of the resource parameter;

[0129] The score of the candidate resource is determined based on the score and weight of each resource parameter, wherein the weight of the resource parameter is positively correlated with the priority of the resource parameter.

[0130] Select the candidate resource with the highest score from at least one candidate resource as the target resource.

[0131] Optionally, the resource scheduling scheme further includes a time window corresponding to each migration task, wherein the duration of the time window includes a pre-estimated execution time of the migration task and a preset fault tolerance duration; the aforementioned third processing module 45 is specifically used for:

[0132] During the execution of the first migration task, the execution time of the first migration task is calculated and the execution status of the first migration task is monitored. The first migration task is one of the plurality of migration tasks, and the execution status includes normal execution, execution failure, and execution success; wherein:

[0133] If the first migration task fails to execute and the execution time does not exceed the duration of the first time window, the first migration task is re-executed; the first time window is the time window corresponding to the first migration task.

[0134] If the first migration task is executed normally and the execution time reaches or exceeds the duration of the first time window, the first migration task continues to be executed until it is successful or fails.

[0135] Optionally, the resource scheduling scheme may also include at least two migration tasks executed concurrently.

[0136] Optionally, the first migration task is used to migrate a first resource; the resource parameters of the first resource include stable resource parameters and / or variable resource parameters, wherein the stable resource parameters are resource parameters whose change frequency is less than a preset frequency threshold, and the variable resource parameters are resource parameters whose change frequency is not less than the preset frequency threshold; the stable resource parameters are collected before executing the first migration task, and the variable resource parameters are collected in real time during the execution of the first migration task.

[0137] Optionally, the first processing module 43 is specifically used for:

[0138] The system obtains computing power, storage and network resource information during the migration process through the mapping unit, performs resource-level and attribute-level comparison mapping of resources before and after the migration, marks resource differences and constructs a resource mapping report.

[0139] Based on the resource mapping relationships in the resource mapping report, create or reserve corresponding resources in the target resource.

[0140] Optionally, the plurality of migration tasks includes network migration tasks and computing power migration tasks, and the aforementioned third processing module 45 is further specifically used for:

[0141] The network management capabilities of the preset cloud platform are invoked to execute the network migration task according to the resource scheduling scheme.

[0142] Based on the coordinated execution of the preset disk management submodule, file management submodule, transmission submodule and system repair submodule, the computing power migration task is executed in a whole-machine replication manner according to the resource scheduling scheme.

[0143] It should be noted that the apparatus in this embodiment corresponds to the resource migration method described above. The implementation methods in each of the above embodiments are applicable to the embodiments of this apparatus and can achieve the same technical effect. The apparatus provided in this application embodiment can implement all the method steps implemented in the above method embodiments and can achieve the same technical effect. Therefore, the parts that are the same as those in the method embodiments and the beneficial effects will not be described in detail here.

[0144] This application also provides a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the various processes of the resource migration method embodiments described above and achieves the same technical effects. To avoid repetition, it will not be described again here. The computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.

[0145] This application also provides a computer program product, including computer instructions. When the computer instructions are executed by a processor, they implement the various processes of the above-described resource migration method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.

[0146] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0147] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0148] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A resource migration method based on a business system, characterized in that, include: Collect resource parameters of the migration source resources of the business system. The migration source resources include the computing power resources of the business system and the associated resources of the computing power resources. The associated resources include storage resources and / or network resources. The target resource is determined by matching the target resource pool according to the resource parameters. Generate a resource mapping relationship between the source resource and the target resource, and create or reserve corresponding resources in the target resource according to the resource mapping relationship; The migration of the business system is orchestrated and scheduled to generate a resource scheduling scheme. The resource scheduling scheme includes multiple migration tasks and the execution timing relationship between the multiple migration tasks. Each migration task is used to migrate a portion of the resources in the migration source resources. The multiple migration tasks are executed according to the resource scheduling scheme.

2. The method according to claim 1, characterized in that, Based on the resource parameters, the target resource pool is matched to determine the target resource, including: The priority of the resource parameters is set according to their importance. The source resource of the migration is matched with the candidate resources in the target resource pool for the same resource parameter to determine the score of the resource parameter; The score of the candidate resource is determined based on the score and weight of each resource parameter, wherein the weight of the resource parameter is positively correlated with the priority of the resource parameter. Select the candidate resource with the highest score from at least one candidate resource as the target resource.

3. The method according to claim 1 or 2, characterized in that, The resource scheduling scheme also includes a time window for each migration task, wherein the duration of the time window includes the pre-estimated execution time of the migration task and a preset fault tolerance duration; Executing the multiple migration tasks according to the resource scheduling scheme includes: During the execution of the first migration task, the execution time of the first migration task is calculated and the execution status of the first migration task is monitored. The first migration task is one of the plurality of migration tasks, and the execution status includes normal execution, execution failure, and execution success; wherein: If the first migration task fails to execute and the execution time does not exceed the duration of the first time window, the first migration task is re-executed; the first time window is the time window corresponding to the first migration task. If the first migration task is executed normally and the execution time reaches or exceeds the duration of the first time window, the first migration task continues to be executed until it is successful or fails.

4. The method according to claim 3, characterized in that, The resource scheduling scheme also includes at least two migration tasks executed concurrently.

5. The method according to claim 3, characterized in that, The first migration task is used to migrate a first resource; the resource parameters of the first resource include stable resource parameters and / or variable resource parameters, wherein the stable resource parameters are resource parameters whose change frequency is less than a preset frequency threshold, and the variable resource parameters are resource parameters whose change frequency is not less than the preset frequency threshold; the stable resource parameters are collected before executing the first migration task, and the variable resource parameters are collected in real time during the execution of the first migration task.

6. The method according to claim 1, characterized in that, The step of generating a resource mapping relationship between the source resource and the target resource, and creating or reserving corresponding resources in the target resource according to the resource mapping relationship, includes: The system obtains computing power, storage and network resource information during the migration process through the mapping unit, performs resource-level and attribute-level comparison mapping of resources before and after the migration, marks resource differences and constructs a resource mapping report. Based on the resource mapping relationships in the resource mapping report, create or reserve corresponding resources in the target resource.

7. The method according to claim 1, characterized in that, The plurality of migration tasks includes network migration tasks and computing power migration tasks. Executing the plurality of migration tasks according to the resource scheduling scheme includes: The network management capabilities of the preset cloud platform are invoked to execute the network migration task according to the resource scheduling scheme. Based on the coordinated execution of the preset disk management submodule, file management submodule, transmission submodule and system repair submodule, the computing power migration task is executed in a whole-machine replication manner according to the resource scheduling scheme.

8. A resource migration device based on a business system, characterized in that, include: The acquisition module is used to acquire resource parameters of the migration source resources of the business system. The migration source resources include the computing power resources of the business system and the associated resources of the computing power resources. The associated resources include storage resources and / or network resources. The first determining module is used to match the target resource pool according to the resource parameters and determine the target resource; The first processing module is used to generate a resource mapping relationship between the source resource and the target resource, and to create or reserve corresponding resources in the target resource according to the resource mapping relationship. The second processing module is used to orchestrate and schedule the migration of the business system and generate a resource scheduling scheme. The resource scheduling scheme includes multiple migration tasks and the execution timing relationship between the multiple migration tasks. Each migration task is used to migrate a portion of the resources in the migration source resources. The third processing module is used to execute the multiple migration tasks according to the resource scheduling scheme.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the method as described in any one of claims 1 to 7.

10. A computer program product, characterized in that, Includes computer instructions that, when executed by a processor, implement the steps of the method as described in any one of claims 1 to 7.