Cloud host migration method and device, electronic equipment and storage medium
The method and device for cloud host migration across resource pools address business interruption by creating communication tunnels and routing tables, ensuring seamless data migration and intercommunication, thereby achieving cross-resource pool interoperability and uninterrupted service continuity.
Patent Information
- Application Number
- CN202411017767.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2044-07-29
AI Technical Summary
Existing cloud host migration technologies across resource pools often cause business interruption, leading to the inability to achieve cross-resource pool business interoperability.
A method and device for cloud host migration that involves creating a communication tunnel and configuring routing tables between resource pools, allowing seamless data migration and intercommunication by constructing communication tunnels and routing tables, and dynamically switching network traffic during the migration process.
Achieves cross-resource pool business interoperability by ensuring uninterrupted service continuity during cloud host migration, supporting simultaneous migration of different subnets and cloud hosts, and enabling Layer 2 and Layer 3 interconnection across heterogeneous Software Defined Networks (SDNs) and Virtual Private Clouds (VPCs.
Smart Images

Figure CN119172202A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a method and device for cloud host migration, an electronic device, and a storage medium. Background Art
[0002] With the rapid development of cloud computing technology, the demand for computing resources from enterprises and individual users continues to grow. 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, etc.). However, resource pooling technology has problems such as low resource utilization, difficult load balancing, and limited failover. In order to solve the problems of existing resource pooling technology, a variety of technologies for migrating cloud hosts across resource pools have emerged, such as image migration, third-party tool migration, file migration, etc., to improve resource utilization, achieve load balancing and failover, and thus improve the overall performance and availability of the cloud computing environment.
[0004] However, the existing technology for migrating cloud hosts across resource pools is prone to cause business interruption when migrating cloud hosts across resource pools, resulting in the inability to achieve cross-resource pool business interoperability during the process of migrating cloud hosts across resource pools. Therefore, how to achieve cross-resource pool business interoperability during the process of migrating cloud hosts across resource pools is a problem that needs to be solved urgently. Summary of the invention
[0005] The present invention provides a method and device, electronic device and storage medium for cloud host migration. The main purpose is to solve the problem that the existing technology of cloud host migration across resource pools is prone to cause business interruption when performing cross-resource pool migration of cloud hosts, resulting in the inability to achieve cross-resource pool business intercommunication during the process of cross-resource pool migration of cloud hosts.
[0006] According to a first aspect of the present disclosure, a method for cloud host migration is provided, comprising:
[0007] Obtaining cloud host information of a cloud host to be migrated, first resource pool information of an original resource pool in which the cloud host to be migrated is located, and second resource pool information of a target resource pool; wherein the target resource pool is the resource pool to which the cloud host to be migrated is migrated;
[0008] Creating a communication tunnel between the original resource pool and the target resource pool according to the first resource pool information and the second resource pool information, and creating a blank cloud host in the target resource pool according to the cloud host information;
[0009] Migrating the cloud host data of the cloud host to be migrated to the blank cloud host through the communication tunnel to obtain a migrated cloud host; wherein the cloud host data includes all the data of the cloud host to be migrated;
[0010] The routing tables of the original resource pool and the target resource pool are configured according to the first resource pool information and the second resource pool information, and business intercommunication between other cloud hosts and the migrated cloud host is performed according to the routing table and the communication tunnel, wherein the other cloud hosts are cloud hosts in the original resource pool except the cloud host to be migrated.
[0011] Optionally, after obtaining 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, the method further includes:
[0012] Creating a first port in the original resource pool according to the first resource pool information, and allocating a virtual local area network to each first subnet in the original resource pool;
[0013] A network component is created in the target resource pool according to the first resource pool information and the second resource pool information; the network component at least includes a second subnet and a second port.
[0014] Optionally, the creating a communication tunnel between the original resource pool and the target resource pool according to the first resource pool information and the second resource pool information includes:
[0015] Creating a first communication tunnel between a first defined gateway and a first protocol gateway according to 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;
[0016] Create a second communication tunnel between a second defined gateway and a second protocol gateway according to 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] A third communication tunnel is created between the first protocol gateway and the second protocol gateway according to 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.
[0018] Optionally, configuring the routing table of the original resource pool and the target resource pool according to the first resource pool information and the second resource pool information includes:
[0019] Configure a first routing table between a first other network element and a first protocol gateway according to 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 except 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 a protocol gateway in the target resource pool, and the second other network element is a network element device in the target resource pool except the second protocol gateway;
[0021] According to the first resource pool information and the second resource pool information, a third routing table between the first protocol gateway and the second protocol gateway is configured, wherein the routing table includes the first routing table, the second routing table and the third routing table.
[0022] Optionally, performing service intercommunication between other cloud hosts and the migrated cloud host according to the routing table and the communication tunnel includes:
[0023] Forwarding the corresponding layer 2 traffic of each of the first subnets through the virtual local area network in the original resource pool, and sending the service traffic to the first protocol gateway;
[0024] In response to the service traffic, the first protocol gateway periodically sends first port information of the first port to the switch;
[0025] 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 according to the first port information and the routing table to obtain a first access path;
[0026] Performing layer-3 traffic forwarding in the target resource pool through the communication tunnel, and sending the second port information of the second port to the second protocol gateway;
[0027] Perform host flow table update processing according to the second port information and the routing table to obtain a second access path;
[0028] Business intercommunication between the other cloud hosts and the migrated cloud host is performed according to the first access path and the second access path.
[0029] Optionally, after performing service intercommunication between other cloud hosts and the migrated cloud host according to the routing table and the communication tunnel, the method further includes:
[0030] Obtaining service intercommunication information between the other cloud hosts and the migrated cloud host;
[0031] When it is determined according to the business intercommunication information that the business intercommunication is completed, the cloud host to be migrated, the first protocol gateway, the second protocol gateway, the first port, the second port and the routing table are deleted.
[0032] Optionally, after configuring the routing table of the original resource pool and the target resource pool according to the first resource pool information and the second resource pool information, the method further includes:
[0033] 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 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] Business intercommunication 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.
[0035] According to a second aspect of the present disclosure, a cloud host migration device is provided, comprising:
[0036] An acquisition unit, used to acquire cloud host information of a cloud host to be migrated, first resource pool information of an original resource pool in which the cloud host to be migrated is located, and second resource pool information of a target resource pool; wherein the target resource pool is the resource pool to which the cloud host to be migrated is migrated;
[0037] A creating unit, configured to create a communication tunnel between the original resource pool and the target resource pool according to the first resource pool information and the second resource pool information, and to create a blank cloud host in the target resource pool according to the cloud host information;
[0038] A migration unit, configured to migrate the cloud host data of the cloud host to be migrated to the blank cloud host through the communication tunnel to obtain a migrated cloud host; wherein the cloud host data includes all the data of the cloud host to be migrated;
[0039] A configuration unit, configured to configure a routing table of the original resource pool and the target resource pool according to the first resource pool information and the second resource pool information;
[0040] An intercommunication unit is used to perform business intercommunication 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 except the cloud host to be migrated.
[0041] Optionally, the creation unit is further used for:
[0042] Creating a first port in the original resource pool according to the first resource pool information, and allocating a virtual local area network to each first subnet in the original resource pool;
[0043] A network component is created in the target resource pool according to the first resource pool information and the second resource pool information; the network component at least includes a second subnet and a second port.
[0044] Optionally, the creation unit is further used for:
[0045] Creating a first communication tunnel between a first defined gateway and a first protocol gateway according to 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;
[0046] Create a second communication tunnel between a second defined gateway and a second protocol gateway according to 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] A third communication tunnel is created between the first protocol gateway and the second protocol gateway according to 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.
[0048] Optionally, the configuration unit is further used for:
[0049] Configure a first routing table between a first other network element and a first protocol gateway according to 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 except 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 a protocol gateway in the target resource pool, and the second other network element is a network element device in the target resource pool except the second protocol gateway;
[0051] According to the first resource pool information and the second resource pool information, a third routing table between the first protocol gateway and the second protocol gateway is configured, wherein the routing table includes the first routing table, the second routing table and the third routing table.
[0052] Optionally, the intercommunication unit includes:
[0053] A forwarding module, used to forward the corresponding layer 2 traffic of each of the first subnets through the virtual local area network in the original resource pool, and send the service traffic to the first protocol gateway;
[0054] A sending module, configured to, in response to the service traffic, cause the first protocol gateway to periodically send the first port information of the first port to the switch;
[0055] An update module, configured to send the port information to a preset controller through the switch, and control a preset virtual machine through the preset controller to perform host flow table update processing according to the first port information and the routing table to obtain a first access path;
[0056] The forwarding module is further used to forward layer 3 traffic through the communication tunnel in the target resource pool, and send the second port information of the second port to the second protocol gateway;
[0057] The updating module is further used to perform host flow table update processing according to the second port information and the routing table to obtain a second access path;
[0058] An intercommunication module is used to perform business intercommunication between the other cloud hosts and the migrated cloud host according to the first access path and the second access path.
[0059] Optionally, the acquisition unit is further used to acquire service intercommunication information between the other cloud hosts and the migrated cloud host;
[0060] The device also includes:
[0061] A deleting 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 business intercommunication is completed according to the business intercommunication 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 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 intercommunication unit is further used to perform service intercommunication between the second cloud host and cloud hosts in the target resource pool except the first cloud host according to the routing table and the communication tunnel.
[0064] According to a third aspect of the present disclosure, there is provided an electronic device, including:
[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, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect.
[0068] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the first aspect.
[0069] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method as described in the first aspect above.
[0070] The present disclosure provides a method and device for cloud host migration, an electronic device and a storage medium, which obtain cloud host information of a cloud host to be migrated, first resource pool information of an original resource pool in which the cloud host to be migrated is located, and second resource pool information of a target resource pool; wherein the target resource pool is the resource pool to which the cloud host 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 host is created in the target resource pool based on the cloud host information; cloud host data of the cloud host to be migrated is migrated to the blank cloud host through the communication tunnel to obtain a migrated cloud host; wherein the cloud host data includes all data of the cloud host to be migrated; routing tables of the original resource pool and the target resource pool are configured based on the first resource pool information and the second resource pool information, and business intercommunication between other cloud hosts and the migrated cloud host is performed based on the routing table and the communication tunnel, wherein the other cloud hosts are cloud hosts in the original resource pool except the cloud host to be migrated. Compared with related technologies, the embodiments of the present disclosure construct communication tunnels and routing tables, and can dynamically switch network traffic to the target resource pool according to the migration status of the cloud host during the migration process. In the process of migrating cloud hosts across resource pools, cross-resource pool business interoperability is achieved.
[0071] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0073] Figure 1 A flowchart of a cloud host migration method provided by an embodiment of the present disclosure;
[0074] Figure 2 A schematic diagram of a process flow for creating a component provided by an embodiment of the present disclosure;
[0075] Figure 3 A logical network diagram of a cloud hard disk migration method provided by an embodiment of the present disclosure;
[0076] Figure 4 A flowchart of another cloud hard disk migration method provided by an embodiment of the present disclosure;
[0077] Figure 5 A schematic diagram of the structure of a cloud host migration device provided by an embodiment of the present disclosure;
[0078] Figure 6 A schematic diagram of the structure of another cloud host migration device provided by an embodiment of the present disclosure;
[0079] Figure 7 A schematic block diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0080] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0081] The following describes the cloud host migration method and device, electronic device and storage medium of the embodiments of the present disclosure with reference to the accompanying drawings.
[0082] Figure 1 A flowchart of a cloud host migration method provided in an embodiment of the present disclosure.
[0083] like Figure 1 As shown, the method comprises the following steps:
[0084] Step 101, obtain cloud host information of a cloud host to be migrated, first resource pool information of an original resource pool where the cloud host to be migrated is located, and second resource pool information of a target resource pool; wherein the target resource pool is the resource pool to which the cloud host to be migrated is migrated.
[0085] In the embodiments of the present disclosure, the cloud host information includes but is not limited to the data information, hard disk information, CPU information, attribute information, etc. of the cloud host; the first resource pool information includes but is not limited to: the network information, network element information, etc. of the resource pool; the second resource pool information also includes but is not limited to: the network information, network element information, etc. of the resource pool; specifically, the embodiments of the present disclosure do not limit the contents 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 target resource pool of the cloud host to be migrated belong to different resource pools and different availability zones (AZ), 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 in which 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 determined, wherein the original resource pool can be any resource pool, and the target resource pool can be any resource pool except the original resource pool.
[0087] Step 102: Create a communication tunnel between the original resource pool and the target resource pool according to the first resource pool information and the second resource pool information, and create a blank cloud host in the target resource pool according to the cloud host information.
[0088] In the embodiment of the present disclosure, since traffic or data needs to be transmitted, a communication channel needs to be created. The types of the communication tunnels include but are not limited to: vxlan tunnels, etc. Specifically, the embodiment of the present disclosure does not limit the types of the communication tunnels.
[0089] It should be noted that when creating the communication tunnel, it is necessary to create a communication tunnel between specified network element devices in the original resource pool, then create a communication tunnel between specified network element devices in the target resource pool, and finally create a communication tunnel between the original resource pool and the target resource pool.
[0090] The blank cloud host is created according to the cloud host information, that is, it is created according to the cloud host hard disk, specifications and other information carried in the cloud host information. The hard disk, specifications and other information of the blank cloud host are the same as those of the cloud host to be migrated. At the same time, when the blank cloud host is created, the network card will also be created synchronously.
[0091] Step 103, migrating the cloud host data of the cloud host to be migrated to the blank cloud host through the communication tunnel to obtain a migrated cloud host; wherein the cloud host data includes all the data of the cloud host to be migrated.
[0092] In the disclosed embodiment, all data in the cloud host to be migrated are migrated to the blank cloud host to complete the migration operation of the cloud host. 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 (AZ) heterogeneous SDN through the business network.
[0093] Step 104, configuring the routing table of the original resource pool and the target resource pool according to the first resource pool information and the second resource pool information, and performing business 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 except the cloud host to be migrated.
[0094] In the embodiment of the present 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 performing heterogeneous SDN across AZ resource pools and migrating different cloud hosts in the same subnet of a virtual private cloud (VPC), the detailed routes can be dynamically published according to the routing table, and the traffic between the SDN controller and the virtual machine can be updated, so as to guide the second and third layer interconnection network traffic of the original resource pool to the cloud host of the target resource pool, realize the second and third layer interconnection of heterogeneous SDN across AZ resource pools and VPC, and complete the business interconnection between the cloud host in the original resource pool and the cloud host in the target resource pool.
[0096] The present invention provides a method for cloud host migration, which obtains cloud host information of a cloud host to be migrated, first resource pool information of an original resource pool in which the cloud host to be migrated is located, and second resource pool information of a target resource pool; wherein the target resource pool is the resource pool to which the cloud host 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 host is created in the target resource pool based on the cloud host information; cloud host data of the cloud host to be migrated is migrated to the blank cloud host through the communication tunnel to obtain a cloud host after the migration is completed; wherein the cloud host data includes all data of the cloud host to be migrated; routing tables of the original resource pool and the target resource pool are configured based on the first resource pool information and the second resource pool information, and business intercommunication between other cloud hosts and the migrated cloud host is performed based on the routing table and the communication tunnel, wherein the other cloud hosts are cloud hosts in the original resource pool except the cloud host to be migrated. Compared with related technologies, the embodiments of the present disclosure construct communication tunnels and routing tables, and can dynamically switch network traffic to the target resource pool according to the migration status of the cloud host during the migration process. In the process of migrating cloud hosts across resource pools, cross-resource pool business interoperability is achieved.
[0097] In one possible implementation of the embodiment of the present disclosure, after obtaining the first resource pool information and the second resource pool information, some virtual components need to be created in the original resource pool and the target resource pool to ensure that the cloud host can be migrated and the services between the two resource pools can be interconnected. Therefore, in order to realize the migration of the cloud host, the embodiment of the present disclosure provides a schematic diagram of the component creation process, such as Figure 2 As shown, including:
[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 the disclosed embodiment, the type of the first port includes but is not limited to: a bridge port, etc., which is used to forward secondary traffic in the original resource pool. When migrating a cloud host, 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 of the first subnets to isolate different subnets.
[0100] It should also be noted that, since each of the first subnets is allocated the virtual local area network (VLAN), the embodiment of the present disclosure can support the simultaneous migration of different subnets of a VPC, and can also support the simultaneous migration of different cloud hosts of a subnet.
[0101] Step 202: Create a network component in the target resource pool according to the first resource pool information and the second resource pool information; the network component at least includes a second subnet and a second port.
[0102] In the embodiment of the present disclosure, the second port is a virtual port and a fake port, which is also used for forwarding layer 2 traffic. The network component created in the target resource pool is consistent with the network component existing in the original resource pool.
[0103] The network components include but are not limited to: network, router, subnet associated routing (when created for the first time), security group, port2 (the second port) (specified IP, MAC address), i.e., the IP and MAC information corresponding to the migrated cloud host, etc. Specifically, the content of the network components is not limited in the embodiments of the present disclosure.
[0104] In one implementable manner of the embodiment of the present disclosure, as a refinement of the above-mentioned step 102, when creating a communication tunnel between the original resource pool and the target resource pool, it can also be implemented in but not limited to the following manner: create a first communication tunnel between the first defined gateway 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 defined gateway is the software defined network gateway in the original resource pool; create a second communication tunnel between the second defined gateway 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 defined gateway is the software defined network gateway in the original resource pool; create a third communication tunnel between the first protocol gateway and the second protocol gateway according to 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 the embodiment of the present disclosure, in the original resource pool: a tunnel between PGW1 (first protocol gateway) and the target resource pool PGW2 (second protocol gateway) will be created (if none), and a tunnel between PGW1 and the SDN-GW (first defined gateway) in the original resource pool will be created (if none); in the target resource pool: a tunnel between PGW2 and the original resource pool PGW1 will be created (if none), and a tunnel between PGW2 and the SDN-GW (second defined gateway) in the target resource pool will be created (if none).
[0106] It should be noted that if only a tunnel between the first protocol gateway and the second protocol gateway in the target resource pool is created in the original resource pool, it means that only the port on the original resource pool side is created. It is necessary to create a tunnel between the second protocol gateway and the first protocol gateway in the original resource pool in the target resource pool before the tunnel ports created by both the original resource pool and the target resource pool can be determined, and the original resource pool can communicate with the target resource pool.
[0107] In one implementable manner of the embodiment of the present disclosure, as a refinement of the above-mentioned step 104, when configuring the routing tables of the original resource pool and the target resource pool, it can also be implemented in but not limited to the following manner: configuring 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; configuring 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; configuring a third routing table between the first protocol gateway and the second protocol gateway according to 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 the embodiment of the present disclosure, in the original resource pool: a routing table (if none) pointing to subnet1 (first subnet) of the SDN-GW in the original resource pool will be configured for PGW1; in the target resource pool: a detailed routing table pointing to port2 (second port) in the target resource pool will be configured for PGW2; between the original resource pool and the target resource pool: a routing table pointing to subnet1 of PGW2 will be configured, a detailed routing table pointing from the target resource pool to the original resource pool will be configured for port1 (first port) in AZ1 (original resource pool) in the first subnet, a detailed routing table pointing from PGW1 to port2 (second port) of PGW2 will be configured, etc. Specifically, the specific content of the routing table is not limited in the embodiment of the present disclosure.
[0109] In one implementable manner of the embodiment of the present disclosure, as a refinement of the above-mentioned step 104, when performing business intercommunication between other cloud hosts and the migrated cloud host, it can also be implemented in but not limited to the following manner: forwarding the corresponding layer 2 traffic of each first subnet through the virtual LAN in the original resource pool, and sending the business traffic to the first protocol gateway; in response to the business traffic, the first protocol gateway periodically sends the first port information of the first port to the switch; sending the port information to the preset controller through the switch, and controlling the preset virtual machine through the preset controller to perform host flow table update processing according to the first port information and the routing table to obtain a first access path; performing layer 3 traffic forwarding through the communication tunnel in the target resource pool, and sending the second port information of the second port to the second protocol gateway; performing host flow table update processing according to the second port information and the routing table to obtain a second access path; performing business intercommunication between the other cloud hosts and the migrated cloud host according to the first access path and the second access path.
[0110] Specifically, in order to facilitate understanding of the implementation process of the embodiments of the present disclosure, an example is provided for illustration: the vtep gateway (preset switch) in AZ1 (original resource pool) is connected to PGW1 through a direct VLAN, and the SDN gateway / VTEP (VXLAN tunnel endpoint) forwards the Layer 2 traffic of the same subnet to PGW1 through a direct 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] The host detailed route in AZ2 (target resource pool) is forwarded at Layer 3. OVS directly forwards the port (first port information) of the opposite AZ (original resource pool) to PGW2 through the detailed route and the vxlan tunnel between the SDN gateway and PGW2. The original resource pool PGW1 starts to send the free ARP corresponding to the port IP (first port information) to VTEP at regular intervals. After receiving the ARP, the VTEP (preset switch) notifies the SDN controller (preset controller) through vxlan, and the SDN controller notifies the OVS (preset virtual machine) of the relevant computing node to refresh the flow table. In the target resource pool PGW2, a detailed route pointing to the port (first port) in the resource pool is configured.
[0112] Through the above steps, when heterogeneous SDN migrates different cloud hosts in the same subnet of the same VPC across AZ resource pools, dynamic publishing of detailed routes and updating of SDN controller and OVS traffic can be used to direct the Layer 2 and 3 interconnection network traffic of the original resource pool to the cloud host of the destination resource pool, thus realizing Layer 2 and 3 interconnection of heterogeneous SDN across AZ resource pools and VPCs.
[0113] In summary, in order to facilitate understanding of the method described in the embodiments of the present disclosure, the embodiments of the present disclosure provide a logical network diagram of a method for cloud hard disk migration, as shown in FIG. Figure 3 As shown, the vxlan line in the figure is a logical line, vlan is a pairwise cross-connection line, AZ1 is the original resource pool, AZ1 portX is a bridge-port for Layer 2 traffic forwarding; AZ2 is the target resource pool, AZ2 portX is a fake port for Layer 2 traffic forwarding. The SDN gateway / VTEP forwards the Layer 2 traffic of the same subnet to the PGW through the direct line and vlan.
[0114] The original resource pool and the target resource pool contain multiple network elements, including but not limited to:
[0115] SDN East-West Gateway: From overlay to unerlay network elements in SDN scenarios, it terminates SDN tunnel technologies such as overlay VxLAN and implements east-west connectivity across AZs.
[0116] PGW: Protocol gateway, which solves the east-west intercommunication between SDN vendors and realizes the unified connection of heterogeneous SDN traffic in different regions.
[0117] SDN controller: All gateways are managed uniformly through the SDN controller. The SDN controller is responsible for global orchestration of VPC cross-AZ intercommunication services and cooperates with VSW to implement flow table delivery.
[0118] VTEP switch: directly connected to PGW through VLAN, forwarding the Layer 2 traffic of the same subnet to PGW through VLAN. VLAN port realizes network isolation and enables simultaneous migration of cloud host services in multiple VPCs.
[0119] In one implementable manner of the disclosed embodiment, in order to support the cloud host migration process without interrupting business, and automatically delete the cloud host related resources in the original resource pool after the cloud host migration is completed without manual intervention, the following method may also be used but is not limited to: obtaining business intercommunication information between the other cloud hosts and the migrated cloud host; and when it is determined that the business intercommunication is completed according to the business intercommunication information, 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.
[0120] In the disclosed embodiment, after the cloud host migration is completed, in the original resource pool: delete the cloud host and cloud hard disk, delete the ovs flow table of the original computing node, and delete the bridge port. If all ports are deleted and there is no other business binding, delete the subnet, and PGW1 and PGW2 delete the detailed routes.
[0121] In one implementable manner of the embodiment of the present disclosure, after determining the original resource pool and the target resource pool, 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. Therefore, regarding cloud host migration, the following method can also be adopted but is 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 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; and business intercommunication 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 the disclosed embodiment, the first cloud host is the 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 performing cloud host migration, the cloud host migration instruction can be triggered from the original resource pool, or from the target resource pool, that is, when performing cloud host migration, 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 the target resource pool migrates the cloud host to the original resource pool, it is also necessary to establish a communication tunnel and a routing table. The difference is that there is no vtep switch in the target resource pool, and the communication tunnel and routing table can be established in the target resource pool without the participation of the vtep switch. It should be noted that the communication tunnel and routing table established when the target resource pool migrates the cloud host to the original resource pool are the same as the communication tunnel and routing table established when the original resource pool migrates the cloud host to the target resource pool. The difference lies in the steps of establishing the communication tunnel and the routing table.
[0124] Furthermore, when migrating the cloud host from the target resource pool to the original resource pool, it can be implemented in but not limited to the following ways: obtaining the first information of the first cloud host, the first resource pool information of the original resource pool, and the second resource pool information of the target resource pool; creating the communication tunnel according to the first resource pool information and the second resource pool information, and creating the second cloud host in the original resource pool according to the first information; migrating the data of the first cloud host to the second cloud host through the communication tunnel; configuring the routing table of the target resource pool and the original resource pool according to the first resource pool information and the second resource pool information, and performing business interconnection between the second cloud host and the cloud hosts in the target resource pool except the first cloud host according to the routing table and the communication tunnel.
[0125] In summary, in order to facilitate understanding of the implementation process of the cloud hard disk migration method described in the embodiment of the present disclosure, the embodiment of the present disclosure provides a flow chart of another cloud hard disk migration method, such as Figure 4 As shown, the steps include but are not limited to: (1) the original resource pool and the target resource of the migration 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 for the migration task to be performed is obtained, and the original resource pool in which the target cloud host is located and the relevant information of 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 a subnet and router, associates the subnet with a route (when it is first created) and a security group, and creates port2 (specifies the IP and MAC addresses), that is, migrates the IP and MAC information corresponding to the cloud host.
[0127] (3) Orchestrate the original resource pool PGW1: Create a tunnel with the target resource pool PGW2 (if not available), create a tunnel with the SDN-GW in the resource pool (if not available), and configure a route pointing to subnet1 of the SDN-GW in the resource pool (if not available).
[0128] (4) Orchestrate the target resource pool PGW2: Create a tunnel with the original resource pool PGW1 (if not present), create a tunnel to the SDN-GW in the resource pool (if not present), and configure a route to subnet1 of PGW1 (if not present).
[0129] (5) Orchestrate the original resource pool neutron, assign vlan to subnet 1 (subnet mask), and create a bridgeport (if not available). Target resource pool: Configure a detailed route pointing to the original resource pool for the port in AZ1 in the subnet (if not available).
[0130] (6) Orchestrate the target resource pool AZ2 computing node to create a cloud host and a network card, and complete the dynamic migration of the cloud host system data disk and operating system memory across AZ heterogeneous SDNs through the business network.
[0131] (7) The original resource pool PGW1 is orchestrated to start sending the free ARP corresponding to the port IP to VTEP at a scheduled time. After receiving the ARP, VTEP notifies the SDN controller, and the SDN controller notifies the OVS of the relevant computing nodes to update the flow table for accessing the target resource pool AZ2 cloud host.
[0132] (8) Orchestrate the target resource pool: Configure a port-specific route pointing to the resource pool in PGW2. Original resource pool: Configure a port-specific route pointing to PGW2 in PGW1 to divert the network traffic accessing the original cloud host to the cloud host in the target resource pool.
[0133] (9) After the heterogeneous SDN cross-AZ migration is completed, AZ1: delete the cloud host and cloud disk login, and delete the ovs flow table of the original computing node. Delete the bridge port. If all ports are deleted and there is no other service binding, delete the subnet. At the same time, PGW1 and PGW2 delete the detailed routes.
[0134] (10) At this point, the cross-resource pool heterogeneous SDN cross-AZ single cloud host service migration is completed.
[0135] In summary, the embodiments of the present disclosure can achieve the following effects:
[0136] 1. The disclosed embodiment constructs a communication tunnel and a routing table, and can dynamically switch the network to direct 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 cross-resource pool migration of the cloud host.
[0137] 2. The embodiment of the present disclosure can use the routing table and the communication tunnel to dynamically publish detailed routes and update the traffic between the SDN controller and the virtual machine according to the routing table when performing heterogeneous SDN across AZ resource pools and migrating different cloud hosts in the same subnet of the same virtual private cloud (VPC), so as to guide the second and third layer interconnection network traffic of the original resource pool to the cloud host of the target resource pool, realize heterogeneous SDN across AZ resource pools VPC second and third layer interconnection, and complete the business interconnection between the cloud host in the original resource pool and the cloud host in the target resource pool.
[0138] 3. The disclosed embodiment can support the simultaneous migration of different subnets of a VPC and different cloud hosts of a subnet by allocating the virtual local area network (vlan) to each of the first subnets.
[0139] 4. The disclosed embodiment can support the cloud host migration process without interrupting business, and after the cloud host migration is completed, the cloud host related resources in the original resource pool are automatically deleted without manual intervention.
[0140] Corresponding to the above-mentioned cloud host migration method, the present invention also provides a cloud host migration device. Since the device embodiment of the present invention corresponds to the above-mentioned method embodiment, the details not disclosed in the device embodiment can be referred to the above-mentioned method embodiment, and will not be repeated in the present invention.
[0141] Figure 5 A schematic diagram of a cloud host migration device provided by an embodiment of the present disclosure, such as Figure 5 As shown, including:
[0142] The acquisition unit 51 is used to acquire 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;
[0143] A creating unit 52, configured to create a communication tunnel between the original resource pool and the target resource pool according to the first resource pool information and the second resource pool information, and to create a blank cloud host in the target resource pool according to the cloud host information;
[0144] A 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 to obtain a migrated cloud host; wherein the cloud host data includes all the data of the cloud host to be migrated;
[0145] A configuration unit 54, configured to configure a routing table of the original resource pool and the target resource pool according to the first resource pool information and the second resource pool information;
[0146] The intercommunication unit 55 is used to perform business intercommunication 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 except the cloud host to be migrated.
[0147] The cloud host migration device provided by the present disclosure obtains 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; according to the first resource pool information and the second resource pool information, a communication tunnel between the original resource pool and the target resource pool is created, and a blank cloud host is created in the target resource pool according to 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 a cloud host after the migration is completed; wherein the cloud host data includes all the data of the cloud host to be migrated; according to the first resource pool information and the second resource pool information, the routing table of the original resource pool and the target resource pool is configured, and according to the routing table and the communication tunnel, business intercommunication between other cloud hosts and the migrated cloud host is performed, wherein the other cloud hosts are cloud hosts in the original resource pool except the cloud host to be migrated. Compared with related technologies, the embodiments of the present disclosure construct communication tunnels and routing tables, and can dynamically switch network traffic to the target resource pool according to the migration status of the cloud host during the migration process. In the process of migrating cloud hosts across resource pools, cross-resource pool business interoperability is achieved.
[0148] Furthermore, in a possible implementation of the embodiment of the present disclosure, the creating unit 52 is further configured to:
[0149] Creating a first port in the original resource pool according to the first resource pool information, and allocating a virtual local area network to each first subnet in the original resource pool;
[0150] A network component is created in the target resource pool according to the first resource pool information and the second resource pool information; the network component at least includes a second subnet and a second port.
[0151] Furthermore, in a possible implementation of the embodiment of the present disclosure, the creating unit 52 is further configured to:
[0152] Creating a first communication tunnel between a first defined gateway and a first protocol gateway according to 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;
[0153] Create a second communication tunnel between a second defined gateway and a second protocol gateway according to 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] A third communication tunnel is created between the first protocol gateway and the second protocol gateway according to 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.
[0155] Furthermore, in a possible implementation of the embodiment of the present disclosure, the configuration unit 54 is further configured to:
[0156] Configure a first routing table between a first other network element and a first protocol gateway according to 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 except 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 a protocol gateway in the target resource pool, and the second other network element is a network element device in the target resource pool except the second protocol gateway;
[0158] According to the first resource pool information and the second resource pool information, a third routing table between the first protocol gateway and the second protocol gateway is configured, wherein the routing table includes the first routing table, the second routing table and the third routing table.
[0159] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 6 As shown, the intercommunication unit 55 includes:
[0160] Forwarding module 551, used to forward the corresponding layer 2 traffic of each first subnet through the virtual local area network in the original resource pool, and send the service traffic to the first protocol gateway;
[0161] A sending module 552, configured to, in response to the service traffic, periodically send, by the first protocol gateway, first port information of the first port to a switch;
[0162] An updating module 553 is used to send the port information to a preset controller through the switch, and control a preset virtual machine through the preset controller to perform host flow table update processing according to the first port information and the routing table to obtain a first access path;
[0163] The forwarding module 551 is further used to forward layer 3 traffic through the communication tunnel in the target resource pool, and send the second port information of the second port to the second protocol gateway;
[0164] The updating module 553 is further used to perform host flow table update processing according to the second port information and the routing table to obtain a second access path;
[0165] The intercommunication module 554 is used to perform service intercommunication between the other cloud hosts and the migrated cloud host according to the first access path and the second access path.
[0166] Furthermore, in a possible implementation of the embodiment of the present disclosure, the acquisition unit 51 is further configured to acquire service intercommunication information between the other cloud hosts and the migrated cloud host;
[0167] like Figure 6 As shown, the device also includes:
[0168] The deleting 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 intercommunication is completed according to the service intercommunication information.
[0169] Further, in a possible implementation of the embodiment of the present disclosure, the migration unit 53 is further configured to, in response to a cloud host migration instruction to migrate the 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 intercommunication unit 55 is further configured to perform service intercommunication 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.
[0171] It should be noted that the above explanation of the method embodiment is also applicable to the device of the embodiment of the present disclosure, and the principle is the same, which is no longer limited in the embodiment of the present disclosure.
[0172] According to an embodiment of the present disclosure, the present 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 an embodiment 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 can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0174] like Figure 7 As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 702 or a computer program loaded from a storage unit 708 to a RAM (Random Access Memory) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An I / O (Input / Output) interface 705 is also connected to the bus 704.
[0175] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0176] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, a DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 701 performs the various methods and processes described above, such as a method for cloud host migration. For example, in some embodiments, the method for cloud host migration may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the aforementioned cloud host migration method in any other appropriate manner (eg, by means of firmware).
[0177] Various embodiments of the systems and techniques described above herein may 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 embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor that may be a dedicated or general-purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0178] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0179] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a RAM, a ROM, an EPROM (Electrically Programmable Read-Only-Memory) or a flash memory, an optical fiber, a CD-ROM (Compact Dis sc Read-Only Memory), an optical storage device, a magnetic storage device, 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 (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the 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 acoustic input, voice input, or tactile input).
[0181] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.
[0182] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.
[0183] It should be noted that artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.
[0184] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0185] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for cloud host migration, characterized in that: include: Obtaining cloud host information of a cloud host to be migrated, first resource pool information of an original resource pool in which the cloud host to be migrated is located, and second resource pool information of a target resource pool; wherein the target resource pool is the resource pool to which the cloud host to be migrated is migrated; Creating a communication tunnel between the original resource pool and the target resource pool according to the first resource pool information and the second resource pool information, and creating a blank cloud host in the target resource pool according to the cloud host information; Migrating the cloud host data of the cloud host to be migrated to the blank cloud host through the communication tunnel to obtain a migrated cloud host; wherein the cloud host data includes all the data of the cloud host to be migrated; The routing tables of the original resource pool and the target resource pool are configured according to the first resource pool information and the second resource pool information, and business intercommunication between other cloud hosts and the migrated cloud host is performed according to the routing table and the communication tunnel, wherein the other cloud hosts are cloud hosts in the original resource pool except the cloud host to be migrated.
2. The method according to claim 1, characterized in that After obtaining 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, the method further includes: Creating a first port in the original resource pool according to the first resource pool information, and allocating a virtual local area network to each first subnet in the original resource pool; A network component is created in the target resource pool according to the first resource pool information and the second resource pool information; the network component at least includes a second subnet and a second port.
3. The method according to claim 1, characterized in that: The step of creating a communication tunnel between the original resource pool and the target resource pool according to the first resource pool information and the second resource pool information includes: Creating a first communication tunnel between a first defined gateway and a first protocol gateway according to 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; Create a second communication tunnel between a second defined gateway and a second protocol gateway according to 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; A third communication tunnel is created between the first protocol gateway and the second protocol gateway according to 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.
4. The method according to claim 2, characterized in that: The configuring the routing table of the original resource pool and the target resource pool according to the first resource pool information and the second resource pool information includes: Configure a first routing table between a first other network element and a first protocol gateway according to 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 except 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 a protocol gateway in the target resource pool, and the second other network element is a network element device in the target resource pool except the second protocol gateway; According to the first resource pool information and the second resource pool information, a third routing table between the first protocol gateway and the second protocol gateway is configured, wherein the routing table includes the first routing table, the second routing table and the third routing table.
5. The method according to claim 4, characterized in that The performing of service intercommunication between other cloud hosts and the migrated cloud host according to the routing table and the communication tunnel includes: Forwarding the corresponding layer 2 traffic of each of the first subnets through the virtual local area network in the original resource pool, and sending the service traffic to the first protocol gateway; In response to the service traffic, the first protocol gateway periodically sends 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 according to the first port information and the routing table to obtain a first access path; Performing layer-3 traffic forwarding in the target resource pool through the communication tunnel, and sending the second port information of the second port to the second protocol gateway; Perform host flow table update processing according to the second port information and the routing table to obtain a second access path; Business intercommunication between the other cloud hosts and the migrated cloud host is performed according to the first access path and the second access path.
6. The method according to claim 2, characterized in that After performing service intercommunication between other cloud hosts and the migrated cloud host according to the routing table and the communication tunnel, the method further includes: Obtaining service intercommunication information between the other cloud hosts and the migrated cloud host; When it is determined according to the business intercommunication information that the business intercommunication is completed, the cloud host to be migrated, the first protocol gateway, the second protocol gateway, the first port, the second port and the routing table are deleted.
7. The method according to claim 1, characterized in that After configuring the routing table of the original resource pool and the target resource pool according to the first resource pool information and the second resource pool information, the method further includes: In response to a cloud host migration instruction for migrating a first cloud host in the target resource pool to the original resource pool, migrating 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; Business intercommunication 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.
8. A cloud host migration device, characterized in that: include: An acquisition unit, used to acquire cloud host information of a cloud host to be migrated, first resource pool information of an original resource pool where the cloud host to be migrated is located, and second resource pool information of a target resource pool; wherein the target resource pool is the resource pool to which the cloud host to be migrated is migrated; A creating unit, configured to create a communication tunnel between the original resource pool and the target resource pool according to the first resource pool information and the second resource pool information, and to create a blank cloud host in the target resource pool according to the cloud host information; A migration unit, configured to migrate the cloud host data of the cloud host to be migrated to the blank cloud host through the communication tunnel to obtain a migrated cloud host; wherein the cloud host data includes all the data of the cloud host to be migrated; A configuration unit, configured to configure a routing table of the original resource pool and the target resource pool according to the first resource pool information and the second resource pool information; An intercommunication unit is used to perform business intercommunication 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 except the cloud host to be migrated.
9. 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, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-7.
11. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
A two-layer multicast network intercommunication device and method based on a software defined network
CN109842540A
Virtual resource migration method and device, electronic equipment and storage medium
CN114020409A
Cross-cloud platform application migration system and method and disaster recovery method
CN114691290A
Load balancing method and system, computer storage medium and electronic equipment
CN114900526A
Network connection method and device, equipment and storage medium
CN117459476A
Cited By
Storage gateway resource recovery method
CN120602503A
