Resource provisioning method
First Claim
1. A resource provisioning method applied to a distributed data center system with at least two data centers, the method comprising:
- receiving, by a first data center, a resource request message, wherein the first data center is any data center that receives the resource request message in the distributed data center system, and the resource request message comprises a tenant identifier and a resource template identifier;
obtaining, by the first data center, resource template information according to the tenant identifier and the resource template identifier, wherein the resource template information includes a network resource specification parameter;
obtaining, by the first data center, a destination data center list according to the resource template information and the tenant identifier, wherein the destination data center list comprises the first data center and a second data center;
creating, by the first data center, a virtual network according to the tenant identifier and a network name in the network resource specification parameter, wherein creating the virtual network comprises;
1) determining, by the first data center through analyzing the resource template information, one or more destination data center for which a virtual subnet needs to be created, wherein the one or more destination data center includes the first data center;
2) creating, by the first data center, the virtual subnet according to the tenant identifier, the identifier of the virtual network, and a subnet name in the network resource specification parameter; and
3) synchronizing, by the first data center, information about the virtual subnet to the second data center in the destination data center list, wherein the information includes the tenant identifier, the subnet name, and identifiers of the virtual network and the virtual subnet;
sending, by the first data center, a request to the second data center for creating a virtual machine and adding the virtual machine to the virtual network, wherein the request includes a virtual machine specification identifier indicating one or more virtual machine specification; and
receiving, by the first data center, an identifier (ID) of the virtual machine from the second data center.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the present invention provides a resource provisioning method, including: receiving, by a first data center, a resource request message, where the first data center is any data center that receives the resource request message in the system; obtaining, by the first data center and by analyzing the resource request message, at least two destination data centers that provision resources; creating a virtual network; creating a virtual machine for the at least two destination data centers; and adding the virtual machine to the virtual network. By implementing the method, the resource utilization of a data center is improved, administration, maintenance, and operation are simplified, and an occurrence probability of network connection fault or traffic congestion is reduced.
33 Citations
25 Claims
-
1. A resource provisioning method applied to a distributed data center system with at least two data centers, the method comprising:
-
receiving, by a first data center, a resource request message, wherein the first data center is any data center that receives the resource request message in the distributed data center system, and the resource request message comprises a tenant identifier and a resource template identifier; obtaining, by the first data center, resource template information according to the tenant identifier and the resource template identifier, wherein the resource template information includes a network resource specification parameter; obtaining, by the first data center, a destination data center list according to the resource template information and the tenant identifier, wherein the destination data center list comprises the first data center and a second data center; creating, by the first data center, a virtual network according to the tenant identifier and a network name in the network resource specification parameter, wherein creating the virtual network comprises; 1) determining, by the first data center through analyzing the resource template information, one or more destination data center for which a virtual subnet needs to be created, wherein the one or more destination data center includes the first data center; 2) creating, by the first data center, the virtual subnet according to the tenant identifier, the identifier of the virtual network, and a subnet name in the network resource specification parameter; and 3) synchronizing, by the first data center, information about the virtual subnet to the second data center in the destination data center list, wherein the information includes the tenant identifier, the subnet name, and identifiers of the virtual network and the virtual subnet; sending, by the first data center, a request to the second data center for creating a virtual machine and adding the virtual machine to the virtual network, wherein the request includes a virtual machine specification identifier indicating one or more virtual machine specification; and receiving, by the first data center, an identifier (ID) of the virtual machine from the second data center. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)
-
-
18. A first data center in a distributed data center system, the first data center comprising:
-
a non-transitory, processor readable storage medium storing executable instructions; and a processor connected to the storage medium for executing the instructions that cause the processor to; 1) receive a resource request message and obtain a resource parameter of a second data center according to the resource request message wherein the resource parameter of the second data center comprises a virtual machine description parameter list, a network resource specification parameter, a tenant identifier, and a resource template identifier; 2) obtain, by the first data center, resource template information according to the virtual machine description parameter list, network specification parameter, tenant identifier, and the resource template identifier, wherein the resource template information includes a network resource specification parameter; 3) obtain, by the first data center, a destination data center list according to the resource template information and the tenant identifier, wherein the destination data center list comprises the first data center and a second data center; 4) create a virtual network according to the tenant identifier and a network name in the network resource specification parameter by; a) determining one or more destination data centers for which a virtual subnet needs to be created, wherein the one or more destination data center includes the first data center, b) creating the virtual subnet according to the tenant identifier, an identifier of the virtual network, and a subnet name in the network resource specification parameter, and c) synchronizing information about the virtual subnet to the second data center in a destination data center list, wherein the information includes the tenant identifier, the subnet name, and identifiers of the virtual network and the virtual subnet; 5) send a create request message to the second data center for creating a virtual machine according to the resource template information, and add the virtual machine to the virtual subnet; and 6) receive an identifier (ID) of the virtual machine from the second data center. - View Dependent Claims (19, 20, 21, 22, 23, 24, 25)
-
Specification