CN109783185A - Cloud virtual machine creation method, device and cloud device - Google Patents

Cloud virtual machine creation method, device and cloud device Download PDF

Info

Publication number
CN109783185A
CN109783185A CN201711122415.6A CN201711122415A CN109783185A CN 109783185 A CN109783185 A CN 109783185A CN 201711122415 A CN201711122415 A CN 201711122415A CN 109783185 A CN109783185 A CN 109783185A
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.)
Granted
Application number
CN201711122415.6A
Other languages
Chinese (zh)
Other versions
CN109783185B (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

Landscapes

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

Abstract

The embodiment of the present application provides a kind of cloud virtual machine creation method, device and cloud device.Wherein, when method includes: the shortage of stock of the first cloud resource of the first specification cloud virtual machine that creates, the second cloud resource that hardware configuration is greater than or equal to the first cloud resource is chosen from the resources bank of cloud;According to the attribute information of the second cloud resource and the first cloud resource, the worth of data that the first cloud resource is replaced using the second cloud resource is determined;If worth of data meets setting cost rule, it is based on the second cloud resource, creation specification grade is greater than or equal to the second specification cloud virtual machine of the first specification.Using technical solution provided by the embodiments of the present application, cloud client is when applying for the shortage of stock of the first cloud resource of the first specification cloud virtual machine, new spec can be automatically upgraded in the case where unaware, the complicated processes for needing change program that could apply for new spec cloud virtual machine again in the prior art are eliminated, the application Experience Degree of cloud client is improved.

Description

Cloud virtual machine creation method, device and cloud device
Technical field
This application involves field of computer technology more particularly to a kind of cloud virtual machine creation method, device and cloud to set It is standby.
Background technique
Cloud service is the major transformation of IT (Information Technology, information technology) industry, cloud manufacturer (such as Ah In cloud) in order to allow the general favour owner of cloud service, the other industry cloud client comprising being ignorant of IT and internet, cloud manufacturer can all seal The various hardware resources that dress hardware vendor provides externally provide service ability, to allow cloud client can be by network bullet as desired Property, easily use virtual computer resource.The service ability that cloud manufacturer can externally provide it is defined as plurality of specifications, no Same specification corresponds to cloud service with different computing capabilitys, storage capacity and network capabilities etc..
For cloud manufacturer, most of IDC (Internet Data Center, Internet data center) are 3 years general Left and right just needs replacing once, and otherwise failure rate can greatly increase, therefore cloud manufacturer need to constantly release the cloud service of new spec, phase The old specification stock amount answered is just fewer and fewer, or even does not get ready the goods.For cloud client, cloud client is only concerned the energy of cloud service Power is not relevant for the variation of cloud hardware, once therefore certain specification meet the business demand of cloud client, follow-up business extends just It will use identical specification.Some part cloud client, such as requirement specification parameter is write to this kind of cloud extremely in requisition procedure Client may eliminate the reasons such as not in stock because of old specification, need when old specification meets business demand and temporary needs dilatation The application of new spec could be completed by changing some parameters write Si in a program.
Summary of the invention
A kind of cloud virtual machine creation method, device and cloud device provided by the embodiments of the present application, to solve existing skill Inconvenience brought by new spec cloud virtual machine could be applied for by continuing change program in art when the old specification cloud virtual machine shortage of stock.
In one embodiment of the application, a kind of cloud virtual machine creation method is provided.This method comprises:
When creating the shortage of stock of the first cloud resource of the first specification cloud virtual machine, chosen from the resources bank of cloud hard Part configuration is greater than or equal to the second cloud resource of first cloud resource;
According to the attribute information of second cloud resource and first cloud resource, determines and use second cloud Resource replaces the worth of data of first cloud resource;
If the worth of data meets setting cost rule, it is based on second cloud resource, creation specification grade is high In or equal to first specification the second specification cloud virtual machine.
In another embodiment of the application, a kind of cloud virtual machine creating device is provided.The device includes:
Module is chosen, when the shortage of stock of the first cloud resource for creating the first specification cloud virtual machine, from cloud The second cloud resource that hardware configuration is greater than or equal to first cloud resource is chosen in resources bank;
Determining module, for the attribute information according to second cloud resource and first cloud resource, determination makes The worth of data of first cloud resource is replaced with second cloud resource;
Creation module, for when the worth of data meets setting cost rule, being then based on second cloud resource, Create the second specification cloud virtual machine that specification grade is greater than or equal to first specification.
In the another embodiment of the application, a kind of cloud device is provided.The cloud device includes: memory and processing Device;Wherein,
The memory, for storing program;
The processor is coupled with the memory, for executing the described program stored in the memory, with In:
When creating the shortage of stock of the first cloud resource of the first specification cloud virtual machine, selected from the cloud resources bank Hardware configuration is taken to be greater than or equal to the second cloud resource of first cloud resource;
According to the attribute information of second cloud resource and first cloud resource, determines and use second cloud Resource replaces the worth of data of first cloud resource;
If the worth of data meets setting cost rule, it is based on second cloud resource, creation specification grade is high In or equal to first specification the second specification cloud virtual machine.
Technical solution provided by the embodiments of the present application, in the library of the first cloud resource of the first specification cloud virtual machine that creates When depositing deficiency, the second cloud resource that can replace the first cloud resource is searched, from the resources bank of cloud automatically to create specification etc. Grade is greater than or equal to the second specification cloud virtual machine of the first specification;Cloud client can automatically be upgraded in the case where unaware To new spec cloud virtual machine, eliminate needs change program that could apply for the numerous of new spec cloud virtual machine again in the prior art Trivial process simplifies entire cloud service application process, improves the application Experience Degree of cloud client.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this Shen Some embodiments please for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow diagram for the cloud virtual machine creation method that one embodiment of the application provides;
The second cloud resource replacement first is used in the cloud virtual machine creation method that Fig. 2 provides for one embodiment of the application The worth of data of cloud resource determines the schematic diagram of process;
Fig. 3 is the flow diagram for the cloud virtual machine creation method that another embodiment of the application provides;
Fig. 4 is the structural schematic diagram for the cloud virtual machine creating device that one embodiment of the application provides;
A kind of achievable structure of determining module in the cloud virtual machine creating device that Fig. 5 provides for one embodiment of the application Schematic diagram;
Fig. 6 is the structural schematic diagram for the cloud virtual machine creating device that another embodiment of the application provides;
Fig. 7 is the structural schematic diagram for the cloud device that one embodiment of the application provides;
Fig. 8 is the structural schematic diagram for the cloud device that another embodiment of the application provides.
Specific embodiment
A part of cloud client has application (or purchase) agency, and application agency uses one or more application strategies (for example, unmodified applies for strategy, the application strategy of modification, application strategy of client's generation etc.), one or more application rule Then and/or other information generates application specification, specified one for should being applied using one or more request for data or Multiple cloud service examples (i.e. cloud virtual machine).Request for data can include but is not limited to: should apply for that stock example is still marked Quasi- example, the type of cloud service example, the time, price, performance, the quantity of cloud service example and/or with should apply one Or the relevant other information of multiple cloud service examples.This just causes this part cloud client in the old specification cloud resources bank of cloud manufacturer When depositing deficiency, new spec cloud virtual machine, cloud customer experience could be applied for again by needing to change some parameters write extremely in a program It is bad;It needs that outsourcing company is looked for additionally to pay a part of IT maintenance expense if cloud client does not know how modification and is used to change journey Sequence.
From the angle analysis of cloud manufacturer, it is inevitable trend that cloud manufacturer, which increases new architecture to replace part older models, because The performance for the cloud service that type of new generation provides is higher, and unit cost is lower;New architecture can be slightly below old in volume, power consumption etc. In the case where type, moreover it is possible to VM (Virtual Machine, virtual machine) output quantity times over older models be provided, dropped significantly The low cost of single VM.It is obtained by actual measurement, directlys adopt the virtual machine supply application older models wound of new architecture creation high standard The virtual machine for the low specification built, can't to the operation of cloud manufacturer take in impact, instead can because of the raising of cloud service performance, Attract more cloudy client.
For this purpose, provided in an embodiment of the present invention a kind of cloud virtual machine creation method, device and cloud device, are creating When the shortage of stock of the first cloud resource of the first specification cloud virtual machine, the first cloud resource can be replaced by obtaining in the resource of cloud The second cloud resource, the second specification cloud for being greater than or equal to the first specification based on the second cloud asset creation specification grade is empty Quasi- machine.Make cloud client when applying for the shortage of stock of the first cloud resource of the first specification cloud virtual machine in this way, it can be noninductive It is automatically upgraded to the cloud virtual machine of new spec with knowing, eliminates the step of changing program in the prior art, simplify whole A cloud service application process improves the application Experience Degree of cloud client.
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description.Obviously, described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, those skilled in the art's every other implementation obtained without making creative work Example, shall fall in the protection scope of this application.
Fig. 1 is the structural schematic diagram for the cloud virtual machine creation method that one exemplary embodiment of the application provides.Such as Fig. 1 institute Show, comprising:
101, it when creating the shortage of stock of the first cloud resource of the first specification cloud virtual machine, is selected from the resources bank of cloud Hardware configuration is taken to be greater than or equal to the second cloud resource of first cloud resource.
102, it according to the attribute information of second cloud resource and first cloud resource, determines and uses described second Cloud resource replaces the worth of data of first cloud resource.
If 103, the worth of data meets setting cost rule, it is based on second cloud resource, creation specification etc. Grade is greater than or equal to the second specification cloud virtual machine of first specification.
In above-mentioned 101, computing capability, storage capacity, network capabilities of cloud virtual machine of different size etc. are different.It is real On border, corresponding specification is defined for it according to the performance that the cloud virtual machine of creation can be provided.One host (Host) generation Specific physical machine example that table is run in resource beyond the clouds.Cloud resource contains one or more host, often A cloud resource is the polymerization of the host of one or more isomorphisms, and the host of isomorphism, which refers to, meets CPU from same hardware Provider and identical mode.The host that the host of multiple virtual machines can be one or one virtual machine is multiple.
Hardware configuration is used to indicate that the hardware parameter index of cloud resource (i.e. host) product, such as: CPU, memory, hard The index of the parameters such as disk.Usual hardware configuration is just had determined that in physical machine factory.Therefore, match by comparing hardware It sets, the second cloud resource that hardware configuration is greater than or equal to first remote resource can be selected from the resources bank of cloud.
In above-mentioned 102, attribute information can include: basic data relevant to resource construction and virtual machine production capacity index.Its In, basic data relevant to resource construction may include but be not limited to: the first data relevant with constructed in hardware and network struction Relevant second data, third data relevant to electric power building construct relevant 4th data etc. with operation maintenance.It is specific real Shi Shi can be referred to based on the corresponding virtual machine production capacity index of the first cloud resource and the corresponding virtual machine production capacity of the second cloud resource It is poor that mark calculates production capacity;Then according to the corresponding basic data relevant to resource construction of the first cloud resource and second cloud The corresponding basic data relevant to resource construction of resource is held, it is poor to calculate basic data;Finally according to production capacity difference and basic data Difference determines the worth of data that the first cloud resource is replaced using the second cloud resource.In above-mentioned 103, setting cost rule can basis The setting of practical application scene demand.For example, the design theory basis of setting cost rule can are as follows: using and the first specification cloud In the case where the same sale price of virtual machine, the profit for replacing the first cloud resource using the second cloud resource is constant or mentions Height may be used the second cloud resource and replace the first cloud resource.If the worth of data being calculated in above-mentioned steps 102 It is to be obtained based on profit theory, then above-mentioned setting cost rule may is that not less than zero.That is, if passing through above-mentioned meter Obtained worth of data is not less than zero, then can be based on second cloud asset creation the second specification cloud virtual machine.Second specification The specification grade of cloud virtual machine is greater than or equal to the first specification cloud virtual machine, this means that: the second specification cloud virtual machine Equal to or higher than the first specification virtual machine in the various comprehensive performances of computing capability, storage capacity and network capabilities etc. Comprehensive performance.In an illustrative scheme, the performance parameter that the second cloud resource can refer to the first specification cloud virtual machine is come Create the second specification cloud virtual machine.
Technical solution provided in this embodiment, create the first specification cloud virtual machine the first cloud resource inventory not When sufficient, the second cloud resource that can replace the first cloud resource is searched, from the resources bank of cloud automatically to create specification grade height In or equal to the first specification the second specification cloud virtual machine;Cloud client can automatically be upgraded to newly in the case where unaware Specification cloud virtual machine eliminates the cumbersome mistake for needing change program that could apply for new spec cloud virtual machine again in the prior art Journey simplifies entire cloud service application process, improves the application Experience Degree of cloud client.
In an exemplary application scene, according to second cloud resource and described first in above-described embodiment 102 The attribute information of cloud resource determines the worth of data that first cloud resource is replaced using the second cloud resource, such as Fig. 2 institute Show, following steps can be used and realize suddenly:
1021, preset unit reference data are obtained;
1022, according to the unit reference data, the corresponding virtual machine production capacity index of first cloud resource and institute The corresponding virtual machine production capacity index of the second cloud resource is stated, it is poor that production capacity is calculated;
1023, according to the corresponding basic data relevant to resource construction of first cloud resource and second cloud The corresponding basic data relevant to resource construction of resource is held, it is poor that basic data is calculated;
1024, poor based on the production capacity difference and the basic data, determine the worth of data.
Wherein, above-mentioned preset unit reference data can be a default data or the first specification cloud virtual Machine sells unit price.
In an illustrative scheme, above-mentioned 1022, which can be used following step, is realized: according to first cloud resource Corresponding virtual machine production capacity index virtual machine production capacity index corresponding with second cloud resource, parameter are poor;According to institute Unit reference data and the index error are stated, it is poor that the production capacity is calculated.Such as: the production capacity difference is equal to the unit reference The product of data and the index error.
The basic data relevant to resource construction referred in above-mentioned 1023 can include: the first number relevant to constructed in hardware Constructed according to, the second data relevant to network struction, with electric power relevant third data, with operation maintenance building the relevant 4th Data etc..In the specific implementation, it is poor to calculate basic data that above-mentioned the first data relevant to constructed in hardware can be based only upon, i.e., on State 1023 specific implementation it is as follows: by the corresponding basic data relevant to resource construction of first cloud resource with In relevant first data of constructed in hardware and the corresponding basic data relevant to resource construction of second cloud resource with The difference of relevant first data of constructed in hardware, it is poor as the basic data.
What needs to be explained here is that: herein only by the difference of the first data relevant to constructed in hardware of two cloud resources As basic data difference, reason is: by actual measurement discovery either the first cloud resource or the second cloud resource, with net Network constructs relevant second data, third data relevant to electric power building, constructs relevant 4th data with operation maintenance;This Several data are generally not much different;Thus in above-mentioned calculating, the difference of above-mentioned three kinds of data is negligible.
It certainly, can also be by the first data relevant to constructed in hardware of two cloud resources in order to improve computational accuracy Difference a1, the difference a2 of the second data relevant to network struction of two cloud resources, two cloud resources with electric power structure Build the difference a3 of relevant third data, the difference a4 that relevant 4th data are constructed to operation maintenance of two cloud resources Deng, the sum of as basic data difference;That is basic data difference=a1+a2+a3+a4.
Above-mentioned 1024 in the specific implementation, can be determined as cost directly by the difference between production capacity difference and basic data difference Data.
Further, cloud virtual machine creation method provided by the above embodiment can the execution when creation event is triggered, Method i.e. provided by the above embodiment further includes following steps:
Apply for the creation event of the first specification cloud virtual machine in response to triggering, obtains first cloud resource Remaining inventory information;
If the residue inventory information is less than default inventory's lower limit, the shortage of stock of first cloud resource.
In an illustrative scheme, above-mentioned creation event can be in application first rule for receiving the transmission of cloud client It is triggered when the request of lattice cloud virtual machine;Or triggering when listening to the first specification cloud virtual machine delay machine.
Wherein, the first specification cloud virtual machine delay machine can be cloud device (such as virtual machine administration device) by independently examining Survey discovery, or the discovery when receiving the delay machine information that cloud client reports;The present embodiment is not especially limited this.
It needs exist for supplement: can automatically replace cloud in the first cloud resource shortage of stock using after this programme Asset creation cloud virtual machine, no matter therefore application creation the first specification cloud virtual machine be cloud client or first rule Cloud side apparatus requires to export corresponding replacement prompt information to inform cloud visitor from main application when lattice cloud virtual machine delay machine Hu Duanhuoyun manufacturer maintenance personnel etc..It follows that cloud virtual machine creation method provided by the above embodiment further include as Lower method:
After the completion of the second specification cloud virtual machine creation, to the cloud client for applying for the described first regular cloud virtual machine End sends the replacement prompt information for carrying the second specification cloud virtual machine information.
When it is implemented, can determine the output object of replacement prompt information according to the triggering main body of creation event.For example, When the triggering main body of the event of creation is cloud client, then it can be sent to cloud client and carry the second specification cloud virtual The replacement prompt information of machine information;It, then can be to cloud side apparatus, specified dimension when the triggering main body of the event of creation is cloud device The mailbox and/or terminal of shield personnel sends the replacement prompt information for carrying the second specification cloud virtual machine information.
Fig. 3 show another embodiment of the present invention provides virtual machine creation method flow diagram.As shown in figure 3, The method provided in this embodiment, comprising:
301, the request of application the first specification cloud virtual machine sent in response to cloud client, judges to create described first Whether the inventory of the first cloud resource of specification cloud virtual machine is sufficient.
302, when the shortage of stock of first cloud resource, the first cloud money can be replaced by obtaining in the resources bank of cloud The second cloud resource in source.
303, it is based on second cloud resource, creation specification grade is greater than or equal to the second specification of first specification Cloud virtual machine.
304, after the completion of the second specification cloud virtual machine creation, Xiang Suoshu cloud client feedback carries described second The response of specification cloud virtual machine information.
In above-mentioned 301, application channel (such as official Internet page) upload that cloud client is provided by cloud service provider is asked It asks, or applies for that channel issues application demand by third party.It include the specification information of cloud virtual machine in the request.First When the resource shortage of stock of cloud, the second cloud resource of the first cloud resource can be replaced because cloud side apparatus obtains automatically, then It can satisfy cloud customer demand or higher than the second specification cloud virtual machine of cloud customer demand, institute based on the generation of the second cloud resource For that need to be without modification application program by writing for the cloud client for extremely having the program application cloud virtual machine of application parameter The cloud virtual machine that equivalent specifications grade or high-grade specification can be obtained, simplifies application process, can effectively improve cloud client To the likability of cloud service.
In above-mentioned 302: obtaining the second cloud resource that can replace first cloud resource in the resources bank of cloud, can be used Following method is realized:
3021, the cloud money that hardware configuration is greater than or equal to first cloud resource is chosen from the cloud resources bank Source alternately resource;
3022, it according to the alternative resource and the attribute information of first remote resource, determines and uses the alternative money Replace the worth of data of first cloud resource in source;
If 3033, the worth of data meets setting cost rule, using the alternative resource as second cloud Resource.
Above-mentioned 3021~3033 can be found in the corresponding contents in above-described embodiment, and details are not described herein again.
In above-mentioned 304, in practical applications, the second specification cloud virtual machine creation whether successful information can be by as follows Two ways is notified:
The first, for cloud service provider provide official website cloud client, can directly be created in the second specification cloud virtual machine It builds up after function and is directly prompted by the official website page.
Second, for OpenAPI cloud client, cloud client has applied and the second specification cloud virtual machine creates successfully It is notified by way of short message afterwards.
In the prior art, because when cloud client buys the first specification cloud virtual machine, the message of notice cloud client is only related to Success or failure.But for buying the first specification cloud virtual machine, cloud side in cloud client using method provided in this embodiment Therefore the cloud virtual machine that equipment can create new spec automatically for cloud client is needed in the information of notice cloud client with second The information of specification cloud virtual machine.
In addition, there is also the need to explanations: in technical solution provided in this embodiment, in the first specification cloud virtual machine The shortage of stock when, for cloud client automatically create specification grade be greater than or equal to the first specification the second specification cloud virtual machine, It is to guarantee that the performance of the cloud virtual machine provided for cloud client will not decline.
Come below with reference to a specific application scenarios to cost involved in technical solution provided in an embodiment of the present invention The calculating content of data is described further, to help to understand.
Need exist for supplement: following the description combination concrete application scene is illustrated, therefore is answered to meet It is accustomed to the word of scene, some vocabulary for providing the various embodiments described above in following content are had adjusted, the word of adjustment Remittance can be indicated when occurring for the first time in bracket behind.
There is the determination theoretical basis for mentioning worth of data in the present embodiment to be among the above: selecting the replacement of the second cloud resource When the first cloud resource, monovalent (i.e. unit reference data) are still sold using the first cloud virtual machine, if using the second cloud It holds resource profit and meets the requirements (i.e. cost rule using the difference (i.e. worth of data) of the first resulting profit of cloud resource Then), then illustrate that the second cloud resource can replace the first cloud resource.Specific accounting thinking is as follows:
Step 1 calculates cost P (basic data i.e. relevant to resource construction)
Wherein, cost P is mainly made of four parts: physical machine cost (the first data i.e. relevant to constructed in hardware), electricity Power cost (third data i.e. relevant to electric power building), maintenance cost (constructing relevant 4th data with operation maintenance) and Operator's bandwidth cost (the second data i.e. relevant to network struction) etc..Wherein, physical machine cost constructs the second cloud The expense spent needed for the hardware (such as host, interchanger, cabinet device) bought needed for resource.Power cost is mainly by physics The power consumptions compositions such as machine, interaction machine, cabinet device;Maintenance cost includes: trustships maintenance cost such as seat in the plane, rack, computer room etc..It is above-mentioned Cost P calculating may be characterized as following formula:
P=A+B+C+D
Wherein, A is physical machine cost;B is power cost;C is maintenance cost;D is operator's bandwidth cost.
Step 2, calculate cloud resource can sales volume S
Can sales volume S mainly have cloud asset creation go out cloud virtual machine can sale price and virtual machine production capacity index Product composition.Wherein, the virtual machine total amount that virtual machine production capacity index characterization cloud resource can be created that in total.Specifically, can Sales volume S calculating may be characterized as following formula:
S=E+F
Wherein, E is the price that virtual machine can be sold;F is virtual machine production capacity index
Step 3 calculates profit M
Profit M mainly by can sales volume S subtract cost P.Above-mentioned profit M calculating may be characterized as following formula:
M=S-P
It determines the second cloud resource whether can replace on the process nature of the first cloud resource to be exactly: be provided using the first cloud Whether source provides cloud service profit and is greater than or is waited using the difference that the second cloud resource provides cloud service profit In zero.If more than or be equal to zero, illustrate using the second cloud resource replacement the first cloud resource not will cause cloud service provider Loss.
Therefore the process nature that whether above-mentioned the second cloud of determination resource can replace the first cloud resource may be characterized as follows Formula:
First cloud resource provides cloud service profit and is characterized as below:
M1=S1-P1=E1*F1- (A1+B1+C1+D1)
Second cloud resource provides cloud service profit and is characterized as below:
M2=S2-P2=E2*F2- (A2+B2+C2+D2)
It calculates and is characterized as below using the profit difference that the second cloud resource replaces the first cloud resource:
TM=M2-M1=E2*F2-E1*F1- (A2+B2+C2+D2)+(A1+B1+C1+D1)
Need exist for supplement: due to scientific and technological development so that new type and function smaller than original older models in volume Consumption is lower, therefore can think that for the time being volume is identical, and power consumption is identical, and maintenance cost is identical;Then C1=C2, B1 in same units space =B2.In addition, operator's bandwidth cost (can simply understand are as follows: broadband maintenance cost) is influenced by cloud client's use, therefore regardless of It is new architecture or older models, is the same, therefore D1=D2 in same units space.Further, since what is calculated is second Whether cloud resource can replace the first cloud resource, although the performance of the second cloud resource may be than the property of the first cloud resource Price is constant in the case that energy is high, but upgrading is replaced, therefore e1=e2.
There is above content it is found that 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 of second cloud resource and the first cloud resource is poor, if profit difference is greater than 0, it is believed that second can be used Cloud resource replaces the first cloud resource.Therefore, the condition that the second cloud resource replaces the first cloud resource is that TM is more than or equal to 0, that is, meet E1 (F2-F1)-(A2-A1) >=0, wherein E1 is that the first specification cloud that the first cloud asset creation goes out is empty Quasi- machine sells unit price, and F2 is the number of the cloud virtual machine of the second cloud resource output, and A2 is the second cloud resource of building Physical machine cost, A1 are the physical machine cost for constructing the first cloud resource.
In some processes described in the description of the present application, claims and above-mentioned attached drawing, contain according to spy Multiple operations that fixed sequence occurs, these operations can not be executed according to its sequence what appears in this article or be executed parallel. Serial number of operation such as 101,102 etc. is only used for distinguishing each different operation, and it is suitable that serial number itself does not represent any execution Sequence.In addition, these processes may include more or fewer operations, and these operations can be executed in order or be held parallel Row.It should be noted that the description such as herein " first ", " second ", be for distinguishing different message, equipment, module etc., Sequencing is not represented, " first " and " second " is not also limited and is different type.
Fig. 4 is the structural schematic diagram for the cloud virtual machine creating device that one embodiment of the application provides.As shown in figure 4, should Cloud virtual machine creating device includes: to obtain module 401 and creation module 402.Wherein,
Module 401 is chosen, when the shortage of stock of the first cloud resource for creating the first specification cloud virtual machine, from institute It states and chooses the second cloud resource that hardware configuration is greater than or equal to first cloud resource in the resources bank of cloud;
Determining module 402 is determined for the attribute information according to second cloud resource and first cloud resource The worth of data of first cloud resource is replaced using second cloud resource;
Creation module 403, for when the worth of data meets setting cost rule, then being provided based on second cloud Source, creation specification grade are greater than or equal to the second specification cloud virtual machine of first specification.
Further, the attribute information includes: basic data relevant to resource construction and virtual machine production capacity index.With And determining module 402 can also be used to obtain preset unit reference data;According to the unit reference data, first cloud The corresponding virtual machine production capacity index of resource and the corresponding virtual machine production capacity index of second cloud resource are held, production is calculated It can be poor;According to the corresponding basic data relevant to resource construction of first cloud resource and second cloud resource pair The basic data relevant to resource construction answered, it is poor to be calculated basic data;Based on the production capacity difference and the basic data Difference determines the worth of data.
In an optional embodiment, as shown in figure 5, determining module 402 includes: that acquiring unit 4021, first calculates list First 4022, second computing unit 4023 and determination unit 4024.Wherein, acquiring unit 4021 is for obtaining preset unit reference Data;First computing unit 4022 is used to be produced according to the unit reference data, the corresponding virtual machine of first cloud resource Energy index and the corresponding virtual machine production capacity index of second cloud resource, it is poor to be calculated production capacity;Second computing unit 4023 according to the corresponding basic data relevant to resource construction of first cloud resource and second cloud for providing The corresponding basic data relevant to resource construction in source, it is poor to be calculated basic data;Determination unit 4024 is used for based on described Production capacity difference and the basic data are poor, determine the worth of data.
Further, above-mentioned first computing unit 4022 is also used to: according to the corresponding virtual machine of first cloud resource Production capacity index virtual machine production capacity index corresponding with second cloud resource, parameter are poor;According to the unit reference number According to and the index error, it is poor that the production capacity is calculated.
Further, basic data relevant to resource construction includes: the first data relevant with constructed in hardware and network It constructs relevant second data, third data relevant to electric power building, construct relevant 4th data with operation maintenance;Accordingly , above-mentioned second computing unit 4023 is also used to the corresponding basic data relevant to resource construction of first cloud resource In the first data relevant to constructed in hardware and the corresponding basic data relevant with resource construction of second cloud resource In the first data relevant to constructed in hardware difference, it is poor as the basic data.
Further, as shown in fig. 6, cloud virtual machine creating device further includes inventory's determination module 404.The inventory determines Module 404 is used to apply in response to triggering the creation event of the first specification cloud virtual machine, obtains the first cloud money The remaining inventory information in source;If the residue inventory information is less than default inventory's lower limit, the inventory of first cloud resource It is insufficient.
Further, as shown in fig. 6, cloud virtual machine creating device further includes trigger module 405.The trigger module 405 When for receiving the request of application the first specification cloud virtual machine of cloud client transmission, the creation event is triggered; Or when listening to the first specification cloud virtual machine delay machine, the creation event is triggered.
Further, as shown in fig. 6, cloud virtual machine creating device further includes sending module 406.The sending module 406 After the completion of the second specification cloud virtual machine creation, to the cloud client hair for applying for the described first regular cloud virtual machine Send the replacement prompt information for carrying the second specification cloud virtual machine information.
Technical solution provided in this embodiment, create the first specification cloud virtual machine the first cloud resource inventory not When sufficient, the second cloud resource that can replace the first cloud resource is searched, from the resources bank of cloud automatically to create specification grade height In or equal to the first specification the second specification cloud virtual machine;Cloud client can automatically be upgraded to newly in the case where unaware Specification cloud virtual machine eliminates the cumbersome mistake for needing change program that could apply for new spec cloud virtual machine again in the prior art Journey simplifies entire cloud service application process, improves the application Experience Degree of cloud client.
What needs to be explained here is that: cloud virtual machine creating device provided by the above embodiment can realize that above-mentioned each method is real Technical solution described in example is applied, the principle that above-mentioned each module or unit implement can be found in above-mentioned each method embodiment Corresponding contents, details are not described herein again.
Fig. 7 is the structural schematic diagram for the cloud device that one embodiment of the application provides.The cloud device includes: memory 501 and processor 502.Memory 501 can be configured to store various other data to support the operation in equipment beyond the clouds. The example of these data includes the instruction of any application or method operated in equipment beyond the clouds.Memory 501 can By any kind of volatibility or non-volatile memory device or their combination realization, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM) may be programmed Read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
Processor 502 is coupled with memory 501, for executing the program stored in memory 501, to be used for:
When creating the shortage of stock of the first cloud resource of the first specification cloud virtual machine, selected from the cloud resources bank Hardware configuration is taken to be greater than or equal to the second cloud resource of first cloud resource;
According to the attribute information of second cloud resource and first cloud resource, determines and use second cloud Resource replaces the worth of data of first cloud resource;
If the worth of data meets setting cost rule, it is based on second cloud resource, creation specification grade is high In or equal to first specification the second specification cloud virtual machine.
Wherein, processor 502 other than function above, can also be achieved it when executing the program in memory 501 Its function, for details, reference can be made to the descriptions of previous embodiments.
Further, as shown in figure 8, electronic equipment further include: communication component 503, display 504, power supply module 505, sound Other components such as frequency component 506.Members are only schematically provided in Fig. 8, are not meant to that electronic equipment only includes shown in Fig. 8 Component.
Correspondingly, the embodiment of the present application also provides a kind of computer readable storage medium for being stored with computer program, institute State can be realized when computer program is computer-executed the various embodiments described above offer cloud virtual machine creation method step or Function.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member It is physically separated with being or may not be, component shown as a unit may or may not be physics list Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness Labour in the case where, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Method described in certain parts of example or embodiment.
Finally, it should be noted that above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although The application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. a kind of cloud virtual machine creation method characterized by comprising
When creating the shortage of stock of the first cloud resource of the first specification cloud virtual machine, hardware is chosen from the resources bank of cloud and is matched Set the second cloud resource greater than or equal to first cloud resource;
According to the attribute information of second cloud resource and first cloud resource, determines and use second cloud resource Replace the worth of data of first cloud resource;
If the worth of data meets setting cost rule, be based on second cloud resource, creation specification grade be higher than or Equal to the second specification cloud virtual machine of first specification.
2. the method according to claim 1, wherein the attribute information includes: base relevant to resource construction Plinth data and virtual machine production capacity index;And
According to the attribute information of second cloud resource and first cloud resource, determines and use second cloud resource Replace the worth of data of first cloud resource, comprising:
Obtain preset unit reference data;
According to the unit reference data, the corresponding virtual machine production capacity index of first cloud resource and second cloud The corresponding virtual machine production capacity index of resource, it is poor to be calculated production capacity;
According to the corresponding basic data relevant to resource construction of first cloud resource and second cloud resource pair The basic data relevant to resource construction answered, it is poor to be calculated basic data;
It is poor based on the production capacity difference and the basic data, determine the worth of data.
3. according to the method described in claim 2, it is characterized in that, being provided according to the unit reference data, first cloud The corresponding virtual machine production capacity index in source and the corresponding virtual machine production capacity index of second cloud resource, are calculated production capacity Difference, comprising:
It is produced according to the corresponding virtual machine production capacity index of first cloud resource virtual machine corresponding with second cloud resource Energy index, parameter are poor;
According to the unit reference data and the index error, it is poor that the production capacity is calculated.
4. according to the method described in claim 2, it is characterized in that, the basic data relevant to resource construction include: with Relevant first data of constructed in hardware, the second data relevant to network struction construct relevant third data and fortune with electric power Battalion's maintenance constructs relevant 4th data;And
According to the corresponding basic data relevant to resource construction of first cloud resource and second cloud resource pair The basic data relevant to resource construction answered, it is poor to be calculated basic data, comprising:
By the first number relevant with constructed in hardware in the corresponding basic data relevant to resource construction of first cloud resource The first number relevant with constructed in hardware accordingly and in the corresponding basic data relevant to resource construction of second cloud resource According to difference, it is poor as the basic data.
5. method according to claim 1 to 4, which is characterized in that further include:
Apply for the creation event of the first specification cloud virtual machine in response to triggering, obtains the residue of first cloud resource Inventory information;
If the residue inventory information is less than default inventory's lower limit, the shortage of stock of first cloud resource.
6. according to the method described in claim 5, it is characterized by further comprising:
When receiving the request of application the first specification cloud virtual machine of cloud client transmission, the creation event is triggered; Or
When listening to the first specification cloud virtual machine delay machine, the creation event is triggered.
7. the method according to any one of claim 6, which is characterized in that further include:
After the completion of the second specification cloud virtual machine creation, to the cloud client hair for applying for the described first regular cloud virtual machine Send the replacement prompt information for carrying the second specification cloud virtual machine information.
8. a kind of cloud virtual machine creating device characterized by comprising
Module is chosen, when the shortage of stock of the first cloud resource for creating the first specification cloud virtual machine, from cloud resource The second cloud resource that hardware configuration is greater than or equal to first cloud resource is chosen in library;
Determining module determines for the attribute information according to second cloud resource and first cloud resource and uses institute State the worth of data that the second cloud resource replaces first cloud resource;
Creation module, for when the worth of data meets setting cost rule, being then based on second cloud resource, creation Specification grade is greater than or equal to the second specification cloud virtual machine of first specification.
9. device according to claim 8, which is characterized in that the attribute information includes: base relevant to resource construction Plinth data and virtual machine production capacity index;And
The determining module is also used to obtain preset unit reference data;According to the unit reference data, first cloud The corresponding virtual machine production capacity index of resource and the corresponding virtual machine production capacity index of second cloud resource are held, production is calculated It can be poor;According to the corresponding basic data relevant to resource construction of first cloud resource and second cloud resource pair The basic data relevant to resource construction answered, it is poor to be calculated basic data;Based on the production capacity difference and the basic data Difference determines the worth of data.
10. a kind of cloud device characterized by comprising memory and processor;
The memory, for storing program;
The processor is coupled with the memory, for executing the described program stored in the memory, to be used for:
When creating the shortage of stock of the first cloud resource of the first specification cloud virtual machine, chosen from the cloud resources bank hard Part configuration is greater than or equal to the second cloud resource of first cloud resource;
According to the attribute information of second cloud resource and first cloud resource, determines and use second cloud resource Replace the worth of data of first cloud resource;
If the worth of data meets setting cost rule, be based on second cloud resource, creation specification grade be higher than or Equal to the second specification cloud virtual machine of first specification.
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 true CN109783185A (en) 2019-05-21
CN109783185B 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)

Cited By (2)

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

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130219390A1 (en) * 2012-02-21 2013-08-22 Hon Hai Precision Industry Co., Ltd. Cloud server and method for creating virtual machines
US20140082612A1 (en) * 2012-09-17 2014-03-20 International Business Machines Corporation Dynamic Virtual Machine Resizing in a Cloud Computing Infrastructure
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130219390A1 (en) * 2012-02-21 2013-08-22 Hon Hai Precision Industry Co., Ltd. Cloud server and method for creating virtual machines
US20140082612A1 (en) * 2012-09-17 2014-03-20 International Business Machines Corporation Dynamic Virtual Machine Resizing in a Cloud Computing Infrastructure
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

Cited By (3)

* 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
CN112532687A (en) * 2020-11-03 2021-03-19 杭州朗澈科技有限公司 Method and system for capacity expansion of kubernets load balancer
CN112532687B (en) * 2020-11-03 2022-07-08 杭州朗澈科技有限公司 Method and system for capacity expansion of kubernets load balancer

Also Published As

Publication number Publication date
CN109783185B (en) 2023-01-10

Similar Documents

Publication Publication Date Title
CN103858118A (en) Dynamically acquiring computing resources in a networked computing environment
JP6879940B2 (en) Service mounting method and equipment
CN102640475B (en) The method and system of resource-sharing between the cloud in cloud computing environment
US20190303989A1 (en) Virtualized distribution system offering virtual products or services
CN109582234A (en) Storage resources distribution method, device, electronic equipment and computer-readable medium
US8566137B1 (en) Inventory across multiple marketplaces
TW201439947A (en) Systems and methods for testing a financial trading system
CN111045932B (en) Business system simulation processing method and device, electronic equipment and storage medium
US11699186B1 (en) Systems and methods for IT supply chain management on a distributed platform
CN109978443A (en) Enterprise ERP and electric business platform data interconnection method and system, computer equipment
US20150332250A1 (en) Systems and methods for security features for retail cards exchange
CA2791397A1 (en) Curve engine
CN108762933A (en) Quality of data method of calibration and device
US10664786B2 (en) Using run time and historical customer profiling and analytics to determine customer test vs. production differences, and to enhance customer test effectiveness
CN109783185A (en) Cloud virtual machine creation method, device and cloud device
CN108153795A (en) A kind of data processing method, system and the device of electronics red packet
US10255142B2 (en) Using run time and historical customer profiling and analytics to determine customer disaster recovery vs. production differences, and to enhance customer disaster recovery readiness and effectiveness
CN105590178A (en) Resource processing method and resource processing device
US9760284B2 (en) Preserving virtual product data in a computer system
CN110335417A (en) The application system and method for electronics water ticket
US20080301025A1 (en) Application of brokering methods to availability characteristics
CN105190568B (en) User-defined pond
CN104461681B (en) A kind of ERP business simulatings system
Cheng et al. Cloud-based auction tower for perishable supply chain trading
KR20180138040A (en) Method and apparatus for of power trading using cryptocurrencies

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