A service migration method, device, system, electronic device and storage medium

Through the combination of migration logic orchestration platform and automated migration platform, cross-cluster business migration is automatically performed, which solves the problem of business interruption and complexity in cross-cluster migration of dedicated line channels, and achieves an efficient, safe and lossless migration process.

CN118381822BActive Publication Date: 2024-10-18TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410840550.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-18
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

Existing technology cannot achieve lossless migration of dedicated line channels across clusters, resulting in business interruption and a complicated and time-consuming migration process.

Method used

Use a migration logic orchestration platform and an automated migration platform to automatically perform business migration. According to the preconfigured business deployment strategy, each business instance to be migrated is assigned an appropriate destination cluster to achieve cross-availability zone and cross-cluster business migration and ensure the entire migration process. Automated, no manual steps.

Benefits of technology

It achieves lossless migration of business instances, improves migration efficiency and security, reduces the complexity and risks of network changes, and ensures the stability of existing network changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118381822B_ABST
    Figure CN118381822B_ABST
Patent Text Reader

Abstract

The present application relates to the field of computer technology, and in particular to a business migration method, device, system, electronic device and storage medium for efficient cross-cluster lossless migration of business instances. The method includes: obtaining a starting cluster to be migrated, and a destination cluster assigned to each business instance to be migrated in the starting cluster; the starting cluster and each destination cluster belong to different availability zones; the destination cluster is set according to a pre-configured business deployment policy; for each business instance to be migrated, the business configuration information determined based on the business instance to be migrated is sent to the destination cluster corresponding to the business instance to be migrated, and a corresponding new business instance is created under the destination cluster according to the business configuration information; based on the business data of the business instance to be migrated, the control plane network configuration of the new business instance is restored; after determining that the control plane network configuration of the new business instance is normal, the relevant configuration of the business instance to be migrated is deleted on the starting cluster to achieve the migration of the business instance to be migrated.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] Cross-cluster migration of customer business instances refers to the transfer of business applications and their data, configurations, etc. from one cluster to another, while ensuring uninterrupted services and data consistency, in order to achieve resource optimization, failover or upgrade requirements. Taking the dedicated channel as an example, cross-cluster lossless migration of the dedicated channel refers to the migration of data, services or applications between two or more data centers, cloud platforms or clusters through a dedicated network connection (dedicated channel), while ensuring the integrity, consistency and continuity of data during the migration process, without causing any data loss or service interruption, that is, "lossless".

[0003] At present, related technologies cannot achieve lossless migration of dedicated channels across clusters. The cloud can only contact customers separately and ask them to manually create a new dedicated channel on the new cluster. Then, customers manually switch their business traffic to the new dedicated channel to complete the switch of dedicated channel traffic from the old cluster to the new cluster. This process is a lossy cross-cluster migration process. During the switch between the new and old dedicated channel traffic, the customer's business is interrupted and the customer's business is lossy. In addition, the migration process has many steps and is complex, so the migration takes a long time.

[0004] In summary, how to efficiently perform lossless migration of business instances across clusters is an urgent problem to be solved. Summary of the invention

[0005] Embodiments of the present application provide a service migration method, device, system, electronic device, and storage medium for efficiently performing lossless migration of service instances across clusters.

[0006] A service migration method provided in an embodiment of the present application is applied to an automated migration platform, including:

[0007] Obtain a starting cluster to be migrated and a destination cluster assigned to each service instance to be migrated in the starting cluster; the starting cluster and each destination cluster belong to different availability zones; the destination cluster corresponding to each service instance to be migrated is set by the migration logic orchestration platform in response to the migration task configuration instruction according to the pre-configured service deployment strategy;

[0008] For each service instance to be migrated, perform the following migration operations:

[0009] Sending service configuration information determined based on the service instance to be migrated to a destination cluster corresponding to the service instance to be migrated, so as to create a corresponding new service instance according to the service configuration information under the destination cluster;

[0010] Restoring the control plane network configuration of the new service instance based on the read service data of the service instance to be migrated;

[0011] After determining that the control plane network configuration of the new service instance is normal, the relevant configuration of the service instance to be migrated is deleted on the starting cluster to achieve migration of the service instance to be migrated.

[0012] Another service migration method provided in an embodiment of the present application is applied to a migration logic orchestration platform, including:

[0013] In response to the migration task configuration instruction, determine the starting cluster of the migration indicated by the current migration task, and each service instance to be migrated in the starting cluster;

[0014] According to the preconfigured service deployment strategy, determine the destination cluster assigned to each of the service instances to be migrated; the starting cluster and each of the destination clusters belong to different availability zones;

[0015] The starting cluster, the business instances to be migrated and their corresponding destination clusters are sent to the automated migration platform, so that the automated migration platform creates a corresponding new business instance under the corresponding destination cluster for each business instance to be migrated; based on the business data of the business instance to be migrated read, the control plane network configuration of the new business instance is restored; after determining that the control plane network configuration is normal, the relevant configuration of the business instance to be migrated is deleted to realize the migration of the business instance to be migrated.

[0016] An embodiment of the present application provides a service migration device, including:

[0017] An acquisition unit is used to acquire a starting cluster to be migrated and a destination cluster allocated to each service instance to be migrated in the starting cluster; the starting cluster and each destination cluster belong to different availability zones; the destination cluster corresponding to each service instance to be migrated is set by the migration logic orchestration platform in response to the migration task configuration instruction according to the pre-configured service deployment strategy;

[0018] The migration unit is used to perform the following migration operations for each service instance to be migrated:

[0019] Sending service configuration information determined based on the service instance to be migrated to a destination cluster corresponding to the service instance to be migrated, so as to create a corresponding new service instance according to the service configuration information under the destination cluster;

[0020] Restoring the control plane network configuration of the new service instance based on the read service data of the service instance to be migrated;

[0021] After determining that the control plane network configuration of the new service instance is normal, the relevant configuration of the service instance to be migrated is deleted on the starting cluster to achieve migration of the service instance to be migrated.

[0022] Optionally, the destination cluster includes a destination physical machine cluster and a destination container cluster;

[0023] Then the migration unit is specifically used for:

[0024] Sending, through a controller, service configuration information determined based on the service instance to be migrated to the destination physical machine cluster for the destination container cluster allocated to the service instance to be migrated;

[0025] Under the destination container cluster, the corresponding new service instance is created according to the service configuration information.

[0026] Optionally, the migration unit is specifically used for:

[0027] Reading corresponding business data from a database corresponding to the business instance to be migrated;

[0028] Restoring the BGP (Border Gateway Protocol) neighbor data of the service instance to be migrated according to the service data, forming a new BGP neighbor of the new service instance, and performing BGP neighbor negotiation and routing learning through the new BGP neighbor;

[0029] If the state of the new BGP neighbor is normal, the old BGP neighbor corresponding to the service instance to be migrated is closed, and the new BGP neighbor is enabled.

[0030] Optionally, for each service instance to be migrated, in the process of performing a migration operation on the service instance to be migrated, the migration unit is further configured to:

[0031] After each migration sub-operation is executed, check whether the current business is normal;

[0032] If it is confirmed that the current service is abnormal, the corresponding rollback sub-process is executed; wherein the migration sub-operation includes at least one of the following:

[0033] Sending service configuration information determined based on the service instance to be migrated to a destination cluster corresponding to the service instance to be migrated, so as to create a corresponding new service instance according to the service configuration information under the destination cluster;

[0034] Restoring the control plane network configuration of the new service instance based on the read service data of the service instance to be migrated;

[0035] After determining that the control plane network configuration of the new service instance is normal, the relevant configuration of the service instance to be migrated is deleted on the starting cluster.

[0036] Another service migration device provided in an embodiment of the present application includes:

[0037] A response unit, configured to determine, in response to a migration task configuration instruction, a starting cluster for migration indicated by the current migration task and each service instance to be migrated in the starting cluster;

[0038] An allocation unit, configured to determine, according to a preconfigured service deployment strategy, a destination cluster to be allocated to each of the service instances to be migrated; the starting cluster and each of the destination clusters belong to different availability zones;

[0039] A transmission unit, used for sending the starting cluster, the business instances to be migrated and their corresponding destination clusters to the automated migration platform, so that the automated migration platform creates a corresponding new business instance under the corresponding destination cluster for each business instance to be migrated; based on the business data of the business instance to be migrated read, restore the control plane network configuration of the new business instance; after determining that the control plane network configuration is normal, delete the relevant configuration of the business instance to be migrated to realize the migration of the business instance to be migrated.

[0040] Optionally, the destination cluster includes a destination physical machine cluster and a destination container cluster; the service deployment strategy includes: an anti-affinity strategy for ensuring disaster recovery between service instances, and an affinity strategy for ensuring that the forwarding plane and the control plane are deployed nearby;

[0041] The allocation unit is specifically used for:

[0042] Determine a candidate physical machine cluster that meets the migration task configuration instructions;

[0043] The container clusters included in each determined candidate physical machine cluster are combined into a candidate container cluster group;

[0044] For each service instance to be migrated, a destination container cluster allocated to the service instance to be migrated is selected from the candidate container cluster group according to the affinity policy and the anti-affinity policy.

[0045] Optionally, the allocation unit is specifically used for:

[0046] If the current migration task indicates a desired destination availability zone for migration, determining the candidate physical machine cluster to be a physical machine cluster in the destination availability zone;

[0047] If the current migration task indicates a physical machine cluster to be migrated, determining the candidate physical machine cluster to be the indicated physical machine cluster to be migrated;

[0048] If the current migration task does not indicate the desired destination availability zone and physical machine cluster for migration, the candidate physical machine cluster is determined to be a physical machine cluster on a candidate availability zone; the candidate availability zone is an availability zone other than the availability zone where the starting cluster is located.

[0049] Optionally, the affinity strategy is: the control plane cluster and the forwarding plane cluster corresponding to the business instance belong to the same availability zone; the anti-affinity strategy includes at least one of the following: anti-affinity strategy 1 for ensuring that business instances cross container clusters, and anti-affinity strategy 2 for ensuring that business instances cross physical machine clusters;

[0050] The allocation unit is specifically used for:

[0051] Selecting a reference container cluster allocated to the service instance to be migrated from the candidate container cluster group;

[0052] Analyzing in sequence whether the reference container cluster satisfies the affinity policy and the anti-affinity policy;

[0053] If both the affinity policy and the anti-affinity policy are satisfied, the reference container cluster is used as the destination container cluster corresponding to the service instance to be migrated;

[0054] If the corresponding service deployment strategy is not satisfied, the reference container cluster is deleted from the candidate container cluster group, and the process returns to the step of selecting a reference container cluster allocated to the service instance to be migrated from the candidate container cluster group until the destination container cluster is selected or the candidate container cluster group is empty.

[0055] Optionally, if the business instances to be migrated include multiple dedicated channels under the same dedicated gateway, the anti-affinity strategy includes: anti-affinity strategy one, anti-affinity strategy two and anti-affinity strategy three, and the anti-affinity strategy three is: the multiple dedicated channels under the same dedicated gateway must simultaneously satisfy anti-affinity strategy one and anti-affinity strategy two.

[0056] Optionally, if the corresponding service deployment strategy is not satisfied, the device further includes:

[0057] The prompt unit is used to present the reference container cluster currently allocated to the service instance to be migrated, and at the same time present prompt information that the reference container cluster does not meet the corresponding service deployment strategy.

[0058] Optionally, the presentation styles of prompt information corresponding to different business deployment strategies are different.

[0059] An embodiment of the present application provides a business migration system, the system comprising: a migration logic orchestration platform and an automated migration platform;

[0060] The migration logic orchestration platform is used to determine the starting cluster of the migration indicated by this migration task and each service instance to be migrated in the starting cluster in response to the migration task configuration instruction; determine the destination cluster assigned to each service instance to be migrated according to the pre-configured service deployment strategy; the starting cluster and each destination cluster belong to different availability zones; send the starting cluster, each service instance to be migrated and their corresponding destination clusters to the automated migration platform;

[0061] The automated migration platform is used to send, for each business instance to be migrated, business configuration information determined based on the business instance to be migrated to a destination cluster corresponding to the business instance to be migrated, so as to create a corresponding new business instance under the destination cluster according to the business configuration information; restore the control plane network configuration of the new business instance based on the read business data of the business instance to be migrated; and after determining that the control plane network configuration of the new business instance is normal, delete the relevant configuration of the business instance to be migrated on the starting cluster to realize the migration of the business instance to be migrated.

[0062] An electronic device provided in an embodiment of the present application includes a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any one of the above-mentioned service migration methods.

[0063] An embodiment of the present application provides a computer-readable storage medium, which includes a computer program. When the computer program is executed on an electronic device, the computer program is used to enable the electronic device to execute the steps of any one of the above-mentioned service migration methods.

[0064] An embodiment of the present application provides a computer program product, which includes a computer program, and the computer program is stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the electronic device performs the steps of any one of the above-mentioned business migration methods.

[0065] The beneficial effects of this application are as follows:

[0066] The embodiment of the present application provides a service migration method, device, system, electronic device and storage medium. The present application proposes a migration logic orchestration platform and an automated migration platform, wherein the migration logic orchestration platform can respond to the migration request of the object, determine the starting cluster of the migration indicated by the object, each service instance to be migrated, etc., and then automatically allocate a suitable destination cluster for each service instance to be migrated according to the pre-configured service deployment strategy, and notify the automated migration platform, and the automated migration platform can automatically perform service migration according to this information. In this process, the destination cluster planned for each service instance to be migrated according to the service deployment strategy belongs to a different availability zone from the starting cluster, realizing automated cross-availability zone and cross-cluster service migration, and the entire migration process is fully automatically completed by the process, and there are no manual operation steps, and the change automation rate is greatly improved. In addition, during the migration process, after determining that the control plane network configuration of the new service instance is normal, the old service configuration of the service instance to be migrated is deleted on the starting cluster. In this process, the customer has no perception, the service has no impact, and lossless migration is realized. The overall efficiency and safety of the lossless migration process are high, the entire network change process is safe and controllable, and the stability of the existing network change is effectively guaranteed.

[0067] Furthermore, in an embodiment of the present application, when there are many business instances to be migrated, it supports parallel processing of migration operations of multiple business instances to be migrated, and in the scenario of source cluster failure, provides a fault recovery means for quickly migrating businesses to a new cluster in batches.

[0068] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0070] Figure 1 This is a schematic diagram of cross-cluster migration of a dedicated channel in the technology related to this application;

[0071] Figure 2 A schematic diagram of an application scenario in an embodiment of the present application;

[0072] Figure 3 A logical schematic diagram of lossless migration of control plane services across clusters in an embodiment of the present application;

[0073] Figure 4A flowchart of a service migration method provided in an embodiment of the present application;

[0074] Figure 5 A schematic diagram of creating a migration task by changing a task interface in an embodiment of the present application;

[0075] Figure 6 A schematic diagram of a migration task arrangement process in an embodiment of the present application;

[0076] Figure 7 This is a schematic diagram of batch migration of control plane services in a certain region of a dedicated line product in an embodiment of the present application;

[0077] Fig. 8A This is a schematic diagram of the first type of prompt information in an embodiment of the present application;

[0078] Figure 8B This is a schematic diagram of the second type of prompt information in an embodiment of the present application;

[0079] Figure 8C This is a schematic diagram of the third prompt information in the embodiment of the present application;

[0080] Fig. 9A A schematic diagram of the implementation logic of the first affinity strategy and anti-affinity strategy in the embodiment of the present application;

[0081] Fig. 9B A schematic diagram of the implementation logic of the second affinity strategy and anti-affinity strategy in the embodiment of the present application;

[0082] Fig.10 A flowchart of another service migration method provided in an embodiment of the present application;

[0083] Fig.11 A schematic diagram of the underlying implementation logic of lossless migration of network control plane services in an embodiment of the present application;

[0084] Fig.12 A schematic diagram of an automated migration process in an embodiment of the present application;

[0085] Fig.13 A schematic diagram of a dedicated line channel batch migration process in an embodiment of the present application;

[0086] Fig.14 A schematic diagram of completing architecture upgrade and transformation through lossless migration in an embodiment of the present application;

[0087] Fig.15 A schematic diagram of the structure of a service migration device in an embodiment of the present application;

[0088] Fig.16A schematic diagram of the composition structure of another service migration device in an embodiment of the present application;

[0089] Fig.17 A schematic diagram of a hardware structure of an electronic device to which an embodiment of the present application is applied;

[0090] Fig.18 The present invention is a schematic diagram of the hardware structure of another electronic device to which the embodiments of the present application are applied. DETAILED DESCRIPTION

[0091] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the technical solution of the present application, rather than all of the embodiments. Based on the embodiments recorded in the application documents, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the technical solution of the present application.

[0092] The following is an introduction to some concepts involved in the embodiments of the present application.

[0093] 1. Business instance: refers to a specific business service or business instance running on a cluster, including databases, application servers, storage services, etc. In the cross-cluster business migration scenario, the customer's business instance needs to be seamlessly transferred from the source cluster (i.e., the starting cluster in this article) to the destination cluster while maintaining business continuity and data consistency.

[0094] In an embodiment of the present application, the business instance before migration can be referred to as the business instance to be migrated, which is the business entity running before migration; the business instance after migration can be referred to as the new business instance, which is a business operating environment created or prepared in a new environment to achieve cross-cluster migration. Its purpose is to complete a smooth transition of business services while maintaining business continuity.

[0095] 2. Availability Zones (AZ): A collection of one or more data centers provided by a cloud service provider. They are geographically independent and have independent power, network, and cooling systems. They are designed to improve the availability and disaster recovery of services. In cloud computing architecture, users can deploy resources (such as physical machine clusters) in different availability zones to achieve geographically distributed deployment and fault isolation. A region usually contains multiple availability zones, and users can deploy container clusters across availability zones to enhance the high availability of services and reduce the risk of single point failures.

[0096] 3. Physical machine cluster (also called mother machine cluster): Multiple physical machine clusters can be deployed in one availability zone. Physical machine clusters can generally be understood as a collection of physical servers or virtual hosts that jointly undertake the task of running containers or virtual machines. In container technology, physical machine clusters usually refer to host machine clusters that provide computing resources (CPU, memory, storage, etc.) to host containers, providing an actual operating environment for the upper-level container cluster.

[0097] 4. Container cluster: Built on a physical machine cluster, multiple container clusters can be deployed on a physical machine cluster. Specifically, a container cluster is a group of mutually collaborative container operating environments, specifically a set of computing resources that run containerized applications. These resources are usually composed of one or more physical servers (physical machines) and are managed by a container orchestration system (such as DockerSwarm, Kubernetes). Container clusters allow developers and operation and maintenance personnel to deploy and manage containerized applications on multiple hosts to achieve elastic scaling, high availability, and failover of resources. Container clusters emphasize the deployment and management level of applications, focusing on the life cycle of containers and the operating environment of applications. They span multiple hosts in a physical machine cluster to achieve flexible scheduling, high availability, and resource optimization of containers.

[0098] 5. Business deployment strategy: refers to a set of guiding principles and specific measures used to determine how to transfer existing business instances from the starting cluster to the destination cluster while ensuring service continuity, data consistency, and optimal use of resources.

[0099] In the embodiment of the present application, the service deployment strategy can be divided into affinity strategy and anti-affinity strategy. Among them, the affinity strategy is used to guide the service instance to be scheduled to a cluster with a specific label, or close to (in space, network, topology) an existing service instance.

[0100] Anti-affinity policies are used to prevent business instances from being scheduled to clusters with specific labels, or away from existing business instances (in terms of space, network, or topology). This helps improve fault tolerance and isolation, avoid resource competition, and prevent single point failures from affecting the entire service.

[0101] Cloud technology refers to a hosting technology that unifies hardware, software, network and other resources within a wide area network or local area network to achieve data computing, storage, processing and sharing.

[0102] Cloud computing is a computing model based on cloud technology. It distributes computing tasks on a resource pool composed of a large number of computers, so that various application systems can obtain computing power, storage space and information services as needed. The network that provides resources is called "cloud". The resources in the "cloud" are infinitely expandable in the eyes of users, and can be obtained at any time, used on demand, expanded at any time, and paid for by use.

[0103] As a provider of basic cloud computing capabilities, a cloud computing resource pool (referred to as a cloud platform, generally referred to as an Infrastructure as a Service (IaaS) platform) will be established, and various types of virtual resources will be deployed in the resource pool for external customers to choose to use. The cloud computing resource pool mainly includes: computing devices (virtualized machines, including operating systems), storage devices, and network devices.

[0104] According to the logical function division, the Platform as a Service (PaaS) layer can be deployed on the IaaS layer, and the Software as a Service (SaaS) layer can be deployed on the PaaS layer, or SaaS can be directly deployed on IaaS. PaaS is a platform for software operation, such as databases, web containers, etc. SaaS is a variety of business software, such as web portals, SMS mass senders, etc. Generally speaking, SaaS and PaaS are upper layers relative to IaaS.

[0105] The cross-availability zone and cross-cluster migration of services in the embodiments of the present application are closely related to cloud computing. Specifically, cloud computing provides a basic platform and technical support for cluster migration. The cloud platform provides elastic computing resources, storage services, network configuration and management tools, which are indispensable infrastructures for cluster migration. Through cloud computing, enterprises can easily create, configure and manage new cluster environments to prepare for migration.

[0106] One of the core advantages of cloud computing is the elasticity and flexibility of resources, which greatly facilitates business migration. In a cloud computing environment, business migration is often accompanied by the goal of improving business continuity and disaster recovery capabilities. The cloud platform provides cross-region and cross-availability zone deployment options, allowing enterprises to easily implement cross-business deployment of business instances during the migration process, meeting the needs of high availability and disaster recovery.

[0107] In summary, cloud computing is not only the infrastructure support for migration, but also a key factor in promoting the optimization of migration strategies, improving migration efficiency, and ensuring system performance and service quality after migration. With the continuous advancement of cloud technology, business migration will become more efficient, secure, and economical.

[0108] The following is a brief introduction to the design concept of the embodiment of the present application:

[0109] Cross-cluster migration of customer business instances refers to the transfer of business applications and their data, configurations, etc. from one cluster to another, while ensuring uninterrupted services and data consistency to achieve resource optimization, failover or upgrade requirements.

[0110] Taking dedicated channel as an example, lossless migration across clusters usually refers to the migration of data, services or applications between two or more data centers, cloud platforms or clusters through a dedicated network connection (dedicated channel), while ensuring the integrity, consistency and continuity of data during the migration process, without causing any data loss or service interruption, that is, "lossless".

[0111] However, current technologies cannot achieve lossless migration across clusters through dedicated channels. The cloud can only contact customers separately. The specific migration process is as follows: Figure 1 As shown, it is a schematic diagram of cross-cluster migration of a dedicated line channel in the related technology of this application. Figure 1 The cluster in is a Fast Cloud Router (FCR) cluster. The starting cluster for migration is FCR cluster 1-01 in AZ-1, and the destination cluster is FCR cluster 2-01 in AZ-2. There are two dedicated channels on FCR cluster 1-01, namely Customer A-channel 1-1 and Customer A-channel 1-2. The old dedicated channel to be migrated is Customer A-channel 1-1. During migration, customers need to manually create a new dedicated channel on the destination cluster, such as Customer A-channel 2-1, and then manually switch the service traffic to the new dedicated channel to complete the switching of dedicated channel traffic from AZ-1 cluster to AZ-2 new cluster.

[0112] The above manual operation method has many steps and is complicated. The existing network change faces high risks. This process has the following obvious disadvantages:

[0113] a) Pure manual operation, which can only be performed by contacting the customer, will lead to poor customer experience and uncontrollable operation.

[0114] b) The migration process is lossy and not lossless, so customers will face great challenges in product availability.

[0115] c) The entire process takes hours (5+ hours on average). Migration is time-consuming and very inefficient. There are many steps and the process is complicated. There is a high risk in changing the existing network.

[0116] In view of this, the present application proposes a business migration method, device, system, electronic device and storage medium. The business migration system proposed in the present application includes a migration logic orchestration platform and an automated migration platform, wherein the migration logic orchestration platform can respond to the migration request of the object, determine the starting cluster of the migration indicated by the object, each business instance to be migrated, etc., and then automatically allocate a suitable destination cluster for each business instance to be migrated according to the pre-configured business deployment strategy, and notify the automated migration platform, and the automated migration platform can automatically perform business migration based on this information. In this process, the destination cluster planned for each business instance to be migrated according to the business deployment strategy belongs to a different availability zone from the starting cluster, realizing automated cross-availability zone and cross-cluster business migration, and the entire migration process is fully automatically completed by the process, and there are no manual operation steps, and the change automation rate is greatly improved. In addition, during the migration process, after determining that the control plane network configuration of the new business instance is normal, the old business configuration of the business instance to be migrated is deleted on the starting cluster. In this process, the customer has no perception and the business has no impact, realizing lossless migration, and the lossless migration process is efficient and safe as a whole, and the entire network change process is safe and controllable, effectively ensuring the stability of the existing network change.

[0117] Furthermore, in an embodiment of the present application, when there are many business instances to be migrated, it supports parallel processing of migration operations of multiple business instances to be migrated, and in the scenario of source cluster failure, provides a fault recovery means for quickly migrating businesses to a new cluster in batches.

[0118] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. In addition, the embodiments and features in the embodiments of the present application may be combined with each other if there is no conflict.

[0119] like Figure 2 As shown, it is a schematic diagram of an application scenario in an embodiment of the present application. The application scenario diagram is implemented based on the migration system proposed in an embodiment of the present application, and the migration system includes a front-row orchestration platform 210, an automated migration platform 220 and a migration result display platform 230.

[0120] The migration logic orchestration platform 210 is used to respond to the migration task configuration instructions triggered by the object, determine the starting cluster of the migration indicated by this migration task, and each business instance to be migrated in the starting cluster; determine the destination cluster assigned to each business instance to be migrated according to the pre-configured business deployment strategy; the starting cluster and each destination cluster belong to different availability zones; and send the starting cluster, each business instance to be migrated and their corresponding destination clusters to the automated migration platform 220.

[0121] The automated migration platform 220 is used to perform the following migration operations for each business instance to be migrated based on the data sent by the migration logic orchestration platform 210: for a business instance to be migrated, the business configuration information of the business instance to be migrated is sent to the destination cluster corresponding to the business instance to be migrated, so as to create a corresponding new business instance under the destination cluster according to the business configuration information; based on the business data of the business instance to be migrated read, the control plane network configuration of the new business instance is restored; after determining that the control plane network configuration of the new business instance is normal, the relevant configuration of the business instance to be migrated is deleted on the starting cluster to realize the migration of the business instance to be migrated, and after the migration is completed, the first migration result indicating that the migration is normal is sent to the migration result display platform 230.

[0122] The migration result display platform 230 is used to display the first migration result sent by the automatic migration platform 220 .

[0123] In addition, the automated migration platform 220 is also used to: after each migration sub-operation is executed, detect whether the current business is normal; if it is confirmed that the current business is abnormal, execute the corresponding rollback sub-process, and send the second migration result for the business instance to be migrated to the migration result display platform 230, the second migration result indicating that the migration is abnormal; wherein the migration sub-operation includes at least one of the following:

[0124] Migration sub-operation 1: configuration delivery, that is, as mentioned above: sending the service configuration information determined based on the service instance to be migrated to the destination cluster corresponding to the service instance to be migrated, so as to create a corresponding new service instance under the destination cluster according to the service configuration information;

[0125] Migration sub-operation 2: lossless migration, which is mentioned above: based on the service data of the service instance to be migrated, restore the control plane network configuration of the new service instance;

[0126] Migration sub-operation 3: configuration deletion, which is mentioned above: after confirming that the control plane network configuration of the new service instance is normal, delete the relevant configuration of the service instance to be migrated on the starting cluster.

[0127] That is, the automated migration platform 220 can check whether the current business is normal after executing migration sub-operation 1, can check whether the current business is normal after executing migration sub-operation 2, and can also check whether the current business is normal after executing migration sub-operation 3. If the current business is found to be abnormal, the rollback sub-process is executed, and the second migration result for the business instance to be migrated is fed back to the migration result display platform 230 to prompt the object.

[0128] The migration result display platform 230 is further used to display the second migration result for the service instance to be migrated.

[0129] The above briefly explains the interaction between multiple platforms. In the embodiment of the present application, the migration logic orchestration platform and the migration result display platform may include terminal devices, and interact with objects through terminal devices. Terminal devices include but are not limited to mobile phones, tablet computers, laptops, desktop computers, e-book readers, intelligent voice interaction devices, smart home appliances, car terminals and other devices; a client related to business migration can be installed on the terminal device, which can be software (such as a browser, business migration software, etc.), or a web page, a small program, etc.

[0130] In addition, the process of the migration logic orchestration platform allocating the destination cluster for the business instance to be migrated according to the business deployment strategy can also be implemented through a server, which is a background server corresponding to the software or web page, applet, etc., or a server dedicated to the destination cluster allocation, which is not specifically limited in this application. The automated migration platform can also be generally implemented through a server, which can be a server dedicated to business migration, which is not specifically limited in this application.

[0131] In the embodiments of the present application, the server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0132] It should be noted that the service migration method in each embodiment of the present application can be executed by an electronic device, which may be a terminal device or a server, that is, the method can be executed by the terminal device or the server alone, or jointly by the terminal device and the server.

[0133] In an optional implementation, the platforms may communicate with each other via a communication network.

[0134] In an optional implementation, the communication network is a wired network or a wireless network.

[0135] In an embodiment of the present application, when there are multiple servers, the multiple servers can be combined into a blockchain, and the server is the destination cluster on the blockchain; as in the business migration method disclosed in the embodiment of the present application, the relevant data involved can be stored on the blockchain, for example, the starting cluster to be migrated, and the destination cluster assigned to each business instance to be migrated in the starting cluster, etc.

[0136] In addition, the embodiments of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, assisted driving and other scenarios, and specifically involve business change scenarios related to business migration in these scenarios, including but not limited to some or all of the following:

[0137] Service change scenario 1: Upgrading and transforming the existing network control plane architecture.

[0138] For example, a cloud service provider plans to upgrade from a traditional control panel based on OpenStack to a modern container orchestration platform based on Kubernetes to improve resource utilization and deployment flexibility. In this context, business migration needs to ensure a seamless transition without affecting the normal use of existing users.

[0139] Business change scenario 2: Business adjustment and optimization.

[0140] For example, an e-commerce application is facing a surge in user volume, and the initial cluster resources are tight and aging. In order to cope with the expected traffic peak, some high-traffic services can be migrated to a new cluster designed for high performance. The new cluster has better resource allocation strategies, enhanced network configuration, and more advanced automatic scaling capabilities to optimize resource allocation and improve user experience.

[0141] Business change scenario three: rapid fault recovery.

[0142] For example, if a data center encounters a natural disaster, causing some clusters to become unavailable, the business needs to be urgently migrated to a backup data center or the cloud to ensure business continuity.

[0143] Business change scenario 4: security upgrade.

[0144] For example, when an existing cluster faces security threats or a known vulnerability is discovered, the business needs to be migrated to a new cluster that has been reinforced or adopts a more secure architecture to improve the security of the overall system.

[0145] Business change scenario 5: Change of cloud service provider.

[0146] For example, based on cost-benefit analysis, service quality, technical support, and other factors, an enterprise may decide to migrate from one cloud provider to another to obtain better prices, better services, or more suitable features.

[0147] Business change scenario six: Compliance requirements.

[0148] For example, in order to comply with new laws, regulations or industry standards, an enterprise may have to migrate its business to a cluster or geographical location that meets compliance requirements to ensure that data processing and storage methods are legal and compliant.

[0149] Business change scenario seven: adoption of technological innovation.

[0150] For example, with the emergence of new technologies such as edge computing and Serverless architecture, enterprises may need to migrate their businesses to clusters that support these new technologies to explore the efficiency improvements and business innovation possibilities brought by new technologies.

[0151] It should be noted that the several business migration scenarios listed above are just simple examples. In addition, other business migration scenarios are also applicable to the embodiments of the present application and will not be described one by one here.

[0152] The following is a brief description of the interaction process between various platforms in the migration system proposed in the embodiment of the present application:

[0153] like Figure 3 As shown, it is a logical diagram of lossless migration of control plane services across clusters in an embodiment of the present application, which reflects the interaction between various platforms in the migration system. First, the operation and maintenance personnel of the dedicated line product can trigger the corresponding migration process through the migration logic orchestration platform according to the migration requirements of the existing network. The migration logic orchestration platform can also implement complex automatic selection logic for the destination cluster, and trigger the automated migration platform to execute the automated migration process according to the orchestrated migration logic. The automated migration process can fully automatically and logically execute various established tasks. The execution tasks mainly include three categories, namely "calling the controller interface to implement the issuance of migration tasks", "obtaining server business data to perform various checks (corresponding Figure 3 ⑤, ⑥)" and "Get various business data in the controller (corresponding to Figure 3 ④) in the figure, where the controller is responsible for issuing configuration and executing various commands to the FCR cluster. After each task is automatically executed, the process will push the execution result information to the migration result display platform, so that all relevant operation personnel can understand the progress of key migration tasks in real time, and finally realize the lossless migration of customer services from FCR cluster 01 to FCR cluster 02. The process specifically includes the following steps:

[0154] ① The operation and maintenance personnel trigger the migration task.

[0155] When the operation and maintenance personnel find that there is a need for business migration in the existing network (such as any of the above business change scenarios), they will trigger the migration task configuration instructions through the front-end interface or application programming interface (API) of the migration logic orchestration platform to create a migration task and submit a migration request. This request includes the migration background (such as the starting cluster to be migrated, each business instance to be migrated), the target (such as the desired destination availability zone, physical machine cluster), and preliminary resource configuration information, marking the official start of the migration process.

[0156] ②The web front end formats the data and triggers the automated migration process.

[0157] After the operation and maintenance personnel submit the migration request, the front end of the migration logic orchestration platform will collect and format the input information to ensure the accuracy and completeness of the data, and automatically select the appropriate destination cluster for each business instance to be migrated. Then, the data can be packaged in the format specified by the platform, such as at least the starting cluster to be migrated, each business instance to be migrated on the starting cluster, and the destination cluster automatically assigned to each business instance to be migrated, and then the automated migration process of the automated migration platform is triggered. This process ensures seamless connection between user interface operations and backend automated tasks.

[0158] ③The automated migration process calls the controller interface to issue migration tasks.

[0159] After receiving the request from the front end, the automated migration platform will call the controller's API interface according to the preset migration logic, such as Figure 3 Specifically, the API interface of the controller in the virtual network controller (NFVC) cluster is called to issue specific migration task instructions. These instructions include but are not limited to the migration resource list, target cluster information, migration strategy, etc., to notify the controller to start migration preparation.

[0160] ④ The automated migration process queries the relevant business data in the controller.

[0161] To ensure the smooth progress of migration, the automated migration process needs to obtain detailed information such as the current business operation status and resource usage from the controller to help the platform understand the baseline status before migration and provide a basis for subsequent data verification and fine-tuning of the migration strategy.

[0162] ⑤ The automated migration process verifies the service data of the starting cluster equipment.

[0163] Before the official migration, the automated migration process will check the starting cluster in detail (such as Figure 3 The business data integrity, dependencies, and operating status of the FCR cluster 01 in the migration process are checked to identify any potential data inconsistencies or configuration errors and ensure the accuracy of the data during the migration process.

[0164] ⑥ The automated migration process verifies the service data of the destination cluster device.

[0165] Similarly, the destination cluster (such as Figure 3The FCR cluster 02 in the example also needs to verify the business data to ensure that the cluster environment is ready and can smoothly accept the migrated business. This includes checking the availability and configuration compatibility of the target resources to avoid service interruption or performance degradation after migration.

[0166] ⑦The controller sends new service configuration to the destination cluster.

[0167] Once all pre-checks pass, the controller will send new service configurations to the destination cluster according to the migration plan to prepare for the operation of the service in the new cluster.

[0168] ⑧The controller deletes the old service configuration of the starting cluster.

[0169] After the new cluster successfully takes over the business and runs stably, as part of resource cleanup, the controller will issue instructions to delete the old business configuration and data in the starting cluster (if the policy allows) to release resources and avoid resource waste and potential conflicts.

[0170] ⑨The automated migration platform pushes the key migration result information to the migration result display platform.

[0171] After the entire migration process is completed, the automated migration platform will summarize key events, status changes, performance indicators and other information during the migration process, and push them to the migration result display platform through the API. Operations personnel can use this platform to monitor the progress of the migration in real time, understand whether it is successful, whether there are any anomalies, and the final business status, to ensure business continuity and O&M transparency.

[0172] The above is just a simple example. The following is a description of the business migration method provided by the exemplary embodiment of the present application in combination with the application scenario described above and with reference to the accompanying drawings. The business migration method in the embodiment of the present application is illustrated and described from the migration logic orchestration platform side and the automated migration platform side respectively. It should be noted that the above application scenario is only shown to facilitate understanding of the spirit and principle of the present application, and the implementation of the present application is not limited in this respect.

[0173] See also Figure 4 As shown, it is an implementation flow chart of a service migration method provided in an embodiment of the present application. Taking the front-end orchestration system as the execution subject as an example, the specific implementation process of the method is as follows:

[0174] S41: In response to the migration task configuration instruction, determine the migration starting cluster indicated by the current migration task and each service instance to be migrated in the starting cluster.

[0175] In the cross-cluster service migration scenario in the embodiment of the present application, the cluster currently carrying the service may be referred to as the starting cluster of the migration (also referred to as the source cluster), and the cluster receiving the service may be referred to as the destination cluster of the migration.

[0176] The business instance to be migrated refers to a business application or service instance currently running on a source cluster and planned to be migrated to another cluster. This instance includes all business logic, data processing capabilities, and related configurations and resources. Before migration, it is the entity that actually processes user requests and performs business operations in the production environment. The motivation for migration may include but is not limited to resource optimization, performance improvement, disaster recovery drills, or system upgrades.

[0177] Taking the cross-cluster migration of control plane services of dedicated line products as an example, dedicated line products are an overall network connection solution provided by operators to enterprises, including physical lines, network equipment, service agreements, etc., aiming to provide users with dedicated, high-quality network connections from one location to another (such as data centers, cloud platforms, and enterprise branches). In the business migration scenario, dedicated line products provide a basic channel for the transmission of data and applications, ensuring bandwidth, latency, security, and stability during the migration process.

[0178] In the cross-cluster migration scenario of the dedicated line product network control plane service, service instances include but are not limited to: dedicated line gateway and dedicated line channel.

[0179] Among them, the dedicated line gateway is the boundary device for dedicated line access. It is located at the edge of the network and is responsible for routing, protocol conversion and security control of data packets between different network environments (such as public and private networks, and between different private networks). The dedicated line channel is a logical network path built on the dedicated line gateway, specifically referring to a dedicated, high-bandwidth, low-latency communication path established between two clusters. In the business migration scenario, all data and control information are transmitted through this dedicated line channel, and its quality and performance directly affect the speed and security of migration. According to the needs of migration, enterprises can choose channels with different bandwidths and quality of service (QoS) levels to match the scale and time requirements of the migration task.

[0180] In an embodiment of the present application, an object (such as operation and maintenance personnel of a dedicated line product) can trigger a corresponding migration process based on existing network migration requirements (such as fault recovery, architecture transformation, or customer requirements, etc.). The front end that triggers the migration process is referred to as a migration logic orchestration platform in this article. The migration logic orchestration platform triggers the automated migration platform to execute the corresponding automated migration process based on the orchestrated migration logic.

[0181] First, the object needs to create a migration task through the change task interface of the migration logic orchestration platform.

[0182] like Figure 5As shown, it is a schematic diagram of creating a migration task in a change task interface in an embodiment of the present application. When the operation and maintenance personnel find that there is a demand for business migration in the existing network (such as business change scenarios such as fault recovery, architecture transformation or customer requirements), in the change task interface S50 of the migration logic orchestration platform, by clicking the "New" button shown in S501, the new step of the migration task is triggered, and the name of this migration task is set, as shown in S502, a migration task named "FCR.VAR (channel) batch migration" is triggered. Among them, FCR.VAR (channel) refers to a dedicated line channel, which is a business instance name of a cloud network control plane listed in this article, and is referred to as such below.

[0183] Based on the above steps, the object can further set the starting cluster indicated by this migration task and each service instance to be migrated. As mentioned above, clusters are divided into physical machine clusters and container clusters. The starting cluster in this article refers to the starting physical machine cluster of the migration.

[0184] like Figure 6 As shown in FIG. 1 , which is a schematic diagram of a migration task orchestration process in an embodiment of the present application. The operation and maintenance personnel can select the starting FCR mother machine cluster for migration on the front-end interface of the migration logic orchestration platform, such as Figure 6 As shown in S61, the customer service instance to be migrated is then selected, as shown in S62.

[0185] Optionally, the object may further set the desired destination availability zone or physical machine cluster for migration. The desired destination availability zone means that the object wishes to migrate the business instance to be migrated to a specified certain availability zone / zones. The desired physical machine cluster means that the object wishes to migrate the business instance to be migrated to a specified certain physical machine cluster / zones. The setting of the desired physical machine cluster is shown in S61, and the object can select the desired destination physical machine cluster through the "*Destination Cluster" part in S61. Select the desired destination availability zone through the "Region" above S61.

[0186] Regardless of whether the object is set to the desired migration destination availability zone or physical machine cluster, the migration logic orchestration platform needs to determine the destination cluster assigned to each business instance to be migrated based on the business deployment strategy, and then trigger the automated migration platform to execute the corresponding automated migration process.

[0187] Assuming that the object sets the physical machine cluster to which you want to migrate, Figure 6 As shown in the figure, in addition to selecting the starting FCR mother machine cluster for migration on the front-end interface of the migration logic orchestration platform, the operation and maintenance personnel can also select the destination FCR mother machine cluster for migration (a mother machine cluster can carry up to 25 container clusters). Then, the migration logic orchestration platform automatically allocates the appropriate destination container cluster on the destination physical machine cluster according to the business deployment strategy, such as Figure 6 As shown in S63.

[0188] The above is an example of a starting cluster. Of course, the service migration method in the embodiment of the present application also supports migrating multiple starting clusters at the same time. For example, an object can create multiple migration tasks, or Figure 6 In the front-end interface shown, multiple starting clusters are selected, etc., which are not specifically limited in this article. In order to simplify the description, one starting cluster is used as an example.

[0189] In business change scenarios such as cluster failure, customer requirements, or architecture transformation, you can trigger multiple batches of migration processes to achieve cross-cluster and cross-AZ migration of customer business. The starting cluster and the destination cluster of the migration are in a many-to-many relationship. The following is a simple example:

[0190] like Figure 7 As shown, it is a schematic diagram of batch migration of control plane services in a certain area of ​​a dedicated line product in an embodiment of the present application. For example, there are M available zones, which are respectively recorded as AZ-1, AZ-2, AZ-3, ..., AZ-M. Among them, there are N control plane FCR clusters (referring to physical machine clusters) in each available zone. For example Figure 7 The figure lists two business change scenarios: cluster failure and customer demand. In the cluster failure scenario, the starting cluster is FCR cluster 1-02, and it is necessary to perform business failure migration for customers 1, customer 2, customer 3, ..., customer X on FCR cluster 1-02 in AZ-1; in the customer demand scenario, the starting cluster is FCR cluster 1-03, and it is necessary to perform business optimization migration for customer A on FCR cluster 1-03 in AZ-1. The above-mentioned business instances to be migrated can be divided into three batches: in business failure migration-batch 1, customer 1 and customer 2 are migrated, and the destination cluster (referring to the physical machine cluster) is FCR cluster 2-01 in AZ-2; in business failure migration-batch 2, customer 3, ..., customer X are migrated, and the destination cluster (referring to the physical machine cluster) is FCR cluster 2-02 in AZ-2; in business optimization migration-batch 3, customer A is migrated, and the destination cluster (referring to the physical machine cluster) is FCR cluster M-03 in AZ-M.

[0191] On this basis, the destination container cluster for migration can be automatically allocated through the business deployment strategy (such as affinity strategy and anti-affinity strategy) on the migration logic orchestration platform side, which can realize the automatic orchestration of migration from M source clusters to N destination clusters, not limited to the migration logic orchestration of one-to-one clusters. The automated migration platform automatically triggers the migration process, and the entire migration process realizes functions such as automatic switching of business to the destination cluster, automatic business checks, automatic rollback in abnormal scenarios, and automatic deletion of the starting cluster configuration. Among them, the automated migration platform side will be explained in detail below, and will not be repeated here.

[0192] In addition, it should be noted that in the embodiment of the present application, after the migration logic orchestration platform determines the destination container cluster for migration, it still supports manually specifying the destination container cluster, such as Figure 6 As shown in S64 in the figure, the purpose is to provide sufficient flexibility for operation and maintenance personnel when there are special changes in the existing network, that is, the migration must support all existing network scenarios.

[0193] The following describes in detail the process of allocating the destination cluster according to the service deployment strategy.

[0194] S42: According to the pre-configured service deployment policy, a destination cluster is determined to be allocated to each service instance to be migrated; the starting cluster and each destination cluster belong to different availability zones.

[0195] In the embodiment of the present application, the business deployment strategy refers to a set of guiding principles and specific measures for determining how to transfer existing business instances from a starting cluster to a destination cluster while ensuring service continuity, data consistency, and optimal use of resources.

[0196] Specifically, the business deployment strategy can be implemented based on the load balancing algorithm. For example, the business instances can be evenly distributed among the clusters through load balancing algorithms (such as polling, least number of connections, hashing, etc.) to ensure that no single cluster is overloaded and improve the stability and response speed of the overall system.

[0197] Business deployment strategies can also be implemented based on technology compatibility and version management rules, such as confirming that the target cluster supports the technology stack and software version required for the business instance to avoid deployment failure or missing functions due to version incompatibility.

[0198] Business deployment strategies can also be implemented based on in-depth analysis of dependencies between business instances, ensuring that related services are deployed in the same or adjacent clusters to reduce network latency and improve data interaction efficiency.

[0199] Alternatively, the service deployment strategy can be implemented by affinity and anti-affinity algorithms. Among them, the affinity algorithm aims to deploy specific service instances on clusters that meet specific conditions as much as possible to promote more efficient communication, data sharing or resource utilization. The anti-affinity algorithm is the opposite of affinity. It aims to disperse service instances and ensure that they are not deployed on the same cluster under specific conditions to enhance the reliability and fault tolerance of the system.

[0200] The following takes the service deployment strategy including: an anti-affinity strategy for ensuring disaster recovery between service instances, and an affinity strategy for ensuring that the forwarding plane and the control plane are deployed nearby as an example to illustrate step S42 in the embodiment of the present application:

[0201] Optionally, the destination cluster includes a destination physical machine cluster and a destination container cluster; an optional implementation method is that S42 can be implemented according to the following process, including the following steps S421~S423 ( Figure 4 not shown):

[0202] S421: Determine a candidate physical machine cluster that meets the migration task configuration instructions.

[0203] That is, first, it is necessary to determine the physical machine clusters that can be selected for this migration task, which are referred to as candidate physical machine clusters in this article.

[0204] Optionally, considering that in the embodiment of the present application, the object can trigger the migration task configuration instruction through the migration logic orchestration platform. Through the instruction, the object can indicate the desired destination availability zone for migration, can indicate the desired physical machine cluster for migration, or can make no indication. Therefore, under different indications, the method for determining the candidate physical machine cluster that meets the migration task configuration instruction is also different, which is specifically divided into the following cases:

[0205] Case 1: If the current migration task indicates the desired destination availability zone for migration, the candidate physical machine cluster is determined to be the physical machine cluster in the destination availability zone.

[0206] For example, there are M availability zones in total, which are denoted as AZ-1, AZ-2, AZ-3, ..., AZ-M. Among them, there are N control plane FCR clusters (referring to physical machine clusters) on each availability zone. Assume that in this migration task, the starting cluster to be migrated is FCR cluster 1-02 in AZ-1, and the business instance to be migrated is X customer dedicated line channels on FCR cluster 1-02. When the object triggers the migration task configuration instruction, the target availability zone for the desired migration is set. For example, it is expected to migrate these X customer dedicated line channels to AZ-2. Then AZ-2 is the target availability zone indicated this time, and the N control plane FCR clusters on this availability zone are candidate physical machine clusters, which are denoted as FCR cluster 2-01, FCR cluster 2-02, FCR cluster 2-03, ..., FCR cluster 2-N.

[0207] For another example, if it is desired to migrate these X customer dedicated line channels to AZ-2 and AZ-M, then AZ-2 and AZ-M are both the destination availability zones indicated this time, and the 2N control plane FCR clusters in these two availability zones are candidate physical machine clusters, which are respectively recorded as FCR cluster 2-01, FCR cluster 2-02, FCR cluster 2-03, ..., FCR cluster 2-N, FCR cluster M-01, FCR cluster M-02, FCR cluster M-03, ..., FCR cluster MN.

[0208] Case 2: If the current migration task indicates a physical machine cluster to be migrated, the candidate physical machine cluster is determined to be the indicated physical machine cluster to be migrated.

[0209] Still taking the above M availability zones as an example, there are N control plane FCR clusters on each availability zone. Assume that in this migration task, the starting cluster to be migrated is FCR cluster 1-03 in AZ-1, and the service instance to be migrated is a customer dedicated line channel on FCR cluster 1-03. When the object triggers the migration task configuration instruction, it sets the physical machine cluster to be migrated, such as FCR cluster 2-03 on AZ-2, then this cluster is the candidate physical machine cluster.

[0210] Of course, if the object indicates multiple physical machine clusters, then the determined candidate physical machine clusters are multiple. This application does not limit the number of physical machine clusters indicated by the object, which can be one or more, and will not be repeated here.

[0211] Case 3: If the migration task does not indicate the desired destination availability zone and physical machine cluster, the candidate physical machine cluster is determined to be the physical machine cluster on the candidate availability zone; the candidate availability zone is the availability zone other than the availability zone where the starting cluster is located.

[0212] For example, still taking the above M availability zones as an example, there are N control plane FCR clusters in each availability zone. Assume that in this migration task, the starting cluster to be migrated is FCR cluster 1-03 in AZ-1, and the object does not indicate the desired destination availability zone and physical machine cluster to be migrated. Since the starting cluster and the destination cluster should belong to different availability zones, the candidate availability zones are AZ-2, AZ-3, ..., AZ-M, a total of M-1 availability zones, each of which has N candidate physical machine clusters, and a total of (M-1)*N candidate physical machine clusters.

[0213] In the above implementation, the present application supports the object to select the desired physical machine cluster and the desired destination availability zone by itself, or when the object does not make a selection, directly determine the migratable physical machine cluster according to the requirements across availability zones, and then make a selection from these physical machine clusters, providing a more flexible way to support the smooth implementation of the automatic migration process in various situations.

[0214] S422: The container clusters included in each determined candidate physical machine cluster are combined into a candidate container cluster group.

[0215] Assuming that there are 25 container clusters on each physical machine cluster, the container clusters included in all candidate physical machine clusters together constitute a candidate container cluster group in the embodiment of the present application.

[0216] Still taking the embodiment in the above situation 1 as an example, assuming that the candidate physical machine clusters are FCR cluster 2-01, FCR cluster 2-02, FCR cluster 2-03, ..., FCR cluster 2-N, then the container clusters on these N candidate physical machine clusters are the candidate container cluster group, and there are a total of 25N candidate container clusters.

[0217] For another example, taking the embodiment in the above situation 2 as an example, assuming that the candidate physical machine clusters are 2N FCR clusters 2-01, FCR cluster 2-02, FCR cluster 2-03, ..., FCR cluster 2-N, FCR cluster M-01, FCR cluster M-02, FCR cluster M-03, ..., FCR cluster MN, then the container clusters on these 2N candidate physical machine clusters constitute the candidate container cluster group, and there are 50N candidate container clusters in total. And so on.

[0218] In this way, for each service instance to be migrated, it is necessary to select a destination container cluster to be assigned to it from the candidate container cluster group. The specific process is as follows:

[0219] S423: For each service instance to be migrated, according to the affinity policy and the anti-affinity policy, a destination container cluster to be allocated to the service instance to be migrated is selected from the candidate container cluster group.

[0220] In the embodiment of the present application, lossless migration of control plane services needs to consider disaster recovery (anti-affinity) between customer service instances (dedicated line channels and dedicated line gateways) and the requirements for proximity deployment (affinity) between the forwarding plane and the control plane.

[0221] Specifically, through the anti-affinity strategy, when assigning destination container clusters to business instances, these business instances can be proactively prevented from being placed in the same container cluster, the same physical machine cluster, or the same availability zone. This is done to improve the system's fault tolerance and disaster recovery capabilities. For example, when a cluster or physical location encounters a failure, since the business instances have been deployed in a dispersed manner, other unaffected business instances can still continue to provide services, thereby reducing the risk of downtime for the overall system.

[0222] Through affinity strategy, related business instances can be deployed together to reduce network latency and improve interaction efficiency. In scenarios involving the forwarding plane and the control plane, the use of affinity strategy deployment can ensure fast and efficient communication between the two.

[0223] In the above implementation, by reasonably utilizing affinity strategies and anti-affinity strategies, not only can the stability and performance of the system be improved, but also it can be ensured that in the face of various failure scenarios, the business can be quickly restored, services can be continuously provided, and high availability and fault tolerance can be maintained.

[0224] Optionally, the affinity strategy is: the control plane cluster and forwarding plane cluster corresponding to the business instance belong to the same availability zone, which is used to ensure that the customer business instance is deployed close to the forwarding plane and the control plane; the anti-affinity strategy includes at least one of the following: anti-affinity strategy 1 that ensures that business instances must cross container clusters, and anti-affinity strategy 2 that ensures that business instances must cross physical machine clusters.

[0225] That is, the anti-affinity strategy in the embodiment of the present application may include only anti-affinity strategy one, may include only anti-affinity strategy two, or may include both anti-affinity strategy one and anti-affinity strategy two.

[0226] Among them, anti-affinity strategy 1 requires that customer business instances be deployed across container clusters. For example, customer business instance A and customer business instance B should be assigned different destination container clusters. This strategy requires that business instances deployed in different container clusters cannot be located in the same container cluster even if they serve the same customers or are functionally related. The purpose of this is that if a container cluster fails due to hardware failure, software error, or other reasons, business instances in other container clusters can continue to provide services, thereby reducing the risk of overall service interruption.

[0227] Anti-affinity strategy 2 requires that customer business instances be located across physical machine clusters. For example, customer business instance A and customer business instance B should be assigned different destination physical machine clusters. This strategy further expands the scope of risk dispersion, requiring not only the container clusters to be separated, but also the physical machines that actually host these clusters to be distributed in different clusters. Doing so can prevent data center-level disasters, such as power failures and natural disasters, from affecting all business instances that rely on the same physical machine cluster. Through physical separation, it ensures that at least some business instances can survive any single location failure.

[0228] Optionally, if each business instance to be migrated includes multiple dedicated line channels under the same dedicated line gateway, the anti-affinity policy in the embodiment of the present application must include: anti-affinity policy one, anti-affinity policy two and anti-affinity policy three at the same time, among which anti-affinity policy three is: multiple dedicated line channels under the same dedicated line gateway must simultaneously satisfy anti-affinity policy one and anti-affinity policy two.

[0229] In an embodiment of the present application, anti-affinity strategy three requires that multiple dedicated channels under the same dedicated gateway must simultaneously satisfy the above anti-affinity strategy one and anti-affinity strategy two. For example, customer business instance A and customer business instance B should be respectively assigned to different destination container clusters on different destination physical machine clusters. This strategy emphasizes that components with interdependent relationships (such as different dedicated channels belonging to the same dedicated gateway) must also be deployed in a decentralized manner. This means that even within a highly integrated service (such as a specific dedicated service), its components should follow the distribution principles across container clusters and across physical machine clusters to prevent the failure of the entire service link due to the failure of a component. This enhances the overall robustness of the service and ensures that the service can maintain basic functionality when some components encounter problems.

[0230] In addition, the anti-affinity strategy three in the embodiment of the present application can also be expressed as: requiring that the multiple dedicated channels under the same dedicated gateway must try their best to meet the above anti-affinity strategy one and anti-affinity strategy two. In this way, there may be certain flexibility or restrictions in actual operation, allowing that in some cases the ideal state may not be fully achieved, but efforts should be made in this direction, providing a certain degree of flexibility for actual deployment.

[0231] In actual operations, the implementation of these strategies usually requires the support of advanced orchestration tools and technologies. For example, the migration logic orchestration platform is denoted as the Doppler system. In Doppler, features such as destination cluster selector, taints and tolerations can be used to guide the scheduling of business instances to be migrated, ensuring that the destination container cluster is allocated to each business instance to be migrated according to the expected affinity and anti-affinity policies.

[0232] In the above implementation, the several anti-affinity strategies mentioned above are mainly to improve the reliability and fault tolerance of the distributed system, especially for business instances that have strict requirements for high availability, such as dedicated channels and dedicated gateways. These three anti-affinity strategies together build a highly fault-tolerant deployment strategy, which greatly reduces the possibility of large-scale service interruptions due to local failures through geographical, logical and physical dispersion. In addition, the use of affinity strategy deployment can ensure that the communication between the control plane and the forwarding plane is fast and efficient. For example, when the forwarding plane needs to frequently exchange information with the control plane, the present application deploys them in the same destination container cluster through affinity strategies, which can greatly reduce the network round-trip time and improve response speed and user experience.

[0233] On the basis of the above, the service deployment strategy in the embodiment of the present application may include multiple items, such as at least one affinity strategy and one anti-affinity strategy, and of course, multiple anti-affinity strategies may also be included. Specifically, when executing step S423, different priorities may be set in advance for multiple service deployment strategies, such as the affinity strategy has a higher priority than the anti-affinity strategy, and in different anti-affinity strategies: the priority of anti-affinity strategy 1 is higher than that of anti-affinity strategy 2, the priority of anti-affinity strategy 2 is higher than that of anti-affinity strategy 3, and so on.

[0234] It should be noted that the priority order among the above-mentioned multiple business deployment strategies is just a simple example. In addition, other priority orders are also applicable to the embodiments of the present application. For example, in different anti-affinity strategies: the priority of anti-affinity strategy 2 is higher than that of anti-affinity strategy 1, the priority of anti-affinity strategy 1 is higher than that of anti-affinity strategy 3, and so on.

[0235] An optional implementation is that S423 can be implemented according to the following process, including the following steps S4231~S4234 ( Figure 4 not shown):

[0236] S4231: Select a reference container cluster allocated to the service instance to be migrated from the candidate container cluster group.

[0237] S4232: Analyze in sequence whether the reference container cluster satisfies the affinity policy and the anti-affinity policy.

[0238] S4233: If the corresponding service deployment strategy is not satisfied, the reference container cluster is deleted from the candidate container cluster group, and the process returns to the step of selecting a reference container cluster allocated to the service instance to be migrated from the candidate container cluster group until the destination container cluster is selected or the candidate container cluster group is empty.

[0239] In S4233, if the candidate container cluster group is empty, the following processing methods can be performed:

[0240] Processing method 1: If the affinity strategy or an anti-affinity strategy cannot be met, and the reference container cluster determined this time is the last container cluster, that is, after deleting the reference container cluster, the candidate container cluster group is empty, then it can be determined that all candidate container clusters cannot meet the business deployment strategy in this application, and therefore the business instance to be migrated cannot be migrated.

[0241] Processing method 2: If the affinity policy or an anti-affinity policy cannot be met, and the reference container cluster determined this time is the last container cluster, that is, after deleting the reference container cluster, the candidate container cluster group is empty, then the reference container cluster can be used as the destination container cluster corresponding to the business instance to be migrated. This method can improve the migration success rate.

[0242] Processing method three: If the affinity policy cannot be met and the reference container cluster determined this time is the last container cluster, it can be determined that all candidate container clusters cannot meet the affinity policy, and thus the service instance to be migrated cannot be migrated.

[0243] If an anti-affinity policy cannot be met and the reference container cluster determined this time is the last container cluster, the reference container cluster can be used as the destination container cluster corresponding to the service instance to be migrated. This method can improve the migration success rate while ensuring fast communication between the control plane and the forwarding plane.

[0244] In the embodiment of the present application, in each judgment process, if it is determined that the reference selected this time does not meet any service deployment strategy, a prompt may also be given to the object (such as an operation and maintenance personnel). An optional implementation method is as follows:

[0245] If the corresponding service deployment strategy is not met, the reference container cluster currently allocated to the service instance to be migrated is presented on the front end, and a prompt message that the reference container cluster does not meet the corresponding service deployment strategy is presented.

[0246] Specifically, the prompt information may be in the form of a picture (not limited to static images or dynamic images), a text, or a video. In addition, the prompt information may also be in the form of a voice, or a combination of any two or more of the above, etc., which is not specifically limited herein.

[0247] Optionally, the presentation styles of prompt information corresponding to different business deployment strategies are different.

[0248] For example, when the prompt information is in the form of an image, it can be distinguished by different image styles. For another example, when the prompt information is in the form of text, it can be distinguished by different text styles, such as text of different colors, text of different fonts, text of different sizes, etc. For another example, when the prompt information is in the form of a video, it can be distinguished by different video contents, and so on.

[0249] Taking the prompt information in text form as an example, in the embodiment of the present application, the Doppler system automatically selects the container cluster assigned to the service instance to be migrated, and verifies whether it complies with the affinity and anti-affinity policies. If it complies, it can be used as the final destination container cluster. If it does not comply, it will be fine-tuned according to the situation (such as reselecting a new container cluster). The result of the automatic verification is displayed in two aspects: color and text on the front-end interface. Fig. 8A , Figure 8B , Figure 8C Different background fills are used to represent different colors.

[0250] like Fig. 8A As shown, it is a schematic diagram of the first prompt information in the embodiment of the present application. The dedicated channel dual PEER cannot fall into the same container cluster. When the Doppler system automatically verifies that the selected container cluster does not meet the anti-affinity strategy 1, it can be presented as follows Fig. 8A The prompt information shown in S81 presents the currently selected reference container cluster, such as BJ-SY-ZF-FCR-xx, and prompts "Dual PEERs are prohibited from migrating to the same cluster", indicating that the landing points between customer business instances do not cross container clusters.

[0251] Another example Figure 8B As shown, it is a schematic diagram of the second prompt information in the embodiment of the present application. The dual PEER of the dedicated channel cannot fall into the same mother machine cluster. When the Doppler system automatically verifies that the selected reference container cluster does not comply with the anti-affinity strategy 2, it can be presented as follows Figure 8B The prompt information shown in S82 shows the currently selected reference container cluster, such as BJ-SY-ZF-FCR-xx, and prompts "Dual PEERs must perform anti-affinity in the parent machine dimension", indicating that the landing points between customer business instances do not cross physical machine clusters.

[0252] For example Figure 8C As shown, it is a schematic diagram of the third prompt information in the embodiment of the present application. Multiple dedicated channels under the same dedicated gateway need to be mutually exclusive between the container cluster and the host cluster. When the Doppler system automatically verifies that the selected reference container cluster does not comply with anti-affinity strategy three, it can be presented as follows Figure 8C The prompt information shown in S83 shows the currently selected reference container cluster, such as CQTH-FCR-xx, and prompts "Other dedicated channels under the same gateway are already in the current container cluster", indicating that multiple dedicated channels under the same dedicated gateway do not cross container clusters.

[0253] It should be noted that the several prompt information listed above are just simple examples. In addition, other forms and presentation styles of prompt information are applicable to the embodiments of the present application and will not be described in detail here.

[0254] In addition, in an embodiment of the present application, after the migration logic orchestration platform determines the destination container cluster for migration, it still supports manual specification of the destination container cluster. For example, the operation and maintenance personnel can click the drop-down symbol after the currently selected container cluster in S81, S82 or S83 to view other selectable container clusters, thereby specifying a new destination container cluster, providing sufficient flexibility for the operation and maintenance personnel.

[0255] In the above implementation, by presenting the allocation status of the business instances to be migrated in the reference container cluster and the details of the deployment strategies that are not met in real time, this mechanism effectively improves the transparency and decision-making efficiency of the migration process. The customized prompt information corresponding to different strategies can not only quickly guide operation and maintenance personnel to identify and solve problems, but also promote the optimization of resource allocation and efficient collaboration between teams, fundamentally ensuring the smooth progress of business migration and the precise achievement of service quality requirements.

[0256] Optionally, when a suitable destination container cluster cannot be allocated for one or some business instances to be migrated, relevant prompt information can be fed back to the operation and maintenance personnel to support the operation and maintenance personnel to update the expected destination availability zone or expected physical machine cluster, etc.

[0257] For example, if the proportion of business instances to be migrated that cannot be allocated a suitable destination container cluster exceeds a certain percentage (for example, 10%) of the business instances to be migrated that need to be migrated this time, relevant prompt information will be fed back to the operation and maintenance personnel, prompting them to update the expected destination availability zone or the expected physical machine cluster, etc.

[0258] In the above implementation, when a suitable migration target cannot be found for a business instance, feedback is given to the dedicated line operation and maintenance team and the target resources are allowed to be adjusted. This allows for rapid introduction of professional intervention, increased migration flexibility, optimized resource allocation, and ensured business continuity. It also promotes problem solving and continuous optimization of system processes, strengthens communication and cooperation between teams, and overall ensures efficient and smooth completion of migration tasks.

[0259] S4234: If both the affinity policy and the anti-affinity policy are satisfied, the reference container cluster is used as the destination container cluster corresponding to the service instance to be migrated.

[0260] For example, the service deployment strategy includes affinity strategy and anti-affinity strategy. The anti-affinity strategy includes anti-affinity strategy 1, anti-affinity strategy 2, and anti-affinity strategy 3. The affinity strategy has a higher priority than the anti-affinity strategy. Among different anti-affinity strategies: anti-affinity strategy 1 has a higher priority than anti-affinity strategy 2, and anti-affinity strategy 2 has a higher priority than anti-affinity strategy 3.

[0261] First, analyze whether the reference container cluster selected this time satisfies the affinity strategy. In the embodiment of the present application, when analyzing whether the reference container cluster selected this time satisfies the affinity strategy, it mainly analyzes whether the availability zone to which the reference container cluster selected this time belongs and the availability zone to which the corresponding forwarding plane cluster belongs are the same. Among them, for each service instance to be migrated, its corresponding forwarding plane cluster is known and pre-allocated.

[0262] If they are not the same, it is determined that the reference container cluster does not satisfy the affinity policy, and the process returns to S4231, that is, reselecting a reference container cluster and reanalyzing the cluster until a target container cluster is selected or the candidate container cluster group is empty.

[0263] If they are the same, it is determined that the reference container cluster satisfies the affinity policy, and then the analysis continues to determine whether the anti-affinity policy one is satisfied.

[0264] Then, if the anti-affinity strategy 1 is not satisfied, the process returns to S4231 , that is, reselecting a reference container cluster and reanalyzing the cluster until a target container cluster is selected or the candidate container cluster group is empty.

[0265] If anti-affinity strategy 1 is satisfied, then continue to analyze whether anti-affinity strategy 2 is satisfied.

[0266] Then, if the second anti-affinity strategy is not satisfied, the process returns to S4231 , that is, reselecting a reference container cluster and reanalyzing the cluster until a target container cluster is selected or the candidate container cluster group is empty.

[0267] If anti-affinity strategy 2 is met, continue to analyze whether anti-affinity strategy 3 is met.

[0268] If the anti-affinity strategy three is not satisfied, the process returns to S4231, that is, reselecting a reference container cluster and reanalyzing the cluster until a target container cluster is selected or the candidate container cluster group is empty.

[0269] If anti-affinity strategy three is satisfied, the reference container cluster selected this time is used as the destination container cluster allocated to the service instance to be migrated.

[0270] The following example takes the dedicated channel as an example: Fig. 9A As shown, it is a schematic diagram of the implementation logic of the first affinity strategy and anti-affinity strategy in the embodiment of the present application. After starting the migration process, the following steps can be performed:

[0271] S901: Enter the dedicated line channel list A to be migrated.

[0272] S902: Input the expected destination cluster list B.

[0273] S903: Obtain a list C of all migratable container clusters.

[0274] First, the object can input the dedicated channel list A to be migrated and the expected destination cluster list B (here refers to the parent machine cluster) through the migration logic orchestration platform, and obtain the list C of all migratable container clusters based on the above information. For details, please refer to the above embodiment, and the repeated parts will not be repeated.

[0275] S904: Start to determine, for each dedicated channel, whether the planned reference container cluster meets the affinity and anti-affinity policies.

[0276] Specifically, first analyze whether the affinity strategy is met. The process is as follows:

[0277] S905: Automatically select a container cluster D for the dedicated channel dox in list C.

[0278] S906: Whether the AZ to which the container cluster D belongs is the same as the AZ of the corresponding NGW / NTB cluster. If so, execute step S907; otherwise, execute step S911.

[0279] Specifically, in this step, if they are not the same, the affinity strategy is not satisfied, and S911 is executed; if they are the same, the affinity strategy is satisfied, and S907 is executed to continue to determine whether the dedicated line channel is a double neighbor.

[0280] S907: Whether the dedicated line channel has dual neighbors, if yes, execute step S908, otherwise, execute step S909.

[0281] Specifically, in this step, if it is not a double neighbor, there is no need to judge the subsequent anti-affinity policy, that is, when the dedicated channel has a single neighbor, it naturally supports the above anti-affinity policy, and the container cluster is the destination container cluster of the dedicated channel. If it is a double neighbor, continue to analyze whether various anti-affinity policies are met.

[0282] S908: Continue to analyze whether various anti-affinity policies are met.

[0283] Specifically, the judgment process of this step is relatively complicated. For details, see Fig. 9B .

[0284] S909: Container cluster D meets the migration requirements.

[0285] S910: Start executing the migration steps.

[0286] S911: List C removes container cluster D.

[0287] S912: Check whether list C is empty. If so, execute step S913; otherwise, return to step S905;

[0288] S913: All destination container clusters cannot meet affinity and anti-affinity requirements.

[0289] Specifically, in S913, if it is determined that all destination container clusters cannot meet the affinity and anti-affinity requirements and the migration of the dedicated channel dcx cannot be implemented, the migration can be ended.

[0290] Following the above Fig. 9A, the following combination Fig. 9B S908 and its related steps are explained in detail, where S908 can be divided into S9081~S9088. Fig. 9A Some repeated steps in the code are replaced by ellipsis. The specific logic is the same as Fig. 9A , the following Fig. 9B To explain in detail:

[0291] like Fig. 9B As shown, it is a schematic diagram of the implementation logic of the second affinity strategy and the anti-affinity strategy in the embodiment of the present application. If it is determined in S907 that there are two neighbors, the following steps can be executed:

[0292] S9081: Whether a neighbor is already in container cluster D, if so, execute step S911, otherwise, execute step S9082.

[0293] S9082: Whether the parent machine cluster F of a neighbor is already in the list B, if so, execute step S9083, otherwise, execute step S9084.

[0294] S9083: Whether the parent machine cluster where the container cluster D is located is the parent machine cluster F, if yes, execute step S9085, otherwise, execute step S9084.

[0295] S9084: Check whether container cluster D has a dedicated channel with the same gateway as dcx. If yes, execute step S9087; otherwise, execute S909.

[0296] S9085: Find the container cluster list E on the parent machine cluster F.

[0297] S9086: List C removes all container clusters in list E.

[0298] S9087: List C removes container cluster D.

[0299] S9088: Is list C empty? If so, execute step S909; otherwise, return to step S905.

[0300] Specifically, if it is determined in S907 that there are two neighbors, first determine whether there is a neighbor already on container cluster D. If there is a neighbor already on container cluster D, it is determined that anti-affinity policy 1 is not satisfied, and container cluster D is removed from list C. Then determine whether list C is empty. If it is empty, it is determined that all destination container clusters cannot meet the affinity and anti-affinity requirements, and the migration of the dedicated channel dcx cannot be achieved, and the migration ends. If it is not empty, return to the step of automatically selecting a container cluster D for the dedicated channel dox in list C, and continue to repeat the subsequent steps.

[0301] If no neighbor is already on container cluster D, then anti-affinity strategy 1 is satisfied, and further determination is made as to whether a neighbor's host cluster D is already in list B. If not, anti-affinity strategy 2 is satisfied, and further determination is made as to whether container cluster D has a dedicated line channel with the same gateway as DCX. If so, anti-affinity strategy 2 is not satisfied, and further determination is made as to whether the host cluster where container cluster D is located is host cluster D.

[0302] The following first explains the situation where anti-affinity strategy 2 is not satisfied:

[0303] Determine whether the host cluster where container cluster D is located is host cluster D. If it is host cluster D, find container cluster list E on host cluster D. Remove all container clusters in list E from list C, and then determine whether list C is empty. If it is empty, continue to determine whether there is a dedicated channel on container cluster D with the same gateway as dcx. If it is not empty, return to the step of automatically selecting a container cluster D for the dedicated channel dox in list C.

[0304] The following describes the situation that satisfies anti-affinity strategy 2:

[0305] Determine whether there is a dedicated channel with the same gateway as dcx on container cluster D. If there is a dedicated channel with the same gateway as dcx, remove container cluster D from list C, and then determine whether list C is empty. If it is empty, it is determined that container cluster D meets the migration requirements and starts to execute the migration steps. If it is not empty, return to the step of automatically selecting a container cluster D for the dedicated channel dox in list C.

[0306] If there is no dedicated line channel with the same gateway as dcx, anti-affinity policy three is satisfied, and container cluster D is determined to meet the migration requirements, and the migration steps are started.

[0307] Above Fig. 9A and Fig. 9B The listed judgment logics of the affinity strategy and the anti-affinity strategy are just simple examples. In addition, other related judgment logics and their variations are also applicable to the embodiments of the present application and will not be described in detail here.

[0308] It should be noted that the anti-affinity strategy in the embodiment of the present application may further include anti-affinity strategy four. Anti-affinity strategy four requires that the customer business instances be located across AZs. This is a design principle for geographical distribution and data center layout. It aims to enhance the high availability and disaster recovery capabilities of services through physical isolation. Deploying customer business instances in different availability zones can significantly reduce the risk of losing all instances at the same time.

[0309] In the embodiment of the present application, FCR is a cloud network service designed to provide high availability and high performance. It naturally has cross-AZ capabilities and supports cross-availability zone deployment. This natural feature is usually guaranteed by the infrastructure design itself (that is, the infrastructure naturally supports this strategy) and does not require additional migration process intervention.

[0310] Specifically, FCR components (including but not limited to the main container, where the main container may refer to a key control plane component or service instance) may be deployed in different AZs. For example, anti-affinity strategy four is implemented by evenly placing the FCR main container in two AZs. Such a deployment strategy helps to balance the load, improve resource utilization, and has high availability, ensuring that even if an availability zone encounters a failure or is unavailable, FCR services can still be provided through components in another availability zone, thereby ensuring business continuity.

[0311] For example, if a business instance was originally deployed in a single AZ and is migrated to a new environment using the FCR service, the cross-AZ deployment feature of FCR can be directly used without having to design additional complex cross-AZ logic during the migration process, making the entire migration smoother and naturally meeting the requirements of anti-affinity strategy four.

[0312] In summary, anti-affinity strategy 4 enhances the resilience of the system and reduces the impact of single point failures by forcing business instances to be deployed geographically. It is an important part of achieving business continuity and disaster recovery strategies.

[0313] In the above embodiment, according to the pre-configured service deployment policy, the destination cluster allocated to each service instance to be migrated can be determined, and then the following step S43 is performed:

[0314] S43: Send the starting cluster, each business instance to be migrated and their corresponding destination clusters to the automated migration platform, so that the automated migration platform creates a corresponding new business instance under the corresponding destination cluster for each business instance to be migrated; based on the business data of the business instance to be migrated read, restore the control plane network configuration of the new business instance; after determining that the control plane network configuration is normal, delete the relevant configuration of the business instance to be migrated to realize the migration of the business instance to be migrated.

[0315] The new business instance refers to a new copy of a business application or service that is ready to be deployed or has been deployed on the destination cluster. During the migration process, the current state, data, and configuration of the business instance to be migrated will be copied to the new business instance to ensure that the business can continue to run seamlessly in the new environment. The new business instance should be consistent with the business instance to be migrated in terms of functions and data to ensure business continuity. After the migration is successful and fully verified, the new business instance will become the main body in the production environment and assume the responsibility of processing user requests and executing business logic.

[0316] In an embodiment of the present application, the migration logic orchestration platform can send a migration request including a starting cluster, each service instance to be migrated and each corresponding destination cluster to the automated migration platform. After receiving the migration request, the automated migration platform can execute the corresponding automated migration process.

[0317] The above is an explanation of the service migration method in the embodiment of the present application from the perspective of the migration logic orchestration platform. The following is a further explanation of the service migration method in the embodiment of the present application from the perspective of the automated migration platform:

[0318] See also Fig.10 As shown, it is an implementation flow chart of another service migration method provided in an embodiment of the present application. Taking the automated migration platform as the execution subject as an example, the specific implementation process of the method is as follows:

[0319] S101: Obtain a starting cluster to be migrated and a destination cluster assigned to each business instance to be migrated in the starting cluster; the starting cluster and each destination cluster belong to different availability zones; the destination cluster corresponding to each business instance to be migrated is set by the migration logic orchestration platform according to a pre-configured business deployment strategy after responding to a migration task configuration instruction.

[0320] In this step, the starting cluster to be migrated can be one or more, that is, the service migration method in the embodiment of the present application also supports migrating multiple starting clusters at the same time, which is not specifically limited in this article. In order to simplify the description, one starting cluster is used as an example.

[0321] Specifically, the method for determining the starting cluster, each service instance to be migrated, and the destination cluster allocated to the starting cluster to be migrated refers to the relevant description on the migration logic orchestration platform side, which will not be repeated here.

[0322] S102: For each service instance to be migrated, perform the following migration operations S1021 to S1023 respectively:

[0323] S1021: Sending service configuration information determined based on the service instance to be migrated to a destination cluster corresponding to the service instance to be migrated, so as to create a corresponding new service instance under the destination cluster according to the service configuration information.

[0324] In an embodiment of the present application, the business configuration information specifically refers to the configuration related to the business instance, which includes the parameters and settings required to create a new business instance, and is used to create a new business instance to ensure that the new business instance has the same functions and behaviors as the business instance to be migrated, including but not limited to some or all of the following: application deployment configuration, network policy, storage allocation, BFD neighbor configuration, and bridge configuration on the server.

[0325] Application deployment configuration refers to a series of settings required for business instances to run on the destination cluster, including but not limited to resource requests and restrictions (such as central processing unit (CPU), memory), health check policies, etc. These configurations ensure that applications can be started and run in the new cluster environment as expected, while meeting performance and resource utilization requirements.

[0326] Network policies define the network interaction rules between business instances and with the outside world, including network isolation policies, load balancing policies, etc. In migration scenarios, correctly configuring network policies is critical to maintaining application connectivity, security, and performance.

[0327] Storage allocation involves the persistent storage configuration of application data, including mounting paths, access modes (read and write permissions), backup and recovery strategies, etc. During migration, ensuring that the storage configuration is correctly migrated and remounted is the key to ensuring data integrity and application continuity.

[0328] Bidirectional Forwarding Detection (BFD) neighbor configuration is used to guide the setting of fast fault detection mechanism. Specifically, by setting BFD parameters such as detection interval and timeout, you can quickly respond to changes in network connection status and improve network availability.

[0329] The server network bridge configuration is used to establish the connection between the server and the network. Specifically, it defines how to establish a second-layer (data link layer) bridge connection between a physical server or virtual machine and the network. This involves the settings of the network interface card (NIC) and the configuration of the virtual local area network (VLAN), which are used to achieve communication between different network segments.

[0330] In step S1021, the service configuration information is the basic information for creating a new service instance. These configurations directly determine the network behavior and resource utilization of the new service instance in the destination cluster. The specific relationship is as follows:

[0331] BFD neighbor configuration helps quickly detect the availability of network connections. New service instances after configuration can respond quickly to link failures, improving service stability and fault recovery speed. The server bridge configures network bridging, allowing new service instances to seamlessly access the network environment of the destination cluster and achieve communication with external networks or other services in the cluster.

[0332] It should be noted that the above-mentioned business configuration information is only a simple example. In addition, other business configuration information is also applicable to the embodiments of the present application and will not be described one by one here.

[0333] Optionally, the destination cluster includes a destination physical machine cluster and a destination container cluster; an optional implementation method is that S1021 can be implemented according to the following process, including the following steps S10211~S10212 ( Fig.10 not shown):

[0334] S10211: Sending service configuration information determined based on the service instance to be migrated to the destination container cluster allocated to the service instance to be migrated, through the controller, under the destination physical machine cluster.

[0335] S10212: Under the destination container cluster, create a corresponding new service instance according to the service configuration information.

[0336] The controller is responsible for coordinating, managing, and monitoring the entire migration process. It decides when and how to perform the migration operation based on a preset strategy or real-time analysis of the system status. In the embodiment of the present application, the controller is not only responsible for identifying the business instance to be migrated, but also for generating new business instance configuration information (i.e., the business configuration information in S1021) and ensuring that this information is correctly deployed to the target environment.

[0337] Taking Netops as an example of an automated migration platform, Netops is an operation development management platform built for operation personnel listed in this application. Netops can call the NFVC cluster through an interface. The NFVC cluster is composed of multiple NFVC controllers.

[0338] Specifically, before sending the service configuration information through the controller, after receiving the request from the front end, the automated migration platform will call the API interface of the controller (NFVC cluster) according to the preset migration logic to perform some checks, such as pre-migration checks on service configuration, channel connectivity, and software and hardware resources. Figure 3The "④ automated migration process queries relevant business data in the controller", "⑤ automated migration process verifies business data of the starting cluster device", "⑥ automated migration process verifies business data of the destination cluster device", etc. are shown and will not be repeated here.

[0339] After checking that everything is correct, the controller can use API, message queue, or direct system call to send the service configuration information to the corresponding destination container cluster. This step ensures the secure and efficient transmission of information, and that it can be correctly parsed and processed by the destination container cluster. After receiving the service configuration information, the destination container cluster creates a new service instance based on the information.

[0340] If any abnormality is found during the check, the abnormal information can be pushed to the migration result display platform to remind the operation and maintenance personnel to make corresponding adjustments or end the migration process.

[0341] In the above implementation, the service configuration information is the setting of the operating rules of the new service instance at the network level, which lays the foundation for the correct configuration and operation of the new service instance in the destination cluster. In S1021, it mainly involves sending the control plane configuration information of the service instance to the destination cluster so as to create a new service instance with the same configuration in the new cluster. The above process ensures that the service can be quickly and accurately rebuilt in the new environment in a highly automated manner, while minimizing the service interruption time and risk.

[0342] Furthermore, the business data is the actual operational basis for ensuring the consistency of the network behavior of the new business instance with the original instance. In S1022, the business data obtained from the source cluster is mainly used to specifically configure the control plane network of the new business instance. Through data restoration, the seamless migration of the control plane network configuration is achieved, ensuring the connectivity of the network service and the correctness of the data flow. The following is a detailed description of S1022:

[0343] S1022: Restoring the control plane network configuration of the new service instance based on the read service data of the service instance to be migrated.

[0344] Among them, business data refers to the data required to ensure the normal operation of services in the new environment, and is the key foundation for achieving business continuity, functional integrity and performance optimization.

[0345] In the embodiment of the present application, the business data includes but is not limited to: BGP neighbor configuration data, routing policy configuration data, and routing data between the customer and the cloud side.

[0346] Among them, BGP neighbor configuration defines the external connection mode and routing information exchange rules of network devices. Specifically, it defines how network devices establish neighbor relationships with other BGP routers, including the neighbor's Internet Protocol Address (IP) address, Autonomous System (AS) number, authentication information, etc. These configurations determine the connectivity of the network and the exchange mode of routing information. They are control information at the network level, which can ensure that new service instances can correctly establish BGP connections with other devices in the network and conduct effective routing information exchange. They are the basis for achieving network connectivity and dynamic routing.

[0347] The routing policy configuration determines the routing selection logic. Specifically, it instructs the router on how to process and distribute routing information, such as modifying, filtering, or optimizing routes based on specific conditions (such as source address, destination address, protocol type, etc.). This affects the flow of data packets in the network and is a key configuration for controlling the data transmission path. Through the routing policy configuration data, it instructs the new business instance on how to process the received routing information and determine the forwarding path of the data packet, which is crucial for optimizing network traffic and implementing specific access control or load balancing strategies.

[0348] The routing data between the customer and the cloud directly reflects the network status of the original business instance, including routing tables, path selection information, etc. During the migration process, these data need to be accurately copied or recalculated to ensure that the routing is correct in the new business instance, and to restore the network status and routing information of the new business instance to ensure that the data packets are forwarded correctly. In the new business instance, the network routing can be accurately reconstructed based on these data to ensure that the data packets can be transmitted along the original logical path.

[0349] In step S1022, these data will be used to configure the control plane network of the new service instance to keep it consistent with the network status of the original service instance.

[0350] An optional implementation is that S1022 can be implemented according to the following process, including the following steps S10221~S10223 ( Fig.10 not shown):

[0351] S10221: Read corresponding business data from the database corresponding to the business instance to be migrated.

[0352] This step is mainly to ensure that the new business instance can obtain the same network configuration and business status as the original business instance in the destination cluster. Specifically, the business data of the business instance to be migrated can be stored in the database. The new business instance initiates a request to the starting cluster through a secure network connection to obtain the necessary business data in the corresponding database to restore the control plane network configuration.

[0353] S10222: Restore the BGP neighbor data of the service instance to be migrated according to the service data, form new BGP neighbors for the new service instance, and perform BGP neighbor negotiation and route learning through the new BGP neighbors.

[0354] This step is based on the business data collected by S10221, and specifically implements the reconstruction and activation of network configuration. Key operations include BGP configuration reconstruction, BGP neighbor negotiation, and route learning and notification.

[0355] Specifically, BGP configuration reconstruction refers to configuring the BGP protocol for the new service instance using the BGP neighbor information obtained from the starting cluster, such as the neighbor's IP address, AS number, authentication information, etc. This includes setting BGP session parameters, such as the keepalive and hold time intervals, as well as any specific route propagation policies or path attributes.

[0356] BGP neighbor negotiation specifically means that after the newly configured BGP process is started on a new service instance, it will automatically try to establish a Transmission Control Protocol (TCP) connection with each neighbor in the previously obtained neighbor list, and negotiate parameters such as the protocol version and AS number through BGP open messages to establish a neighbor relationship.

[0357] Route learning and notification specifically means that once the BGP neighbor relationship is successfully established, the new service instance will exchange routing information with the neighbor through Update messages, learn the reachable path of the network, and select the best path according to the configured routing policy and add it to the local routing table. At the same time, it will also notify its own routing information to the neighbor to achieve network-wide routing convergence.

[0358] S10223: If the new BGP neighbor is in normal status, close the old BGP neighbor corresponding to the service instance to be migrated, and enable the new BGP neighbor.

[0359] In the above implementation, BGP neighbor negotiation and routing learning are the key to achieving business continuity and data consistency, because normal BGP neighbor status and correct routing configuration are the prerequisites for the normal operation of network services. Through accurate restoration, service interruption or data loss caused by inconsistent network configuration can be avoided, and the business can be immediately restored to normal operation and provide services to the outside world after migration. Through the above process, not only is it ensured that the network configuration of the new business instance on the control plane is consistent with the original business instance, but the network connectivity and routing reachability are dynamically restored through BGP, which is the key to seamless connection at the network level in cross-cluster migration of services.

[0360] It should be noted that the above implementation is the main means to achieve lossless migration. Fig.11 As shown, it is a schematic diagram of the underlying implementation logic of lossless migration of network control plane services in an embodiment of the present application. Fig.11 As shown in the figure, the starting FCR cluster and the destination FCR cluster (here refers to the master cluster) are physically located in the availability zone AZ-1 and the availability zone AZ-2 respectively. Fig.11 The FCR cluster in the target FCR cluster is 1-01. Fig.11 In the FCR cluster 1-02, this time, a dedicated line channel on the customer side on the cloud side is migrated from FCR cluster 1-01 to FCR cluster 1-02, specifically, it is migrated to a container cluster in FCR cluster 1-02 ( Fig.11 (not shown), the service instance to be migrated is Fig.11 In the example, it is recorded as customer A-channel 1-1 (old), and the new service instance is in Fig.11 Recorded as Customer A-Channel 2-1 (new).

[0361] Specifically, the process of lossless migration of the dedicated line channel of the dedicated line product control plane service instance from the starting cluster to the destination cluster is divided into the following six steps:

[0362] ① The old dedicated channel service data is stored in database 1.

[0363] like Fig.11 In the example, the business data of customer A-channel 1-1 (old) is stored in database 1 in AZ-1. The database can be Redis, denoted as Redis01.

[0364] ②The controller sends the new dedicated channel service configuration information to the destination cluster.

[0365] The controller is the NFVC in the NFVC cluster. The controller sends the service configuration information of the new dedicated channel to a container cluster in the destination cluster FCR cluster 1-02, and creates a new dedicated channel customer A-channel 2-1 (new).

[0366] ③ Read the service data of database 1 to restore the BGP neighbor configuration.

[0367] ④ New BGP neighbors are created and new routes are learned. At the same time, the controller will shut down the old BGP neighbors and complete the lossless switching of the new BGP neighbors.

[0368] The new dedicated channel will read business data from the data storage Redis01 of the old dedicated channel, thereby restoring the customer's BGP neighbor data one-to-one. After the new BGP neighbor is restored, it will automatically negotiate with the customer about BGP neighbors and learn new routes. When the new BGP neighbor is in normal status, the old BGP neighbor will be automatically closed and the new BGP neighbor will be enabled. The BGP neighbors will not be disconnected and rebuilt during the switching process, because the switching process between the old and new BGP neighbors will not exceed the BGP negotiation timeout. During this process, there will be no jitter in the protocol neighbors established between the customer and Tencent Cloud, so the customer will not be aware of it, and the business can be cut to the new dedicated channel on the destination cluster without loss.

[0369] ⑤The new dedicated channel business data is stored in database 2.

[0370] like Fig.11 In the example, the business data of customer A-channel 2-1 (new) is stored in database 2 in AZ-2, which can be Redis, denoted as Redis02.

[0371] ⑥The controller deletes the old dedicated channel service configuration on the starting cluster.

[0372] For the specific process, please refer to the above embodiment, and the repeated parts will not be repeated.

[0373] In summary, business configuration information mainly involves the rules for how network devices are set and interact, while business data is the network status information generated after these rules are applied, including actual routing table entries. During business migration, the configuration needs to be migrated and reapplied to the new environment to ensure that the service function remains unchanged, and the relevant data needs to be synchronized or recalculated to maintain network connectivity and service continuity. Through these processes, cross-cluster and cross-availability zone migration of business instances can be achieved.

[0374] S1023: After determining that the control plane network configuration of the new service instance is normal, delete the relevant configuration of the service instance to be migrated on the starting cluster to achieve migration of the service instance to be migrated.

[0375] In an embodiment of the present application, to ensure that the control plane network configuration of the new business instance is operating normally, the relevant configuration of the business instance to be migrated can be gradually deleted or disabled on the starting cluster, which indicates that the business migration has entered the final stage.

[0376] Before performing any deletion operations, you can verify whether the new business instance has fully assumed all business functions, has stable performance, and has smoothly transitioned user traffic. By continuously monitoring the various indicators of the new instance, business continuity and data consistency are ensured. Then, the business instance to be migrated is gradually unbound from the starting cluster resources to ensure that these resources are no longer used by any business instance before release to avoid service interruption.

[0377] Then, the configuration deletion process can be executed to delete or comment out all configurations related to the business instance to be migrated from the configuration management system of the starting cluster, including but not limited to the business configuration information and business data mentioned above, to ensure that these no longer affect the operation status of the cluster. In addition, the computing resources (such as CPU, memory), storage resources, and network resources previously occupied by the business instance to be migrated need to be released, which helps to optimize resource allocation, reduce waste, and make room for possible new service deployment in the future.

[0378] Among the above S1021, S1022 and S1023, each step can be understood as a migration sub-operation. For each business instance to be migrated, the three migration sub-operations are automatically executed by the automated migration platform to complete the business migration.

[0379] like Fig.12 As shown, it is a schematic diagram of an automated migration process in an embodiment of the present application. Fig.12 The automated migration process (referred to as the migration process) includes the process start node, migration task node (used to execute various migration sub-operations), inspection task node (used to execute various business inspections), rollback task node (used to roll back to the initial state under abnormal circumstances) and process end node. The automated migration platform in this article mainly executes the automated migration process based on these and performs the migration of business instances. In the embodiment of the present application, these five basic nodes are used and after complex logical orchestration, a complex, stable and efficient control plane business lossless migration automated migration process can be achieved.

[0380] In the embodiment of the present application, based on these basic nodes, the entire lossless migration process can be fully automated, with no manual operation steps required, and the change automation rate is greatly improved.

[0381] Optionally, for each service instance to be migrated, during the process of performing the migration operation on the service instance to be migrated, after each migration sub-operation is performed, it is detected whether the current service is normal;

[0382] If it is confirmed that the current business is abnormal, the corresponding rollback sub-process will be executed.

[0383] For example, after the execution of migration sub-step 1 (i.e., S1021) is completed, if it is checked that there is a problem with the current business, the corresponding rollback sub-process is executed, and the reverse operation corresponding to migration sub-step 1 is performed, and the process is rolled back to the time before the execution of migration sub-step 1; after the execution of migration sub-step 2 (i.e., S1022) is completed, if it is checked that there is a problem with the current business, the corresponding rollback sub-process is executed, and the reverse operations corresponding to migration sub-step 2 and migration sub-step 1 are performed in sequence, and the process is rolled back to the time before the execution of migration sub-step 1; after the execution of migration sub-step 3 (i.e., S1021) is completed, if it is checked that there is a problem with the current business, the corresponding rollback sub-process is executed, and the reverse operations corresponding to migration sub-step 3, migration sub-step 2, and migration sub-step 1 are performed in sequence, and the process is rolled back to the time before the execution of migration sub-step 1.

[0384] The following takes the FCR.VAR (channel) batch migration scenario as an example. Fig.13 As shown, it is a schematic diagram of a dedicated line channel batch migration process in an embodiment of the present application, which can be performed by Fig.12 The basic nodes shown start the process, automatically executing steps such as data acquisition, pre-check, abnormal rollback, migration task 3 steps and post-operation check. Various checks and rollback measures ensure the safety and standardization of various operations during the migration process, so that the entire lossless migration process can be fully automated and efficiently executed. Fig.13 The specific process in:

[0385] S1300: Start the migration process;

[0386] S1301: Enter the list of dedicated line channels to be migrated, the starting cluster, and the destination cluster;

[0387] Specifically, the information may be obtained from the migration logic orchestration platform.

[0388] S1302: Acquire and back up business-related data;

[0389] S1303: Perform pre-migration checks on service configuration, channel connectivity, and software and hardware resources;

[0390] Specifically, the inspection-related process can be referred to the above embodiment, which will not be repeated here.

[0391] S1304: Check whether all the checks are normal; if yes, execute step S1305; otherwise, execute step S1315;

[0392] S1305: Execute migration sub-step 1;

[0393] S1306: Check various services after the first step;

[0394] S1307: After the first operation, whether the service is normal, if yes, execute step S1308, otherwise, execute step S1314;

[0395] S1308: Execute migration sub-step 2;

[0396] S1309: Check various services after the second step;

[0397] S1310: After the second step, whether the service is normal, if yes, execute step S1311, otherwise, execute step S1314;

[0398] S1311: Execute migration sub-step 3;

[0399] S1312: Check all business operations after the third step;

[0400] S1313: After the third step, whether the service is normal, if yes, execute step S1316, otherwise, execute step S1314;

[0401] Specifically, the line of sight migration process of the three-step operation can be referred to the above embodiment, which will not be repeated here.

[0402] S1314: Execute the corresponding rollback sub-process;

[0403] S1315: Push abnormal information;

[0404] Specifically, abnormal information can be automatically pushed to the migration result display platform to remind operation and maintenance personnel to make corresponding adjustments or end the migration process.

[0405] S1316: The migration process ends.

[0406] The lossless migration process listed above is efficient and safe as a whole. The entire migration takes 2 to 5 minutes, reducing the time by more than 98%. In addition, the entire network change process is safe and controllable, effectively ensuring the stability of the existing network changes.

[0407] In addition, the methods listed above support the architecture upgrade and transformation of the existing network of the FCR component of the control plane of the dedicated line product. Fig.14 As shown, it is a schematic diagram of completing the upgrade and transformation of the FCR component architecture through lossless migration in an embodiment of the present application. For example, with the rapid development of business, the NSR1.0 architecture of the dedicated line product FCR component can no longer meet customer needs, so the product launches the NSR2.0 architecture to meet various new customer needs, and the existing business is on the old FCR cluster of the NSR1.0 architecture. Lossless migration of all businesses to the new FCR cluster of the NSR2.0 architecture has become a strong demand for upgrading the FCR component architecture. Fig.14 As shown in the figure, the lossless migration of the network control plane supports the lossless migration of numerous business instances of thousands of existing customers to the new cluster of NSR2.0, completing the entire process of architecture upgrade and transformation.

[0408] In summary, the use of the network control plane lossless migration process of this application can achieve stable, lossless, fully automated, efficient and fast cross-cluster migration of customer services. The time consumption of cross-cluster migration is shortened by more than 98%, and the full automation rate reaches more than 95%. Manual operation is no longer required, which greatly reduces the complexity of changes, improves the stability of existing network changes, and improves the overall change efficiency by a level. It can also support business change scenarios such as upgrading and transformation of the existing network control plane architecture, business adjustment and optimization, and rapid fault recovery, effectively improving product availability. In addition, on the customer side, customers have no perception during the entire migration process, and customers no longer need to participate in all the operation links of the change, which greatly improves the customer experience of Tencent Cloud dedicated line products.

[0409] Based on the same inventive concept, the embodiment of the present application also provides a service migration device. Fig.15 As shown, it is a schematic diagram of the structure of the service migration device 1500, which may include:

[0410] The acquisition unit 1501 is used to acquire the starting cluster to be migrated and the destination cluster allocated to each service instance to be migrated in the starting cluster; the starting cluster and each destination cluster belong to different availability zones; the destination cluster corresponding to each service instance to be migrated is set by the migration logic orchestration platform in response to the migration task configuration instruction according to the pre-configured service deployment strategy;

[0411] The migration unit 1502 is used to perform the following migration operations for each service instance to be migrated:

[0412] Sending service configuration information determined based on the service instance to be migrated to a destination cluster corresponding to the service instance to be migrated, so as to create a corresponding new service instance according to the service configuration information under the destination cluster;

[0413] Restoring the control plane network configuration of the new service instance based on the read service data of the service instance to be migrated;

[0414] After determining that the control plane network configuration of the new service instance is normal, the relevant configuration of the service instance to be migrated is deleted on the starting cluster to achieve migration of the service instance to be migrated.

[0415] Optionally, the destination cluster includes a destination physical machine cluster and a destination container cluster;

[0416] Then the migration unit 1502 is specifically used for:

[0417] Sending, through a controller, service configuration information determined based on the service instance to be migrated to the destination physical machine cluster for the destination container cluster allocated to the service instance to be migrated;

[0418] Under the destination container cluster, the corresponding new service instance is created according to the service configuration information.

[0419] Optionally, the migration unit 1502 is specifically configured to:

[0420] Reading corresponding business data from a database corresponding to the business instance to be migrated;

[0421] Restoring the BGP neighbor data of the service instance to be migrated according to the service data, forming a new BGP neighbor of the new service instance, and performing BGP neighbor negotiation and routing learning through the new BGP neighbor;

[0422] After determining that the control plane network configuration of the new service instance is normal, the migration unit 1502 is further configured to:

[0423] If the state of the new BGP neighbor is normal, the old BGP neighbor corresponding to the service instance to be migrated is closed, and the new BGP neighbor is enabled.

[0424] Optionally, for each service instance to be migrated, in the process of performing a migration operation on the service instance to be migrated, the migration unit 1502 is further configured to:

[0425] After each migration sub-operation is executed, check whether the current business is normal;

[0426] If it is confirmed that the current service is abnormal, the corresponding rollback sub-process is executed; wherein the migration sub-operation includes at least one of the following:

[0427] Sending service configuration information determined based on the service instance to be migrated to a destination cluster corresponding to the service instance to be migrated, so as to create a corresponding new service instance according to the service configuration information under the destination cluster;

[0428] Restoring the control plane network configuration of the new service instance based on the read service data of the service instance to be migrated;

[0429] After determining that the control plane network configuration of the new service instance is normal, the relevant configuration of the service instance to be migrated is deleted on the starting cluster.

[0430] Based on the same inventive concept, the embodiment of the present application also provides another service migration device. Fig.16 As shown, it is a schematic diagram of the structure of the service migration device 1600, which may include:

[0431] The responding unit 1601 is configured to determine, in response to the migration task configuration instruction, the starting cluster of the migration indicated by the current migration task and each service instance to be migrated in the starting cluster;

[0432] The allocation unit 1602 is used to determine the destination cluster allocated to each of the service instances to be migrated according to the pre-configured service deployment strategy; the starting cluster and each destination cluster belong to different availability zones;

[0433] Transmission unit 1603 is used to send the starting cluster, the business instances to be migrated and their corresponding destination clusters to the automated migration platform, so that the automated migration platform creates a corresponding new business instance under the corresponding destination cluster for each business instance to be migrated; based on the business data of the business instance to be migrated read, restore the control plane network configuration of the new business instance; after determining that the control plane network configuration is normal, delete the relevant configuration of the business instance to be migrated to realize the migration of the business instance to be migrated.

[0434] Optionally, the destination cluster includes a destination physical machine cluster and a destination container cluster; the service deployment strategy includes: an anti-affinity strategy for ensuring disaster recovery between service instances, and an affinity strategy for ensuring that the forwarding plane and the control plane are deployed nearby;

[0435] The allocation unit 1602 is specifically used for:

[0436] Determine a candidate physical machine cluster that meets the migration task configuration instructions;

[0437] The container clusters included in each determined candidate physical machine cluster are combined into a candidate container cluster group;

[0438] For each service instance to be migrated, a destination container cluster allocated to the service instance to be migrated is selected from the candidate container cluster group according to the affinity policy and the anti-affinity policy.

[0439] Optionally, the allocating unit 1602 is specifically configured to:

[0440] If the current migration task indicates a desired destination availability zone for migration, determining the candidate physical machine cluster to be a physical machine cluster in the destination availability zone;

[0441] If the current migration task indicates a physical machine cluster to be migrated, determining the candidate physical machine cluster to be the indicated physical machine cluster to be migrated;

[0442] If the current migration task does not indicate the desired destination availability zone and physical machine cluster for migration, the candidate physical machine cluster is determined to be a physical machine cluster on a candidate availability zone; the candidate availability zone is an availability zone other than the availability zone where the starting cluster is located.

[0443] Optionally, the affinity strategy is: the control plane cluster and the forwarding plane cluster corresponding to the business instance belong to the same availability zone; the anti-affinity strategy includes at least one of the following: anti-affinity strategy 1 for ensuring that business instances cross container clusters, and anti-affinity strategy 2 for ensuring that business instances cross physical machine clusters;

[0444] The allocation unit 1602 is specifically used for:

[0445] Selecting a reference container cluster allocated to the service instance to be migrated from the candidate container cluster group;

[0446] Analyzing in sequence whether the reference container cluster satisfies the affinity policy and the anti-affinity policy;

[0447] If both the affinity policy and the anti-affinity policy are satisfied, the reference container cluster is used as the destination container cluster corresponding to the service instance to be migrated;

[0448] If the corresponding service deployment strategy is not satisfied, the reference container cluster is deleted from the candidate container cluster group, and the process returns to the step of selecting a reference container cluster allocated to the service instance to be migrated from the candidate container cluster group until the destination container cluster is selected or the candidate container cluster group is empty.

[0449] Optionally, if the business instances to be migrated include multiple dedicated channels under the same dedicated gateway, the anti-affinity strategy includes: anti-affinity strategy one, anti-affinity strategy two and anti-affinity strategy three, and the anti-affinity strategy three is: the multiple dedicated channels under the same dedicated gateway must simultaneously satisfy anti-affinity strategy one and anti-affinity strategy two.

[0450] Optionally, if the corresponding service deployment strategy is not satisfied, the device further includes:

[0451] The prompting unit 1604 is configured to present the reference container cluster currently allocated to the service instance to be migrated, and present prompt information that the reference container cluster does not satisfy a corresponding service deployment policy.

[0452] Optionally, the presentation styles of prompt information corresponding to different business deployment strategies are different.

[0453] This application proposes a migration logic orchestration platform and an automated migration platform, wherein the migration logic orchestration platform can respond to the migration request of the object, determine the starting cluster of the migration indicated by the object, each business instance to be migrated, etc., and then automatically allocate a suitable destination cluster for each business instance to be migrated according to the pre-configured business deployment strategy, and notify the automated migration platform. The automated migration platform can automatically perform business migration based on this information. In this process, the destination cluster planned for each business instance to be migrated according to the business deployment strategy belongs to a different availability zone from the starting cluster, realizing automated cross-availability zone and cross-cluster business migration. The entire migration process is completed automatically by the process, and there are no manual operation steps, and the change automation rate is greatly improved. In addition, during the migration process, after determining that the control plane network configuration of the new business instance is normal, the old business configuration of the business instance to be migrated is deleted on the starting cluster. During this process, the customer has no perception and the business is not affected, realizing lossless migration, and the lossless migration process is efficient and safe as a whole. The entire network change process is safe and controllable, effectively ensuring the stability of the existing network changes.

[0454] Furthermore, in an embodiment of the present application, when there are many business instances to be migrated, it supports parallel processing of migration operations of multiple business instances to be migrated, and in the scenario of source cluster failure, provides a fault recovery means for quickly migrating businesses to a new cluster in batches.

[0455] For the convenience of description, the above parts are divided into modules (or units) according to their functions and described separately. Of course, when implementing this application, the functions of each module (or unit) can be implemented in the same or multiple software or hardware.

[0456] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories), or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0457] After introducing the service migration method and device according to the exemplary embodiment of the present application, next, an electronic device according to another exemplary embodiment of the present application is introduced.

[0458] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.

[0459] Based on the same inventive concept as the above method embodiment, an electronic device is also provided in the embodiment of the present application. In one embodiment, the electronic device may be a server. In this embodiment, the structure of the electronic device may be as follows: Fig.17 As shown, it includes a memory 1701 , a communication module 1703 and one or more processors 1702 .

[0460] The memory 1701 is used to store computer programs executed by the processor 1702. The memory 1701 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and programs required for running the instant messaging function, etc.; the data storage area may store various instant messaging information and operation instruction sets, etc.

[0461] The memory 1701 may be a volatile memory, such as a random-access memory (RAM); the memory 1701 may also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); or the memory 1701 may be any other medium that can be used to carry or store a desired computer program in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 1701 may be a combination of the above memories.

[0462] The processor 1702 may include one or more CPUs or a digital processing unit, etc. The processor 1702 is configured to implement the above service migration method when calling the computer program stored in the memory 1701 .

[0463] The communication module 1703 is used to communicate with terminal devices and other servers.

[0464] The specific connection medium between the memory 1701, the communication module 1703 and the processor 1702 is not limited in the embodiment of the present application. Fig.17 In the embodiment, the memory 1701 and the processor 1702 are connected via a bus 1704. The bus 1704 is connected to the processor 1702 via a bus 1704. Fig.17 The connections between the other components are described with bold lines, which are only for illustration and are not intended to be limiting. The bus 1704 can be divided into an address bus, a data bus, a control bus, etc. For ease of description, Fig.17 The diagram shows that only one thick line is used, but this does not mean that there is only one bus or only one type of bus.

[0465] The memory 1701 stores a computer storage medium, and the computer storage medium stores computer executable instructions, and the computer executable instructions are used to implement the service migration method of the embodiment of the present application. The processor 1702 is used to execute the above service migration method, such as Fig.10 shown.

[0466] In another embodiment, the electronic device may also be other electronic devices, such as a terminal device. In this embodiment, the structure of the electronic device may be as follows: Fig.18 As shown, it includes: a communication component 1810, a memory 1820, a display unit 1830, a camera 1840, a sensor 1850, an audio circuit 1860, a Bluetooth module 1870, a processor 1880 and other components.

[0467] The communication component 1810 is used to communicate with the server. In some embodiments, a wireless fidelity (WiFi) module may be included. The WiFi module belongs to a short-range wireless transmission technology. The electronic device can help the user to send and receive information through the WiFi module.

[0468] The memory 1820 can be used to store software programs and data. The processor 1880 executes various functions and data processing of the terminal device by running the software programs or data stored in the memory 1820. The memory 1820 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. The memory 1820 stores an operating system that enables the terminal device to run. In the present application, the memory 1820 can store an operating system and various application programs, and can also store a computer program for executing the service migration method of the embodiment of the present application.

[0469] The display unit 1830 can also be used to display information input by the user or information provided to the user and a graphical user interface (GUI) of various menus of the terminal device. Specifically, the display unit 1830 may include a display screen 1832 arranged on the front of the terminal device. Among them, the display screen 1832 can be configured in the form of a liquid crystal display, a light-emitting diode, etc. The display unit 1830 can be used to display the user interface of the migration logic orchestration platform in the embodiment of the present application, the user interface of the migration result display platform, etc.

[0470] The display unit 1830 can also be used to receive input digital or character information and generate signal input related to user settings and function control of the terminal device. Specifically, the display unit 1830 may include a touch screen 1831 arranged on the front of the terminal device, which can collect user touch operations on or near it, such as clicking a button, dragging a scroll box, etc.

[0471] The touch screen 1831 can be covered on the display screen 1832, or the touch screen 1831 and the display screen 1832 can be integrated to realize the input and output functions of the terminal device, and the integrated display screen can be referred to as a touch display screen. In this application, the display unit 1830 can display the application program and the corresponding operation steps.

[0472] The camera 1840 can be used to capture still images, and the user can publish the images taken by the camera 1840 through the application. The camera 1840 can be one or more. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the processor 1880 to convert it into a digital image signal.

[0473] The terminal device may further include at least one sensor 1850, such as an acceleration sensor 1851, a distance sensor 1852, a fingerprint sensor 1853, and a temperature sensor 1854. The terminal device may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, a light sensor, and a motion sensor.

[0474] The audio circuit 1860, the speaker 1861, and the microphone 1862 can provide an audio interface between the user and the terminal device. The audio circuit 1860 can transmit the electrical signal converted from the received audio data to the speaker 1861, which is converted into a sound signal for output. The terminal device can also be equipped with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 1862 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1860 and converted into audio data, and then the audio data is output to the communication component 1810 to be sent to, for example, another terminal device, or the audio data is output to the memory 1820 for further processing.

[0475] The Bluetooth module 1870 is used to exchange information with other Bluetooth devices having Bluetooth modules through the Bluetooth protocol. For example, the terminal device can establish a Bluetooth connection with a wearable electronic device (such as a smart watch) that also has a Bluetooth module through the Bluetooth module 1870 to exchange data.

[0476] The processor 1880 is the control center of the terminal device. It uses various interfaces and lines to connect various parts of the entire terminal. It executes various functions of the terminal device and processes data by running or executing software programs stored in the memory 1820 and calling data stored in the memory 1820. In some embodiments, the processor 1880 may include one or more processing units; the processor 1880 may also integrate an application processor and a baseband processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the baseband processor mainly processes wireless communications. It is understandable that the above-mentioned baseband processor may not be integrated into the processor 1880. In the present application, the processor 1880 can run the operating system, application programs, user interface display and touch response, as well as the service migration method of the embodiment of the present application. In addition, the processor 1880 is coupled to the display unit 1830.

[0477] In some possible implementations, various aspects of the service migration method provided in the present application may also be implemented in the form of a program product, which includes a computer program. When the program product is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of the service migration method according to various exemplary implementations of the present application described above in this specification. For example, the electronic device may execute the following steps: Figure 4 or Fig.10 Follow the steps shown in .

[0478] The program product may adopt any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0479] The program product of the embodiment of the present application may adopt a portable compact disk read-only memory (CD-ROM) and include a computer program, and can be run on an electronic device. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium containing or storing a program, which can be used by or in combination with a command execution system, apparatus, or device.

[0480] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with a command execution system, apparatus, or device.

[0481] The computer program embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0482] The computer program for performing the operation of the present application can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and also conventional procedural programming languages ​​such as "C" language or similar programming languages. The computer program can be executed entirely on the user electronic device, partially on the user electronic device, as an independent software package, partially on the user electronic device and partially on the remote electronic device, or completely on the remote electronic device or server. In the case of involving a remote electronic device, the remote electronic device can be connected to the user electronic device through any type of network including a local area network (LAN) or a wide area network (WAN), or can be connected to an external electronic device (e.g., using an Internet service provider to connect through the Internet).

[0483] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.

[0484] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

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

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

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

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

[0489] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0490] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A service migration method, characterized in that: Applied to an automated migration platform, the method comprises: Obtain the starting cluster to be migrated, and the destination cluster assigned to each business instance to be migrated in the starting cluster; the starting cluster and each destination cluster belong to different availability zones; the destination cluster includes a destination container cluster and a destination physical machine cluster in which it is located, and the destination cluster corresponding to each business instance to be migrated is set by the migration logic orchestration platform in response to the migration task configuration instruction in the following manner: the container clusters contained in the candidate physical machine clusters that meet the migration task configuration instruction are formed into a candidate container cluster group; for each business instance to be migrated, according to the pre-configured business deployment strategy, select the destination container cluster assigned to the business instance to be migrated from the candidate container cluster group; the business deployment strategy includes: an affinity strategy for ensuring that the forwarding plane and the control plane are deployed nearby; For each service instance to be migrated, perform the following migration operations: Sending service configuration information determined based on the service instance to be migrated to a destination cluster corresponding to the service instance to be migrated, so as to create a corresponding new service instance according to the service configuration information under the destination cluster; Restoring the control plane network configuration of the new service instance based on the read service data of the service instance to be migrated; After determining that the control plane network configuration of the new service instance is normal, the relevant configuration of the service instance to be migrated is deleted on the starting cluster to achieve migration of the service instance to be migrated.

2. The method according to claim 1, characterized in that The destination cluster includes a destination physical machine cluster and a destination container cluster; Then, sending the service configuration information determined based on the service instance to be migrated to the destination cluster corresponding to the service instance to be migrated, so as to create a corresponding new service instance under the destination cluster according to the service configuration information, includes: Sending, through a controller, service configuration information determined based on the service instance to be migrated to the destination physical machine cluster for the destination container cluster allocated to the service instance to be migrated; Under the destination container cluster, the corresponding new service instance is created according to the service configuration information.

3. The method according to claim 1, characterized in that The restoring the control plane network configuration of the new service instance based on the read service data of the service instance to be migrated includes: Reading corresponding business data from a database corresponding to the business instance to be migrated; Restoring the Border Gateway Protocol (BGP) neighbor data of the service instance to be migrated according to the service data, forming a new BGP neighbor of the new service instance, and performing BGP neighbor negotiation and routing learning through the new BGP neighbor; If the state of the new BGP neighbor is normal, the old BGP neighbor corresponding to the service instance to be migrated is closed, and the new BGP neighbor is enabled.

4. The method according to any one of claims 1 to 3, characterized in that For each service instance to be migrated, in the process of performing a migration operation on the service instance to be migrated, the method further includes: After each migration sub-operation is executed, check whether the current business is normal; If it is confirmed that the current service is abnormal, the corresponding rollback sub-process is executed; wherein the migration sub-operation includes at least one of the following: Sending service configuration information determined based on the service instance to be migrated to a destination cluster corresponding to the service instance to be migrated, so as to create a corresponding new service instance according to the service configuration information under the destination cluster; Restoring the control plane network configuration of the new service instance based on the read service data of the service instance to be migrated; After determining that the control plane network configuration of the new service instance is normal, the relevant configuration of the service instance to be migrated is deleted on the starting cluster.

5. A service migration method, characterized in that: Applied to the migration logic orchestration platform, the method includes: In response to the migration task configuration instruction, determine the starting cluster of the migration indicated by the current migration task, each service instance to be migrated in the starting cluster, and a candidate physical machine cluster that meets the migration task configuration instruction; The container clusters included in each determined candidate physical machine cluster are combined into a candidate container cluster group; For each service instance to be migrated, according to a preconfigured service deployment strategy, a destination container cluster allocated to the service instance to be migrated is selected from the candidate container cluster group; the service deployment strategy includes: an affinity strategy for ensuring that the forwarding plane and the control plane are deployed nearby; The starting cluster, the business instances to be migrated and their corresponding destination clusters are sent to the automated migration platform, the starting cluster and the destination clusters belong to different availability zones, the destination cluster includes a destination container cluster and the destination physical machine cluster where it is located, so that the automated migration platform creates a corresponding new business instance under the corresponding destination cluster for each business instance to be migrated; based on the business data of the business instance to be migrated read, the control plane network configuration of the new business instance is restored; after determining that the control plane network configuration is normal, the relevant configuration of the business instance to be migrated is deleted to realize the migration of the business instance to be migrated.

6. The method according to claim 5, characterized in that The service deployment strategy also includes: an anti-affinity strategy for ensuring disaster recovery between service instances.

7. The method according to claim 5, characterized in that The determining of a candidate physical machine cluster that complies with the migration task configuration instruction includes: If the current migration task indicates a desired destination availability zone for migration, determining the candidate physical machine cluster to be a physical machine cluster in the destination availability zone; If the current migration task indicates a physical machine cluster to be migrated, determining the candidate physical machine cluster to be the indicated physical machine cluster to be migrated; If the current migration task does not indicate the desired destination availability zone and physical machine cluster for migration, the candidate physical machine cluster is determined to be a physical machine cluster on a candidate availability zone; the candidate availability zone is an availability zone other than the availability zone where the starting cluster is located.

8. The method according to claim 6, characterized in that The affinity strategy is: the control plane cluster and the forwarding plane cluster corresponding to the business instance belong to the same availability zone; the anti-affinity strategy includes at least one of the following: anti-affinity strategy 1 to ensure that business instances cross container clusters, and anti-affinity strategy 2 to ensure that business instances cross physical machine clusters; The selecting, from the candidate container cluster group according to the preconfigured service deployment strategy, a destination container cluster allocated to the service instance to be migrated includes: Selecting a reference container cluster allocated to the service instance to be migrated from the candidate container cluster group; Analyzing in sequence whether the reference container cluster satisfies the affinity policy and the anti-affinity policy; If both the affinity policy and the anti-affinity policy are satisfied, the reference container cluster is used as the destination container cluster corresponding to the service instance to be migrated; If the corresponding service deployment strategy is not satisfied, the reference container cluster is deleted from the candidate container cluster group, and the process returns to the step of selecting a reference container cluster allocated to the service instance to be migrated from the candidate container cluster group until the destination container cluster is selected or the candidate container cluster group is empty.

9. The method according to claim 8, characterized in that If the business instances to be migrated include multiple dedicated channels under the same dedicated gateway, the anti-affinity strategy includes: anti-affinity strategy one, anti-affinity strategy two and anti-affinity strategy three. The anti-affinity strategy three is: the multiple dedicated channels under the same dedicated gateway must simultaneously satisfy anti-affinity strategy one and anti-affinity strategy two.

10. The method according to claim 8 or 9, characterized in that If the corresponding service deployment strategy is not satisfied, the method further includes: The reference container cluster currently allocated to the service instance to be migrated is presented, and prompt information that the reference container cluster does not satisfy the corresponding service deployment strategy is presented.

11. The method according to claim 10, characterized in that The presentation styles of prompt information corresponding to different business deployment strategies are different.

12. A service migration system, characterized in that: The system includes: a migration logic orchestration platform and an automated migration platform; The migration logic orchestration platform is used to respond to the migration task configuration instruction, determine the starting cluster of the migration indicated by this migration task, each business instance to be migrated in the starting cluster, and the candidate physical machine cluster that meets the migration task configuration instruction; the container clusters contained in each determined candidate physical machine cluster are formed into a candidate container cluster group; for each business instance to be migrated, according to the pre-configured business deployment strategy, select the destination container cluster assigned to the business instance to be migrated from the candidate container cluster group; the business deployment strategy includes: an affinity strategy for ensuring that the forwarding plane and the control plane are deployed nearby; the starting cluster and each destination cluster belong to different availability zones, and the destination cluster includes the destination container cluster and the destination physical machine cluster where it is located; the starting cluster, each business instance to be migrated and the corresponding destination cluster are sent to the automated migration platform; The automated migration platform is used to send, for each business instance to be migrated, business configuration information determined based on the business instance to be migrated to a destination cluster corresponding to the business instance to be migrated, so as to create a corresponding new business instance under the destination cluster according to the business configuration information; restore the control plane network configuration of the new business instance based on the read business data of the business instance to be migrated; and after determining that the control plane network configuration of the new business instance is normal, delete the relevant configuration of the business instance to be migrated on the starting cluster to realize the migration of the business instance to be migrated.

13. The system of claim 12, wherein: The system further comprises: a migration result display platform for displaying a first migration result sent by the automated migration platform; the first migration result indicates that the migration is normal; The automated migration platform is further configured to: after each migration sub-operation is executed, detect whether the current business is normal; if it is confirmed that the current business is abnormal, execute the corresponding rollback sub-process, and send a second migration result for the business instance to be migrated to the migration result display platform, wherein the second migration result indicates that the migration is abnormal; wherein the migration sub-operation includes at least one of the following: Sending service configuration information determined based on the service instance to be migrated to a destination cluster corresponding to the service instance to be migrated, so as to create a corresponding new service instance according to the service configuration information under the destination cluster; Restoring the control plane network configuration of the new service instance based on the read service data of the service instance to be migrated; After determining that the control plane network configuration of the new service instance is normal, deleting the relevant configuration of the service instance to be migrated on the starting cluster; The migration result display platform is further used to: display a second migration result for the service instance to be migrated.

14. A service migration device, characterized in that: include: An acquisition unit, used to acquire a starting cluster to be migrated and a destination cluster allocated to each service instance to be migrated in the starting cluster; The starting cluster and each destination cluster belong to different availability zones; The destination cluster includes a destination container cluster and a destination physical machine cluster where the destination cluster is located. The destination cluster corresponding to each service instance to be migrated is set by the migration logic orchestration platform in response to the migration task configuration instruction in the following manner: the container clusters included in the candidate physical machine clusters that meet the migration task configuration instruction are formed into a candidate container cluster group; for each service instance to be migrated, according to the pre-configured service deployment policy, a destination container cluster allocated to the service instance to be migrated is selected from the candidate container cluster group; The service deployment strategy includes: an affinity strategy for ensuring that the forwarding plane and the control plane are deployed in close proximity; The migration unit is used to perform the following migration operations for each service instance to be migrated: Sending service configuration information determined based on the service instance to be migrated to a destination cluster corresponding to the service instance to be migrated, so as to create a corresponding new service instance according to the service configuration information under the destination cluster; Restoring the control plane network configuration of the new service instance based on the read service data of the service instance to be migrated; After determining that the control plane network configuration of the new service instance is normal, the relevant configuration of the service instance to be migrated is deleted on the starting cluster to achieve migration of the service instance to be migrated.

15. A service migration device, characterized in that: include: A response unit, configured to determine, in response to a migration task configuration instruction, a starting cluster for migration indicated by the current migration task, each service instance to be migrated in the starting cluster, and a candidate physical machine cluster that meets the migration task configuration instruction; An allocation unit is used to form a candidate container cluster group from the container clusters included in each determined candidate physical machine cluster; for each service instance to be migrated, according to a preconfigured service deployment policy, select a destination container cluster allocated to the service instance to be migrated from the candidate container cluster group; The service deployment strategy includes: an affinity strategy for ensuring that the forwarding plane and the control plane are deployed in close proximity; A transmission unit is used to send the starting cluster, the business instances to be migrated and their corresponding destination clusters to an automated migration platform, wherein the starting cluster and the destination clusters belong to different availability zones, and the destination cluster includes a destination container cluster and a destination physical machine cluster in which it is located, so that the automated migration platform creates a corresponding new business instance under the corresponding destination cluster for each business instance to be migrated; based on the business data of the business instance to be migrated read, restore the control plane network configuration of the new business instance; after determining that the control plane network configuration is normal, delete the relevant configuration of the business instance to be migrated to achieve the migration of the business instance to be migrated.

16. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any one of the methods of claims 1 to 11.

17. A computer-readable storage medium, characterized in that: It includes a computer program, and when the computer program is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of any method described in claims 1 to 11.

18. A computer program product, characterized in that The method comprises a computer program stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the electronic device executes the steps of any one of the methods described in claims 1 to 11.

Citation Information

Patent Citations

  • Instance migration method and device and related equipment

    CN115701585A

  • Methods and Systems for Storage Virtual Machine Migration Between Clusters of a Networked Storage System

    US20230137443A1