CN108762885A - A kind of virtual machine creation method, device, management equipment and terminal device - Google Patents

A kind of virtual machine creation method, device, management equipment and terminal device Download PDF

Info

Publication number
CN108762885A
CN108762885A CN201810394277.5A CN201810394277A CN108762885A CN 108762885 A CN108762885 A CN 108762885A CN 201810394277 A CN201810394277 A CN 201810394277A CN 108762885 A CN108762885 A CN 108762885A
Authority
CN
China
Prior art keywords
virtual machine
prediction model
portrait
created
history
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
CN201810394277.5A
Other languages
Chinese (zh)
Other versions
CN108762885B (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201810394277.5A priority Critical patent/CN108762885B/en
Publication of CN108762885A publication Critical patent/CN108762885A/en
Application granted granted Critical
Publication of CN108762885B publication Critical patent/CN108762885B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Abstract

An embodiment of the present invention provides a kind of virtual machine creation method, device, management equipment and terminal devices, wherein and the method is applied to management equipment, including:It obtains virtual machine creating and instructs the user identifier for including, and obtain the corresponding history virtual machine portrait of the user identifier;It is drawn a portrait according to the history virtual machine, determines the prediction model of virtual machine to be created;The prediction model is sent to the corresponding terminal device of the user identifier, so that the terminal device shows the prediction model;Receive the adjust instruction for the prediction model that the terminal device is sent;According to the adjust instruction, the prediction model and available resource information, the virtual machine to be created is created.The technical solution of the embodiment of the present invention can make the resources of virtual machine distributed for user preferably meet user demand, to improve the availability of created virtual machine.

Description

A kind of virtual machine creation method, device, management equipment and terminal device
Technical field
The present invention relates to field of cloud computer technology, more particularly to a kind of virtual machine creation method, device, management equipment and Terminal device.
Background technology
Cloud computing is usually directed to the resource for providing dynamic easily extension by internet and being virtualization.Virtual machine is Refer to by software simulate have complete hardware system function, operate in complete computers system in a completely isolated environment System.In cloud computing system, scheduling of resource when creating virtual machine is to realize the important link of effective use shared resource.
The prior art common method in processing virtual machine scheduling of resource is:System is by analyzing each master in its resource pool The loading condition of machine, such as the cpu usage of each host, storage occupancy situation, the virtual machine to be created submitted according to user Attribute information, be that user's virtual machine to be created distributes resource appropriate.The attribute letter for the virtual machine to be created that user submits Breath, generally includes the information such as the CPU, memory size, storage size of virtual machine.
However, inventor has found in the implementation of the present invention, at least there are the following problems for the prior art:
The prior art needs user to submit the attribute information of virtual machine to be created, therefore, Yong Huxu when creating virtual machine The multinomial attribute information of virtual machine to be created is set, when the attribute information for the virtual machine to be created that user submits is not comprehensive, Resources of virtual machine for user's distribution may cannot be satisfied user demand, cannot be satisfied user so as to cause the virtual machine created Actual demand, the virtual machine availability of establishment is relatively low.
Invention content
The embodiment of the present invention is designed to provide a kind of dispatching method of virtual machine, device, management equipment and terminal device, Resources of virtual machine to be embodied as user's distribution preferably meets user demand, to improve the availability of created virtual machine. Specific technical solution is as follows:
In a first aspect, an embodiment of the present invention provides a kind of virtual machine creation method, it is applied to management equipment, including:
It obtains virtual machine creating and instructs the user identifier for including, and obtain the corresponding history virtual machine of the user identifier Portrait;
It is drawn a portrait according to the history virtual machine, determines the prediction model of virtual machine to be created;
The prediction model is sent to the corresponding terminal device of the user identifier, so that the terminal device shows institute State prediction model;
Receive the adjust instruction for the prediction model that the terminal device is sent;
According to the adjust instruction, the prediction model and available resource information, the virtual machine to be created is created.
Optionally, described to be drawn a portrait according to the history virtual machine, determine the prediction model of virtual machine to be created, including:
It obtains and presets Virtual Machine Model;
It is drawn a portrait according to the history virtual machine, determines the value of each parameter in the default Virtual Machine Model, obtain waiting creating Build the prediction model of virtual machine.
Optionally, described to be drawn a portrait according to the history virtual machine, determine the prediction model of virtual machine to be created, including:
It is drawn a portrait according to the history virtual machine, creates the initial virtual machine model for including corresponding parameter;
It is drawn a portrait according to the history virtual machine, determines the value of each parameter, obtain virtual machine to be created estimates mould Type.
Optionally, after the establishment virtual machine to be created, further include:
Acquire the portrait of the virtual machine to be created created.
Optionally, described according to the adjust instruction, the prediction model and available resource information, it waits creating described in establishment Before building virtual machine, further include:
The Current resource information of the resource area belonging to each virtual machine is obtained, the resource area includes:Cluster, domain control At least one of in device, storage region, the Current resource information includes Current resource distributed intelligence and Current resource consumption letter Breath;
According to the Current resource information, available resource information is determined.
Optionally, described to be drawn a portrait according to the history virtual machine, before the prediction model for determining virtual machine to be created, also wrap It includes:
Obtain user's portrait of the corresponding user identifier of virtual machine to be created;The user draws a portrait:User's mark The business segment belonging to business segment, the portfolio of the corresponding user of the user identifier, the user identifier belonging to knowing At least one of in type of service;
Correspondingly, described draw a portrait according to the history virtual machine, the prediction model of the virtual machine to be created is determined, wrap It includes:
According to history virtual machine portrait and user portrait, determine the virtual machine to be created estimates mould Type.
Optionally, the history virtual machine portrait, including:The central processor CPU utilization rate of the history virtual machine, institute State the disk read/write speed of the cpu load of history virtual machine, the memory usage of the history virtual machine, the history virtual machine Degree, the history virtual machine network load at least one of.
Optionally, the corresponding history virtual machine portrait of the user identifier, including:History corresponding with the user identifier Belonging to virtual machine portrait, history virtual machine corresponding with the project team belonging to user identifier portrait and the user identifier Business segment's corresponding history virtual machine portrait at least one of.
Second aspect, the embodiment of the present invention additionally provide a kind of virtual machine creation method, are applied to terminal device, including:
Receive the prediction model of virtual machine to be created;The prediction model of the virtual machine to be created is obtained by management equipment Virtual machine creating instructs the user identifier for including, and after obtaining the user identifier corresponding history virtual machine portrait, according to The prediction model that the history virtual machine portrait is determined and sent;
Show the prediction model;
Receive the adjust instruction for the prediction model;
The adjust instruction is sent to the management equipment, so that the management equipment is according to the adjust instruction, institute Prediction model and available resource information are stated, the virtual machine to be created is created.
The third aspect, the embodiment of the present invention additionally provide a kind of virtual machine creating device, are applied to management equipment, including:
Virtual machine portrait acquiring unit instructs the user identifier for including for obtaining virtual machine creating, and described in acquisition The corresponding history virtual machine portrait of user identifier;
Prediction model determination unit, for being drawn a portrait according to the history virtual machine, determine virtual machine to be created estimates mould Type;
Prediction model transmission unit, for the prediction model to be sent to the corresponding terminal device of the user identifier, So that the terminal device shows the prediction model;
Adjust instruction receiving unit refers to for receiving the adjustment for the prediction model that the terminal device is sent It enables;
Virtual machine creating unit, for according to the adjust instruction, the prediction model and available resource information, creating The virtual machine to be created.
Optionally, the prediction model determination unit, including:
Model obtains subelement, for obtaining default Virtual Machine Model;
First model determination subelement is drawn a portrait according to the history virtual machine, is determined each in the default Virtual Machine Model The value of parameter obtains the prediction model of virtual machine to be created.
Optionally, the prediction model determination unit, including:
Model creation subelement creates the initial virtual for including corresponding parameter for drawing a portrait according to the history virtual machine Machine model;
Second model determination subelement determines the value of each parameter, obtains for being drawn a portrait according to the history virtual machine To the prediction model of virtual machine to be created.
Optionally, described device further includes:
Portrait collecting unit, the portrait for acquiring the virtual machine to be created created.
Optionally, described device further includes:
Resource information acquiring unit, the Current resource information for obtaining the resource area belonging to each virtual machine, the money Source region includes:At least one of in cluster, domain controller, storage region, the Current resource information includes Current resource point Cloth information and Current resource consumption information;
Available resources determination unit, for according to the Current resource information, determining available resource information.
Optionally, described device further includes:
User's portrait acquiring unit, the user for obtaining the corresponding user identifier of virtual machine to be created draw a portrait;The use It draws a portrait at family:Business segment, the portfolio of the corresponding user of the user identifier belonging to the user identifier, the user At least one of in the type of service of business segment belonging to mark;
Correspondingly, the prediction model determination unit, is specifically used for:
According to history virtual machine portrait and user portrait, determine the virtual machine to be created estimates mould Type.
Optionally, the history virtual machine portrait, including:The central processor CPU utilization rate of the history virtual machine, institute State the disk read/write speed of the cpu load of history virtual machine, the memory usage of the history virtual machine, the history virtual machine Degree, the history virtual machine network load at least one of.
Optionally, the corresponding history virtual machine portrait of the user identifier, including:History corresponding with the user identifier Belonging to virtual machine portrait, history virtual machine corresponding with the project team belonging to user identifier portrait and the user identifier Business segment's corresponding history virtual machine portrait at least one of.
Fourth aspect, the embodiment of the present invention additionally provide a kind of virtual machine creating device, are applied to terminal device, including:
Prediction model receiving unit, the prediction model for receiving virtual machine to be created;The virtual machine to be created it is pre- It is to obtain virtual machine creating by management equipment to instruct the user identifier for including, and it is corresponding to obtain the user identifier to estimate model After history virtual machine portrait, being drawn a portrait according to the history virtual machine determines and the prediction model that sends;
Prediction model display unit, for showing the prediction model;
Adjust instruction receiving unit, for receiving the adjust instruction for the prediction model;
Adjust instruction transmission unit, for the adjust instruction to be sent to the management equipment, so that the management is set For according to the adjust instruction, the prediction model and available resource information, the virtual machine to be created is created.
5th aspect, the embodiment of the present invention additionally provide a kind of management equipment, including processor, communication interface, memory And communication bus, wherein the processor, the communication interface, the memory are completed mutual by the communication bus Communication;
The memory, for storing computer program;
The processor when for executing the program stored on memory, realizes any one side described in first aspect Method step.
6th aspect, the embodiment of the present invention additionally provide a kind of terminal device, including processor, communication interface, memory And communication bus, wherein the processor, the communication interface, the memory are completed mutual by the communication bus Communication;
The memory, for storing computer program;
The processor when for executing the program stored on memory, realizes the method and step described in second aspect.
7th aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, described computer-readable to deposit Instruction is stored in storage media, when run on a computer so that computer executes any virtual described in first aspect Machine creation method.
Eighth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, described computer-readable to deposit Instruction is stored in storage media, when run on a computer so that computer executes any virtual described in second aspect Machine creation method.
9th aspect, the embodiment of the present invention additionally provides a kind of computer program product including instruction, when it is being calculated When being run on machine so that computer executes any virtual machine creation method described in first aspect.
Tenth aspect, the embodiment of the present invention additionally provides a kind of computer program product including instruction, when it is being calculated When being run on machine so that computer executes any virtual machine creation method described in second aspect.
Virtual machine creation method, device, management equipment and terminal device provided in an embodiment of the present invention, wherein the side Method is applied to management equipment, including:It obtains virtual machine creating and instructs the user identifier for including, and obtain the user identifier pair The history virtual machine portrait answered;It is drawn a portrait according to the history virtual machine, determines the prediction model of the virtual machine to be created;By institute It states prediction model and is sent to the corresponding terminal device of the user identifier, so that the terminal device shows the prediction model; Receive the adjust instruction for the prediction model that the terminal device is sent;According to the adjust instruction, described estimate mould Type and available resource information create the virtual machine to be created.
Technical solution provided in an embodiment of the present invention is when creating virtual machine, first according to the corresponding user of virtual machine to be created The history virtual machine portrait of mark predicts prediction model, and it is to be created virtual which can meet user to a certain extent The performance of machine, then user determine the information that needs to be adjusted in prediction model further according to actual needs, so as to for User distributes the resources of virtual machine for more meeting user's actual need, and the virtual machine being created that is made preferably to meet the reality of user Demand improves the availability of the virtual machine of establishment.Certainly, implement any of the products of the present invention or method it is not absolutely required to same When reach all the above advantage.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described.
Fig. 1 is a kind of flow diagram of virtual machine creation method provided in an embodiment of the present invention;
Fig. 2 is that the prediction model of virtual machine creation method provided in an embodiment of the present invention determines a kind of flow signal of method Figure;
Fig. 3 is that the prediction model of virtual machine creation method provided in an embodiment of the present invention determines that another flow of method is shown It is intended to;
Fig. 4 is second of flow diagram of virtual machine creation method provided in an embodiment of the present invention;
Fig. 5 is the third flow diagram of virtual machine creation method provided in an embodiment of the present invention;
Fig. 6 is the 4th kind of flow diagram of virtual machine creation method provided in an embodiment of the present invention;
Fig. 7 is the 5th kind of flow diagram of virtual machine creation method provided in an embodiment of the present invention;
Fig. 8 is the 6th kind of flow diagram of virtual machine creation method provided in an embodiment of the present invention;
Fig. 9 is a kind of structural schematic diagram of virtual machine creating device provided in an embodiment of the present invention;
Figure 10 is another structural schematic diagram of virtual machine creating device provided in an embodiment of the present invention;
Figure 11 is a kind of structural schematic diagram of management equipment provided in an embodiment of the present invention;
Figure 12 is a kind of structural schematic diagram of terminal device provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is described.
In order to more meet the resources of virtual machine of user's actual need for user's distribution, make the virtual machine being created that for user The actual demand for preferably meeting user rises to the availability of the virtual machine of user's establishment, and an embodiment of the present invention provides one Kind of virtual machine creation method, device, management equipment and terminal device equipment, by first predicting prediction model, then user is again The information for needing to be adjusted in prediction model is determined according to actual needs, so as to more meet user for user's distribution The resources of virtual machine of actual demand makes the virtual machine being created that preferably meet the actual demand of user, improves the void of establishment The availability of quasi- machine.Virtual machine creation method is provided for the embodiments of the invention first below to be introduced.
It should be noted that the virtual machine creation method that the embodiment of the present invention is provided can be applied to internet industry Field of cloud calculation.
The virtual machine creation method that the embodiment of the present invention is provided, as shown in Figure 1, this method may include steps of:
S110:It obtains virtual machine creating and instructs the user identifier for including, and obtain the corresponding history of above-mentioned user identifier Virtual machine is drawn a portrait.
It is understood that user when creating virtual machine, can send establishment on terminal device corresponding to the user Virtual machine instructions, the establishment virtual machine instructions may include user identifier corresponding with the user.Above-mentioned user identifier can wrap Include the user name of user, the physical label of terminal device corresponding to the user, terminal device corresponding to the user network identity At least one of in.The physical label of above-mentioned terminal device can be medium access control (the Media Access of terminal device Control, MAC) address, terminal device host number etc., the network identity of above-mentioned terminal device can be terminal device The address Internet protocol (Internet Protocol, IP).Those skilled in the art can be set according to actual needs above-mentioned use The particular content of family mark, the embodiment of the present invention do not make specific limit to user identifier.
Above-mentioned history virtual machine portrait refers to each configuration parameter of the virtual machine created.For example, above-mentioned history virtual machine It draws a portrait, may include:The central processor CPU utilization rate of history virtual machine, the cpu load of history virtual machine, history virtual machine Memory usage, the memory size of history virtual machine, the disk read/write speed of history virtual machine, history virtual machine network At least one of in load.Those skilled in the art can also be arranged according to actual needs history virtual machine portrait include other Content, the application are not especially limited.
In practical applications, user may create one or more virtual machines, the virtual machine that user has created Information can react actual demand of the user to virtual machine configuration to a certain extent.Therefore, in embodiments of the present invention, may be used The user identifier for including is instructed to obtain virtual machine creating, and obtains the corresponding history virtual machine portrait of above-mentioned user identifier, So that management equipment can be created that the virtual machine that the actual demand with user is more consistent.
For example, can obtain virtual machine creating instructs the user name for including, and it is corresponding to obtain above-mentioned user name The history virtual machine of establishment is drawn a portrait.
S120:It is drawn a portrait according to above-mentioned history virtual machine, determines the prediction model of virtual machine to be created.
The information of the history virtual machine created due to user can react user and match to virtual machine to a certain extent Therefore the actual demand set in embodiments of the present invention, can draw a portrait according to above-mentioned history virtual machine, determine to be created virtual The prediction model of machine.Above-mentioned prediction model is the model of the virtual machine corresponding with user's actual need of tentative prediction, can be with Foundation is provided for determination virtual machine to be created.
For example, can draw a portrait according to above-mentioned history virtual machine, the parameters such as the CPU, memory, disk of virtual machine to be created are determined Parameter value the prediction model of virtual machine to be created is determined according to the parameter value determined.Specifically for example, user created 4 The CPU of history virtual machine, first history virtual machine is 1G, and the CPU of second each history virtual machine is 2G, third virtual machine CPU is 2G, and the CPU of the 4th virtual machine is 2G, is that user's establishment CPU is it is possible to according to this four history virtual machines The prediction model of 2G.
S130:Above-mentioned prediction model is sent to the corresponding terminal device of above-mentioned user identifier, so that above-mentioned terminal device Show above-mentioned prediction model.
It is understood that the prediction model in step S120 is predicted according to the virtual machine that user has created Model, and the model that establishment is actually needed in user may have deviation.It therefore, in embodiments of the present invention, can will be upper It states prediction model and is sent to the corresponding terminal device of above-mentioned user identifier, so that above-mentioned terminal device shows above-mentioned prediction model. After showing above-mentioned prediction model on the terminal device, user can judge that is predicted estimates from the prediction model shown Whether model can meet the actual needs of oneself.
S140:Receive the adjust instruction for above-mentioned prediction model that above-mentioned terminal device is sent.
User passes through the prediction model in terminal display, it can be determined that whether each parameter value in the prediction model predicted It is consistent with the actual needs of oneself.If prediction model does not meet actual needs, user can adjust in prediction model not to be inconsistent Closing the parameter value of the parameter of actual needs can will adjust after terminal device receives the parameter value after the adjustment of user's transmission Parameter value afterwards is sent to management equipment.Therefore, in embodiments of the present invention, management equipment can receive above-mentioned terminal device hair The adjust instruction for above-mentioned prediction model sent.May include being inputted on the terminal device by user in above-mentioned adjust instruction The parameter value of prediction model after adjustment.
S150:According to above-mentioned adjust instruction, above-mentioned prediction model and available resource information, create above-mentioned to be created virtual Machine.
Above-mentioned available resource information refers to the resource that available mode is in idle condition and be in resource pool, above-mentioned Resource can be the resources such as CPU, storage.
After step S140 receives adjust instruction, so that it may to determine each ginseng for the virtual machine to be created for meeting user demand Numerical value.But in practical applications, the available resources in resource pool are limited, rationally using the resource in resource pool, to create When virtual machine to be created, need to consider the available resource information in resource pool.It therefore, in embodiments of the present invention, can basis Above-mentioned adjust instruction, above-mentioned prediction model and available resource information create above-mentioned virtual machine to be created.
For example, the available resource information in resource pool can be obtained, in available resource information, select and to be created virtual It is corresponding to distribute virtual machine to be created from above-mentioned target resource for above-mentioned virtual machine to be created for the target resource that machine matches Resource, and create with according to the corresponding virtual machine of prediction model after the adjustment of the adjust instruction of user.Above-mentioned selection with it is to be created The target resource that virtual machine matches refers to that the target resource of selection should meet the requirement of virtual machine to be created, for example, waiting creating It builds virtual machine and needs 60G hard disks, then target resource should be just a machine not less than 6G storages.
Virtual machine creation method provided in an embodiment of the present invention, when creating virtual machine, first according to virtual machine pair to be created The history virtual machine portrait for the user identifier answered predicts prediction model, which, which can meet user to a certain extent, waits for The performance of virtual machine is created, the information that then user determines to need to be adjusted in prediction model further according to actual needs, from And can be the resources of virtual machine that user's distribution more meets user's actual need, so that the virtual machine being created that preferably is met use The actual demand at family improves the availability of the virtual machine of establishment.
It is understood that virtual machine includes each parameter such as CUP, memory, further include the corresponding parameter value of each parameter.It determines When the prediction model of virtual machine to be created, the corresponding each parameter of model and the corresponding value of each parameter are created simultaneously.At this In a kind of embodiment of inventive embodiments, as shown in Fig. 2, step S120 can be realized according to the following steps:
S121:It is drawn a portrait according to above-mentioned history virtual machine, creates the initial virtual machine model for including corresponding parameter;
S122:It is drawn a portrait according to above-mentioned history virtual machine, determines the value of each above-mentioned parameter, obtain the pre- of virtual machine to be created Estimate model.
The history virtual machine portrait that user has created both had included the parameter of virtual machine, also included the corresponding value of each parameter, Therefore in embodiments of the present invention, it can be drawn a portrait according to history virtual machine, create the initial virtual machine model for including corresponding parameter; It is drawn a portrait according to above-mentioned history virtual machine, determines the value of each above-mentioned parameter, obtain the prediction model of virtual machine to be created.To make The history virtual machine that obtained prediction model has been created with user more matches, and more meets the actual needs of user.
In practical applications, when creating the prediction model of virtual machine to be created, it is thus necessary to determine that each ginseng that prediction model includes The value of number and each parameter.Model creation process is more complex, and required creation time is longer, larger to the operating pressure of equipment.
Process is created for simplified model, reduces required creation time, to reduce the operating pressure to equipment, in this hair In a kind of embodiment of bright embodiment, as shown in figure 3, step S120 can be realized according to the following steps:
S123:It obtains and presets Virtual Machine Model;
S124:It is drawn a portrait according to above-mentioned history virtual machine, determines the value of each parameter in above-mentioned default Virtual Machine Model, obtain The prediction model of virtual machine to be created.
Above-mentioned default Virtual Machine Model can be the default Virtual Machine Model stored in management equipment, the Virtual Machine Model In may include the parameters such as CPU, memory created needed for virtual machine, can also include other ginsengs created needed for virtual machine Number, the embodiment of the present invention do not limit the specific type and number of parameter.
It obtains after presetting Virtual Machine Model, can be drawn a portrait according to history virtual machine, directly determined in default Virtual Machine Model The value of each parameter obtains above-mentioned prediction model, need not determine the parameter in prediction model, is created so as to simplified model Process reduces the time needed for model creation, reduces the operating pressure to equipment.
After the establishment for completing virtual machine to be created, for ease of subsequently continuing to create new virtual machine, in the embodiment of the present invention A kind of embodiment in, as shown in figure 4, after step S150, can also include the following steps:
S160:Acquire the portrait of the above-mentioned virtual machine to be created created.
It after the portrait for acquiring the virtual machine to be created created, can make when subsequently continuing to create new virtual machine, obtain To the portrait of the virtual machine to be created, so as to provide foundation to create new virtual machine.
It is understood that during counting available resource information, the completely corresponding resource of statistical management equipment Information, can be virtual machine to be created be assigned to effective resource, the resource in resource area can also be allowed to obtain effective profit With.Therefore, can also include following step as shown in figure 5, before step S150 in a kind of embodiment of the embodiment of the present invention Suddenly:
S170:The Current resource information of the resource area belonging to each virtual machine is obtained, above-mentioned resource area includes:Cluster, At least one of in domain controller, storage region, above-mentioned Current resource information includes Current resource distributed intelligence and Current resource Consumption information;
S180:According to above-mentioned Current resource information, available resource information is determined.
Above-mentioned each virtual machine refers to each virtual machine that above-mentioned management equipment has created.Above-mentioned resource distribution information refers to the resource-area Total resources in domain and the corresponding machine of each resource.
During creating virtual machine to be created, resource area of the available resource information belonging to each virtual machine is true It is fixed, the integrality of determined available resources can be improved, so as to rise to the resource of virtual machine distribution to be created Validity, and the effective rate of utilization of the resource in resource area can be improved.
In practical applications, the corresponding business information of user can also be that user determines virtual machine performance parameter to be created Foundation.For example, the corresponding business of user is video clipping, and at least 1000 minutes videos that need editing in one day, it is determined that The performance parameter of virtual machine should can meet user video editing needs, specifically, the storage of virtual machine can be more than 1000 The minute required storage 80G of video, the common CPU of video clipping are not less than 2GHz, then virtual machine to be created can be arranged CPU is 2HG.Therefore, in a kind of embodiment of the embodiment of the present invention, as shown in fig. 6, before step S120, can also include Following steps:
S190:Obtain user's portrait of the corresponding user identifier of virtual machine to be created;Above-mentioned user draws a portrait:Above-mentioned use The business point belonging to business segment, the portfolio of the corresponding user of above-mentioned user identifier, above-mentioned user identifier belonging to the mark of family At least one of in the type of service in portion;
Correspondingly, step S120 can specifically be realized according to the following steps:
S125:According to above-mentioned history virtual machine portrait and above-mentioned user portrait, the pre- of above-mentioned virtual machine to be created is determined Estimate model.
For Video service company, above-mentioned business segment can be software development portion, software test portion, at video Li Budengge branches;Above-mentioned portfolio can be user in 1 hour or in one day in the equal periods video of editing when The duration etc. of long, upload video, above-mentioned type of service can be the video clipping to video, video upload, video audit etc. Type of service.The particular content of above-mentioned user's portrait, those skilled in the art can be according to the actual needs in different application field It determines, the embodiment of the present invention does not limit the particular content of user's portrait specifically.
Using the corresponding business information of user as the foundation for creating virtual machine to be created, can be user's distribution with user from The resource that the business of thing is more consistent, to make the virtual machine to be created of establishment preferably meet the reality for the business that user is engaged in Demand further increases user experience.
In practical applications, user wants the virtual machine created, not only related to the virtual machine that user oneself once created, Also once created virtual machine has certain relationship to other users related to user.In a kind of embodiment party of the embodiment of the present invention In formula, the corresponding history virtual machine portrait of user identifier in step S110 may include:It is corresponding with above-mentioned user identifier to go through History virtual machine portrait, history virtual machine corresponding with the project team belonging to above-mentioned user identifier portrait and above-mentioned user identifier institute At least one of in the corresponding history virtual machine portrait of business segment of category.
For Video service company, above-mentioned project team for example can be domestic short animated item group, certain state's Economic News item The special project group such as mesh group, across year party video items group.Those skilled in the art can be set according to actual needs project team's content, The application does not limit specifically.
The embodiment of the present invention is when getting and the letter of the corresponding virtual machine of project team or business segment belonging to user identifier After breath, so that it may with more comprehensive virtual machines related with user, the virtual machine for more meeting user's actual need is determined for user.
In a specific embodiment of the invention, a kind of virtual machine creation method is provided, is applied to management equipment, such as schemes Shown in 7, include the following steps:
S210:It obtains virtual machine creating and instructs the user identifier for including, by big data load analysis, analysis management is set The information of standby corresponding each virtual machine information and the corresponding user of above-mentioned user identifier.
S220:According to the information of the step S210 users analyzed, user's portrait is obtained, above-mentioned user's portrait includes:On State business segment belonging to user identifier, the portfolio of the corresponding user of above-mentioned user identifier, the industry belonging to above-mentioned user identifier At least one being engaged in the type of service of branch.
S230:By the monitoring data collection device installed in the corresponding each virtual machine of above-mentioned management equipment, monitor each virtual Machine, and acquire monitoring data.
S240:According to the monitoring data of step S230 acquisitions, available resource information is obtained.
S250:According to the monitoring data of step S230 acquisitions, the corresponding history virtual machine portrait of above-mentioned user identifier is obtained.
S260:According to above-mentioned user portrait and above-mentioned history virtual machine portrait, customer analysis model is determined.
Customer analysis model can specifically include:CPU customer analysis model, memory customer analysis model, hard disk user point Analyse model and user's portrait analysis model.
Wherein, CPU customer analysis model UMACPUCan be:
In formula (1), n is the virtual machine number of establishment that the business segment belonging to above-mentioned user identifier includes;VMMCPUUi For the cpu busy percentage of i-th of virtual machine;VMMCPULiFor the cpu load of i-th of virtual machine;μ1For the weight system of cpu busy percentage Number;μ2For the weight coefficient of cpu load.
Memory customer analysis model UMAMEMCan be:
In formula (2), n is the virtual machine number of establishment that the business segment belonging to above-mentioned user identifier includes;VMMMEMi For the memory usage of i-th of virtual machine;μ3For the weight coefficient of memory.
Hard disk customer analysis model UMADISKCan be:
In formula (3), n is the virtual machine number of establishment that the business segment belonging to above-mentioned user identifier includes;UMADISK For the hard drive read/write speed of i-th of virtual machine;μ3For the weight coefficient of hard disk.
User draw a portrait analysis model can be:
UMADependency6*BL+μ7*BC+μ8*BK (4)
In formula (3), BL is the corresponding number of business segment belonging to user identifier;BC is that above-mentioned user identifier is corresponding The portfolio of user;BK is the corresponding number of type of service of the business belonging to user identifier;μ6For the industry belonging to user identifier The weight coefficient of business branch;μ7The weight coefficient of the portfolio of the corresponding user of above-mentioned user identifier;μ8Belonging to user identifier The weight coefficient of the type of service of business.
Above-mentioned μ1To μ8Value those skilled in the art can according to actual needs press indices importance difference voluntarily Setting, the application are not construed as limiting the specific value of each weight coefficient.
S270:According to above-mentioned customer analysis model and above-mentioned available resource information, estimating for virtual machine to be created is determined Model;
S280:According to the prediction model that above-mentioned steps S270 is determined, module is built using automation, is created above-mentioned to be created Virtual machine;
The establishment of virtual machine to be created, can realize according to the following steps in step S280:
S281:According to the prediction model that above-mentioned steps S270 is determined, the establishment information of virtual machine to be created is obtained;
S282:Validation checking is carried out to the establishment information of S281, judges whether above-mentioned establishment information is that establishment is to be created Effective information;
S283:If step S282 judges that above-mentioned establishment information is effective information, automatic flow configuration is carried out, according to Above-mentioned establishment information is that virtual machine to be created determines preliminary pseudocode machine;
S284:Resources measurement is carried out, determines whether above-mentioned available resource information is efficient resource;
S285:Deploying virtual machine to be created is carried out, detects to be to have according to above-mentioned preliminary pseudocode machine and step S284 The available resource information for imitating resource, creates virtual machine to be created;
S290:The virtual machine to be created created is monitored, the monitoring data of virtual machine to be created are acquired;
S2100:According to the monitoring data of step S290 acquisitions, the virtual machine to be created of establishment is managed, and carry out daily dimension Shield;
S2110:According to the monitoring data of step S290 acquisitions, the statistical number for the virtual machine that update management equipment is locally stored According to.
The embodiment of the present invention additionally provides a kind of virtual machine creation method, is applied to terminal device, as shown in figure 8, the party Method may comprise steps of:
S310:Receive the prediction model of virtual machine to be created;The prediction model of above-mentioned virtual machine to be created is set by management The standby virtual machine creating that obtains instructs the user identifier for including, and obtains the corresponding history virtual machine portrait of above-mentioned user identifier Afterwards, the prediction model for determining and sending according to above-mentioned history virtual machine portrait.
It is understood that user when creating virtual machine, can send establishment on terminal device corresponding to the user Virtual machine instructions, the establishment virtual machine instructions may include user identifier corresponding with the user.Above-mentioned user identifier can wrap Include the user name of user, the physical label of terminal device corresponding to the user, terminal device corresponding to the user network identity At least one of in.
Above-mentioned history virtual machine portrait refers to each configuration parameter of the virtual machine created.For example, above-mentioned history virtual machine It draws a portrait, may include:The central processor CPU utilization rate of history virtual machine, the cpu load of history virtual machine, history virtual machine Memory usage, the memory size of history virtual machine, the disk read/write speed of history virtual machine, history virtual machine network At least one of in load.
In practical applications, user may create one or more virtual machines, the virtual machine that user has created Information can react actual demand of the user to virtual machine configuration to a certain extent.Therefore, in embodiments of the present invention, eventually End equipment can receive the prediction model of virtual machine to be created, and the prediction model of above-mentioned virtual machine to be created is obtained by management equipment Virtual machine creating is taken to instruct the user identifier for including, and after obtaining above-mentioned user identifier corresponding history virtual machine portrait, root The prediction model for determining and sending according to above-mentioned history virtual machine portrait.
S320:Show above-mentioned prediction model.
It is understood that the prediction model that terminal device receives in step S310, has been created according to user The model that predicts of virtual machine, and the model created is actually needed in user may deviation.Therefore, of the invention real It applies in example, terminal device can show above-mentioned prediction model.After showing above-mentioned prediction model on the terminal device, user Judge whether the prediction model predicted can meet the actual needs of oneself from the prediction model shown.
S330:Receive the adjust instruction for above-mentioned prediction model.
User passes through the prediction model in terminal display, it can be determined that whether each parameter value in the prediction model predicted It is consistent with the actual needs of oneself.If prediction model does not meet actual needs, user can adjust in prediction model not to be inconsistent Close the parameter value of the parameter of actual needs.Therefore, in embodiments of the present invention, terminal device can be received estimates mould for above-mentioned The adjust instruction of type.It may include the prediction model after the adjustment inputted on the terminal device by user in above-mentioned adjust instruction Parameter value.
S340:Above-mentioned adjust instruction is sent to above-mentioned management equipment, so that above-mentioned management equipment refers to according to above-mentioned adjustment It enables, above-mentioned prediction model and available resource information, creates above-mentioned virtual machine to be created.
Above-mentioned available resource information refers to the resource that available mode is in idle condition and be in resource pool, above-mentioned Resource can be the resources such as CPU, storage.
After terminal device receives the adjust instruction in step S330, which can be sent to above-mentioned management and set It is standby, to make above-mentioned management equipment according to above-mentioned adjust instruction, above-mentioned prediction model and available resource information, create above-mentioned wait for Create virtual machine.
Virtual machine creation method provided in an embodiment of the present invention first predicts prediction model, this is pre- when creating virtual machine The performance of user's virtual machine to be created can be met to a certain extent by estimating model, and then user determines pre- further according to actual needs The information for needing to be adjusted in model is estimated, so as to more meet the virtual machine money of user's actual need for user's distribution Source makes the virtual machine being created that preferably meet the actual demand of user, improves the availability of the virtual machine of establishment.
The embodiment of the present invention additionally provides a kind of virtual machine creating device, is applied to management equipment, as shown in figure 9, including:
Virtual machine portrait acquiring unit 410 instructs the user identifier for including for obtaining virtual machine creating, and obtains State the corresponding history virtual machine portrait of user identifier;
Prediction model determination unit 420 determines estimating for virtual machine to be created for drawing a portrait according to above-mentioned history virtual machine Model;
Prediction model transmission unit 430 is set for above-mentioned prediction model to be sent to the corresponding terminal of above-mentioned user identifier It is standby, so that above-mentioned terminal device shows above-mentioned prediction model;
Adjust instruction receiving unit 440, the adjustment for above-mentioned prediction model sent for receiving above-mentioned terminal device Instruction;
Virtual machine creating unit 450 is used for according to above-mentioned adjust instruction, above-mentioned prediction model and available resource information, Create above-mentioned virtual machine to be created.
Virtual machine creating device provided in an embodiment of the present invention first predicts prediction model, this is pre- when creating virtual machine The performance of user's virtual machine to be created can be met to a certain extent by estimating model, and then user determines pre- further according to actual needs The information for needing to be adjusted in model is estimated, so as to more meet the virtual machine money of user's actual need for user's distribution Source makes the virtual machine being created that preferably meet the actual demand of user, improves the availability of the virtual machine of establishment.
In a kind of embodiment of the embodiment of the present invention, prediction model determination unit 420 may include:
Model obtains subelement, for obtaining default Virtual Machine Model;
First model determination subelement is drawn a portrait according to above-mentioned history virtual machine, is determined each in above-mentioned default Virtual Machine Model The value of parameter obtains the prediction model of virtual machine to be created.
In a kind of embodiment of the embodiment of the present invention, prediction model determination unit 420 may include:
Model creation subelement creates the initial virtual for including corresponding parameter for drawing a portrait according to above-mentioned history virtual machine Machine model;
Second model determination subelement determines the value of each above-mentioned parameter, obtains for being drawn a portrait according to above-mentioned history virtual machine To the prediction model of virtual machine to be created.
In a kind of embodiment of the embodiment of the present invention, above-mentioned apparatus can also include:
Portrait collecting unit, the portrait for acquiring the above-mentioned virtual machine to be created created.
In a kind of embodiment of the embodiment of the present invention, above-mentioned apparatus can also include:
Resource information acquiring unit, the Current resource information for obtaining the resource area belonging to each virtual machine, above-mentioned money Source region includes:At least one of in cluster, domain controller, storage region, above-mentioned Current resource information includes Current resource point Cloth information and Current resource consumption information;
Available resources determination unit, for according to above-mentioned Current resource information, determining available resource information.
In a kind of embodiment of the embodiment of the present invention, above-mentioned apparatus can also include:
User's portrait acquiring unit, the user for obtaining the corresponding user identifier of virtual machine to be created draw a portrait;Above-mentioned use It draws a portrait at family:Business segment, the portfolio of the corresponding user of above-mentioned user identifier belonging to above-mentioned user identifier, above-mentioned user At least one of in the type of service of business segment belonging to mark;
Correspondingly, above-mentioned prediction model determination unit, is specifically used for:
According to above-mentioned history virtual machine portrait and above-mentioned user portrait, determine above-mentioned virtual machine to be created estimates mould Type.
In a kind of embodiment of the embodiment of the present invention, above-mentioned history virtual machine portrait may include:Above-mentioned history is empty The quasi- central processor CPU utilization rate of machine, the cpu load of above-mentioned history virtual machine, above-mentioned history virtual machine memory usage, The disk read/write speed of above-mentioned history virtual machine, above-mentioned history virtual machine network load at least one of.
In a kind of embodiment of the embodiment of the present invention, the corresponding history virtual machine portrait of above-mentioned user identifier can be with Including:And the corresponding history virtual machine portrait of above-mentioned user identifier, history corresponding with the project team belonging to above-mentioned user identifier At least one of in virtual machine portrait, history virtual machine corresponding with the business segment belonging to above-mentioned user identifier portrait.
The embodiment of the present invention additionally provides a kind of virtual machine creating device, is applied to terminal device, as shown in Figure 10, the dress It sets and may include:
Prediction model receiving unit 510, the prediction model for receiving virtual machine to be created;Above-mentioned virtual machine to be created Prediction model is to obtain virtual machine creating by management equipment to instruct the user identifier for including, and obtain above-mentioned user identifier and correspond to History virtual machine portrait after, drawn a portrait according to above-mentioned history virtual machine and determine and send;
Prediction model display unit 520, for showing above-mentioned prediction model;
Adjust instruction receiving unit 530, for receiving the adjust instruction for above-mentioned prediction model;
Adjust instruction transmission unit 540, for above-mentioned adjust instruction to be sent to above-mentioned management equipment, so that above-mentioned management Equipment creates above-mentioned virtual machine to be created according to above-mentioned adjust instruction, above-mentioned prediction model and available resource information.
Virtual machine creating device provided in an embodiment of the present invention first predicts prediction model, this is pre- when creating virtual machine The performance of user's virtual machine to be created can be met to a certain extent by estimating model, and then user determines pre- further according to actual needs The information for needing to be adjusted in model is estimated, so as to more meet the virtual machine money of user's actual need for user's distribution Source makes the virtual machine being created that preferably meet the actual demand of user, improves the availability of the virtual machine of establishment.
The embodiment of the present invention additionally provides a kind of management equipment, as shown in figure 11, including processor 1101, communication interface 1102, memory 1103 and communication bus 1104, wherein processor 1101, communication interface 1102, memory 1103 pass through communication Bus 1104 completes mutual communication,
Memory 1103, for storing computer program;
Processor 1101 when for executing the program stored on memory 1103, realizes following steps:
It obtains virtual machine creating and instructs the user identifier for including, and obtain the corresponding history virtual machine of above-mentioned user identifier Portrait;
It is drawn a portrait according to above-mentioned history virtual machine, determines the prediction model of virtual machine to be created;
Above-mentioned prediction model is sent to the corresponding terminal device of above-mentioned user identifier, so that in the displaying of above-mentioned terminal device State prediction model;
Receive the adjust instruction for above-mentioned prediction model that above-mentioned terminal device is sent;
According to above-mentioned adjust instruction, above-mentioned prediction model and available resource information, above-mentioned virtual machine to be created is created.
Management equipment provided in an embodiment of the present invention first predicts prediction model when creating virtual machine, the prediction model The performance of user's virtual machine to be created can be met to a certain extent, then user determines prediction model further according to actual needs The middle information for needing to be adjusted makes wound so as to more meet the resources of virtual machine of user's actual need for user's distribution The virtual machine built out preferably meets the actual demand of user, improves the availability of the virtual machine of establishment.
The embodiment of the present invention additionally provides a kind of terminal device, and as shown in figure 12, including processor 1201, communication connect 1202, memory 1203 and communication bus 1204, wherein processor 1201, communication interface 1202, memory 1203 pass through communication Bus 1204 completes mutual communication,
Memory 1203, for storing computer program;
Processor 1201 when for executing the program stored on memory 1203, realizes following steps:
Receive the prediction model of virtual machine to be created;The prediction model of above-mentioned virtual machine to be created is obtained by management equipment Virtual machine creating instructs the user identifier for including, and after obtaining above-mentioned user identifier corresponding history virtual machine portrait, according to Above-mentioned history virtual machine portrait is determined and is sent;
Show above-mentioned prediction model;
Receive the adjust instruction for above-mentioned prediction model;
Above-mentioned adjust instruction is sent to above-mentioned management equipment so that above-mentioned management equipment according to above-mentioned adjust instruction, on Prediction model and available resource information are stated, above-mentioned virtual machine to be created is created.
Terminal device provided in an embodiment of the present invention first predicts prediction model when creating virtual machine, the prediction model The performance of user's virtual machine to be created can be met to a certain extent, then user determines prediction model further according to actual needs The middle information for needing to be adjusted makes wound so as to more meet the resources of virtual machine of user's actual need for user's distribution The virtual machine built out preferably meets the actual demand of user, improves the availability of the virtual machine of establishment.
The embodiment of the present invention additionally provides a kind of computer readable storage medium, is deposited in above computer readable storage medium storing program for executing Instruction is contained, when run on a computer so that computer executes following methods:
It obtains virtual machine creating and instructs the user identifier for including, and obtain the corresponding history virtual machine of above-mentioned user identifier Portrait;
It is drawn a portrait according to above-mentioned history virtual machine, determines the prediction model of virtual machine to be created;
Above-mentioned prediction model is sent to the corresponding terminal device of above-mentioned user identifier, so that in the displaying of above-mentioned terminal device State prediction model;
Receive the adjust instruction for above-mentioned prediction model that above-mentioned terminal device is sent;
According to above-mentioned adjust instruction, above-mentioned prediction model and available resource information, above-mentioned virtual machine to be created is created.
Medium provided in an embodiment of the present invention first predicts prediction model when creating virtual machine, which can be with Meet the performance of user's virtual machine to be created to a certain extent, then user determines to need in prediction model further according to actual needs The information to be adjusted makes to be created that so as to more meet the resources of virtual machine of user's actual need for user's distribution Virtual machine preferably meet the actual demand of user, improve the availability of the virtual machine of establishment.
The embodiment of the present invention additionally provides a kind of computer readable storage medium, is deposited in above computer readable storage medium storing program for executing Instruction is contained, when run on a computer so that computer executes following methods:
Receive the prediction model of virtual machine to be created;The prediction model of above-mentioned virtual machine to be created is obtained by management equipment Virtual machine creating instructs the user identifier for including, and after obtaining above-mentioned user identifier corresponding history virtual machine portrait, according to Above-mentioned history virtual machine portrait is determined and is sent;
Show above-mentioned prediction model;
Receive the adjust instruction for above-mentioned prediction model;
Above-mentioned adjust instruction is sent to above-mentioned management equipment so that above-mentioned management equipment according to above-mentioned adjust instruction, on Prediction model and available resource information are stated, above-mentioned virtual machine to be created is created.
Medium provided in an embodiment of the present invention first predicts prediction model when creating virtual machine, which can be with Meet the performance of user's virtual machine to be created to a certain extent, then user determines to need in prediction model further according to actual needs The information to be adjusted makes to be created that so as to more meet the resources of virtual machine of user's actual need for user's distribution Virtual machine preferably meet the actual demand of user, improve the availability of the virtual machine of establishment.
The embodiment of the present invention additionally provides a kind of computer program product including instruction, when it runs on computers When so that computer executes following methods:
It obtains virtual machine creating and instructs the user identifier for including, and obtain the corresponding history virtual machine of above-mentioned user identifier Portrait;
It is drawn a portrait according to above-mentioned history virtual machine, determines the prediction model of virtual machine to be created;
Above-mentioned prediction model is sent to the corresponding terminal device of above-mentioned user identifier, so that in the displaying of above-mentioned terminal device State prediction model;
Receive the adjust instruction for above-mentioned prediction model that above-mentioned terminal device is sent;
According to above-mentioned adjust instruction, above-mentioned prediction model and available resource information, above-mentioned virtual machine to be created is created.
Program product provided in an embodiment of the present invention first predicts prediction model when creating virtual machine, the prediction model The performance of user's virtual machine to be created can be met to a certain extent, then user determines prediction model further according to actual needs The middle information for needing to be adjusted makes wound so as to more meet the resources of virtual machine of user's actual need for user's distribution The virtual machine built out preferably meets the actual demand of user, improves the availability of the virtual machine of establishment.
The embodiment of the present invention additionally provides a kind of computer program product including instruction, when it runs on computers When so that computer executes following methods:
Receive the prediction model of virtual machine to be created;The prediction model of above-mentioned virtual machine to be created is obtained by management equipment Virtual machine creating instructs the user identifier for including, and after obtaining above-mentioned user identifier corresponding history virtual machine portrait, according to Above-mentioned history virtual machine portrait is determined and is sent;
Show above-mentioned prediction model;
Receive the adjust instruction for above-mentioned prediction model;
Above-mentioned adjust instruction is sent to above-mentioned management equipment so that above-mentioned management equipment according to above-mentioned adjust instruction, on Prediction model and available resource information are stated, above-mentioned virtual machine to be created is created.
Program product provided in an embodiment of the present invention first predicts prediction model when creating virtual machine, the prediction model The performance of user's virtual machine to be created can be met to a certain extent, then user determines prediction model further according to actual needs The middle information for needing to be adjusted makes wound so as to more meet the resources of virtual machine of user's actual need for user's distribution The virtual machine built out preferably meets the actual demand of user, improves the availability of the virtual machine of establishment.
The communication bus that above-mentioned management equipment/terminal device is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc..For just It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication of the communication interface for above-mentioned management equipment/between terminal device and other equipment.
Memory may include random access memory (Random Access Memory, RAM), can also include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or its arbitrary combination real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.Above computer program Product includes one or more computer instructions.On computers load and execute above computer program instruction when, all or It partly generates according to above-mentioned flow or function of the embodiment of the present invention.Above computer can be all-purpose computer, special meter Calculation machine, computer network or other programmable devices.Above computer instruction can be stored in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, above computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.Above computer readable storage medium storing program for executing can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.Above-mentioned usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state disk Solid State Disk (SSD)) etc..
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including above-mentioned element.
Each embodiment in this specification is all made of relevant mode and describes, identical similar portion between each embodiment Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for device/ For device/medium/program product embodiment, since it is substantially similar to the method embodiment, so fairly simple, the phase of description Place is closed referring to the part of embodiment of the method to illustrate.
It above are only presently preferred embodiments of the present invention above, be not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (20)

1. a kind of virtual machine creation method, which is characterized in that it is applied to management equipment, including:
It obtains virtual machine creating and instructs the user identifier for including, and obtain the corresponding history virtual machine of the user identifier and draw Picture;
It is drawn a portrait according to the history virtual machine, determines the prediction model of virtual machine to be created;
The prediction model is sent to the corresponding terminal device of the user identifier, so that terminal device displaying is described pre- Estimate model;
Receive the adjust instruction for the prediction model that the terminal device is sent;
According to the adjust instruction, the prediction model and available resource information, the virtual machine to be created is created.
2. according to the method described in claim 1, it is characterized in that, described draw a portrait according to the history virtual machine, determination waits creating The prediction model of virtual machine is built, including:
It is drawn a portrait according to the history virtual machine, creates the initial virtual machine model for including corresponding parameter;
It is drawn a portrait according to the history virtual machine, determines the value of each parameter, obtain the prediction model of virtual machine to be created.
3. according to the method described in claim 1, it is characterized in that, described draw a portrait according to the history virtual machine, determination waits creating The prediction model of virtual machine is built, including:
It obtains and presets Virtual Machine Model;
It is drawn a portrait according to the history virtual machine, determines the value of each parameter in the default Virtual Machine Model, obtain void to be created The prediction model of quasi- machine.
4. according to the method described in claim 1, it is characterized in that, after the establishment virtual machine to be created, further include:
Acquire the portrait of the virtual machine to be created created.
5. according to the method described in claim 1, it is characterized in that, it is described according to the adjust instruction, the prediction model with And available resource information further includes before creating the virtual machine to be created:
The Current resource information of the resource area belonging to each virtual machine is obtained, the resource area includes:Cluster, domain controller, At least one of in storage region, the Current resource information includes Current resource distributed intelligence and Current resource consumption information;
According to the Current resource information, available resource information is determined.
6. according to the method described in claim 1, it is characterized in that, described draw a portrait according to the history virtual machine, determination waits creating Before building the prediction model of virtual machine, further include:
Obtain user's portrait of the corresponding user identifier of virtual machine to be created;The user draws a portrait:The user identifier institute The business segment of category, the portfolio of the corresponding user of the user identifier, the business of business segment belonging to the user identifier At least one of in type;
Correspondingly, described draw a portrait according to the history virtual machine, the prediction model of the virtual machine to be created is determined, including:
According to history virtual machine portrait and user portrait, the prediction model of the virtual machine to be created is determined.
7. method according to any one of claims 1 to 6, which is characterized in that the history virtual machine portrait, including:Institute State the central processor CPU utilization rate of history virtual machine, the cpu load of the history virtual machine, the history virtual machine it is interior Deposit utilization rate, the disk read/write speed of the history virtual machine, the history virtual machine network load at least one of.
8. method according to any one of claims 1 to 6, which is characterized in that the corresponding history of the user identifier is virtual Machine is drawn a portrait, including:History virtual machine corresponding with the user identifier draws a portrait, is corresponding with the project team belonging to the user identifier History virtual machine portrait, history virtual machine corresponding with the business segment belonging to the user identifier draw a portrait at least one ?.
9. a kind of virtual machine creation method, which is characterized in that it is applied to terminal device, including:
Receive the prediction model of virtual machine to be created;The prediction model of the virtual machine to be created is obtained virtually by management equipment Machine creates the user identifier that instruction includes, and after obtaining the user identifier corresponding history virtual machine portrait, according to described The prediction model that history virtual machine portrait is determined and sent;
Show the prediction model;
Receive the adjust instruction for the prediction model;
The adjust instruction is sent to the management equipment, so that the management equipment is according to the adjust instruction, described pre- Estimate model and available resource information, creates the virtual machine to be created.
10. a kind of virtual machine creating device, which is characterized in that it is applied to management equipment, including:
Virtual machine portrait acquiring unit instructs the user identifier for including for obtaining virtual machine creating, and obtains the user Identify corresponding history virtual machine portrait;
Prediction model determination unit determines the prediction model of virtual machine to be created for drawing a portrait according to the history virtual machine;
Prediction model transmission unit, for the prediction model to be sent to the corresponding terminal device of the user identifier, so that The terminal device shows the prediction model;
Adjust instruction receiving unit, the adjust instruction for the prediction model sent for receiving the terminal device;
Virtual machine creating unit, for according to the adjust instruction, the prediction model and available resource information, described in establishment Virtual machine to be created.
11. device according to claim 10, which is characterized in that the prediction model determination unit, including:
Model obtains subelement, for obtaining default Virtual Machine Model;
First model determination subelement draws a portrait according to the history virtual machine, determines each parameter in the default Virtual Machine Model Value, obtain the prediction model of virtual machine to be created.
12. device according to claim 10, which is characterized in that the prediction model determination unit, including:
Model creation subelement creates the initial virtual machine mould for including corresponding parameter for drawing a portrait according to the history virtual machine Type;
Second model determination subelement determines the value of each parameter, is waited for for being drawn a portrait according to the history virtual machine Create the prediction model of virtual machine.
13. device according to claim 10, which is characterized in that further include:
Portrait collecting unit, the portrait for acquiring the virtual machine to be created created.
14. device according to claim 10, which is characterized in that further include:
Resource information acquiring unit, the Current resource information for obtaining the resource area belonging to each virtual machine, the resource-area Domain includes:At least one of in cluster, domain controller, storage region, the Current resource information includes Current resource distribution letter Breath and Current resource consumption information;
Available resources determination unit, for according to the Current resource information, determining available resource information.
15. device according to claim 10, which is characterized in that further include:
User's portrait acquiring unit, the user for obtaining the corresponding user identifier of virtual machine to be created draw a portrait;The user draws As including:Portfolio, the user identifier of business segment, the corresponding user of the user identifier belonging to the user identifier At least one of in the type of service of affiliated business segment;
Correspondingly, the prediction model determination unit, is specifically used for:
According to history virtual machine portrait and user portrait, the prediction model of the virtual machine to be created is determined.
16. according to claim 10 to 15 any one of them device, which is characterized in that the history virtual machine portrait, including: The central processor CPU utilization rate of the history virtual machine, the cpu load of the history virtual machine, the history virtual machine Memory usage, the disk read/write speed of the history virtual machine, the history virtual machine network load at least one ?.
17. according to claim 10 to 15 any one of them device, which is characterized in that the corresponding history of the user identifier is empty Quasi- machine portrait, including:Project team pair belonging to history virtual machine portrait corresponding with the user identifier and the user identifier At least one during the history virtual machine answered is drawn a portrait, history virtual machine corresponding with the business segment belonging to the user identifier is drawn a portrait ?.
18. a kind of virtual machine creating device, which is characterized in that it is applied to terminal device, including:
Prediction model receiving unit, the prediction model for receiving virtual machine to be created;The virtual machine to be created estimates mould Type is to obtain virtual machine creating by management equipment to instruct the user identifier for including, and obtain the corresponding history of the user identifier After virtual machine portrait, being drawn a portrait according to the history virtual machine determines and the prediction model that sends;
Prediction model display unit, for showing the prediction model;
Adjust instruction receiving unit, for receiving the adjust instruction for the prediction model;
Adjust instruction transmission unit, for the adjust instruction to be sent to the management equipment, so that the management equipment root According to the adjust instruction, the prediction model and available resource information, the virtual machine to be created is created.
19. a kind of management equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein described Processor, the communication interface, the memory complete mutual communication by the communication bus;
The memory, for storing computer program;
The processor when for executing the program stored on the memory, realizes any sides claim 1-8 Method step.
20. a kind of terminal device, which is characterized in that including processor, communication interface, memory and communication bus, wherein described Processor, the communication interface, the memory complete mutual communication by the communication bus;
The memory, for storing computer program;
The processor when for executing the program stored on the memory, realizes the method step described in claim 9 Suddenly.
CN201810394277.5A 2018-04-27 2018-04-27 Virtual machine creating method and device, management equipment and terminal equipment Active CN108762885B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810394277.5A CN108762885B (en) 2018-04-27 2018-04-27 Virtual machine creating method and device, management equipment and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810394277.5A CN108762885B (en) 2018-04-27 2018-04-27 Virtual machine creating method and device, management equipment and terminal equipment

Publications (2)

Publication Number Publication Date
CN108762885A true CN108762885A (en) 2018-11-06
CN108762885B CN108762885B (en) 2023-01-20

Family

ID=64012368

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810394277.5A Active CN108762885B (en) 2018-04-27 2018-04-27 Virtual machine creating method and device, management equipment and terminal equipment

Country Status (1)

Country Link
CN (1) CN108762885B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111093099A (en) * 2019-02-15 2020-05-01 杭州海康威视系统技术有限公司 Streaming media service scheduling method, device and system
CN111598390A (en) * 2019-10-16 2020-08-28 中国南方电网有限责任公司 Server high availability evaluation method, device, equipment and readable storage medium
CN111695962A (en) * 2019-03-13 2020-09-22 阿里巴巴集团控股有限公司 Cloud product recommendation method and device, computing equipment and storage medium
CN117234742A (en) * 2023-11-14 2023-12-15 苏州元脑智能科技有限公司 Processor core allocation method, device, equipment and storage medium
CN117827467A (en) * 2024-03-05 2024-04-05 南京群顶科技股份有限公司 Dynamic portrait-based virtual machine resource allocation method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110296000A1 (en) * 2010-05-28 2011-12-01 James Michael Ferris Systems and methods for exporting usage history data as input to a management platform of a target cloud-based network
CN102291452A (en) * 2011-08-09 2011-12-21 北京星网锐捷网络技术有限公司 Virtual machine management method, cloud management server and cloud system based on cloud strategy
CN102446121A (en) * 2010-10-12 2012-05-09 思杰系统有限公司 Allocating virtual machines according to user-specific virtual machine metrics
CN102662727A (en) * 2012-04-05 2012-09-12 北京天地云箱科技有限公司 Virtual machine creating method and virtual machine creating device
CN102799464A (en) * 2012-06-25 2012-11-28 北京奇虎科技有限公司 Virtual machine creation method, virtual machine creation system, virtual machine resetting method and virtual machine resetting system
CN103109293A (en) * 2012-08-24 2013-05-15 华为技术有限公司 User motion processing system and method
US20170323105A1 (en) * 2016-04-25 2017-11-09 Cloudminds (Shenzhen) Robotics Systems Co., Ltd. Virtual machine creation method and apparatus
CN107608753A (en) * 2016-07-12 2018-01-19 阿里巴巴集团控股有限公司 A kind of virtual machine creation method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110296000A1 (en) * 2010-05-28 2011-12-01 James Michael Ferris Systems and methods for exporting usage history data as input to a management platform of a target cloud-based network
CN102446121A (en) * 2010-10-12 2012-05-09 思杰系统有限公司 Allocating virtual machines according to user-specific virtual machine metrics
CN102291452A (en) * 2011-08-09 2011-12-21 北京星网锐捷网络技术有限公司 Virtual machine management method, cloud management server and cloud system based on cloud strategy
CN102662727A (en) * 2012-04-05 2012-09-12 北京天地云箱科技有限公司 Virtual machine creating method and virtual machine creating device
CN102799464A (en) * 2012-06-25 2012-11-28 北京奇虎科技有限公司 Virtual machine creation method, virtual machine creation system, virtual machine resetting method and virtual machine resetting system
CN103109293A (en) * 2012-08-24 2013-05-15 华为技术有限公司 User motion processing system and method
US20170323105A1 (en) * 2016-04-25 2017-11-09 Cloudminds (Shenzhen) Robotics Systems Co., Ltd. Virtual machine creation method and apparatus
CN107608753A (en) * 2016-07-12 2018-01-19 阿里巴巴集团控股有限公司 A kind of virtual machine creation method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111093099A (en) * 2019-02-15 2020-05-01 杭州海康威视系统技术有限公司 Streaming media service scheduling method, device and system
CN111695962A (en) * 2019-03-13 2020-09-22 阿里巴巴集团控股有限公司 Cloud product recommendation method and device, computing equipment and storage medium
CN111695962B (en) * 2019-03-13 2023-04-25 阿里巴巴集团控股有限公司 Cloud product recommendation method and device, computing equipment and storage medium
CN111598390A (en) * 2019-10-16 2020-08-28 中国南方电网有限责任公司 Server high availability evaluation method, device, equipment and readable storage medium
CN111598390B (en) * 2019-10-16 2023-12-01 中国南方电网有限责任公司 Method, device, equipment and readable storage medium for evaluating high availability of server
CN117234742A (en) * 2023-11-14 2023-12-15 苏州元脑智能科技有限公司 Processor core allocation method, device, equipment and storage medium
CN117234742B (en) * 2023-11-14 2024-02-09 苏州元脑智能科技有限公司 Processor core allocation method, device, equipment and storage medium
CN117827467A (en) * 2024-03-05 2024-04-05 南京群顶科技股份有限公司 Dynamic portrait-based virtual machine resource allocation method

Also Published As

Publication number Publication date
CN108762885B (en) 2023-01-20

Similar Documents

Publication Publication Date Title
CN108762885A (en) A kind of virtual machine creation method, device, management equipment and terminal device
CN109412829B (en) Resource allocation prediction method and equipment
CN112153700B (en) Network slice resource management method and equipment
CN108304250A (en) Method and apparatus for the node for determining operation machine learning task
US20200311573A1 (en) Utilizing a machine learning model to predict a quantity of cloud resources to allocate to a customer
CN107077385B (en) For reducing system, method and the storage medium of calculated examples starting time
CN104657194B (en) Method and system for calculating the influence acted in network
US20220413891A1 (en) Compute Platform Optimization Over the Life of a Workload in a Distributed Computing Environment
US11360795B2 (en) Determining configuration parameters to provide recommendations for optimizing workloads
US20200310876A1 (en) Optimizing Hardware Platform Utilization for Heterogeneous Workloads in a Distributed Computing Environment
CN101697141A (en) Prediction method of operational performance based on historical data modeling in grid
CN110417686B (en) Cloud resource dynamic scheduling system
EP3035619B1 (en) A method and system for scaling and a telecommunications network
US11307885B1 (en) Identifying optimized computing resources for running workloads
CN103713935A (en) Method and device for managing Hadoop cluster resources in online manner
KR101916294B1 (en) Technologies for cloud data center analytics
US10970123B1 (en) Determining suitability of computing resources for workloads
Stolyar et al. Asymptotic optimality of a greedy randomized algorithm in a large-scale service system with general packing constraints
WO2020198610A1 (en) Compute platform recommendations for new workloads in a distributed computing environment
Mazidi et al. An autonomic decision tree‐based and deadline‐constraint resource provisioning in cloud applications
EP4057142A1 (en) Job scheduling method and job scheduling apparatus
WO2021043066A1 (en) Communication method and apparatus for multiple management domains
CN109995571A (en) Server configuration applies matched method and device with VNF
CN110351104A (en) A kind of VIM selection method and device
Jian et al. DRS: A deep reinforcement learning enhanced Kubernetes scheduler for microservice‐based 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