CN109783185B - Cloud virtual machine creating method and device and cloud equipment - Google Patents

Cloud virtual machine creating method and device and cloud equipment Download PDF

Info

Publication number
CN109783185B
CN109783185B CN201711122415.6A CN201711122415A CN109783185B CN 109783185 B CN109783185 B CN 109783185B CN 201711122415 A CN201711122415 A CN 201711122415A CN 109783185 B CN109783185 B CN 109783185B
Authority
CN
China
Prior art keywords
cloud
resource
virtual machine
cloud resource
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711122415.6A
Other languages
Chinese (zh)
Other versions
CN109783185A (en
Inventor
余焕军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201711122415.6A priority Critical patent/CN109783185B/en
Publication of CN109783185A publication Critical patent/CN109783185A/en
Application granted granted Critical
Publication of CN109783185B publication Critical patent/CN109783185B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application provides a cloud virtual machine creating method and device and cloud equipment. The method comprises the following steps: when the inventory of first cloud resources of a cloud virtual machine with a first specification is insufficient, selecting second cloud resources with hardware configuration higher than or equal to the first cloud resources from a cloud resource library; determining cost data of replacing the first cloud resource with the second cloud resource according to the attribute information of the second cloud resource and the first cloud resource; and if the cost data meet the set cost rule, establishing a second specification cloud virtual machine with the specification grade higher than or equal to the first specification based on the second cloud resource. By adopting the technical scheme provided by the embodiment of the application, when the inventory of the first cloud resource of the cloud virtual machine of the first specification is insufficient, the cloud client can be automatically upgraded to the new specification under the non-perception condition, the complex process that the cloud virtual machine of the new specification can be reapplied by changing the program in the prior art is omitted, and the application experience of the cloud client is improved.

Description

Cloud virtual machine creating method and device and cloud equipment
Technical Field
The application relates to the technical field of computers, in particular to a cloud virtual machine creating method and device and cloud equipment.
Background
Cloud services are a great revolution of the IT (Information Technology) industry, and in order to enable cloud services to be popular with all people, cloud manufacturers (such as the airy cloud) include cloud customers of other industries which do not know the IT and the internet, the cloud manufacturers can package various hardware resources provided by the hardware manufacturers to provide service capacity to the outside, so that the cloud customers can flexibly and conveniently use virtual computer resources according to requirements through a network. The cloud manufacturer defines the service capability provided by the cloud manufacturer to be various specifications, and the different specifications correspond to the cloud service and have different computing capability, storage capability, network capability and the like.
For cloud manufacturers, most IDCs (Internet Data centers) generally need to be replaced once in about three years, otherwise the failure rate is greatly increased, and therefore cloud manufacturers need to continuously provide cloud services of new specifications, and the corresponding stock quantities of old specifications are less and less, and even the stocks are not prepared. For cloud customers, the cloud customers only care about the capability of cloud services and do not care about the change of cloud hardware, so once a certain specification meets the business requirements of the cloud customers, the same specification is used for subsequent business expansion. When an old specification meets a business requirement and needs to be expanded temporarily, some parameters written in the program need to be changed to complete application of a new specification due to the fact that the old specification is eliminated without stock and the like.
Disclosure of Invention
The cloud virtual machine creation method, the cloud virtual machine creation device and the cloud equipment solve the problem that in the prior art, when the inventory of an old specification cloud virtual machine is insufficient, a program is continuously changed to apply a new specification cloud virtual machine, so that inconvenience is brought.
In one embodiment of the application, a cloud virtual machine creation method is provided. The method comprises the following steps:
when the inventory of first cloud resources of a first specification cloud virtual machine is insufficient, selecting second cloud resources with hardware configuration higher than or equal to the first cloud resources from a cloud resource library;
determining cost data for replacing the first cloud resource with the second cloud resource according to the attribute information of the second cloud resource and the first cloud resource;
and if the cost data meet the set cost rule, establishing a second specification cloud virtual machine with the specification grade higher than or equal to that of the first specification on the basis of the second cloud resource.
In another embodiment of the present application, a cloud virtual machine creation apparatus is provided. The device includes:
the selection module is used for selecting a second cloud resource with hardware configuration higher than or equal to that of a first cloud resource from a cloud resource library when the inventory of the first cloud resource of the cloud virtual machine with the first specification is insufficient;
the determining module is used for determining cost data for replacing the first cloud resource with the second cloud resource according to the second cloud resource and the attribute information of the first cloud resource;
and the creating module is used for creating a second specification cloud virtual machine with the specification grade higher than or equal to the first specification based on the second cloud resource when the cost data meet the set cost rule.
In yet another embodiment of the present application, a cloud device is provided. This high in the clouds equipment includes: a memory and a processor; wherein the content of the first and second substances,
the memory is used for storing programs;
the processor, coupled to the memory, to execute the program stored in the memory to:
when the inventory of first cloud resources of a first specification cloud virtual machine is insufficient, selecting second cloud resources with hardware configuration higher than or equal to the first cloud resources from the cloud resource library;
determining cost data for replacing the first cloud resource with the second cloud resource according to the second cloud resource and the attribute information of the first cloud resource;
and if the cost data meet the set cost rule, establishing a second specification cloud virtual machine with the specification grade higher than or equal to that of the first specification on the basis of the second cloud resource.
According to the technical scheme provided by the embodiment of the application, when the stock of first cloud resources for creating the cloud virtual machine with the first specification is insufficient, second cloud resources capable of replacing the first cloud resources are automatically searched from a cloud resource library so as to create the cloud virtual machine with the second specification, wherein the specification grade of the second cloud virtual machine is higher than or equal to that of the first specification; the cloud client can be automatically upgraded to the cloud virtual machine of the new specification under the non-perception condition, the complex process that the cloud virtual machine of the new specification can be reapplied only by changing programs in the prior art is omitted, the whole cloud service application process is simplified, and the application experience of the cloud client is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flow chart of a cloud virtual machine creation method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a cost data determination process of replacing a first cloud resource with a second cloud resource in a cloud virtual machine creation method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a cloud virtual machine creation method according to another embodiment of the present application;
fig. 4 is a schematic structural diagram of a cloud virtual machine creation apparatus according to an embodiment of the present application;
fig. 5 is a schematic diagram illustrating an implementation structure of a determination module in the cloud virtual machine creation apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a cloud virtual machine creation apparatus according to another embodiment of the present application;
fig. 7 is a schematic structural diagram of a cloud device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a cloud device according to another embodiment of the present application.
Detailed Description
Some cloud clients have an application (or purchase) agent that generates an application specification using one or more application policies (e.g., unmodified application policies, modified application policies, customer-generated application policies, etc.), one or more application rules, and/or other information that specifies one or more cloud service instances (i.e., cloud-side virtual machines) that should be applied for with one or more application data. Application data may include, but is not limited to: whether an off-the-shelf instance or a standard instance should be applied for, the type of cloud service instance, time, price, performance, number of cloud service instances, and/or other information related to one or more cloud service instances that should be applied for. Therefore, when the stock of the cloud resources of the cloud manufacturer with the old specification is insufficient, the cloud clients can apply for the cloud virtual machine with the new specification by changing some parameters written in the program, and the cloud clients have poor experience; if the cloud client does not know how to modify, the outsourcing company needs to pay a part of IT maintenance cost to change the program.
From the perspective of cloud manufacturers, the trend that cloud manufacturers increase new machine types to replace part of old machine types is inevitable, and as the cloud service provided by the new-generation machine types is higher in performance and lower in unit cost; the new Machine type can provide the output quantity of a Virtual Machine (VM) which is several times of that of the old Machine type under the condition that the volume, the power consumption and the like are slightly lower than those of the old Machine type, and the cost of a single VM is greatly reduced. The method has the advantages that the virtual machine with high specification is directly created by the new model through actual measurement, and is supplied to the virtual machine with low specification created by the applied old model, the operation income of cloud manufacturers can not be influenced, and more cloud customers can be attracted due to the improvement of the cloud service performance.
Therefore, according to the cloud virtual machine creation method, the cloud virtual machine creation device and the cloud equipment provided by the embodiment of the invention, when the inventory of the first cloud resource for creating the cloud virtual machine with the first specification is insufficient, the second cloud resource capable of replacing the first cloud resource in the cloud resources is obtained, and the cloud virtual machine with the second specification, which is higher than or equal to the first specification in specification grade, is created based on the second cloud resource. Therefore, when the inventory of the first cloud resources of the cloud client applying the cloud virtual machine with the first specification is insufficient, the cloud client can be automatically upgraded to the cloud virtual machine with the new specification without perception, the step of program change in the prior art is omitted, the whole application process of cloud service is simplified, and the application experience of the cloud client is improved.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a schematic structural diagram of a cloud virtual machine creation method according to an exemplary embodiment of the present application. As shown in fig. 1, includes:
101. when the inventory of first cloud resources of a first specification cloud virtual machine is insufficient, second cloud resources with hardware configuration higher than or equal to the first cloud resources are selected from a cloud resource library.
102. And determining cost data for replacing the first cloud resource with the second cloud resource according to the attribute information of the second cloud resource and the first cloud resource.
103. And if the cost data meet a set cost rule, establishing a second specification cloud virtual machine with the specification grade higher than or equal to that of the first specification based on the second cloud resource.
In the foregoing 101, the cloud virtual machines with different specifications have different computing capabilities, storage capabilities, network capabilities, and the like. In fact, a corresponding specification is defined for the created cloud virtual machine according to the performance that the cloud virtual machine can provide. A Host (Host) represents a particular physical machine instance running in the cloud resources. The cloud resources comprise one or more hosts, each cloud resource is the aggregation of one or more isomorphic hosts, and the isomorphic hosts meet the condition that CPUs are from the same hardware provider and the same mode. The host of the multiple virtual machines can be one, or the host of one virtual machine can be multiple.
The hardware configuration is used to represent hardware parameter indexes of cloud resource (i.e. host) products, such as: CPU, memory, hard disk, etc. The hardware configuration is usually determined when the physical machine leaves the factory. Therefore, by comparing the hardware configurations, the second cloud resources with the hardware configurations higher than or equal to the first remote resources can be selected from the cloud resource library.
In 102, the attribute information may include: basic data related to resource construction and a virtual machine capacity index. Basic data related to resource construction may include, but is not limited to: the first data related to hardware construction, the second data related to network construction, the third data related to electric power construction, the fourth data related to operation maintenance construction and the like. In specific implementation, the capacity difference can be calculated based on the virtual machine capacity index corresponding to the first cloud resource and the virtual machine capacity index corresponding to the second cloud resource; then, calculating a basic data difference according to basic data corresponding to the first cloud resource and relevant to resource construction and basic data corresponding to the second cloud resource and relevant to resource construction; and finally, determining cost data for replacing the first cloud resource by the second cloud resource according to the productivity difference and the basic data difference. In the above 103, the set cost rule may be set according to the requirement of the actual application scenario. For example, the theoretical basis of design for setting the cost rule may be: under the condition that the selling price identical to that of the cloud virtual machine with the first specification is adopted, the profit of replacing the first cloud resource with the second cloud resource is unchanged or improved, and then the first cloud resource can be replaced with the second cloud resource. If the cost data calculated in the step 102 is obtained based on profit theory, the set cost rule may be: not less than zero. That is, if the cost data obtained through the above calculation is not less than zero, the cloud virtual machine of the second specification may be created based on the second cloud resource. The specification level of the second specification cloud virtual machine is higher than or equal to that of the first specification cloud virtual machine, that is to say: the comprehensive performance of the second specification cloud virtual machine in various aspects such as computing capacity, storage capacity and network capacity is equal to or higher than that of the first specification virtual machine. In an exemplary scenario, the second specification cloud virtual machine may be created by the second cloud resource with reference to performance parameters of the first specification cloud virtual machine.
According to the technical scheme provided by the embodiment, when the stock of the first cloud resources for creating the cloud virtual machine with the first specification is insufficient, the second cloud resources capable of replacing the first cloud resources are automatically searched from the cloud resource library so as to create the cloud virtual machine with the second specification, wherein the specification grade of the cloud virtual machine is higher than or equal to that of the first specification; the cloud client can be automatically upgraded to the cloud virtual machine of the new specification under the non-perception condition, the complex process that the cloud virtual machine of the new specification can be reapplied only by changing programs in the prior art is omitted, the whole cloud service application process is simplified, and the application experience of the cloud client is improved.
In an exemplary application scenario, in the above embodiment 102, the cost data of replacing the first cloud resource with the second cloud resource is determined according to the attribute information of the second cloud resource and the first cloud resource, as shown in fig. 2, the following steps may be adopted:
1021. acquiring preset unit reference data;
1022. calculating to obtain a capacity difference according to the unit reference data, the virtual machine capacity index corresponding to the first cloud resource and the virtual machine capacity index corresponding to the second cloud resource;
1023. calculating to obtain a basic data difference according to basic data corresponding to the first cloud resource and relevant to resource construction and basic data corresponding to the second cloud resource and relevant to resource construction;
1024. determining the cost data based on the capacity difference and the basic data difference.
The preset unit reference data can be default data or a selling unit price of the cloud virtual machine with the first specification.
In an exemplary scheme, the 1022 may be implemented by the following steps: calculating an index difference according to the virtual machine capacity index corresponding to the first cloud resource and the virtual machine capacity index corresponding to the second cloud resource; and calculating to obtain the productivity difference according to the unit reference data and the index difference. For example: the capacity difference is equal to the product of the unit reference data and the index difference.
The basic data related to resource construction mentioned in 1023 above may include: the first data related to hardware construction, the second data related to network construction, the third data related to electric power construction, the fourth data related to operation maintenance construction and the like. In a specific implementation, the basic data difference may be calculated based on only the first data related to hardware construction, that is, 1023 is implemented as follows: and taking a difference value between first data related to hardware construction in the basic data related to resource construction corresponding to the first cloud resource and first data related to hardware construction in the basic data related to resource construction corresponding to the second cloud resource as the basic data difference.
Here, it should be noted that: here, only the difference between the first data of the two cloud resources related to the hardware construction is used as the base data difference, because: finding whether the first cloud resource or the second cloud resource is found through actual measurement, and obtaining second data related to network construction, third data related to electric power construction and fourth data related to operation maintenance construction; these several data are generally comparable; thus, in the above calculation, the difference between the above three data is negligible.
Certainly, in order to improve the calculation accuracy, the sum of the difference a1 of the first data of the two cloud resources related to the hardware construction, the difference a2 of the second data of the two cloud resources related to the network construction, the difference a3 of the third data of the two cloud resources related to the electric power construction, the difference a4 of the fourth data of the two cloud resources related to the operation maintenance construction, and the like may also be used as the basic data difference; i.e. the base data difference = a1+ a2+ a3+ a4.
In the implementation of the 1024, the difference between the productivity difference and the basic data difference can be directly determined as the cost data.
Further, the cloud virtual machine creation method provided by the above embodiment may be executed when a creation event is triggered, that is, the method provided by the above embodiment further includes the following steps:
responding to a creation event of a cloud virtual machine which triggers and applies for the first specification, and acquiring the remaining inventory information of the first cloud resource;
and if the remaining inventory information is smaller than a preset inventory lower limit, the inventory of the first cloud resource is insufficient.
In an exemplary scheme, the creating event may be triggered when a request for applying for the first specification cloud virtual machine sent by a cloud client is received; or triggering when the cloud virtual machine with the first specification is monitored to be down.
The cloud virtual machine downtime of the first specification can be discovered by cloud equipment (such as virtual machine management equipment) through autonomous detection or discovered when downtime information reported by a cloud client is received; this embodiment is not particularly limited thereto.
What needs to be added here is: by adopting the scheme, the cloud resources can be automatically replaced to create the cloud virtual machine when the first cloud resource is insufficient in inventory, so that no matter whether the cloud client applies for creating the cloud virtual machine of the first specification or the cloud side equipment automatically applies when the cloud virtual machine of the first specification is down, corresponding replacement prompt information needs to be output to inform the cloud client or cloud manufacturer maintenance personnel and the like. Therefore, the cloud virtual machine creation method provided by the embodiment further includes the following steps:
and after the second specification cloud virtual machine is established, sending replacement prompt information carrying the second specification cloud virtual machine information to a cloud client applying the first rule cloud virtual machine.
In particular implementation, the output object of the replacement prompt message can be determined according to the trigger body of the creation event. For example, when the trigger subject of the creation event is a cloud client, the replacement prompt information carrying the cloud virtual machine information of the second specification may be sent to the cloud client; when the trigger body of the creation event is the cloud device, the replacement prompt message carrying the information of the cloud virtual machine of the second specification can be sent to the cloud side device, the mailbox of the designated maintenance personnel and/or the terminal.
Fig. 3 is a flowchart illustrating a virtual machine creation method according to another embodiment of the present invention. As shown in fig. 3, the method provided in this embodiment includes:
301. the method comprises the steps of responding to a request for applying a first specification cloud end virtual machine sent by a cloud client, and judging whether inventory of first cloud end resources for creating the first specification cloud end virtual machine is sufficient or not.
302. And when the inventory of the first cloud resources is insufficient, acquiring second cloud resources capable of replacing the first cloud resources in the cloud resource library.
303. And creating a second specification cloud virtual machine with the specification grade higher than or equal to the first specification based on the second cloud resources.
304. And after the second specification cloud virtual machine is established, feeding back a response carrying the second specification cloud virtual machine information to the cloud client.
In the step 301, the cloud client uploads the application request through an application channel (such as an official webpage) provided by the cloud service provider, or sends an application request through a third party application channel. The request comprises specification information of the cloud virtual machine. When the first cloud resource inventory is insufficient, the second cloud resource capable of replacing the first cloud resource is automatically acquired by the cloud side equipment, and then the second specification cloud virtual machine capable of meeting the cloud client requirement or higher than the cloud client requirement is generated based on the second cloud resource, so that the cloud client needing to apply the cloud virtual machine through the program with the application parameters can obtain the cloud virtual machine with the same specification grade or high specification grade without changing the application program, the application process is simplified, and the good feeling of the cloud client to the cloud service can be effectively improved.
In the above 302: acquiring a second cloud resource capable of replacing the first cloud resource in the cloud resource library, wherein the method can be realized by adopting the following steps:
3021. selecting a cloud resource with hardware configuration higher than or equal to that of the first cloud resource from the cloud resource library as an alternative resource;
3022. determining cost data for replacing the first cloud resource with the alternative resource according to the alternative resource and the attribute information of the first remote resource;
3033. and if the cost data meet a set cost rule, taking the alternative resource as the second cloud resource.
Reference is made to the corresponding contents in the above embodiments for the above 3021 to 3033, which are not described herein again.
In 304, in practical application, the information about whether the creation of the cloud virtual machine of the second specification is successful may be notified in the following two ways:
the first method is that for the official website cloud client provided by the cloud service provider, the official website page can be directly used for prompting after the cloud virtual machine with the second specification is successfully established.
And secondly, for the OpenAPI cloud client, after the cloud client applies for the cloud client and the cloud virtual machine with the second specification is successfully created, the cloud client is notified in a short message form.
In the prior art, when a cloud client purchases a cloud virtual machine of a first specification, a message notifying the cloud client only relates to success or failure. However, for the method provided by this embodiment, when the cloud client purchases the cloud virtual machine of the first specification, the cloud side device may automatically create the cloud virtual machine of the new specification for the cloud client, and therefore, the information notifying the cloud client needs to include information of the cloud virtual machine of the second specification.
In addition, it should be noted here that: in the technical scheme provided by this embodiment, when the inventory of the cloud virtual machine of the first specification is insufficient, the cloud virtual machine of the second specification with the specification level higher than or equal to that of the first specification is automatically created for the cloud client, so as to ensure that the performance of the cloud virtual machine provided for the cloud client is not reduced.
The following describes the calculation content of the cost data related to the technical solution provided by the embodiment of the present invention with reference to a specific application scenario to assist understanding.
What needs to be added here is: the following description is provided in conjunction with specific application scenarios, and thus, in order to comply with the usage of words in the application scenarios, some of the words provided in the above embodiments are adjusted as indicated in parentheses after the first occurrence of the adjusted words.
The above mentioned theoretical basis for determining the cost data in this embodiment is: when the second cloud resource is selected to replace the first cloud resource, the selling unit price (unit reference data) of the first cloud virtual machine is still adopted, and if the difference between the profit obtained by using the second cloud resource and the profit obtained by using the first cloud resource (cost data) meets the requirement (cost rule), the second cloud resource can replace the first cloud resource. The specific accounting thinking is as follows:
step 1, calculating cost P (namely basic data related to resource construction)
Wherein, the cost P mainly comprises four parts: physical machine cost (i.e., first data related to hardware build), power cost (i.e., third data related to power build), maintenance cost (i.e., fourth data related to operating maintenance build), and operator bandwidth cost (i.e., second data related to network build), among others. The physical machine cost is the cost required for constructing hardware (such as a host, a switch, a cabinet device, and the like) required to be purchased by the second cloud resource. The power cost mainly comprises power consumption of a physical machine, an interactive machine, a cabinet device and the like; the maintenance costs include: and trusteeship maintenance costs of machine positions, racks, machine rooms and the like. The cost P calculation described above can be characterized by the following equation:
P=A+B+C+D
wherein A is the cost of the physical machine; b is the cost of electricity; c is maintenance cost; d is the operator bandwidth cost.
Step 2, calculating the amount of sales S of the cloud resources
The salable amount S mainly consists of a product of a salable price of the cloud virtual machine created by the cloud resource and a virtual machine capacity index. The virtual machine capacity index represents the total amount of virtual machines which can be created by cloud resources in total. Specifically, the marketable quantity S calculation can be characterized by the following equation:
S=E+F
wherein E is the selling price of the virtual machine; f is the capacity index of the virtual machine
Step 3, calculating profit M
Profit M is mainly determined by the marketable amount S minus the cost P. The profit M calculation described above can be characterized by the following equation:
M=S-P
the process of determining whether the second cloud resource can replace the first cloud resource is essentially: whether the difference between the profit obtained by using the first cloud resource to provide the cloud service and the profit obtained by using the second cloud resource to provide the cloud service is greater than or equal to zero. If the number of the first cloud resources is larger than or equal to zero, the second cloud resources are used for replacing the first cloud resources, and the loss of the cloud service provider cannot be caused.
Therefore, the process of determining whether the second cloud resource can replace the first cloud resource can be substantially represented by the following formula:
the profit obtained when the first cloud resource provides the cloud service is characterized as follows:
M1=S1-P1=E1*F1-(A1+B1+C1+D1)
the profit obtained by the second cloud resource providing the cloud service is characterized as follows:
M2=S2-P2=E2*F2-(A2+B2+C2+D2)
calculating a profit margin characterization for replacing the first cloud resource with the second cloud resource as follows:
TM=M2-M1=E2*F2-E1*F1-(A2+B2+C2+D2)+(A1+B1+C1+D1)
what needs to be added here is: due to the development of science and technology, the new model is smaller in size and lower in power consumption than the original model, so that the new model can be regarded as the same in size, the same in power consumption and the same in maintenance cost; then C1= C2 and B1= B2 in the same unit space. In addition, the operator bandwidth cost (which can be simply understood as: broadband maintenance cost) is influenced by the cloud customer usage, and therefore is the same regardless of the new model or the old model, and thus D1= D2 in the same unit space. In addition, since it is checked whether the second cloud resource can replace the first cloud resource, although the performance of the second cloud resource may be higher than that of the first cloud resource, the price is unchanged in the case of upgrade replacement, so e1= e2.
According to the above-mentioned contents, formula
TM=M2-M1=E2*F2-E1*F1-(A2+B2+C2+D2)+(A1+B1+C1+D1)
=E1*F2-E1*F1-(A1+B2+C1+D1)+(A1+B1+C1+D1)
=E1(F2-F1)-(A2-A1)
The profit difference between the second cloud resource and the first cloud resource is greater than 0, and the second cloud resource can be used to replace the first cloud resource. Therefore, the condition that the second cloud resource replaces the first cloud resource is that TM is greater than or equal to 0, that is, it is sufficient that E1 (F2-F1) - (A2-A1) > =0 is satisfied, where E1 is a selling unit price of the first specification cloud virtual machine created by the first cloud resource, F2 is the number of cloud virtual machines produced by the second cloud resource, A2 is a physical machine cost for constructing the second cloud resource, and A1 is a physical machine cost for constructing the first cloud resource.
In some of the flows described in the specification, claims, and above-described figures of the present application, a number of operations are included that occur in a particular order, which operations may be performed out of order or in parallel as they occur herein. The sequence numbers of the operations, e.g., 101, 102, etc., are used merely to distinguish between the various operations, and do not represent any order of execution per se. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
Fig. 4 is a schematic structural diagram of a cloud virtual machine creation apparatus according to an embodiment of the present application. As shown in fig. 4, the cloud virtual machine creation apparatus includes: an acquisition module 401 and a creation module 402. Wherein the content of the first and second substances,
the selecting module 401 is configured to select, when an inventory of first cloud resources of a cloud virtual machine with a first specification is insufficient, second cloud resources with a hardware configuration higher than or equal to the first cloud resources from the cloud resource library;
a determining module 402, configured to determine, according to the attribute information of the second cloud resource and the first cloud resource, cost data of replacing the first cloud resource with the second cloud resource;
a creating module 403, configured to create, based on the second cloud resource, a second specification cloud virtual machine with a specification level higher than or equal to the first specification when the cost data meets a set cost rule.
Further, the attribute information includes: basic data related to resource construction and a virtual machine capacity index. And, the determining module 402 is further configured to obtain preset unit reference data; calculating to obtain a capacity difference according to the unit reference data, the virtual machine capacity index corresponding to the first cloud resource and the virtual machine capacity index corresponding to the second cloud resource; calculating to obtain a basic data difference according to basic data corresponding to the first cloud resource and relevant to resource construction and basic data corresponding to the second cloud resource and relevant to resource construction; determining the cost data based on the capacity difference and the basic data difference.
In an alternative embodiment, as shown in FIG. 5, the determining module 402 includes: an acquisition unit 4021, a first calculation unit 4022, a second calculation unit 4023, and a determination unit 4024. The acquiring unit 4021 is configured to acquire preset unit reference data; the first calculating unit 4022 is configured to calculate a capacity difference according to the unit reference data, the virtual machine capacity index corresponding to the first cloud resource, and the virtual machine capacity index corresponding to the second cloud resource; the second computing unit 4023 is configured to compute a basic data difference according to the basic data corresponding to the first cloud resource and related to resource construction and the basic data corresponding to the second cloud resource and related to resource construction; the determining unit 4024 is configured to determine the cost data based on the capacity difference and the basic data difference.
Further, the first calculation unit 4022 is further configured to: calculating an index difference according to the virtual machine capacity index corresponding to the first cloud resource and the virtual machine capacity index corresponding to the second cloud resource; and calculating to obtain the productivity difference according to the unit reference data and the index difference.
Further, the basic data related to resource construction includes: the method comprises the steps of establishing a network according to the first data related to hardware establishment, the second data related to network establishment, the third data related to power establishment and the fourth data related to operation maintenance establishment; correspondingly, the second computing unit 4023 is further configured to take a difference between first data related to hardware construction in the base data related to resource construction corresponding to the first cloud resource and first data related to hardware construction in the base data related to resource construction corresponding to the second cloud resource as the base data difference.
Further, as shown in fig. 6, the cloud virtual machine creation apparatus further includes an inventory determination module 404. The inventory determination module 404 is configured to obtain remaining inventory information of the first cloud resource in response to a creation event triggering application of the cloud virtual machine of the first specification; and if the remaining inventory information is smaller than a preset inventory lower limit, the inventory of the first cloud resource is insufficient.
Further, as shown in fig. 6, the cloud virtual machine creation apparatus further includes a triggering module 405. The triggering module 405 is configured to trigger the creating event when receiving a request for applying the cloud virtual machine of the first specification, which is sent by a cloud client; or triggering the creating event when the cloud virtual machine with the first specification is monitored to be down.
Further, as shown in fig. 6, the cloud virtual machine creation apparatus further includes a sending module 406. The sending module 406 is configured to send, to a cloud client that applies for the first rule cloud virtual machine, replacement prompt information carrying information of the second specification cloud virtual machine after the second specification cloud virtual machine is created.
According to the technical scheme provided by the embodiment, when the stock of the first cloud resources for creating the cloud virtual machine with the first specification is insufficient, the second cloud resources capable of replacing the first cloud resources are automatically searched from the cloud resource library so as to create the cloud virtual machine with the second specification, wherein the specification grade of the cloud virtual machine is higher than or equal to that of the first specification; the cloud client can be automatically upgraded to the new specification cloud virtual machine under the condition of no perception, the tedious process that the new specification cloud virtual machine can be reapplied only by changing programs in the prior art is omitted, the whole cloud service application process is simplified, and the application experience degree of the cloud client is improved.
Here, it should be noted that: the cloud virtual machine creation apparatus provided in the above embodiments may implement the technical solutions described in the above method embodiments, and the specific implementation principle of each module or unit may refer to the corresponding content in the above method embodiments, which is not described herein again.
Fig. 7 is a schematic structural diagram of a cloud device according to an embodiment of the present application. This high in the clouds equipment includes: a memory 501 and a processor 502. The memory 501 may be configured to store other various data to support operations on the cloud device. Examples of such data include instructions for any application or method operating on the cloud device. The memory 501 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The processor 502 is coupled to the memory 501 for executing programs stored in the memory 501 for:
when the inventory of first cloud resources of a first specification cloud virtual machine is insufficient, selecting second cloud resources with hardware configuration higher than or equal to the first cloud resources from the cloud resource library;
determining cost data for replacing the first cloud resource with the second cloud resource according to the second cloud resource and the attribute information of the first cloud resource;
and if the cost data meet the set cost rule, establishing a second specification cloud virtual machine with the specification grade higher than or equal to that of the first specification on the basis of the second cloud resource.
When the processor 502 executes the program in the memory 501, in addition to the above functions, other functions may be implemented, which may be specifically referred to the description of the foregoing embodiments.
Further, as shown in fig. 8, the electronic device further includes: communication component 503, display 504, power component 505, audio component 506, and other components. Only some of the components are schematically shown in fig. 8, and the electronic device is not meant to include only the components shown in fig. 8.
Accordingly, embodiments of the present application further provide a computer-readable storage medium storing a computer program, where the computer program, when executed by a computer, can implement the steps or functions of the cloud virtual machine creation method provided in the foregoing embodiments.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present application.

Claims (8)

1. A cloud virtual machine creation method is characterized by comprising the following steps:
when the inventory of first cloud resources of a first specification cloud virtual machine is insufficient, selecting second cloud resources with hardware configuration higher than or equal to the first cloud resources from a cloud resource library;
determining cost data for replacing the first cloud resource with the second cloud resource according to the second cloud resource and the attribute information of the first cloud resource; wherein the attribute information includes: basic data related to resource construction and a virtual machine capacity index;
if the cost data meet a set cost rule, establishing a second specification cloud virtual machine with the specification grade higher than or equal to the first specification based on the second cloud resource;
determining cost data for replacing the first cloud resource with the second cloud resource according to the attribute information of the second cloud resource and the first cloud resource, including:
acquiring preset unit reference data;
calculating to obtain a capacity difference according to the unit reference data, the virtual machine capacity index corresponding to the first cloud resource and the virtual machine capacity index corresponding to the second cloud resource;
calculating to obtain a basic data difference according to the basic data corresponding to the first cloud resource and relevant to resource construction and the basic data corresponding to the second cloud resource and relevant to resource construction;
determining the cost data based on the capacity difference and the basic data difference.
2. The method of claim 1, wherein calculating a capacity difference according to the unit reference data, the virtual machine capacity index corresponding to the first cloud resource, and the virtual machine capacity index corresponding to the second cloud resource comprises:
calculating an index difference according to the virtual machine capacity index corresponding to the first cloud resource and the virtual machine capacity index corresponding to the second cloud resource;
and calculating to obtain the productivity difference according to the unit reference data and the index difference.
3. The method of claim 1, wherein the base data related to resource construction comprises: the method comprises the steps of establishing a network according to the first data related to hardware establishment, the second data related to network establishment, the third data related to power establishment and the fourth data related to operation maintenance establishment; and
calculating to obtain a basic data difference according to the basic data corresponding to the first cloud resource and related to resource construction and the basic data corresponding to the second cloud resource and related to resource construction, including:
and taking a difference value between first data related to hardware construction in the basic data related to resource construction corresponding to the first cloud resource and first data related to hardware construction in the basic data related to resource construction corresponding to the second cloud resource as the basic data difference.
4. The method of any of claims 1 to 3, further comprising:
responding to a creation event of a cloud virtual machine applying the first specification, and acquiring the residual inventory information of the first cloud resource;
and if the remaining inventory information is smaller than a preset inventory lower limit, the inventory of the first cloud resource is insufficient.
5. The method of claim 4, further comprising:
triggering the creation event when a request for applying the first specification cloud virtual machine sent by a cloud client is received; or
And triggering the creating event when the cloud virtual machine with the first specification is monitored to be down.
6. The method of claim 5, further comprising:
and after the second specification cloud virtual machine is established, sending replacement prompt information carrying the second specification cloud virtual machine information to a cloud client applying the first specification cloud virtual machine.
7. A cloud virtual machine creation device, comprising:
the selection module is used for selecting a second cloud resource with hardware configuration higher than or equal to a first cloud resource from a cloud resource library when the inventory of the first cloud resource of the cloud virtual machine with the first specification is insufficient;
the determining module is used for determining cost data for replacing the first cloud resource with the second cloud resource according to the second cloud resource and the attribute information of the first cloud resource;
the creating module is used for creating a second specification cloud virtual machine with the specification grade higher than or equal to the first specification based on the second cloud resource when the cost data meet a set cost rule;
wherein the attribute information includes: basic data related to resource construction and a virtual machine capacity index; the determining module is further used for acquiring preset unit reference data; calculating to obtain a capacity difference according to the unit reference data, the virtual machine capacity index corresponding to the first cloud resource and the virtual machine capacity index corresponding to the second cloud resource; calculating to obtain a basic data difference according to the basic data corresponding to the first cloud resource and relevant to resource construction and the basic data corresponding to the second cloud resource and relevant to resource construction; determining the cost data based on the capacity difference and the basic data difference.
8. A cloud device, comprising: a memory and a processor;
the memory is used for storing programs;
the processor, coupled with the memory, to execute the program stored in the memory to:
when the inventory of first cloud resources of a first specification cloud virtual machine is insufficient, selecting second cloud resources with hardware configuration higher than or equal to the first cloud resources from the cloud resource library;
determining cost data for replacing the first cloud resource with the second cloud resource according to the second cloud resource and the attribute information of the first cloud resource; wherein the attribute information includes: basic data related to resource construction and a virtual machine capacity index;
if the cost data meet a set cost rule, establishing a second specification cloud virtual machine with the specification grade higher than or equal to the first specification based on the second cloud resource;
determining cost data for replacing the first cloud resource with the second cloud resource according to the attribute information of the second cloud resource and the first cloud resource, including:
acquiring preset unit reference data;
calculating to obtain a capacity difference according to the unit reference data, the virtual machine capacity index corresponding to the first cloud resource and the virtual machine capacity index corresponding to the second cloud resource;
calculating to obtain a basic data difference according to the basic data corresponding to the first cloud resource and relevant to resource construction and the basic data corresponding to the second cloud resource and relevant to resource construction;
determining the cost data based on the capacity difference and the basic data difference.
CN201711122415.6A 2017-11-14 2017-11-14 Cloud virtual machine creating method and device and cloud equipment Active CN109783185B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711122415.6A CN109783185B (en) 2017-11-14 2017-11-14 Cloud virtual machine creating method and device and cloud equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711122415.6A CN109783185B (en) 2017-11-14 2017-11-14 Cloud virtual machine creating method and device and cloud equipment

Publications (2)

Publication Number Publication Date
CN109783185A CN109783185A (en) 2019-05-21
CN109783185B true CN109783185B (en) 2023-01-10

Family

ID=66493424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711122415.6A Active CN109783185B (en) 2017-11-14 2017-11-14 Cloud virtual machine creating method and device and cloud equipment

Country Status (1)

Country Link
CN (1) CN109783185B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112882820A (en) * 2019-11-29 2021-06-01 北京百度网讯科技有限公司 Method and device for configuring resources
CN112532687B (en) * 2020-11-03 2022-07-08 杭州朗澈科技有限公司 Method and system for capacity expansion of kubernets load balancer

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103810015A (en) * 2012-11-09 2014-05-21 华为技术有限公司 Virtual machine establishing method and equipment
CN104601664A (en) * 2014-12-22 2015-05-06 西安电子科技大学 Cloud computing platform resource management and virtual machine dispatching control system
CN107239337A (en) * 2016-03-28 2017-10-10 北京智梵网络科技有限公司 The distribution of virtual resources and dispatching method and system
CN107306289A (en) * 2016-04-21 2017-10-31 中国移动通信集团重庆有限公司 A kind of load-balancing method and equipment based on cloud computing

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI459296B (en) * 2012-02-21 2014-11-01 Hon Hai Prec Ind Co Ltd Method for increasing virtual machines
US9858095B2 (en) * 2012-09-17 2018-01-02 International Business Machines Corporation Dynamic virtual machine resizing in a cloud computing infrastructure

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103810015A (en) * 2012-11-09 2014-05-21 华为技术有限公司 Virtual machine establishing method and equipment
CN104601664A (en) * 2014-12-22 2015-05-06 西安电子科技大学 Cloud computing platform resource management and virtual machine dispatching control system
CN107239337A (en) * 2016-03-28 2017-10-10 北京智梵网络科技有限公司 The distribution of virtual resources and dispatching method and system
CN107306289A (en) * 2016-04-21 2017-10-31 中国移动通信集团重庆有限公司 A kind of load-balancing method and equipment based on cloud computing

Also Published As

Publication number Publication date
CN109783185A (en) 2019-05-21

Similar Documents

Publication Publication Date Title
US20210006628A1 (en) Managing operation of instances
US9781020B2 (en) Deploying applications in a networked computing environment
US9112733B2 (en) Managing service level agreements using statistical process control in a networked computing environment
US8566137B1 (en) Inventory across multiple marketplaces
US10318987B2 (en) Managing cookie data
CN105556499B (en) Intelligent auto zoom
US20140278807A1 (en) Cloud service optimization for cost, performance and configuration
US8612596B1 (en) Resource planning for computing
CN108696399B (en) Business service test method and device
CN104954410A (en) Message pushing method, device thereof and server
US10679178B2 (en) Big data sourcing simulator
US8412560B1 (en) Price optimization using current offers
US20110173131A1 (en) Attribute aggregation for standard product unit
CN109783185B (en) Cloud virtual machine creating method and device and cloud equipment
US20170161767A1 (en) System and method for intelligent discount distribution based on subscriber tier
CN109409957A (en) A kind of method for sending information, information transmitting apparatus, server and storage medium
US10459826B2 (en) Run time workload threshold alerts for customer profiling visualization
US11037214B2 (en) Generation of performance offerings for interactive applications
WO2017060996A1 (en) Investment management proposal system
US20150058068A1 (en) Methods and systems for managing suppliers and flow of goods on an ecommerce platform
CN114637507A (en) Interface layout adapting method, system, storage medium and electronic equipment
TWI579691B (en) Method and System of IDC Computer Room Entity and Virtual Host Integration Management
CN114253746A (en) Product application service management method, device, equipment and medium based on software as a service (SaaS)
KR20210082770A (en) Method for serving revenue-type social netwok service
CN111506340A (en) Business rule information processing method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant