Instance allocation method, system, and apparatus
In a method performed by cloud computing management system for instance allocation, the system receives an instance allocation request uploaded by a tenant. The instance allocation request includes a processor resource requirement. Based on the instance allocation request, the system generates an instance allocation solution which includes a life cycle of an instance allocated to the tenant. The system then allocates, based on the instance allocation solution, the instance to the tenant from a cloud computing resource pool managed by the cloud computing management system.
1 . An instance allocation method performed by a cloud computing management system, comprising:
receiving an instance allocation request uploaded by a tenant, wherein the instance allocation request comprises a processor resource requirement and a deadline, wherein the processor resource requirement needs to be met and provided for the tenant before the deadline;
generating an instance allocation solution based on the instance allocation request, wherein the instance allocation solution comprises a life cycle of an instance allocated to the tenant, wherein the life cycle indicates a start time and a stop time of the instance;
sending the instance allocation solution to the tenant;
receiving acknowledgment of the tenant for the instance allocation solution; and
allocating, based on the instance allocation solution, the instance to the tenant from a cloud computing resource pool managed by the cloud computing management system.
2 . The method according to claim 1 , wherein the processor resource requirement comprises a product of a quantity of processors and duration.
3 . The method according to claim 1 , wherein the instance allocation request further comprises an available area, a minimum quantity of synchronous running instances, or shortest valid running time, the minimum quantity of synchronous running instances indicates a minimum quantity of instances that run simultaneously, the shortest valid running time indicates shortest running time of an instance each time.
4 . The method according to claim 1 , wherein the instance allocation solution comprises an available area in which the instance is located, or an instance specification of the instance.
5 . The method according to claim 1 , wherein the step of generating the instance allocation solution comprises:
determining that the cloud computing resource pool cannot meet the instance allocation request; and
notifying the tenant the instance allocation request cannot be met.
6 . The method according to claim 5 , wherein the step of notifying the tenant comprises:
generating adjustment solutions, wherein each adjustment solution indicates to adjust one or more parameters in the instance allocation request; and
receiving an adjustment solution selected by the tenant.
7 . The method according to claim 5 , wherein the method further comprises:
notifying the tenant to adjust the instance allocation request; and
generating the instance allocation solution based on an adjusted instance allocation request.
8 . The method according to claim 1 , wherein the method further comprises:
before the step of allocating the instance,
receiving a task uploaded by the tenant; and
storing the task in a storage resource in the cloud computing resource pool; and after allocating the instance,
running the stored task on the instance.
9 . The method according to claim 1 , wherein the method further comprises:
determining whether the start time arrives; and
when the start time arrives, starting the instance.
10 . The method according to claim 1 , wherein the method further comprises:
sending an estimated expense corresponding to the instance allocation solution to the tenant; and
receiving a confirmation of the estimated expense corresponding to the instance allocation solution from the tenant.
11 . A cloud computing management system comprising:
a memory storing executable instructions; and
a processor configured to execute the executable instructions to:
receive an instance allocation request uploaded by a tenant, wherein the instance allocation request comprises a processor resource requirement and a deadline, wherein the processor resource requirement needs to be met and provided for the tenant before the deadline;
generate an instance allocation solution based on the instance allocation request, wherein the instance allocation solution comprises a life cycle of an instance allocated to the tenant, wherein the life cycle indicates a start time and a stop time of the instance;
sending the instance allocation solution to the tenant;
receiving acknowledgment of the tenant for the instance allocation solution; and
allocates, based on the instance allocation solution, the instance to the tenant from a cloud computing resource pool managed by the cloud computing management system.
12 . The system according to claim 11 , wherein the processor resource requirement comprises a product of a quantity of processors and duration.
13 . The system according to claim 11 , wherein the instance allocation request further comprises an available area, a minimum quantity of synchronous running instances, or shortest valid running time, wherein the minimum quantity of synchronous running instances indicates a minimum quantity of instances that run simultaneously, the shortest valid running time indicates shortest running time of an instance each time.
14 . The system according to claim 11 , wherein the instance allocation solution comprises an available area in which the instance is located, or an instance specification of the instance.
15 . The system according to claim 11 , wherein the processor is configured to generate the instance allocation solution by:
determine that the cloud computing resource pool cannot meet the instance allocation request; and
notifying the tenant the instance allocation request cannot be met.
16 . The system according to claim 15 , wherein the processor is configured to notify the tenant by:
generating adjustment solutions, wherein each adjustment solution indicates to adjust one or more parameters in the instance allocation request; and
receiving an adjustment solution selected by the tenant.
17 . The system according to claim 15 , wherein the processor is configured to notify the tenant by:
notifying the tenant to adjust the instance allocation request; and
generating the instance allocation solution based on an adjusted instance allocation request.
18 . The system according to claim 15 , wherein the processor is further configured to:
determine whether the start time arrives; and
when the start time arrives, starts the instance.
19 . The system according to claim 15 , wherein the processor is further configured to:
send an estimated expense corresponding to the instance allocation solution to the tenant; and
receive a confirmation of the estimated expense corresponding to the instance allocation solution from the tenant.
20 . The system according to claim 11 , further comprising an interface,
wherein the processor is configured to:
prior to allocating the instance,
receive via the interface a task uploaded by the tenant; and
store the task in a storage resource in the cloud computing resource pool; and
after allocating the instance,
run the stored task on the instance.