CN108762885B - Virtual machine creating method and device, management equipment and terminal equipment - Google Patents

Virtual machine creating method and device, management equipment and terminal equipment Download PDF

Info

Publication number
CN108762885B
CN108762885B CN201810394277.5A CN201810394277A CN108762885B CN 108762885 B CN108762885 B CN 108762885B CN 201810394277 A CN201810394277 A CN 201810394277A CN 108762885 B CN108762885 B CN 108762885B
Authority
CN
China
Prior art keywords
virtual machine
created
model
historical
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810394277.5A
Other languages
Chinese (zh)
Other versions
CN108762885A (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

Images

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

The embodiment of the invention provides a virtual machine creating method, a virtual machine creating device, management equipment and terminal equipment, wherein the method is applied to the management equipment and comprises the following steps: acquiring a user identifier included in a virtual machine creating instruction, and acquiring a historical virtual machine image corresponding to the user identifier; determining an estimated model of the virtual machine to be created according to the historical virtual machine portrait; sending the pre-estimated model to terminal equipment corresponding to the user identification so that the terminal equipment displays the pre-estimated model; receiving an adjusting instruction aiming at the pre-estimated model and sent by the terminal equipment; and creating the virtual machine to be created according to the adjusting instruction, the pre-estimated model and the available resource information. The technical scheme of the embodiment of the invention can ensure that the virtual machine resources distributed for the user can better meet the requirements of the user, thereby improving the usability of the created virtual machine.

Description

Virtual machine creating method and device, management equipment and terminal equipment
Technical Field
The invention relates to the technical field of cloud computing, in particular to a virtual machine creating method, a virtual machine creating device, management equipment and terminal equipment.
Background
Cloud computing typically involves providing dynamically scalable and possibly virtualized resources over the internet. A virtual machine refers to a complete computer system with complete hardware system functionality, which is emulated by software, running in a completely isolated environment. In a cloud computing system, resource scheduling when creating a virtual machine is an important link for realizing efficient use of shared resources.
The method commonly used in the prior art for processing virtual machine resource scheduling comprises the following steps: the system distributes proper resources to the virtual machine to be created by the user according to the attribute information of the virtual machine to be created submitted by the user by analyzing the load condition of each host in the resource pool, such as the CPU use condition, the storage occupation condition and the like of each host. The attribute information of the virtual machine to be created, which is submitted by the user, generally includes information such as a CPU, a memory size, and a storage size of the virtual machine.
However, the inventor finds that the prior art has at least the following problems in the process of implementing the invention:
in the prior art, when a virtual machine is created, a user is required to submit attribute information of the virtual machine to be created, so that the user needs to set multiple items of attribute information of the virtual machine to be created, and when the attribute information of the virtual machine to be created submitted by the user is not complete, virtual machine resources allocated to the user may fail to meet the user requirements, so that the created virtual machine cannot meet the actual requirements of the user, and the usability of the created virtual machine is low.
Disclosure of Invention
The embodiment of the invention aims to provide a virtual machine scheduling method, a virtual machine scheduling device, a virtual machine management device and a terminal device, so that virtual machine resources distributed for users can better meet the requirements of the users, and the usability of the created virtual machines is improved. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a virtual machine creation method, applied to a management device, including:
acquiring a user identifier included in a virtual machine creating instruction, and acquiring a historical virtual machine image corresponding to the user identifier;
determining an estimated model of the virtual machine to be created according to the historical virtual machine portrait;
sending the pre-estimated model to terminal equipment corresponding to the user identification so that the terminal equipment displays the pre-estimated model;
receiving an adjusting instruction aiming at the pre-estimated model sent by the terminal equipment;
and creating the virtual machine to be created according to the adjusting instruction, the pre-estimated model and the available resource information.
Optionally, the determining, according to the historical representation of the virtual machine, an estimated model of the virtual machine to be created includes:
acquiring a preset virtual machine model;
and determining values of all parameters in the preset virtual machine model according to the historical virtual machine image to obtain an estimated model of the virtual machine to be created.
Optionally, the determining, according to the historical virtual machine representation, an estimated model of the virtual machine to be created includes:
according to the historical virtual machine portrait, an initial virtual machine model containing corresponding parameters is established;
and determining the value of each parameter according to the historical virtual machine portrait to obtain an estimated model of the virtual machine to be created.
Optionally, after the virtual machine to be created is created, the method further includes:
and collecting the created image of the virtual machine to be created.
Optionally, before creating the virtual machine to be created according to the adjustment instruction, the pre-estimated model, and the available resource information, the method further includes:
acquiring current resource information of resource regions to which virtual machines belong, wherein the resource regions comprise: at least one of a cluster, a domain controller and a storage area, wherein the current resource information comprises current resource distribution information and current resource consumption information;
and determining available resource information according to the current resource information.
Optionally, before determining the pre-estimated model of the virtual machine to be created according to the historical representation of the virtual machine, the method further includes:
acquiring a user portrait of a user identifier corresponding to a virtual machine to be created; the user representation includes: at least one of a service subsection to which the user identifier belongs, a service volume of a user corresponding to the user identifier, and a service type of the service subsection to which the user identifier belongs;
correspondingly, the determining the pre-estimated model of the virtual machine to be created according to the historical virtual machine representation includes:
and determining an estimated model of the virtual machine to be created according to the historical virtual machine portrait and the user portrait.
Optionally, the historical virtual machine image includes: at least one of a Central Processing Unit (CPU) utilization rate of the historical virtual machine, a CPU load of the historical virtual machine, a memory utilization rate of the historical virtual machine, a disk read/write speed of the historical virtual machine, and a network load of the historical virtual machine.
Optionally, the history virtual machine image corresponding to the user identifier includes: at least one of a history virtual machine image corresponding to the user identifier, a history virtual machine image corresponding to a project group to which the user identifier belongs, and a history virtual machine image corresponding to a service subsection to which the user identifier belongs.
In a second aspect, an embodiment of the present invention further provides a virtual machine creating method, applied to a terminal device, including:
receiving a pre-estimated model of a virtual machine to be created; the pre-estimation model of the virtual machine to be created is a pre-estimation model which is determined and sent according to a historical virtual machine image after a management device acquires a user identifier included in a virtual machine creating instruction and acquires the historical virtual machine image corresponding to the user identifier;
displaying the pre-estimated model;
receiving an adjustment instruction aiming at the pre-estimated model;
and sending the adjusting instruction to the management equipment so that the management equipment creates the virtual machine to be created according to the adjusting instruction, the pre-estimated model and the available resource information.
In a third aspect, an embodiment of the present invention further provides a virtual machine creating apparatus, applied to a management device, including:
the virtual machine portrait acquiring unit is used for acquiring a user identifier included in a virtual machine creating instruction and acquiring a historical virtual machine portrait corresponding to the user identifier;
the pre-estimation model determining unit is used for determining a pre-estimation model of the virtual machine to be created according to the historical virtual machine portrait;
the pre-estimation model sending unit is used for sending the pre-estimation model to the terminal equipment corresponding to the user identification so that the terminal equipment can display the pre-estimation model;
an adjustment instruction receiving unit, configured to receive an adjustment instruction for the pre-estimated model sent by the terminal device;
and the virtual machine creating unit is used for creating the virtual machine to be created according to the adjusting instruction, the pre-estimated model and the available resource information.
Optionally, the prediction model determining unit includes:
the model obtaining subunit is used for obtaining a preset virtual machine model;
and the first model determining subunit determines values of all parameters in the preset virtual machine model according to the historical virtual machine image to obtain an estimated model of the virtual machine to be created.
Optionally, the prediction model determining unit includes:
the model creating subunit is used for creating an initial virtual machine model containing corresponding parameters according to the historical virtual machine portrait;
and the second model determining subunit is used for determining the value of each parameter according to the historical virtual machine portrait to obtain an estimated model of the virtual machine to be created.
Optionally, the apparatus further comprises:
and the portrait acquisition unit is used for acquiring the created portrait of the virtual machine to be created.
Optionally, the apparatus further comprises:
a resource information obtaining unit, configured to obtain current resource information of a resource region to which each virtual machine belongs, where the resource region includes: at least one of a cluster, a domain controller and a storage area, wherein the current resource information comprises current resource distribution information and current resource consumption information;
and the available resource determining unit is used for determining the available resource information according to the current resource information.
Optionally, the apparatus further comprises:
the user portrait acquiring unit is used for acquiring a user portrait of a user identifier corresponding to a virtual machine to be created; the user representation includes: at least one of a service subsection to which the user identifier belongs, a service volume of a user corresponding to the user identifier, and a service type of the service subsection to which the user identifier belongs;
correspondingly, the prediction model determining unit is specifically configured to:
and determining an estimated model of the virtual machine to be created according to the historical virtual machine portrait and the user portrait.
Optionally, the historical virtual machine image includes: at least one of a Central Processing Unit (CPU) utilization rate of the historical virtual machine, a CPU load of the historical virtual machine, a memory utilization rate of the historical virtual machine, a disk read/write speed of the historical virtual machine, and a network load of the historical virtual machine.
Optionally, the history virtual machine image corresponding to the user identifier includes: at least one of a history virtual machine image corresponding to the user identifier, a history virtual machine image corresponding to a project group to which the user identifier belongs, and a history virtual machine image corresponding to a service subsection to which the user identifier belongs.
In a fourth aspect, an embodiment of the present invention further provides a virtual machine creating apparatus, which is applied to a terminal device, and includes:
the pre-estimation model receiving unit is used for receiving a pre-estimation model of the virtual machine to be created; the pre-estimation model of the virtual machine to be created is a pre-estimation model which is determined and sent according to a historical virtual machine image after a management device acquires a user identifier included in a virtual machine creating instruction and acquires the historical virtual machine image corresponding to the user identifier;
the pre-estimated model display unit is used for displaying the pre-estimated model;
the adjustment instruction receiving unit is used for receiving an adjustment instruction aiming at the pre-estimated model;
and the adjusting instruction sending unit is used for sending the adjusting instruction to the management equipment so that the management equipment creates the virtual machine to be created according to the adjusting instruction, the pre-estimated model and the available resource information.
In a fifth aspect, an embodiment of the present invention further provides a management device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement any of the method steps of the first aspect when executing the program stored in the memory.
In a sixth aspect, an embodiment of the present invention further provides a terminal device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement the method steps of the second aspect when executing the program stored in the memory.
In a seventh aspect, an embodiment of the present invention further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer, the computer is caused to execute any virtual machine creation method described in the first aspect.
In an eighth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer, the computer is caused to execute any virtual machine creation method described in the second aspect.
In a ninth aspect, an embodiment of the present invention further provides a computer program product including instructions, which when run on a computer, cause the computer to execute any one of the virtual machine creation methods described in the first aspect.
In a tenth aspect, embodiments of the present invention further provide a computer program product containing instructions, which when run on a computer, cause the computer to execute any of the virtual machine creation methods described in the second aspect.
The embodiment of the invention provides a virtual machine creating method, a virtual machine creating device, management equipment and terminal equipment, wherein the method is applied to the management equipment and comprises the following steps: acquiring a user identifier included in a virtual machine creating instruction, and acquiring a historical virtual machine image corresponding to the user identifier; determining an estimated model of the virtual machine to be created according to the historical virtual machine portrait; sending the pre-estimated model to terminal equipment corresponding to the user identification so that the terminal equipment displays the pre-estimated model; receiving an adjusting instruction aiming at the pre-estimated model sent by the terminal equipment; and creating the virtual machine to be created according to the adjusting instruction, the pre-estimated model and the available resource information.
According to the technical scheme provided by the embodiment of the invention, when the virtual machine is created, the pre-estimation model is predicted according to the historical virtual machine image of the user identifier corresponding to the virtual machine to be created, the pre-estimation model can meet the performance of the virtual machine to be created by a user to a certain extent, and then the user determines the information needing to be adjusted in the pre-estimation model according to the actual requirement, so that the virtual machine resource which meets the actual requirement of the user better can be distributed to the user, the created virtual machine can better meet the actual requirement of the user, and the usability of the created virtual machine is improved. Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a schematic flowchart of a virtual machine creation method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a predictive model determining method of a virtual machine creating method according to an embodiment of the present invention;
fig. 3 is another schematic flow chart of a pre-estimation model determining method of a virtual machine creating method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a second method for creating a virtual machine according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of a third method for creating a virtual machine according to an embodiment of the present invention;
fig. 6 is a fourth flowchart illustrating a virtual machine creating method according to an embodiment of the present invention;
fig. 7 is a fifth flowchart illustrating a virtual machine creating method according to an embodiment of the present invention;
fig. 8 is a sixth flowchart illustrating a virtual machine creating method according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a virtual machine creating apparatus according to an embodiment of the present invention;
fig. 10 is another schematic structural diagram of a virtual machine creation apparatus according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a management device according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
In order to allocate virtual machine resources which meet actual requirements of users better, enable virtual machines created for users to meet actual requirements of users better, and improve availability of virtual machines created for users, embodiments of the present invention provide a virtual machine creation method, apparatus, management device, and terminal device. First, a virtual machine creation method provided in an embodiment of the present invention is described below.
It should be noted that the virtual machine creation method provided by the embodiment of the present invention can be applied to the field of cloud computing in the internet industry.
As shown in fig. 1, the virtual machine creating method provided in the embodiment of the present invention may include the following steps:
s110: and acquiring a user identifier included in the virtual machine creating instruction, and acquiring a historical virtual machine image corresponding to the user identifier.
It is understood that, when creating a virtual machine, a user may send a create virtual machine instruction on a terminal device corresponding to the user, and the create virtual machine instruction may include a user identifier corresponding to the user. The user identifier may include at least one of a user name of the user, a physical identifier of the terminal device corresponding to the user, and a network identifier of the terminal device corresponding to the user. The physical identifier of the terminal device may be a Media Access Control (MAC) address of the terminal device, a host number of the terminal device, and the like, and the network identifier of the terminal device may be an Internet Protocol (IP) address of the terminal device. Those skilled in the art may set the specific content of the user identifier according to actual needs, and the embodiment of the present invention does not specifically limit the user identifier.
The historical virtual machine image refers to each configuration parameter of the created virtual machine. For example, the historical virtual machine image may include: at least one of the CPU utilization rate of the CPU of the historical virtual machine, the CPU load of the historical virtual machine, the memory utilization rate of the historical virtual machine, the memory size of the historical virtual machine, the disk reading/writing speed of the historical virtual machine and the network load of the historical virtual machine. Those skilled in the art can set other contents included in the historical virtual machine representation according to actual needs, and the application is not limited in particular.
In practical applications, a user may have created one or more virtual machines, and the information of the virtual machines created by the user may reflect the actual needs of the user for the configuration of the virtual machines to some extent. Therefore, in the embodiment of the present invention, the user identifier included in the virtual machine creation instruction may be obtained, and the historical virtual machine image corresponding to the user identifier may be obtained, so that the management device may create a virtual machine that better conforms to the actual needs of the user.
For example, a user name included in the virtual machine creation instruction may be acquired, and an already created historical virtual machine representation corresponding to the user name may be acquired.
S120: and determining an estimated model of the virtual machine to be created according to the historical virtual machine portrait.
Because the information of the historical virtual machine created by the user can reflect the actual requirement of the user on the configuration of the virtual machine to a certain extent, in the embodiment of the invention, the estimation model of the virtual machine to be created can be determined according to the representation of the historical virtual machine. The pre-estimated model is a model of a virtual machine which is preliminarily predicted and corresponds to the actual demand of the user, and can provide a basis for determining the virtual machine to be created.
For example, parameter values of parameters such as a CPU, a memory, and a disk of the virtual machine to be created may be determined from the historical virtual machine representation, and an estimated model of the virtual machine to be created may be determined from the determined parameter values. Specifically, for example, the user creates 4 history virtual machines, the CPU of the first history virtual machine is 1G, the CPUs of the second history virtual machines are 2G, the CPU of the third virtual machine is 2G, and the CPU of the fourth virtual machine is 2G, so that the estimation model with the CPU of 2G can be created for the user according to the four history virtual machines.
S130: and sending the pre-estimated model to the terminal equipment corresponding to the user identification so that the terminal equipment displays the pre-estimated model.
It is understood that the pre-estimated model in step S120 is only a model predicted according to the virtual machine that the user has created, and there may be a deviation from the model that the user actually needs to create. Therefore, in the embodiment of the present invention, the estimation model may be sent to the terminal device corresponding to the user identifier, so that the terminal device displays the estimation model. After the estimation model is displayed on the terminal equipment, the user can judge whether the predicted estimation model can meet the actual needs of the user from the displayed estimation model.
S140: and receiving an adjusting instruction aiming at the estimation model sent by the terminal equipment.
The user can judge whether each predicted parameter value in the predicted model conforms to the actual requirement of the user through the predicted model displayed at the terminal. If the estimated model does not meet the actual requirement, the user can adjust the parameter values of the parameters which do not meet the actual requirement in the estimated model, and the terminal equipment can send the adjusted parameter values to the management equipment after receiving the adjusted parameter values sent by the user. Therefore, in the embodiment of the present invention, the management device may receive an adjustment instruction for the predictive model, which is sent by the terminal device. The adjustment instruction may include a parameter value of the adjusted predictive model input by the user on the terminal device.
S150: and creating the virtual machine to be created according to the adjusting instruction, the pre-estimated model and the available resource information.
The available resource information refers to a resource in an available state in a resource pool, and the resource may be a resource such as a CPU or a memory.
After receiving the adjustment instruction, step S140 may determine parameter values of the virtual machine to be created that meet the user requirement. However, in practical applications, available resources in the resource pool are limited, and in order to reasonably utilize the resources in the resource pool, the available resource information in the resource pool needs to be considered when creating the virtual machine to be created. Therefore, in the embodiment of the present invention, the virtual machine to be created may be created according to the adjustment instruction, the estimation model, and the available resource information.
For example, available resource information in the resource pool may be obtained, a target resource matched with the virtual machine to be created is selected from the available resource information, a resource corresponding to the virtual machine to be created is allocated to the virtual machine to be created from the target resource, and a virtual machine corresponding to the pre-estimated model adjusted according to the adjustment instruction of the user is created. The selecting of the target resource matched with the virtual machine to be created means that the selected target resource should meet the requirement of the virtual machine to be created, for example, the virtual machine to be created needs a 60G hard disk, and the target resource should be a machine with storage of not less than 6G.
According to the virtual machine creating method provided by the embodiment of the invention, when a virtual machine is created, an estimation model is predicted according to a historical virtual machine image of a user identifier corresponding to the virtual machine to be created, the estimation model can meet the performance of the virtual machine to be created to a certain extent, and then a user determines information needing to be adjusted in the estimation model according to actual needs, so that virtual machine resources meeting the actual needs of the user can be distributed to the user, the created virtual machine can better meet the actual needs of the user, and the usability of the created virtual machine is improved.
It can be understood that the virtual machine includes parameters such as a cpu, a memory, and the like, and also includes parameter values corresponding to the parameters. When the pre-estimated model of the virtual machine to be created is determined, parameters corresponding to the model and values corresponding to the parameters are created at the same time. In one implementation of the embodiment of the present invention, as shown in fig. 2, step S120 may be implemented as the following steps:
s121: creating an initial virtual machine model containing corresponding parameters according to the historical virtual machine portrait;
s122: and determining the value of each parameter according to the historical virtual machine portrait to obtain an estimated model of the virtual machine to be created.
The historical virtual machine portrait created by the user comprises parameters of the virtual machine and values corresponding to the parameters, so that in the embodiment of the invention, an initial virtual machine model containing corresponding parameters can be created according to the historical virtual machine portrait; and determining the value of each parameter according to the historical virtual machine portrait to obtain an estimated model of the virtual machine to be created. Therefore, the obtained estimation model is more matched with the historical virtual machine established by the user, and the actual needs of the user are better met.
In practical application, when a new estimation model of a virtual machine to be created is created, parameters included in the estimation model and values of the parameters need to be determined. The model creating process is complex, the required creating time is long, and the operating pressure on equipment is large.
In order to simplify the model creation process and reduce the required creation time, thereby reducing the operating pressure on the device, in an implementation manner of the embodiment of the present invention, as shown in fig. 3, step S120 may be implemented as the following steps:
s123: acquiring a preset virtual machine model;
s124: and determining values of all parameters in the preset virtual machine model according to the historical virtual machine image to obtain an estimated model of the virtual machine to be created.
The preset virtual machine model may be a preset virtual machine model stored in the management device, and the virtual machine model may include various parameters such as a CPU and a memory required for creating the virtual machine, and may also include other parameters required for creating the virtual machine.
After the preset virtual machine model is obtained, the values of all parameters in the preset virtual machine model can be directly determined according to the historical virtual machine image to obtain the estimation model, and the parameters in the estimation model do not need to be determined, so that the model creating process can be simplified, the time required by model creating is reduced, and the operating pressure on equipment is reduced.
After completing the creation of the virtual machine to be created, in order to facilitate the subsequent creation of a new virtual machine, in an implementation manner of the embodiment of the present invention, as shown in fig. 4, after step S150, the method may further include the following steps:
s160: and collecting the created image of the virtual machine to be created.
After the created image of the virtual machine to be created is collected, the image of the virtual machine to be created can be obtained when a new virtual machine is subsequently created, so that a basis can be provided for creating the new virtual machine.
It can be understood that, in the process of counting the available resource information, information of resources corresponding to the management device is completely counted, and an effective resource can be allocated to the virtual machine to be created, and resources in the resource area can also be effectively utilized. Therefore, in an implementation manner of the embodiment of the present invention, as shown in fig. 5, before step S150, the following steps may be further included:
s170: acquiring current resource information of a resource region to which each virtual machine belongs, wherein the resource region comprises: at least one of a cluster, a domain controller and a storage area, wherein the current resource information comprises current resource distribution information and current resource consumption information;
s180: and determining available resource information according to the current resource information.
The virtual machines refer to virtual machines created by the management device. The resource distribution information refers to the total resources in the resource region and the machines corresponding to the resources.
In the process of creating the virtual machine to be created, the available resource information is determined according to the resource region to which each virtual machine belongs, and the integrity of the determined available resource can be improved, so that the effectiveness of the resource allocated to the virtual machine to be created can be improved, and the effective utilization rate of the resource in the resource region can be improved.
In practical application, the service information corresponding to the user may also be a basis for the user to determine the performance parameters of the virtual machine to be created. For example, the service corresponding to the user is a video clip, and a video of at least 1000 minutes needs to be clipped within one day, the determined performance parameter of the virtual machine should meet the video clip requirement of the user, specifically, the storage of the virtual machine may be greater than 80G required for a video of 1000 minutes, and the CPU commonly used for the video clip is not less than 2GHz, and the CPU of the virtual machine to be created may be set to 2HG. Therefore, in an implementation manner of the embodiment of the present invention, as shown in fig. 6, before step S120, the following steps may be further included:
s190: acquiring a user portrait of a user identifier corresponding to a virtual machine to be created; the user representation includes: at least one of a service subsection to which the user identifier belongs, a service volume of a user corresponding to the user identifier, and a service type of the service subsection to which the user identifier belongs;
accordingly, step S120 may be specifically implemented as the following steps:
s125: and determining an estimated model of the virtual machine to be created according to the historical virtual machine portrait and the user portrait.
For a video service company, the business division can be a software development division, a software testing division, a video processing division and other divisions; the service volume may be a duration of a video clipped by a user within 1 hour, or within a time period of a day, or the like, a duration of an uploaded video, and the like, and the service type may be a service type of video clipping, video uploading, video auditing, and the like for a video. The specific content of the user portrait can be determined by those skilled in the art according to actual needs of different application fields, and the embodiment of the present invention does not specifically limit the specific content of the user portrait.
The service information corresponding to the user is used as a basis for creating the virtual machine to be created, and resources which are more consistent with the service engaged in by the user can be distributed to the user, so that the created virtual machine to be created can better meet the actual requirements of the service engaged in by the user, and the user experience is further improved.
In practical application, a virtual machine that a user wants to create has a certain relationship not only with a virtual machine that the user has created, but also with virtual machines that other users related to the user have created. In an implementation manner of the embodiment of the present invention, the history virtual machine image corresponding to the user identifier in step S110 may include: at least one of a history virtual machine image corresponding to the user identifier, a history virtual machine image corresponding to a project group to which the user identifier belongs, and a history virtual machine image corresponding to a service division to which the user identifier belongs.
For a video service company, the project group may be a special project group such as a domestic short animation project group, a national economic news project group, a cross-year evening video project group, and the like. The content of the project group can be set by those skilled in the art according to actual needs, and the present application is not particularly limited.
According to the embodiment of the invention, after the information of the virtual machine corresponding to the project group or the service branch to which the user identifier belongs is acquired, more virtual machines related to the user can be integrated, and the virtual machine which is more in line with the actual requirement of the user is determined for the user.
In a specific embodiment of the present invention, a virtual machine creation method is provided, which is applied to a management device, and as shown in fig. 7, includes the following steps:
s210: and acquiring a user identifier included in the virtual machine creating instruction, and analyzing the information of each virtual machine corresponding to the management equipment and the information of the user corresponding to the user identifier through large data load analysis.
S220: according to the user information analyzed in step S210, a user portrait is obtained, where the user portrait includes: at least one of the service subsection to which the user identifier belongs, the service volume of the user corresponding to the user identifier, and the service type of the service subsection to which the user identifier belongs.
S230: and monitoring each virtual machine through a monitoring data collector arranged in each virtual machine corresponding to the management equipment, and collecting monitoring data.
S240: and acquiring available resource information according to the monitoring data acquired in the step S230.
S250: and acquiring a historical virtual machine image corresponding to the user identifier according to the monitoring data acquired in the step S230.
S260: a user analysis model is determined based on the user representation and the historical virtual machine representation.
The user analysis model may specifically include: CPU user analysis model, memory user analysis model, hard disk user analysis model and user portrait analysis model.
Wherein, CPU user analysis model UMA CPU Can be as follows:
Figure BDA0001644201070000141
in the formula (1), n is the number of created virtual machines included in the service subsection to which the user identifier belongs; VMM (virtual machine monitor) CPUUi The CPU utilization rate of the ith virtual machine is set; VMM (virtual machine monitor) CPULi The load of the CPU of the ith virtual machine; mu.s 1 A weight coefficient for CPU utilization; mu.s 2 Is the weighting factor of the CPU load.
Memory user analysis model UMA MEM Can be as follows:
Figure BDA0001644201070000142
in the formula (2)N is the number of created virtual machines included in the service subsection to which the user identifier belongs; VMM (virtual machine monitor) MEMi The memory usage rate of the ith virtual machine; mu.s 3 Is the weight coefficient of the memory.
Hard disk user analysis model UMA DISK Can be as follows:
Figure BDA0001644201070000143
in the formula (3), n is the number of created virtual machines included in the service subsection to which the user identifier belongs; UMA DISK The hard disk reading/writing speed of the ith virtual machine is obtained; mu.s 3 Is the weight coefficient of the hard disk.
The user portrait analysis model may be:
UMA Dependency =μ 6 *BL+μ 7 *BC+μ 8 *BK (4)
in the formula (3), BL is a number corresponding to a service subsection to which the user identifier belongs; BC is the service volume of the user corresponding to the user identification; BK is number corresponding to service type of service to which user identification belongs; mu.s 6 Identifying the weight coefficient of the service subsection belonging to the user; mu.s 7 A weight coefficient of the user traffic corresponding to the user identifier; mu.s 8 And identifying the weight coefficient of the service type of the service to which the user belongs.
Mu as described above 1 To mu 8 The value of (b) can be set by a person skilled in the art according to different importance of each index according to actual needs, and the specific value of each weight coefficient is not limited in the application.
S270: determining an estimation model of the virtual machine to be created according to the user analysis model and the available resource information;
s280: according to the pre-estimated model determined in the step S270, an automatic construction module is used for creating the virtual machine to be created;
the creation of the virtual machine to be created in step S280 may be implemented by the following steps:
s281: acquiring creating information of the virtual machine to be created according to the pre-estimated model determined in the step S270;
s282: the validity detection is carried out on the creation information of the step S281, and whether the creation information is valid information to be created is judged;
s283: if the step S282 determines that the creation information is valid information, performing an automatic process configuration, and determining a preliminary virtual machine for the virtual machine to be created according to the creation information;
s284: carrying out resource detection to determine whether the available resource information is effective resource;
s285: deploying the virtual machine to be created, and creating the virtual machine to be created according to the preliminary virtual machine and the available resource information which is detected as the effective resource in the step S284;
s290: monitoring the created virtual machine to be created, and acquiring monitoring data of the virtual machine to be created;
s2100: managing the created virtual machine to be created according to the monitoring data collected in the step S290, and performing daily maintenance;
s2110: and updating the statistical data of the virtual machine locally stored in the management device according to the monitoring data collected in the step S290.
An embodiment of the present invention further provides a virtual machine creation method, which is applied to a terminal device, and as shown in fig. 8, the method may include the following steps:
s310: receiving a pre-estimated model of a virtual machine to be created; the pre-estimation model of the virtual machine to be created is a pre-estimation model which is determined and sent according to a historical virtual machine image after a management device acquires a user identifier included in a virtual machine creating instruction and acquires the historical virtual machine image corresponding to the user identifier.
It is understood that, when a user creates a virtual machine, a virtual machine creating instruction may be sent on a terminal device corresponding to the user, and the virtual machine creating instruction may include a user identifier corresponding to the user. The user identifier may include at least one of a user name of the user, a physical identifier of the terminal device corresponding to the user, and a network identifier of the terminal device corresponding to the user.
The historical virtual machine image refers to each configuration parameter of the created virtual machine. For example, the historical virtual machine image may include: at least one of the CPU utilization rate of the CPU of the historical virtual machine, the CPU load of the historical virtual machine, the memory utilization rate of the historical virtual machine, the memory size of the historical virtual machine, the disk reading/writing speed of the historical virtual machine and the network load of the historical virtual machine.
In practical applications, a user may have created one or more virtual machines, and the information of the virtual machines created by the user may reflect the actual needs of the user for the configuration of the virtual machines to some extent. Therefore, in the embodiment of the present invention, the terminal device may receive an estimation model of a virtual machine to be created, where the estimation model of the virtual machine to be created is an estimation model that is determined and sent according to a historical virtual machine image after a management device acquires a user identifier included in a virtual machine creation instruction and acquires the historical virtual machine image corresponding to the user identifier.
S320: and displaying the estimation model.
It is understood that the pre-estimated model received by the terminal device in step S310 is only a model predicted according to the virtual machine that the user has created, and may have a deviation from the model that the user actually needs to create. Therefore, in the embodiment of the present invention, the terminal device may display the estimation model. After the estimation model is displayed on the terminal equipment, the user can judge whether the predicted estimation model can meet the actual needs of the user from the displayed estimation model.
S330: and receiving an adjusting instruction aiming at the pre-estimated model.
The user can judge whether each predicted parameter value in the predicted prediction model conforms to the actual requirement of the user through the prediction model displayed at the terminal. If the pre-estimated model does not meet the actual requirement, the user can adjust the parameter values of the parameters which do not meet the actual requirement in the pre-estimated model. Therefore, in the embodiment of the present invention, the terminal device may receive an adjustment instruction for the estimation model. The adjustment instruction may include a parameter value of the adjusted predictive model input by the user on the terminal device.
S340: and sending the adjusting instruction to the management equipment so that the management equipment creates the virtual machine to be created according to the adjusting instruction, the pre-estimated model and the available resource information.
The available resource information refers to a resource in an available state in a resource pool, and the resource may be a resource such as a CPU or a memory.
After receiving the adjustment instruction in step S330, the terminal device may send the adjustment instruction to the management device, so that the management device creates the virtual machine to be created according to the adjustment instruction, the estimation model, and the available resource information.
According to the virtual machine creating method provided by the embodiment of the invention, when the virtual machine is created, the estimation model is predicted, the estimation model can meet the performance of the virtual machine to be created by a user to a certain extent, and then the user determines the information needing to be adjusted in the estimation model according to actual needs, so that virtual machine resources meeting the actual needs of the user can be distributed to the user, the created virtual machine can better meet the actual needs of the user, and the usability of the created virtual machine is improved.
An embodiment of the present invention further provides a virtual machine creating apparatus, which is applied to a management device, and as shown in fig. 9, includes:
a virtual machine image obtaining unit 410, configured to obtain a user identifier included in a virtual machine creation instruction, and obtain a historical virtual machine image corresponding to the user identifier;
the pre-estimation model determining unit 420 is configured to determine a pre-estimation model of the virtual machine to be created according to the historical virtual machine portrait;
a pre-estimated model sending unit 430, configured to send the pre-estimated model to a terminal device corresponding to the user identifier, so that the terminal device displays the pre-estimated model;
an adjustment instruction receiving unit 440, configured to receive an adjustment instruction for the pre-estimated model sent by the terminal device;
the virtual machine creating unit 450 is configured to create the virtual machine to be created according to the adjustment instruction, the estimation model, and the available resource information.
According to the virtual machine creating device provided by the embodiment of the invention, when the virtual machine is created, the estimation model is predicted, the estimation model can meet the performance of the virtual machine to be created of a user to a certain extent, and then the user determines the information needing to be adjusted in the estimation model according to actual needs, so that the virtual machine resource which meets the actual needs of the user better can be distributed to the user, the created virtual machine can better meet the actual needs of the user, and the usability of the created virtual machine is improved.
In an implementation manner of the embodiment of the present invention, the prediction model determining unit 420 may include:
the model obtaining subunit is used for obtaining a preset virtual machine model;
and the first model determining subunit determines values of all parameters in the preset virtual machine model according to the historical virtual machine image to obtain an estimated model of the virtual machine to be created.
In an implementation manner of the embodiment of the present invention, the prediction model determining unit 420 may include:
the model creating subunit is used for creating an initial virtual machine model containing corresponding parameters according to the historical virtual machine portrait;
and the second model determining subunit is used for determining the value of each parameter according to the historical virtual machine portrait to obtain an estimated model of the virtual machine to be created.
In an implementation manner of the embodiment of the present invention, the apparatus may further include:
and the portrait acquisition unit is used for acquiring the created portrait of the virtual machine to be created.
In an implementation manner of the embodiment of the present invention, the apparatus may further include:
a resource information obtaining unit, configured to obtain current resource information of a resource region to which each virtual machine belongs, where the resource region includes: at least one of a cluster, a domain controller and a storage region, wherein the current resource information comprises current resource distribution information and current resource consumption information;
and the available resource determining unit is used for determining the available resource information according to the current resource information.
In an implementation manner of the embodiment of the present invention, the apparatus may further include:
the user portrait acquiring unit is used for acquiring a user portrait of a user identifier corresponding to a virtual machine to be created; the user representation includes: at least one of a service subsection to which the user identifier belongs, a service volume of a user corresponding to the user identifier, and a service type of the service subsection to which the user identifier belongs;
correspondingly, the estimation model determining unit is specifically configured to:
and determining an estimated model of the virtual machine to be created according to the historical virtual machine portrait and the user portrait.
In an implementation manner of the embodiment of the present invention, the history virtual machine image may include: at least one of a Central Processing Unit (CPU) utilization rate of the historical virtual machine, a CPU load of the historical virtual machine, a memory utilization rate of the historical virtual machine, a disk read/write speed of the historical virtual machine, and a network load of the historical virtual machine.
In an implementation manner of the embodiment of the present invention, the history virtual machine image corresponding to the user identifier may include: at least one of a history virtual machine image corresponding to the user identifier, a history virtual machine image corresponding to a project group to which the user identifier belongs, and a history virtual machine image corresponding to a service division to which the user identifier belongs.
An embodiment of the present invention further provides a virtual machine creating apparatus, which is applied to a terminal device, and as shown in fig. 10, the apparatus may include:
a pre-estimation model receiving unit 510, configured to receive a pre-estimation model of a virtual machine to be created; the pre-estimated model of the virtual machine to be created is determined and sent according to a historical virtual machine image after a management device acquires a user identifier included in a virtual machine creating instruction and acquires the historical virtual machine image corresponding to the user identifier;
a pre-estimated model display unit 520 for displaying the pre-estimated model;
an adjustment instruction receiving unit 530, configured to receive an adjustment instruction for the pre-estimated model;
an adjustment instruction sending unit 540, configured to send the adjustment instruction to the management device, so that the management device creates the virtual machine to be created according to the adjustment instruction, the estimation model, and the available resource information.
According to the virtual machine creating device provided by the embodiment of the invention, when the virtual machine is created, the estimation model is predicted, the estimation model can meet the performance of the virtual machine to be created by a user to a certain extent, and then the user determines the information needing to be adjusted in the estimation model according to actual needs, so that virtual machine resources meeting the actual needs of the user can be distributed to the user, the created virtual machine can better meet the actual needs of the user, and the usability of the created virtual machine is improved.
An embodiment of the present invention further provides a management device, as shown in fig. 11, including a processor 1101, a communication interface 1102, a memory 1103, and a communication bus 1104, where the processor 1101, the communication interface 1102, and the memory 1103 complete mutual communication through the communication bus 1104,
a memory 1103 for storing a computer program;
the processor 1101 is configured to implement the following steps when executing the program stored in the memory 1103:
acquiring a user identifier included in a virtual machine creating instruction, and acquiring a historical virtual machine image corresponding to the user identifier;
determining an estimated model of the virtual machine to be created according to the historical virtual machine portrait;
sending the pre-estimated model to a terminal device corresponding to the user identifier so that the terminal device displays the pre-estimated model;
receiving an adjusting instruction aiming at the pre-estimated model sent by the terminal equipment;
and creating the virtual machine to be created according to the adjusting instruction, the pre-estimated model and the available resource information.
The management device provided by the embodiment of the invention predicts the pre-estimation model when the virtual machine is created, the pre-estimation model can meet the performance of the virtual machine to be created by a user to a certain extent, and then the user determines the information needing to be adjusted in the pre-estimation model according to actual needs, so that the virtual machine resource meeting the actual needs of the user can be distributed to the user, the created virtual machine can better meet the actual needs of the user, and the usability of the created virtual machine is improved.
An embodiment of the present invention further provides a terminal device, as shown in fig. 12, including a processor 1201, a communication interface 1202, a memory 1203, and a communication bus 1204, where the processor 1201, the communication interface 1202, and the memory 1203 complete mutual communication through the communication bus 1204,
a memory 1203 for storing a computer program;
the processor 1201 is configured to implement the following steps when executing the program stored in the memory 1203:
receiving a pre-estimated model of a virtual machine to be created; the pre-estimated model of the virtual machine to be created is determined and sent according to a historical virtual machine image after a management device acquires a user identifier included in a virtual machine creating instruction and acquires the historical virtual machine image corresponding to the user identifier;
displaying the pre-estimated model;
receiving an adjusting instruction aiming at the pre-estimated model;
and sending the adjusting instruction to the management equipment so that the management equipment creates the virtual machine to be created according to the adjusting instruction, the pre-estimated model and the available resource information.
According to the terminal equipment provided by the embodiment of the invention, when the virtual machine is created, the estimation model is predicted, the estimation model can meet the performance of the virtual machine to be created of a user to a certain extent, and then the user determines the information needing to be adjusted in the estimation model according to the actual requirement, so that the virtual machine resource which meets the actual requirement of the user better can be distributed to the user, the created virtual machine can better meet the actual requirement of the user, and the usability of the created virtual machine is improved.
An embodiment of the present invention further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer, the computer is caused to execute the following method:
acquiring a user identifier included in a virtual machine creating instruction, and acquiring a historical virtual machine image corresponding to the user identifier;
determining an estimated model of the virtual machine to be created according to the historical virtual machine portrait;
sending the pre-estimated model to a terminal device corresponding to the user identifier so that the terminal device displays the pre-estimated model;
receiving an adjusting instruction aiming at the pre-estimated model sent by the terminal equipment;
and creating the virtual machine to be created according to the adjusting instruction, the pre-estimated model and the available resource information.
According to the medium provided by the embodiment of the invention, when the virtual machine is created, the estimation model is predicted, the estimation model can meet the performance of the virtual machine to be created by a user to a certain extent, and then the user determines the information needing to be adjusted in the estimation model according to the actual requirement, so that the virtual machine resource meeting the actual requirement of the user can be distributed to the user, the created virtual machine can better meet the actual requirement of the user, and the usability of the created virtual machine is improved.
An embodiment of the present invention further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer, the computer is caused to execute the following method:
receiving a pre-estimated model of a virtual machine to be created; the pre-estimated model of the virtual machine to be created is determined and sent according to a historical virtual machine image after a management device acquires a user identifier included in a virtual machine creating instruction and acquires the historical virtual machine image corresponding to the user identifier;
displaying the pre-estimated model;
receiving an adjustment instruction aiming at the pre-estimated model;
and sending the adjusting instruction to the management equipment so that the management equipment creates the virtual machine to be created according to the adjusting instruction, the pre-estimated model and the available resource information.
According to the medium provided by the embodiment of the invention, when the virtual machine is created, the estimation model is predicted, the estimation model can meet the performance of the virtual machine to be created by a user to a certain extent, and then the user determines the information needing to be adjusted in the estimation model according to the actual requirement, so that the virtual machine resource meeting the actual requirement of the user can be distributed to the user, the created virtual machine can better meet the actual requirement of the user, and the usability of the created virtual machine is improved.
Embodiments of the present invention also provide a computer program product containing instructions which, when run on a computer, cause the computer to perform the following method:
acquiring a user identifier included in a virtual machine creating instruction, and acquiring a historical virtual machine image corresponding to the user identifier;
determining an estimated model of the virtual machine to be created according to the historical virtual machine portrait;
sending the pre-estimated model to a terminal device corresponding to the user identifier so that the terminal device displays the pre-estimated model;
receiving an adjusting instruction aiming at the pre-estimated model sent by the terminal equipment;
and creating the virtual machine to be created according to the adjusting instruction, the pre-estimated model and the available resource information.
According to the program product provided by the embodiment of the invention, when the virtual machine is created, the estimation model is predicted, the estimation model can meet the performance of the virtual machine to be created by a user to a certain extent, and then the user determines the information needing to be adjusted in the estimation model according to the actual requirement, so that the virtual machine resource meeting the actual requirement of the user can be distributed to the user, the created virtual machine can better meet the actual requirement of the user, and the usability of the created virtual machine is improved.
Embodiments of the present invention also provide a computer program product containing instructions which, when run on a computer, cause the computer to perform the following method:
receiving an estimated model of a virtual machine to be created; the pre-estimated model of the virtual machine to be created is determined and sent according to a historical virtual machine image after a management device acquires a user identifier included in a virtual machine creating instruction and acquires the historical virtual machine image corresponding to the user identifier;
displaying the pre-estimated model;
receiving an adjusting instruction aiming at the pre-estimated model;
and sending the adjusting instruction to the management equipment so that the management equipment creates the virtual machine to be created according to the adjusting instruction, the pre-estimated model and the available resource information.
According to the program product provided by the embodiment of the invention, when the virtual machine is created, the estimation model is predicted, the estimation model can meet the performance of the virtual machine to be created by a user to a certain extent, and then the user determines the information needing to be adjusted in the estimation model according to the actual requirement, so that the virtual machine resource meeting the actual requirement of the user can be distributed to the user, the created virtual machine can better meet the actual requirement of the user, and the usability of the created virtual machine is improved.
The communication bus mentioned in the management device/terminal device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the management device/terminal device and other devices.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions described above in accordance with the embodiments of the invention may be generated, in whole or in part, when the computer program instructions described above are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), among others.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a component of' 8230; \8230;" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the same element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus/device/medium/program product embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (18)

1. A virtual machine creation method applied to a management device includes:
the method comprises the steps of obtaining a user identifier included in a virtual machine creating instruction, and obtaining a historical virtual machine image corresponding to the user identifier, wherein the historical virtual machine image comprises the following steps: at least one of a Central Processing Unit (CPU) utilization rate of the historical virtual machine, a CPU load of the historical virtual machine, a memory utilization rate of the historical virtual machine, a disk read/write speed of the historical virtual machine, and a network load of the historical virtual machine;
determining an estimated model of the virtual machine to be created according to the historical virtual machine portrait;
sending the pre-estimated model to terminal equipment corresponding to the user identification so that the terminal equipment displays the pre-estimated model;
receiving an adjusting instruction aiming at the pre-estimated model sent by the terminal equipment;
and creating the virtual machine to be created according to the adjusting instruction, the pre-estimated model and the available resource information.
2. The method of claim 1, wherein determining a predictive model of a virtual machine to be created based on the historical virtual machine representation comprises:
according to the historical virtual machine portrait, an initial virtual machine model containing corresponding parameters is established;
and determining the value of each parameter according to the historical virtual machine portrait to obtain an estimated model of the virtual machine to be created.
3. The method of claim 1, wherein determining a predictive model of a virtual machine to be created based on the historical virtual machine representation comprises:
acquiring a preset virtual machine model;
and determining values of all parameters in the preset virtual machine model according to the historical virtual machine image to obtain an estimated model of the virtual machine to be created.
4. The method of claim 1, wherein after the creating the virtual machine to be created, further comprising:
and collecting the created image of the virtual machine to be created.
5. The method according to claim 1, wherein before creating the virtual machine to be created according to the adjustment instruction, the pre-estimation model and available resource information, further comprising:
acquiring current resource information of a resource region to which each virtual machine belongs, wherein the resource region comprises: at least one of a cluster, a domain controller and a storage area, wherein the current resource information comprises current resource distribution information and current resource consumption information;
and determining available resource information according to the current resource information.
6. The method of claim 1, wherein before determining a predictive model of a virtual machine to be created based on the historical virtual machine representation, further comprising:
acquiring a user portrait of a user identifier corresponding to a virtual machine to be created; the user representation includes: at least one of a service subsection to which the user identifier belongs, a service volume of a user corresponding to the user identifier, and a service type of the service subsection to which the user identifier belongs;
correspondingly, the determining the pre-estimated model of the virtual machine to be created according to the historical representation of the virtual machine includes:
and determining an estimated model of the virtual machine to be created according to the historical virtual machine portrait and the user portrait.
7. The method of any of claims 1 to 6, wherein the user identifying a corresponding historical virtual machine depiction comprises: at least one of a history virtual machine image corresponding to the user identifier, a history virtual machine image corresponding to a project group to which the user identifier belongs, and a history virtual machine image corresponding to a service subsection to which the user identifier belongs.
8. A virtual machine creation method is applied to a terminal device and comprises the following steps:
receiving a pre-estimated model of a virtual machine to be created; the pre-estimation model of the virtual machine to be created is a pre-estimation model which is determined and sent according to a historical virtual machine image after a management device acquires a user identifier included in a virtual machine creating instruction and acquires the historical virtual machine image corresponding to the user identifier, wherein the historical virtual machine image comprises: at least one of the CPU utilization rate of the historical virtual machine, the CPU load of the historical virtual machine, the memory utilization rate of the historical virtual machine, the disk read/write speed of the historical virtual machine and the network load of the historical virtual machine;
displaying the pre-estimated model;
receiving an adjustment instruction aiming at the pre-estimated model;
and sending the adjusting instruction to the management equipment so that the management equipment creates the virtual machine to be created according to the adjusting instruction, the pre-estimated model and the available resource information.
9. A virtual machine creation apparatus, applied to a management device, includes:
the virtual machine portrait acquiring unit is used for acquiring a user identifier included in a virtual machine creating instruction and acquiring a historical virtual machine portrait corresponding to the user identifier, wherein the historical virtual machine portrait comprises: at least one of the CPU utilization rate of the historical virtual machine, the CPU load of the historical virtual machine, the memory utilization rate of the historical virtual machine, the disk read/write speed of the historical virtual machine and the network load of the historical virtual machine;
the pre-estimation model determining unit is used for determining a pre-estimation model of the virtual machine to be created according to the historical virtual machine portrait;
the pre-estimation model sending unit is used for sending the pre-estimation model to the terminal equipment corresponding to the user identification so as to enable the terminal equipment to display the pre-estimation model;
an adjustment instruction receiving unit, configured to receive an adjustment instruction for the pre-estimated model sent by the terminal device;
and the virtual machine creating unit is used for creating the virtual machine to be created according to the adjusting instruction, the pre-estimated model and the available resource information.
10. The apparatus of claim 9, wherein the predictive model determining unit comprises:
the model obtaining subunit is used for obtaining a preset virtual machine model;
and the first model determining subunit determines values of all parameters in the preset virtual machine model according to the historical virtual machine image to obtain an estimated model of the virtual machine to be created.
11. The apparatus of claim 9, wherein the predictive model determining unit comprises:
the model creating subunit is used for creating an initial virtual machine model containing corresponding parameters according to the historical virtual machine representation;
and the second model determining subunit is used for determining the value of each parameter according to the historical virtual machine portrait to obtain an estimated model of the virtual machine to be created.
12. The apparatus of claim 9, further comprising:
and the portrait acquisition unit is used for acquiring the created portrait of the virtual machine to be created.
13. The apparatus of claim 9, further comprising:
a resource information obtaining unit, configured to obtain current resource information of a resource region to which each virtual machine belongs, where the resource region includes: at least one of a cluster, a domain controller and a storage area, wherein the current resource information comprises current resource distribution information and current resource consumption information;
and the available resource determining unit is used for determining the available resource information according to the current resource information.
14. The apparatus of claim 9, further comprising:
the user portrait acquiring unit is used for acquiring a user portrait of a user identifier corresponding to a virtual machine to be created; the user representation includes: at least one of a service subsection to which the user identifier belongs, a service volume of a user corresponding to the user identifier, and a service type of the service subsection to which the user identifier belongs;
correspondingly, the prediction model determining unit is specifically configured to:
and determining an estimated model of the virtual machine to be created according to the historical virtual machine portrait and the user portrait.
15. The apparatus of any of claims 9 to 14, wherein the user identifies a corresponding historical virtual machine depiction, comprising: at least one of a historical virtual machine image corresponding to the user identifier, a historical virtual machine image corresponding to a project group to which the user identifier belongs, and a historical virtual machine image corresponding to a service branch to which the user identifier belongs.
16. A virtual machine creating device is applied to a terminal device and comprises the following components:
the pre-estimation model receiving unit is used for receiving a pre-estimation model of the virtual machine to be created; the pre-estimation model of the virtual machine to be created is a pre-estimation model which is determined and sent according to a historical virtual machine image after a management device acquires a user identifier included in a virtual machine creating instruction and acquires the historical virtual machine image corresponding to the user identifier, wherein the historical virtual machine image comprises: at least one of a Central Processing Unit (CPU) utilization rate of the historical virtual machine, a CPU load of the historical virtual machine, a memory utilization rate of the historical virtual machine, a disk read/write speed of the historical virtual machine, and a network load of the historical virtual machine;
the pre-estimation model display unit is used for displaying the pre-estimation model;
the adjustment instruction receiving unit is used for receiving an adjustment instruction aiming at the pre-estimated model;
and the adjusting instruction sending unit is used for sending the adjusting instruction to the management equipment so that the management equipment creates the virtual machine to be created according to the adjusting instruction, the pre-estimated model and the available resource information.
17. The management equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory is used for storing a computer program;
the processor, when executing the program stored in the memory, implementing the method steps of any of claims 1-7.
18. The terminal equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory is used for storing a computer program;
the processor, when executing the program stored in the memory, performs the method steps of claim 8.
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 CN108762885A (en) 2018-11-06
CN108762885B true 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)

Families Citing this family (4)

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN107608753A (en) * 2016-07-12 2018-01-19 阿里巴巴集团控股有限公司 A kind of virtual machine creation method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8856783B2 (en) * 2010-10-12 2014-10-07 Citrix Systems, Inc. Allocating virtual machines according to user-specific virtual machine metrics
US8606897B2 (en) * 2010-05-28 2013-12-10 Red Hat, Inc. Systems and methods for exporting usage history data as input to a management platform of a target cloud-based network
CN103109293B (en) * 2012-08-24 2016-09-28 华为技术有限公司 A kind of user behavior processing system and method
WO2017185204A1 (en) * 2016-04-25 2017-11-02 深圳前海达闼云端智能科技有限公司 Method and device for creating virtual machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN107608753A (en) * 2016-07-12 2018-01-19 阿里巴巴集团控股有限公司 A kind of virtual machine creation method and device

Also Published As

Publication number Publication date
CN108762885A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
CN108762885B (en) Virtual machine creating method and device, management equipment and terminal equipment
EP3401787B1 (en) Analyzing resource utilization of a cloud computing resource in a cloud computing environment
WO2020258290A1 (en) Log data collection method, log data collection apparatus, storage medium and log data collection system
CN108776934B (en) Distributed data calculation method and device, computer equipment and readable storage medium
US9590875B2 (en) Content delivery infrastructure with non-intentional feedback parameter provisioning
US10783002B1 (en) Cost determination of a service call
US9161064B2 (en) Auto-scaling management of web content
JP2021521518A (en) Virtual machine scheduling method and equipment
US10972555B2 (en) Function based dynamic traffic management for network services
US11388232B2 (en) Replication of content to one or more servers
US10956214B2 (en) Time frame bounded execution of computational algorithms
US10666713B2 (en) Event processing
CN108243032B (en) Method, device and equipment for acquiring service level information
US20200145300A1 (en) Service-aware serverless cloud computing system
US10176017B2 (en) Configuration management for a shared pool of configurable computing resources
CN114026542A (en) Container-based applications
CN112148468A (en) Resource scheduling method and device, electronic equipment and storage medium
CN111290696A (en) Flow control method and device for application program assembly
CN105022668A (en) Job scheduling method and system
US11206673B2 (en) Priority control method and data processing system
CN110708361B (en) System, method and device for determining grade of digital content publishing user and server
CN112506619A (en) Job processing method, apparatus, electronic device, storage medium, and program product
CN110557339B (en) Flow planning method, device, computer equipment and storage medium
US10616317B2 (en) Method and system for affinity load balancing
Kumar et al. Resource provisioning in cloud computing using prediction models: A survey

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