Methods, apparatus, electronic devices and storage media for cloud server migration

By building communication tunnels and routing tables during cloud host migration, and dynamically switching network traffic to the target resource pool, the problem of service interruption during cross-resource pool migration was solved, cross-resource pool service interoperability was achieved, and system availability was improved.

CN119172202BActive Publication Date: 2026-04-07CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

Existing technologies for migrating cloud servers across resource pools are prone to causing business interruptions and cannot achieve business interoperability across resource pools.

Method used

By obtaining information about the cloud host to be migrated and the resource pool information, a communication tunnel and routing table are created, and network traffic is dynamically switched to the target resource pool to achieve business interoperability across resource pools.

Benefits of technology

During the cloud server migration process, cross-resource pool business interoperability was achieved, avoiding business interruption and improving resource utilization and system availability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119172202B_ABST
    Figure CN119172202B_ABST
Patent Text Reader

Abstract

The cloud server migration method, apparatus, electronic device, and storage medium disclosed herein acquire cloud server information of the cloud server to be migrated, first resource pool information of the original resource pool, and second resource pool information of the target resource pool; based on the first and second resource pool information, a communication tunnel is created between the original resource pool and the target resource pool, and a blank cloud server is created in the target resource pool; the cloud server to be migrated is migrated to the blank cloud server through the communication tunnel, resulting in a migrated cloud server; a routing table is configured between the original resource pool and the target resource pool based on the first and second resource pool information, and service interoperability between other cloud servers and the migrated cloud server is achieved based on the routing table and the communication tunnel. By constructing the communication tunnel and the routing table, network traffic can be switched to the target resource pool according to the cloud server migration status, realizing cross-resource pool service interoperability during the migration of cloud servers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of data processing technology, and in particular to a method and apparatus for migrating cloud hosts, electronic devices, and storage media. Background Technology

[0002] With the rapid development of cloud computing technology, the demand for computing resources from enterprises and individual users is constantly growing. Resource management in cloud computing environments has become one of the key challenges, especially how to efficiently utilize idle resources in multiple resource pools and how to achieve load balancing and failover.

[0003] Existing cloud computing resource management technologies mainly rely on resource pooling, which centrally manages computing resources (such as cloud hosts). However, resource pooling technology suffers from problems such as low resource utilization, difficulty in load balancing, and limited failover. To address these issues, various technologies for migrating cloud hosts across resource pools have emerged, such as image migration, third-party tool migration, and file migration, to improve resource utilization, achieve load balancing and failover, thereby enhancing the overall performance and availability of the cloud computing environment.

[0004] However, existing technologies for migrating cloud servers across resource pools are prone to causing service interruptions during the migration process, making it impossible to achieve cross-resource pool service interoperability. Therefore, how to achieve cross-resource pool service interoperability during the migration of cloud servers is an urgent problem to be solved. Summary of the Invention

[0005] This disclosure provides a method, apparatus, electronic device, and storage medium for migrating cloud servers. Its main purpose is to address the problem that existing technologies for migrating cloud servers across resource pools easily cause service interruptions during migration, resulting in the inability to achieve cross-resource pool service interoperability.

[0006] According to a first aspect of this disclosure, a method for migrating a cloud server is provided, comprising:

[0007] Obtain the cloud host information of the cloud host to be migrated, the first resource pool information of the original resource pool where the cloud host to be migrated is located, and the second resource pool information of the target resource pool; wherein, the target resource pool is the resource pool to which the cloud host to be migrated is migrated.

[0008] Based on the first resource pool information and the second resource pool information, a communication tunnel is created between the original resource pool and the target resource pool, and a blank cloud host is created in the target resource pool based on the cloud host information.

[0009] The cloud host data of the cloud host to be migrated is migrated to the blank cloud host through the communication tunnel to obtain the migrated cloud host; wherein, the cloud host data contains all the data of the cloud host to be migrated;

[0010] Configure routing tables for the original resource pool and the target resource pool based on the first resource pool information and the second resource pool information, and perform service communication between other cloud hosts and the migrated cloud hosts based on the routing tables and the communication tunnel, wherein the other cloud hosts are cloud hosts in the original resource pool other than the cloud host to be migrated.

[0011] Optionally, after obtaining the cloud server information of the cloud server to be migrated, the first resource pool information of the original resource pool where the cloud server to be migrated is located, and the second resource pool information of the target resource pool, the method further includes:

[0012] A first port is created in the original resource pool based on the first resource pool information, and a virtual local area network is allocated to each first subnet in the original resource pool.

[0013] Based on the first resource pool information and the second resource pool information, a network component is created in the target resource pool; the network component includes at least a second subnet and a second port.

[0014] Optionally, creating a communication tunnel between the original resource pool and the target resource pool based on the first resource pool information and the second resource pool information includes:

[0015] A first communication tunnel is created between a first defined gateway and a first protocol gateway based on the first resource pool information; wherein, the first protocol gateway is the protocol gateway in the original resource pool, and the first defined gateway is the software-defined network gateway in the original resource pool;

[0016] A second communication tunnel is created between a second defined gateway and a second protocol gateway based on the second resource pool information; wherein, the second protocol gateway is a protocol gateway in the target resource pool, and the second defined gateway is a software-defined network gateway in the original resource pool;

[0017] Based on the first resource pool information and the second resource pool information, a third communication tunnel is created between the first protocol gateway and the second protocol gateway, wherein the communication tunnel includes the first communication tunnel, the second communication tunnel and the third communication tunnel.

[0018] Optionally, configuring the routing table between the original resource pool and the target resource pool based on the first resource pool information and the second resource pool information includes:

[0019] Configure a first routing table between the first other network element and the first protocol gateway according to the first resource pool information; wherein, the first protocol gateway is the protocol gateway in the original resource pool, and the first other network element is the network element device in the original resource pool other than the first protocol gateway;

[0020] Configure a third routing table between the second other network element and the second protocol gateway according to the second resource pool information; wherein, the second protocol gateway is the protocol gateway in the target resource pool, and the second other network element is the network element device in the target resource pool other than the second protocol gateway;

[0021] Based on the first resource pool information and the second resource pool information, a third routing table is configured between the first protocol gateway and the second protocol gateway, wherein the routing table includes the first routing table, the second routing table and the third routing table.

[0022] Optionally, the step of enabling service interoperability between other cloud hosts and the migrated cloud hosts based on the routing table and the communication tunnel includes:

[0023] In the original resource pool, the Layer 2 traffic of each corresponding first subnet is forwarded through the virtual local area network, and the service traffic is sent to the first protocol gateway;

[0024] In response to the service traffic, the first protocol gateway periodically sends the first port information of the first port to the switch;

[0025] The switch sends the port information to a preset controller, and the preset controller controls a preset virtual machine to perform host flow table update processing based on the first port information and the routing table to obtain the first access path.

[0026] In the target resource pool, the second port information of the second port is sent to the second protocol gateway through the communication tunnel for three-layer traffic forwarding;

[0027] Based on the second port information and the routing table, the host flow table is updated to obtain the second access path;

[0028] Business communication between the other cloud hosts and the migrated cloud hosts is performed according to the first access path and the second access path.

[0029] Optionally, after enabling service interoperability between other cloud hosts and the migrated cloud hosts based on the routing table and the communication tunnel, the method further includes:

[0030] Obtain business communication information between the other cloud hosts and the migrated cloud hosts;

[0031] If the business interoperability is determined to be completed based on the business interoperability information, delete the cloud host to be migrated, the first protocol gateway, the second protocol gateway, the first port, the second port, and the routing table.

[0032] Optionally, after configuring the routing tables between the original resource pool and the target resource pool based on the first resource pool information and the second resource pool information, the method further includes:

[0033] In response to a cloud host migration command that migrates a first cloud host in the target resource pool to the original resource pool, the data of the first cloud host is migrated to a second cloud host through the communication tunnel; wherein, the second cloud host is a blank cloud host in the original resource pool;

[0034] The second cloud host and the cloud hosts in the target resource pool other than the first cloud host are interconnected according to the routing table and the communication tunnel.

[0035] According to a second aspect of this disclosure, an apparatus for migrating cloud servers is provided, comprising:

[0036] The acquisition unit is used to acquire cloud host information of the cloud host to be migrated, first resource pool information of the original resource pool where the cloud host to be migrated is located, and second resource pool information of the target resource pool; wherein, the target resource pool is the resource pool to which the cloud host to be migrated is migrated.

[0037] A creation unit is configured to create a communication tunnel between the original resource pool and the target resource pool based on the first resource pool information and the second resource pool information, and to create a blank cloud host in the target resource pool based on the cloud host information.

[0038] A migration unit is used to migrate the cloud host data of the cloud host to be migrated to the blank cloud host through the communication tunnel, so as to obtain a cloud host with the migration completed; wherein, the cloud host data includes all the data of the cloud host to be migrated;

[0039] A configuration unit is configured to configure a routing table between the original resource pool and the target resource pool based on the first resource pool information and the second resource pool information.

[0040] The interconnection unit is used to enable service interconnection between other cloud hosts and the migrated cloud host according to the routing table and the communication tunnel, wherein the other cloud hosts are cloud hosts in the original resource pool other than the cloud host to be migrated.

[0041] Optionally, the creation unit is further configured to:

[0042] A first port is created in the original resource pool based on the first resource pool information, and a virtual local area network is allocated to each first subnet in the original resource pool.

[0043] Based on the first resource pool information and the second resource pool information, a network component is created in the target resource pool; the network component includes at least a second subnet and a second port.

[0044] Optionally, the creation unit is further configured to:

[0045] A first communication tunnel is created between a first defined gateway and a first protocol gateway based on the first resource pool information; wherein, the first protocol gateway is the protocol gateway in the original resource pool, and the first defined gateway is the software-defined network gateway in the original resource pool;

[0046] A second communication tunnel is created between a second defined gateway and a second protocol gateway based on the second resource pool information; wherein, the second protocol gateway is a protocol gateway in the target resource pool, and the second defined gateway is a software-defined network gateway in the original resource pool;

[0047] Based on the first resource pool information and the second resource pool information, a third communication tunnel is created between the first protocol gateway and the second protocol gateway, wherein the communication tunnel includes the first communication tunnel, the second communication tunnel and the third communication tunnel.

[0048] Optionally, the configuration unit is further configured to:

[0049] Configure a first routing table between the first other network element and the first protocol gateway according to the first resource pool information; wherein, the first protocol gateway is the protocol gateway in the original resource pool, and the first other network element is the network element device in the original resource pool other than the first protocol gateway;

[0050] Configure a third routing table between the second other network element and the second protocol gateway according to the second resource pool information; wherein, the second protocol gateway is the protocol gateway in the target resource pool, and the second other network element is the network element device in the target resource pool other than the second protocol gateway;

[0051] Based on the first resource pool information and the second resource pool information, a third routing table is configured between the first protocol gateway and the second protocol gateway, wherein the routing table includes the first routing table, the second routing table and the third routing table.

[0052] Optionally, the interconnection unit includes:

[0053] The forwarding module is used to forward the Layer 2 traffic of each of the first subnets in the original resource pool through the virtual local area network and send the service traffic to the first protocol gateway.

[0054] The sending module is used to periodically send the first port information of the first port to the switch in response to the service traffic;

[0055] The update module is used to send the port information to a preset controller through the switch, and control a preset virtual machine to perform host flow table update processing based on the first port information and the routing table through the preset controller to obtain the first access path;

[0056] The forwarding module is also used to perform Layer 3 traffic forwarding in the target resource pool through the communication tunnel, and to send the second port information of the second port to the second protocol gateway.

[0057] The update module is also used to perform host flow table update processing based on the second port information and the routing table to obtain the second access path;

[0058] The interoperability module is used to enable business interoperability between the other cloud hosts and the migrated cloud hosts based on the first access path and the second access path.

[0059] Optionally, the acquisition unit is further configured to acquire business interoperability information between the other cloud hosts and the migrated cloud hosts;

[0060] The device further includes:

[0061] The deletion unit is used to delete the cloud host to be migrated, the first protocol gateway, the second protocol gateway, the first port, the second port, and the routing table when it is determined that the service interoperability is completed based on the service interoperability information.

[0062] Optionally, the migration unit is further configured to, in response to a cloud host migration instruction to migrate a first cloud host in the target resource pool to the original resource pool, migrate the data of the first cloud host to a second cloud host through the communication tunnel; wherein the second cloud host is a blank cloud host in the original resource pool;

[0063] The interconnection unit is also used to perform service interconnection between the second cloud host and cloud hosts in the target resource pool other than the first cloud host, according to the routing table and the communication tunnel.

[0064] According to a third aspect of this disclosure, an electronic device is provided, comprising:

[0065] At least one processor; and

[0066] A memory communicatively connected to the at least one processor; wherein,

[0067] The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect above.

[0068] According to a fourth aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are configured to cause the computer to perform the method described in the first aspect above.

[0069] According to a fifth aspect of this disclosure, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the method described in the first aspect above.

[0070] The cloud server migration method, apparatus, electronic device, and storage medium disclosed herein acquire cloud server information of the cloud server to be migrated, first resource pool information of the original resource pool where the cloud server to be migrated is located, and second resource pool information of the target resource pool; wherein, the target resource pool is the resource pool to which the cloud server to be migrated is migrated; based on the first resource pool information and the second resource pool information, a communication tunnel is created between the original resource pool and the target resource pool, and a blank cloud server is created in the target resource pool based on the cloud server information; the cloud server data of the cloud server to be migrated is migrated to the blank cloud server through the communication tunnel to obtain a migrated cloud server; wherein, the cloud server data includes all data of the cloud server to be migrated; a routing table is configured between the original resource pool and the target resource pool based on the first resource pool information and the second resource pool information, and service communication between other cloud servers and the migrated cloud server is performed based on the routing table and the communication tunnel, wherein, the other cloud servers are cloud servers in the original resource pool other than the cloud server to be migrated. Compared with related technologies, the embodiments of this disclosure, by constructing communication tunnels and routing tables, can dynamically switch network traffic to the target resource pool according to the migration status of the cloud host during the migration process, thereby achieving cross-resource pool service interoperability during the migration of cloud hosts across resource pools.

[0071] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this application, nor is it intended to limit the scope of this application. Other features of this application will become readily apparent from the following description. Attached Figure Description

[0072] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:

[0073] Figure 1 This is a flowchart illustrating a method for migrating a cloud server according to an embodiment of the present disclosure.

[0074] Figure 2 A schematic diagram of a component creation process provided in an embodiment of this disclosure;

[0075] Figure 3 A logical network diagram illustrating a cloud disk migration method provided in an embodiment of this disclosure;

[0076] Figure 4 This is a flowchart illustrating another cloud disk migration method provided in an embodiment of this disclosure;

[0077] Figure 5 A schematic diagram of a cloud server migration apparatus provided in an embodiment of this disclosure;

[0078] Figure 6 A schematic diagram of another cloud server migration apparatus provided in an embodiment of this disclosure;

[0079] Figure 7 This is a schematic block diagram of an electronic device provided in an embodiment of the present disclosure. Detailed Implementation

[0080] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0081] The following description, with reference to the accompanying drawings, outlines a method, apparatus, electronic device, and storage medium for migrating cloud servers according to embodiments of this disclosure.

[0082] Figure 1 This is a flowchart illustrating a method for migrating a cloud server provided in an embodiment of this disclosure.

[0083] like Figure 1 As shown, the method includes the following steps:

[0084] Step 101: Obtain the cloud host information of the cloud host to be migrated, the first resource pool information of the original resource pool where the cloud host to be migrated is located, and the second resource pool information of the target resource pool; wherein, the target resource pool is the resource pool to which the cloud host to be migrated is migrated.

[0085] In this embodiment of the disclosure, the cloud host information includes, but is not limited to, the cloud host's data information, hard disk information, CPU information, attribute information, etc., and the first resource pool information includes, but is not limited to, the resource pool's network information, network element information, etc., and the second resource pool information also includes, but is not limited to, the resource pool's network information, network element information, etc. Specifically, this embodiment of the disclosure does not limit the content of the cloud host information, the first resource pool information, and the second resource pool information.

[0086] It should be noted that the original resource pool and the target resource pool of the cloud host to be migrated belong to different resource pools and different availability zones (AZs), and are managed by different heterogeneous software-defined network (SDN) controllers. Therefore, the cloud host information of the cloud host to be migrated is obtained, and the original resource pool where the cloud host to be migrated is located and the relevant information of the target resource pool to which the cloud host to be migrated is migrated are determined. The original resource pool can be any resource pool, and the target resource pool can be any resource pool other than the original resource pool.

[0087] Step 102: Based on the first resource pool information and the second resource pool information, create a communication tunnel between the original resource pool and the target resource pool, and create a blank cloud host in the target resource pool based on the cloud host information.

[0088] In this embodiment of the disclosure, since traffic or data needs to be transmitted, a communication channel needs to be created. The type of the communication tunnel includes, but is not limited to, VXLAN tunnels, etc. Specifically, this embodiment of the disclosure does not limit the type of the communication tunnel.

[0089] It should be noted that when creating the communication tunnel, a communication tunnel between specified network element devices needs to be created in the original resource pool, then a communication tunnel between specified network element devices needs to be created in the target resource pool, and finally a communication tunnel needs to be created between the original resource pool and the target resource pool.

[0090] When the blank cloud host is created based on the cloud host information, it is created based on the cloud host information such as hard drive and specifications carried in the cloud host information. The hard drive and specifications of the blank cloud host are the same as those of the cloud host to be migrated. At the same time, a network card is also created simultaneously when the blank cloud host is created.

[0091] Step 103: Migrate the cloud host data of the cloud host to be migrated to the blank cloud host through the communication tunnel to obtain the migrated cloud host; wherein, the cloud host data contains all the data of the cloud host to be migrated.

[0092] In this embodiment of the disclosure, all data in the cloud host to be migrated is migrated to the blank cloud host to complete the cloud host migration operation. The cloud host data is migrated through the communication tunnel, that is, the cloud host system data disk and operating system memory are dynamically migrated across availability zones (AZs) heterogeneous SDN through the service network.

[0093] Step 104: Configure the routing table between the original resource pool and the target resource pool according to the first resource pool information and the second resource pool information, and perform service interconnection between other cloud hosts and the migrated cloud hosts according to the routing table and the communication tunnel, wherein the other cloud hosts are cloud hosts in the original resource pool other than the cloud host to be migrated.

[0094] In this embodiment of the disclosure, when creating the routing table, it is necessary to create a routing table between specified network element devices in the original resource pool, then create a routing table between specified network element devices in the target resource pool, and finally create a routing table between the original resource pool and the target resource pool.

[0095] Through the routing table and the communication tunnel, when migrating different cloud hosts under the same subnet of a Virtual Private Cloud (VPC) across heterogeneous SDN cross-AZ resource pools, the routing table can dynamically publish detailed routes and update the traffic between the SDN controller and the virtual machine. This enables the routing of Layer 2 and Layer 3 network traffic between the original resource pool to the cloud hosts in the target resource pool, achieving Layer 2 and Layer 3 interconnection between heterogeneous SDN cross-AZ resource pools and VPCs, and completing the service interconnection between cloud hosts in the original resource pool and cloud hosts in the target resource pool.

[0096] The cloud server migration method disclosed herein includes obtaining cloud server information of the cloud server to be migrated, first resource pool information of the original resource pool where the cloud server to be migrated is located, and second resource pool information of the target resource pool; wherein, the target resource pool is the resource pool to which the cloud server to be migrated is migrated; based on the first resource pool information and the second resource pool information, a communication tunnel is created between the original resource pool and the target resource pool, and a blank cloud server is created in the target resource pool based on the cloud server information; the cloud server data of the cloud server to be migrated is migrated to the blank cloud server through the communication tunnel to obtain a migrated cloud server; wherein, the cloud server data includes all the data of the cloud server to be migrated; a routing table is configured between the original resource pool and the target resource pool based on the first resource pool information and the second resource pool information, and service communication between other cloud servers and the migrated cloud server is performed based on the routing table and the communication tunnel, wherein, the other cloud servers are cloud servers in the original resource pool other than the cloud server to be migrated. Compared with related technologies, the embodiments of this disclosure, by constructing communication tunnels and routing tables, can dynamically switch network traffic to the target resource pool according to the migration status of the cloud host during the migration process, thereby achieving cross-resource pool service interoperability during the migration of cloud hosts across resource pools.

[0097] In one possible implementation of this disclosure, after obtaining the first resource pool information and the second resource pool information, it is also necessary to create some virtual components in the original resource pool and the target resource pool to ensure that cloud host migration and business interoperability between the two resource pools are possible. Therefore, in order to realize cloud host migration, this disclosure provides a schematic diagram of the component creation process, such as... Figure 2 As shown, it includes:

[0098] Step 201: Create a first port in the original resource pool according to the first resource pool information, and allocate a virtual local area network to each first subnet in the original resource pool.

[0099] In this embodiment of the disclosure, the type of the first port includes, but is not limited to, a bridge port, etc., for forwarding secondary traffic in the original resource pool. Since when migrating cloud hosts, in order to enable different subnets of a VPC to migrate simultaneously without affecting each other, it is necessary to allocate the virtual local area network (VLAN) to each first subnet to isolate the different subnets.

[0100] It should also be noted that since each of the first subnets is allocated a virtual local area network (VLAN), the embodiments of this disclosure can support the simultaneous migration of different subnets of a VPC, and can also support the simultaneous migration of different cloud hosts in a subnet.

[0101] Step 202: Based on the first resource pool information and the second resource pool information, create a network component in the target resource pool; the network component includes at least a second subnet and a second port.

[0102] In this embodiment of the disclosure, the second port is a virtual port followed by a fake port, which is also used for forwarding Layer 2 traffic. The network component created in the target resource pool is the same as the network component existing in the original resource pool.

[0103] The network components include, but are not limited to: network, router, subnet associated route (when first created), security group, port2 (the second port) (specifying IP and MAC addresses), i.e., the IP and MAC information corresponding to the migrated cloud host, etc. Specifically, this disclosure does not limit the content of the network components.

[0104] In one possible implementation of this disclosure, as a refinement of step 102 above, when creating the communication tunnel between the original resource pool and the target resource pool, the following methods can also be used, but are not limited to: creating a first communication tunnel between a first defined gateway and a first protocol gateway based on the first resource pool information; wherein, the first protocol gateway is a protocol gateway in the original resource pool, and the first defined gateway is a software-defined network gateway in the original resource pool; creating a second communication tunnel between a second defined gateway and a second protocol gateway based on the second resource pool information; wherein, the second protocol gateway is a protocol gateway in the target resource pool, and the second defined gateway is a software-defined network gateway in the original resource pool; creating a third communication tunnel between the first protocol gateway and the second protocol gateway based on the first resource pool information and the second resource pool information, wherein the communication tunnel includes the first communication tunnel, the second communication tunnel, and the third communication tunnel.

[0105] In this embodiment of the disclosure, in the original resource pool: a tunnel is created between PGW1 (first protocol gateway) and the target resource pool PGW2 (second protocol gateway) (if none), and a tunnel is created between PGW1 and the SDN-GW (first defined gateway) in the original resource pool (if none); in the target resource pool: a tunnel is created between PGW2 and the original resource pool PGW1 (if none), and a tunnel is created between PGW2 and the SDN-GW (second defined gateway) in the target resource pool (if none).

[0106] It should be noted that if only a tunnel between the first protocol gateway in the original resource pool and the second protocol gateway in the target resource pool is created, it means that only a port on the original resource pool side is created. Only after the tunnel between the second protocol gateway in the target resource pool and the first protocol gateway in the original resource pool is created can it be determined that both the original resource pool and the target resource pool have created tunnel ports, and only then can the original resource pool and the target resource pool communicate with each other.

[0107] In one possible implementation of this disclosure, as a refinement of step 104 above, when configuring the routing tables of the original resource pool and the target resource pool, the following methods can also be used, but are not limited to: configuring a first routing table between a first other network element and a first protocol gateway based on the first resource pool information; wherein, the first protocol gateway is a protocol gateway in the original resource pool, and the first other network element is a network element device in the original resource pool other than the first protocol gateway; configuring a third routing table between a second other network element and a second protocol gateway based on the second resource pool information; wherein, the second protocol gateway is a protocol gateway in the target resource pool, and the second other network element is a network element device in the target resource pool other than the second protocol gateway; configuring a third routing table between the first protocol gateway and the second protocol gateway based on the first resource pool information and the second resource pool information, wherein the routing table includes the first routing table, the second routing table, and the third routing table.

[0108] In this embodiment of the disclosure, in the original resource pool: a routing table (if none) is configured for PGW1 pointing to subnet 1 (first subnet) of SDN-GW within the original resource pool; in the target resource pool: a detailed routing table is configured for PGW2 pointing to port2 (second port) within the target resource pool; between the original resource pool and the target resource pool: a routing table is configured for PGW2 pointing to subnet 1 of PGW1, a detailed routing table is configured for port1 (first port) of AZ1 (original resource pool) in the first subnet pointing from the target resource pool to the original resource pool, a detailed routing table is configured for PGW1 pointing to port2 (second port) of PGW2, etc. Specifically, this embodiment of the disclosure does not limit the specific content of the routing table.

[0109] In one possible implementation of this disclosure, as a refinement of step 104 above, when performing service interoperability between other cloud hosts and the migrated cloud hosts, the following methods can also be used, but are not limited to: In the original resource pool, Layer 2 traffic of each corresponding first subnet is forwarded through the virtual LAN, and the service traffic is sent to the first protocol gateway; in response to the service traffic, the first protocol gateway periodically sends the first port information of the first port to the switch; the port information is sent to a preset controller through the switch, and the preset controller controls a preset virtual machine to perform host flow table update processing based on the first port information and the routing table to obtain a first access path; in the target resource pool, Layer 3 traffic is forwarded through the communication tunnel, and the second port information of the second port is sent to the second protocol gateway; the host flow table is updated based on the second port information and the routing table to obtain a second access path; service interoperability between the other cloud hosts and the migrated cloud hosts is performed based on the first access path and the second access path.

[0110] Specifically, to facilitate understanding of the implementation process of this disclosure embodiment, an example is provided for illustration: In AZ1 (original resource pool), the VTEP gateway (preset switch) is connected to PGW1 through a direct VLAN. The SDN gateway / VTEP (VXLAN tunnel endpoint) forwards Layer 2 traffic of the same subnet to PGW1 through a direct connection line and VLAN. Virtual machine resources under different VPCs can create different VLAN ports to achieve network isolation, so as to realize the simultaneous migration of cloud host services in multiple VPCs.

[0111] In AZ2 (target resource pool), host detailed routes are forwarded at Layer 3. OVS directly forwards the port (first port information) of the peer AZ (original resource pool) to PGW2 via the detailed route and the VXLAN tunnel between the SDN gateway and PGW2. The original resource pool PGW1 initiates periodic sending of gratuitous ARPs corresponding to the port IP (first port information) to the VTEP. After receiving the ARP, the VTEP (preset switch) notifies the SDN controller (preset controller) via VXLAN. The SDN controller then notifies the OVS (preset virtual machine) of the relevant compute nodes to refresh the flow tables. Target resource pool PGW2 is configured with detailed routes pointing to the port (first port) within the resource pool.

[0112] Through the above steps, when migrating different cloud hosts under the same subnet of the same VPC across heterogeneous SDN cross-AZ resource pools, the detailed routes are dynamically published and the SDN controller and OVS traffic are updated to redirect the original resource pool Layer 2 and 3 interconnection network traffic to the destination resource pool cloud host, thus realizing Layer 2 and 3 interconnection between heterogeneous SDN cross-AZ resource pool VPCs.

[0113] In summary, to facilitate understanding of the methods described in this disclosure, a logical network diagram of a cloud disk migration method is provided, as shown in the above embodiments. Figure 3 As shown in the diagram, the VXLAN connections are logical connections, VLANs are crossover straight connections, AZ1 is the original resource pool, and AZ1 portX is a bridge port used for Layer 2 traffic forwarding; AZ2 is the target resource pool, and AZ2 portX is a dummy port used for Layer 2 traffic forwarding. The SDN gateway / VTEP forwards Layer 2 traffic within the same subnet to the PGW via straight connections and VLANs.

[0114] The original resource pool and the target resource pool contain multiple types of network elements, including but not limited to:

[0115] SDN East-West Gateway: In SDN scenarios, it connects Overlay to Unerlay network elements, terminates SDN tunneling technologies such as Overlay VxLAN, and enables east-west interconnection across AZs.

[0116] PGW: Protocol Gateway, which solves the problem of east-west interconnection across SDN vendors and enables unified connection of heterogeneous SDN traffic in regions.

[0117] SDN Controller: All gateways are managed uniformly through the SDN controller. The SDN controller is responsible for the global orchestration of VPC cross-AZ interoperability services and works with VSW to implement flow table distribution.

[0118] VTEP switch: Directly connected to PGW via VLAN, forwards Layer 2 traffic from the same subnet to PGW via VLAN, and achieves network isolation through VLAN port, enabling simultaneous migration of cloud host services from multiple VPCs.

[0119] In one possible implementation of this disclosure, in order to support uninterrupted service during cloud host migration and to automatically delete cloud host-related resources from the original resource pool after cloud host migration is completed without manual intervention, the following method can also be used, but is not limited to: obtaining service interoperability information between the other cloud hosts and the migrated cloud hosts; and deleting the cloud host to be migrated, the first protocol gateway, the second protocol gateway, the first port, the second port, and the routing table when it is determined that service interoperability is completed based on the service interoperability information.

[0120] In this embodiment of the disclosure, after the cloud host migration is completed, the following steps are taken in the original resource pool: the cloud host and cloud disk are deleted, the original compute nodes' OVS flow tables are deleted, and the bridge port is deleted. If all ports are deleted and there are no other services bound to them, the subnet is deleted, and the detailed routes for PGW1 and PGW2 are deleted.

[0121] In one possible implementation of this disclosure, after determining the original resource pool and the target resource pool, cloud hosts can be migrated from the original resource pool to the target resource pool, or vice versa. Therefore, regarding cloud host migration, the following methods can also be used, but are not limited to: in response to a cloud host migration instruction to migrate a first cloud host in the target resource pool to the original resource pool, data from the first cloud host is migrated to a second cloud host through the communication tunnel; wherein, the second cloud host is a blank cloud host in the original resource pool; and service communication is performed between the second cloud host and cloud hosts in the target resource pool other than the first cloud host according to the routing table and the communication tunnel.

[0122] In this embodiment of the disclosure, the first cloud host is a cloud host to be migrated in the target resource pool, and the second cloud host is a blank cloud host created in the original resource pool. When migrating a cloud host, the cloud host migration command can be triggered from the original resource pool or from the target resource pool. That is, when migrating a cloud host, the cloud host can be migrated from the original resource pool to the target resource pool or from the target resource pool to the original resource pool.

[0123] When migrating cloud hosts from the target resource pool to the original resource pool, a communication tunnel and routing table also need to be established. The difference is that the target resource pool does not contain a VTEP switch, and the establishment of the communication tunnel and routing table is not required in the target resource pool. It should be noted that the communication tunnel and routing table established when migrating cloud hosts from the target resource pool to the original resource pool are the same as those established when migrating cloud hosts from the original resource pool to the target resource pool. The difference lies in the steps of establishing the communication tunnel and routing table.

[0124] Furthermore, when migrating cloud hosts from the target resource pool to the original resource pool, the migration can be implemented in the following ways, but is not limited to: obtaining first information of the first cloud host, first resource pool information of the original resource pool, and second resource pool information of the target resource pool; creating the communication tunnel based on the first resource pool information and the second resource pool information, and creating the second cloud host in the original resource pool based on the first information; migrating the data of the first cloud host to the second cloud host through the communication tunnel; configuring the routing table between the target resource pool and the original resource pool based on the first resource pool information and the second resource pool information, and performing service communication between the second cloud host and cloud hosts in the target resource pool other than the first cloud host based on the routing table and the communication tunnel.

[0125] In summary, to facilitate understanding of the implementation process of the cloud disk migration method described in the embodiments of this disclosure, this disclosure provides a flowchart of another cloud disk migration method, as follows: Figure 4 As shown, the steps include, but are not limited to: (1) The original resource pool and the target resource of the migrated cloud host belong to different resource pools and different AZs (Availability Zones), and are managed by different heterogeneous SDN (Software Defined Network) controllers. First, the target cloud host to be migrated is obtained, and the original resource pool of the target cloud host and the target resource pool to which the target cloud host is migrated are determined.

[0126] (2) Synchronize the orchestration information of the target resource pool: AZ2 creates subnets and routers, associates subnets with routes (when creating them for the first time) and security groups, and creates port2 (specifying IP and MAC addresses) to migrate the corresponding IP and MAC information of cloud hosts.

[0127] (3) Orchestrate the original resource pool PGW1: Create a tunnel to the target resource pool PGW2 (if none), create a tunnel to the SDN-GW in the resource pool (if none), and configure a route to subnet1 of the SDN-GW in the resource pool (if none).

[0128] (4) Orchestrate target resource pool PGW2: Create a tunnel to the original resource pool PGW1 (if none), create a tunnel to SDN-GW within the resource pool (if none), and configure a route to subnet1 of PGW1 (if none).

[0129] (5) Orchestrate the original resource pool neutron, allocate VLANs for subnet 1 (subnet mask), and create a bridgeport (if none). Target resource pool: Configure detailed routes (if none) for the ports in AZ1 within the subnet pointing towards the original resource pool.

[0130] (6) Arrange the target resource pool AZ2 computing nodes to create cloud hosts and network cards, and complete the dynamic migration of cloud host system data disks and operating system memory across AZ heterogeneous SDN through the business network.

[0131] (7) Arrange the original resource pool PGW1 to start sending the gratuitous ARP corresponding to the port IP to VTEP at regular intervals. After receiving the ARP, VTEP notifies the SDN controller. The SDN controller will notify the OVS of the relevant compute nodes to update the access target resource pool AZ2 cloud host flow table.

[0132] (8) Arrange the target resource pool: Configure detailed port routes in PGW2 to point to the resource pool, and configure detailed port routes in PGW1 to point to PGW2 to redirect network traffic accessing the original cloud host to the target resource pool cloud host.

[0133] (9) After the heterogeneous SDN cross-AZ migration is completed, AZ1: delete cloud host and cloud disk logins, and delete the OVS flow table of the original compute nodes. Delete the bridge port. If all ports are deleted and there are no other services bound to them, delete the subnet. At the same time, delete the detailed routes of PGW1 and PGW2.

[0134] (10) The migration of cross-resource pool heterogeneous SDN and cross-AZ single cloud host services is now complete.

[0135] In summary, the embodiments disclosed herein can achieve the following effects:

[0136] 1. By constructing a communication tunnel and a routing table, the embodiments of this disclosure can dynamically switch network traffic to the target resource pool according to the migration status of the cloud host during the migration process, thereby realizing cross-resource pool service interoperability during the migration of cloud hosts across resource pools.

[0137] 2. In this embodiment of the disclosure, the routing table and the communication tunnel can be used to dynamically publish detailed routes and update the traffic between the SDN controller and the virtual machine when migrating different cloud hosts under the same subnet of a heterogeneous SDN cross-AZ resource pool and a Virtual Private Cloud (VPC). This enables the routing table to redirect the Layer 2 and Layer 3 interconnection network traffic of the original resource pool to the cloud hosts of the target resource pool, thereby achieving Layer 2 and Layer 3 interconnection between heterogeneous SDN cross-AZ resource pools and VPCs and completing the service interconnection between the cloud hosts in the original resource pool and the cloud hosts in the target resource pool.

[0138] 3. By allocating the virtual local area network (VLAN) to each of the first subnets, this embodiment of the disclosure can support the simultaneous migration of different subnets of a VPC, and can also support the simultaneous migration of different cloud hosts in a subnet.

[0139] 4. The embodiments of this disclosure can support uninterrupted service during the cloud host migration process, and automatically delete the cloud host-related resources in the original resource pool after the cloud host migration is completed, without manual intervention.

[0140] Corresponding to the cloud server migration method described above, this invention also proposes a cloud server migration apparatus. Since the apparatus embodiments of this invention correspond to the method embodiments described above, details not disclosed in the apparatus embodiments can be referred to the method embodiments described above, and will not be repeated here.

[0141] Figure 5 This is a schematic diagram of a cloud server migration device provided in an embodiment of the present disclosure, as shown below. Figure 5 As shown, it includes:

[0142] The acquisition unit 51 is used to acquire cloud host information of the cloud host to be migrated, first resource pool information of the original resource pool where the cloud host to be migrated is located, and second resource pool information of the target resource pool; wherein, the target resource pool is the resource pool to which the cloud host to be migrated is migrated.

[0143] The creation unit 52 is used to create a communication tunnel between the original resource pool and the target resource pool based on the first resource pool information and the second resource pool information, and to create a blank cloud host in the target resource pool based on the cloud host information.

[0144] Migration unit 53 is used to migrate the cloud host data of the cloud host to be migrated to the blank cloud host through the communication tunnel, so as to obtain a cloud host with the migration completed; wherein, the cloud host data includes all the data of the cloud host to be migrated;

[0145] Configuration unit 54 is configured to configure the routing table between the original resource pool and the target resource pool according to the first resource pool information and the second resource pool information;

[0146] Interconnection unit 55 is used to perform service interconnection between other cloud hosts and the migrated cloud host according to the routing table and the communication tunnel, wherein the other cloud hosts are cloud hosts in the original resource pool other than the cloud host to be migrated.

[0147] The cloud server migration apparatus disclosed herein acquires cloud server information of a cloud server to be migrated, first resource pool information of the original resource pool where the cloud server to be migrated is located, and second resource pool information of the target resource pool; wherein, the target resource pool is the resource pool to which the cloud server to be migrated is migrated; based on the first resource pool information and the second resource pool information, a communication tunnel is created between the original resource pool and the target resource pool, and a blank cloud server is created in the target resource pool based on the cloud server information; the cloud server data of the cloud server to be migrated is migrated to the blank cloud server through the communication tunnel to obtain a migrated cloud server; wherein, the cloud server data includes all data of the cloud server to be migrated; a routing table is configured between the original resource pool and the target resource pool based on the first resource pool information and the second resource pool information, and service communication between other cloud servers and the migrated cloud server is performed based on the routing table and the communication tunnel, wherein, the other cloud servers are cloud servers in the original resource pool other than the cloud server to be migrated. Compared with related technologies, the embodiments of this disclosure, by constructing communication tunnels and routing tables, can dynamically switch network traffic to the target resource pool according to the migration status of the cloud host during the migration process, thereby achieving cross-resource pool service interoperability during the migration of cloud hosts across resource pools.

[0148] Furthermore, in one possible implementation of this disclosure, the creation unit 52 is further configured to:

[0149] A first port is created in the original resource pool based on the first resource pool information, and a virtual local area network is allocated to each first subnet in the original resource pool.

[0150] Based on the first resource pool information and the second resource pool information, a network component is created in the target resource pool; the network component includes at least a second subnet and a second port.

[0151] Furthermore, in one possible implementation of this disclosure, the creation unit 52 is further configured to:

[0152] A first communication tunnel is created between a first defined gateway and a first protocol gateway based on the first resource pool information; wherein, the first protocol gateway is the protocol gateway in the original resource pool, and the first defined gateway is the software-defined network gateway in the original resource pool;

[0153] A second communication tunnel is created between a second defined gateway and a second protocol gateway based on the second resource pool information; wherein, the second protocol gateway is a protocol gateway in the target resource pool, and the second defined gateway is a software-defined network gateway in the original resource pool;

[0154] Based on the first resource pool information and the second resource pool information, a third communication tunnel is created between the first protocol gateway and the second protocol gateway, wherein the communication tunnel includes the first communication tunnel, the second communication tunnel and the third communication tunnel.

[0155] Furthermore, in one possible implementation of this disclosure embodiment, the configuration unit 54 is further configured to:

[0156] Configure a first routing table between the first other network element and the first protocol gateway according to the first resource pool information; wherein, the first protocol gateway is the protocol gateway in the original resource pool, and the first other network element is the network element device in the original resource pool other than the first protocol gateway;

[0157] Configure a third routing table between the second other network element and the second protocol gateway according to the second resource pool information; wherein, the second protocol gateway is the protocol gateway in the target resource pool, and the second other network element is the network element device in the target resource pool other than the second protocol gateway;

[0158] Based on the first resource pool information and the second resource pool information, a third routing table is configured between the first protocol gateway and the second protocol gateway, wherein the routing table includes the first routing table, the second routing table and the third routing table.

[0159] Furthermore, in one possible implementation of the embodiments of this disclosure, such as Figure 6 As shown, the interconnection unit 55 includes:

[0160] Forwarding module 551 is used to forward the Layer 2 traffic of each corresponding first subnet in the original resource pool through the virtual local area network and send the service traffic to the first protocol gateway.

[0161] The sending module 552 is used to periodically send the first port information of the first port to the switch in response to the service traffic;

[0162] Update module 553 is used to send the port information to a preset controller through the switch, and control a preset virtual machine to perform host flow table update processing according to the first port information and the routing table through the preset controller to obtain the first access path;

[0163] The forwarding module 551 is also used to perform Layer 3 traffic forwarding in the target resource pool through the communication tunnel, and send the second port information of the second port to the second protocol gateway.

[0164] The update module 553 is further configured to perform host flow table update processing based on the second port information and the routing table to obtain the second access path.

[0165] Interoperability module 554 is used to perform business interoperability between the other cloud hosts and the migrated cloud hosts according to the first access path and the second access path.

[0166] Furthermore, in one possible implementation of this disclosure embodiment, the acquisition unit 51 is further configured to acquire business interoperability information between the other cloud hosts and the migrated cloud hosts;

[0167] like Figure 6 As shown, the device further includes:

[0168] The deletion unit 56 is used to delete the cloud host to be migrated, the first protocol gateway, the second protocol gateway, the first port, the second port, and the routing table when it is determined that the service interoperability is completed based on the service interoperability information.

[0169] Furthermore, in one possible implementation of this disclosure embodiment, the migration unit 53 is further configured to, in response to a cloud host migration instruction to migrate a first cloud host in the target resource pool to the original resource pool, migrate the data of the first cloud host to the second cloud host through the communication tunnel; wherein, the second cloud host is a blank cloud host in the original resource pool;

[0170] The interconnection unit 55 is further configured to perform service interconnection between the second cloud host and cloud hosts in the target resource pool other than the first cloud host, based on the routing table and the communication tunnel.

[0171] It should be noted that the foregoing explanation of the method embodiments also applies to the apparatus of the embodiments of this disclosure, and the principle is the same. Therefore, the embodiments of this disclosure are not limited thereto.

[0172] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0173] Figure 7A schematic block diagram of an example electronic device 700 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0174] like Figure 7 As shown, device 700 includes a computing unit 701, which can perform various appropriate actions and processes based on a computer program stored in ROM (Read-Only Memory) 702 or a computer program loaded from storage unit 708 into RAM (Random Access Memory) 703. RAM 703 can also store various programs and data required for the operation of device 700. The computing unit 701, ROM 702, and RAM 703 are interconnected via bus 704. I / O (Input / Output) interface 705 is also connected to bus 704.

[0175] Multiple components in device 700 are connected to I / O interface 705, including: input unit 706, such as keyboard, mouse, etc.; output unit 707, such as various types of monitors, speakers, etc.; storage unit 708, such as disk, optical disk, etc.; and communication unit 709, such as network card, modem, wireless transceiver, etc. Communication unit 709 allows device 700 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0176] The computing unit 701 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, CPUs (Central Processing Units), GPUs (Graphics Processing Units), various special-purpose AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, DSPs (Digital Signal Processors), and any suitable processor, controller, microcontroller, etc. The computing unit 701 performs the various methods and processes described above, such as the cloud host migration method. For example, in some embodiments, the cloud host migration method can be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 708. In some embodiments, part or all of the computer program can be loaded and / or installed on device 700 via ROM 702 and / or communication unit 709. When the computer program is loaded into RAM 703 and executed by the computing unit 701, one or more steps of the methods described above can be performed. Alternatively, in other embodiments, computing unit 701 may be configured to perform the aforementioned cloud host migration method by any other suitable means (e.g., by means of firmware).

[0177] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application-Specific Standard Products), SOCs (System-on-Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0178] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0179] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, RAM, ROM, EPROM (Electrically Programmable Read-Only Memory) or flash memory, optical fiber, CD-ROM (Compact Disc Read-Only Memory), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0180] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0181] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include LANs (Local Area Networks), WANs (Wide Area Networks), the Internet, and blockchain networks.

[0182] Computer systems can include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. A server can be a cloud server, also known as a cloud computing server or cloud host, a hosting product within the cloud computing service ecosystem, addressing the shortcomings of traditional physical hosts and VPS (Virtual Private Server, or simply "VPS") services, such as high management difficulty and weak business scalability. Servers can also be servers for distributed systems or servers incorporating blockchain technology.

[0183] It's important to note that artificial intelligence (AI) is the study of enabling computers to simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, and planning). It encompasses both hardware and software technologies. AI hardware technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, and big data processing. AI software technologies primarily include computer vision, speech recognition, natural language processing, machine learning / deep learning, big data processing, and knowledge graph technologies.

[0184] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0185] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A method for migrating a cloud server, characterized in that, include: The cloud host information to be migrated, the first resource pool information of the original resource pool where the cloud host to be migrated is located, and the second resource pool information of the target resource pool are obtained; wherein, the target resource pool is the resource pool to which the cloud host to be migrated is migrated; the original resource pool and the target resource pool belong to different availability zones and are managed by different software-defined networking (SDN) controllers; Based on the first resource pool information and the second resource pool information, a communication tunnel is created between the original resource pool and the target resource pool, and a blank cloud host is created in the target resource pool based on the cloud host information. The cloud host data of the cloud host to be migrated is migrated to the blank cloud host through the communication tunnel to obtain the migrated cloud host; wherein, the cloud host data contains all the data of the cloud host to be migrated; Configure the routing table between the original resource pool and the target resource pool according to the first resource pool information and the second resource pool information, and perform service interconnection between other cloud hosts and the migrated cloud host according to the routing table and the communication tunnel. The other cloud hosts are cloud hosts in the original resource pool other than the cloud host to be migrated. The step of creating a communication tunnel between the original resource pool and the target resource pool based on the first resource pool information and the second resource pool information includes: A first communication tunnel is created between a first defined gateway and a first protocol gateway based on the first resource pool information; wherein, the first protocol gateway is the protocol gateway in the original resource pool, and the first defined gateway is the software-defined network gateway in the original resource pool; the first protocol gateway is PGW1; A second communication tunnel is created between a second defined gateway and a second protocol gateway based on the second resource pool information; wherein, the second protocol gateway is a protocol gateway in the target resource pool, and the second defined gateway is a software-defined network gateway in the original resource pool; the second protocol gateway is PGW2; Based on the first resource pool information and the second resource pool information, a third communication tunnel is created between the first protocol gateway and the second protocol gateway, wherein the communication tunnel includes the first communication tunnel, the second communication tunnel and the third communication tunnel; The step of configuring the routing table between the original resource pool and the target resource pool based on the first resource pool information and the second resource pool information includes: Configure a first routing table between the first other network element and the first protocol gateway according to the first resource pool information; wherein, the first protocol gateway is the protocol gateway in the original resource pool, and the first other network element is the network element device in the original resource pool other than the first protocol gateway; Configure a third routing table between the second other network element and the second protocol gateway according to the second resource pool information; wherein, the second protocol gateway is the protocol gateway in the target resource pool, and the second other network element is the network element device in the target resource pool other than the second protocol gateway; Based on the first resource pool information and the second resource pool information, a third routing table is configured between the first protocol gateway and the second protocol gateway, wherein the routing table includes the first routing table, the second routing table and the third routing table; The step of enabling service interoperability between other cloud hosts and the migrated cloud hosts based on the routing table and the communication tunnel includes: In the original resource pool, the Layer 2 traffic of each corresponding first subnet is forwarded through the virtual local area network, and the service traffic is sent to the first protocol gateway; In response to the service traffic, the first protocol gateway periodically sends the first port information of the first port to the switch; The switch sends the port information to a preset controller, and the preset controller controls a preset virtual machine to perform host flow table update processing based on the first port information and the routing table to obtain the first access path. In the target resource pool, the second port information of the second port is sent to the second protocol gateway through the communication tunnel for three-layer traffic forwarding; Based on the second port information and the routing table, the host flow table is updated to obtain the second access path; Business communication between the other cloud hosts and the migrated cloud hosts is performed according to the first access path and the second access path.

2. The method according to claim 1, characterized in that, After obtaining the cloud server information of the cloud server to be migrated, the first resource pool information of the original resource pool where the cloud server to be migrated is located, and the second resource pool information of the target resource pool, the method further includes: A first port is created in the original resource pool based on the first resource pool information, and a virtual local area network is allocated to each first subnet in the original resource pool. Based on the first resource pool information and the second resource pool information, a network component is created in the target resource pool; the network component includes at least a second subnet and a second port.

3. The method according to claim 2, characterized in that, After enabling service interoperability between other cloud hosts and the migrated cloud host based on the routing table and the communication tunnel, the method further includes: Obtain business communication information between the other cloud hosts and the migrated cloud hosts; If the business interoperability is determined to be completed based on the business interoperability information, delete the cloud host to be migrated, the first protocol gateway, the second protocol gateway, the first port, the second port, and the routing table.

4. The method according to claim 1, characterized in that, After configuring the routing tables for the original resource pool and the target resource pool based on the first resource pool information and the second resource pool information, the method further includes: In response to a cloud host migration command that migrates a first cloud host in the target resource pool to the original resource pool, the data of the first cloud host is migrated to a second cloud host through the communication tunnel; wherein, the second cloud host is a blank cloud host in the original resource pool; The second cloud host and the cloud hosts in the target resource pool other than the first cloud host are interconnected according to the routing table and the communication tunnel.

5. A device for migrating cloud servers, characterized in that, include: The acquisition unit is used to acquire cloud host information of the cloud host to be migrated, first resource pool information of the original resource pool where the cloud host to be migrated is located, and second resource pool information of the target resource pool; wherein, the target resource pool is the resource pool to which the cloud host to be migrated is migrated; the original resource pool and the target resource pool belong to different availability zones and are managed by different software-defined networking (SDN) controllers; A creation unit is configured to create a communication tunnel between the original resource pool and the target resource pool based on the first resource pool information and the second resource pool information, and to create a blank cloud host in the target resource pool based on the cloud host information. A migration unit is used to migrate the cloud host data of the cloud host to be migrated to the blank cloud host through the communication tunnel, so as to obtain a cloud host with the migration completed; wherein, the cloud host data includes all the data of the cloud host to be migrated; A configuration unit is configured to configure a routing table between the original resource pool and the target resource pool based on the first resource pool information and the second resource pool information. An interconnection unit is used to perform service interconnection between other cloud hosts and the migrated cloud host according to the routing table and the communication tunnel, wherein the other cloud hosts are cloud hosts in the original resource pool other than the cloud host to be migrated; The step of creating a communication tunnel between the original resource pool and the target resource pool based on the first resource pool information and the second resource pool information includes: A first communication tunnel is created between a first defined gateway and a first protocol gateway based on the first resource pool information; wherein, the first protocol gateway is a protocol gateway in the original resource pool, and the first defined gateway is a software-defined network gateway in the original resource pool; and the first protocol gateway is PGW1. A second communication tunnel is created between a second defined gateway and a second protocol gateway based on the second resource pool information; wherein, the second protocol gateway is a protocol gateway in the target resource pool, and the second defined gateway is a software-defined network gateway in the original resource pool; the second protocol gateway is PGW2; Based on the first resource pool information and the second resource pool information, a third communication tunnel is created between the first protocol gateway and the second protocol gateway, wherein the communication tunnel includes the first communication tunnel, the second communication tunnel and the third communication tunnel; The step of configuring the routing table between the original resource pool and the target resource pool based on the first resource pool information and the second resource pool information includes: Configure a first routing table between the first other network element and the first protocol gateway according to the first resource pool information; wherein, the first protocol gateway is the protocol gateway in the original resource pool, and the first other network element is the network element device in the original resource pool other than the first protocol gateway; Configure a third routing table between the second other network element and the second protocol gateway according to the second resource pool information; wherein, the second protocol gateway is the protocol gateway in the target resource pool, and the second other network element is the network element device in the target resource pool other than the second protocol gateway; Based on the first resource pool information and the second resource pool information, a third routing table is configured between the first protocol gateway and the second protocol gateway, wherein the routing table includes the first routing table, the second routing table and the third routing table; The step of enabling service interoperability between other cloud hosts and the migrated cloud hosts based on the routing table and the communication tunnel includes: In the original resource pool, the Layer 2 traffic of each corresponding first subnet is forwarded through the virtual local area network, and the service traffic is sent to the first protocol gateway; In response to the service traffic, the first protocol gateway periodically sends the first port information of the first port to the switch; The switch sends the port information to a preset controller, and the preset controller controls a preset virtual machine to perform host flow table update processing based on the first port information and the routing table to obtain the first access path. In the target resource pool, the second port information of the second port is sent to the second protocol gateway through the communication tunnel for three-layer traffic forwarding; Based on the second port information and the routing table, the host flow table is updated to obtain the second access path; Business communication between the other cloud hosts and the migrated cloud hosts is performed according to the first access path and the second access path.

6. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4.

7. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-4.

8. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method according to any one of claims 1-4.

Citation Information

Patent Citations

  • A two-layer multicast network intercommunication device and method based on a software defined network

    CN109842540A

  • Management method and system for multi-resource pool network

    CN117997734A

  • Cloud hard disk migration method and device, electronic equipment and storage medium

    CN118170324A