CN103399781B - Cloud Server and virtual machine management method thereof - Google Patents
Cloud Server and virtual machine management method thereof Download PDFInfo
- Publication number
- CN103399781B CN103399781B CN201310335456.9A CN201310335456A CN103399781B CN 103399781 B CN103399781 B CN 103399781B CN 201310335456 A CN201310335456 A CN 201310335456A CN 103399781 B CN103399781 B CN 103399781B
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- magnetic disk
- threshold value
- data storage
- module
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45562—Creating, deleting, cloning virtual machine instances
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/4557—Distribution of virtual machine instances; Migration and load balancing
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the invention discloses a kind of Cloud Server and virtual machine management method thereof, this virtual machine management method includes: pre-sets magnetic disk of virtual machine according to virtual machine template, and stores on predetermined data storage carrier;When virtual machine provided by needs, described magnetic disk of virtual machine is mounted on the virtual machine that immediately creates.Present invention efficiently solves in prior art and just start setting up magnetic disk of virtual machine when virtual machine provided by needs, and the processes such as magnetic disk of virtual machine are set and need the substantial amounts of time, and then cause the technical problem that can not provide virtual machine in time, the present invention is effectively improved the speed providing virtual machine, ensure that work efficiency and service behaviour, improve the experience of user.
Description
Technical field
The present invention relates to virtual machine technique field, be specifically related to a kind of virtual machine management method, also
Relate to a kind of Cloud Server using this virtual machine management method.
Background technology
Informationalized development makes to be that geometrical curve increases to the demand calculating resource, and this is not
Mean only that and need to put into more hardware device, also mean that more PC Rooms Environmental Facilities and throw
Entering, operation expense and human cost increase the most accordingly simultaneously, therefore, in order to cost-effective,
Intel Virtualization Technology is applied in computer realm more and more.
Intel Virtualization Technology at Cloud Server (or claiming cloud computing etc.) is usually according to virtual machine template
Arranging virtual machine to service, its process includes designated virtual machine disk (VMDK, virtual
Machine disk) storage position, arrange and obtain specifications parameter with virtual machine template, operation system
The consistent virtual machines such as system, application program, are then issued to cluster or server service.
Specifically, prior art creates a virtual machine, installs operating system on a virtual machine
With after application software as the virtual machine template that pre-sets.When virtual machine provided by needs,
User selects a virtual machine template, it is intended that virtual machine operates in which server or cluster, empty
Which data storage plan machine specification information, magnetic disk of virtual machine are saved in;In setting up procedure, virtual machine needs
The installation operating system identical with virtual machine template and identical application program are set.
Wherein, when the process such as the operating system of virtual machine, application program that arranges needs to consume longer
Between, such as provide the virtual machine of a WIN7 operating system from starting setting up to the whole mistake provided
Journey is time-consuming it is generally required to more than a few minutes to ten a few minutes.And the granting speed of virtual machine is cloud service
One of important performance indexes of device, provides speed and directly affects user's use body to Cloud Server
Testing, therefore, the mode providing virtual machine at present is far not by far up to the mark, and affects Cloud Server
Work efficiency and performance.
Summary of the invention
In view of this, a kind of Cloud Server and Virtual Machine Manager side thereof are embodiments provided
Method, to solve to affect in the way of prior art provides virtual machine work efficiency and the performance of Cloud Server
Technical problem.
For solving the problems referred to above, embodiment of the present invention first aspect provides a kind of Virtual Machine Manager side
Method, including: the instant number of the magnetic disk of virtual machine in detection data storage carrier;Judge described reality
Time quantity whether less than predetermined threshold value;Determining described instant number less than described predetermined threshold value
Time, pre-set magnetic disk of virtual machine according to virtual machine template, and store predetermined data storage load
On body;When virtual machine provided by needs, be mounted to described magnetic disk of virtual machine immediately to create is virtual
On machine.
In conjunction with first aspect, in the implementation that the first is possible, described according to virtual machine template
Pre-set magnetic disk of virtual machine, including: shared by the virtual machine specified in virtual machine template
The attribute information of storage resource, creates described virtual machine magnetic in advance in the storage device of Cloud Server
Dish.
In conjunction with the first possible implementation of first aspect, in the implementation that the second is possible
In, the attribute information of the storage resource shared by the virtual machine specified in described virtual machine template includes
Any one or a combination thereof below: virtual machine storage capacity information, virtual machine operating system shared by
Storage capacity information, or virtual machine load the memory capacity shared by application program letter
Breath.
In conjunction with first aspect, in the implementation that the third is possible, the described data of described detection are deposited
Also include before the step of the instant number of the described magnetic disk of virtual machine in storage carrier: obtain described number
Sending out of the virtual machine corresponding with described virtual machine template provided in Preset Time according to memory carrier
Put quantity;According to described discharging quantity, described predetermined threshold value is set.
In conjunction with the third possible implementation of first aspect, the 4th kind of possible implementation
In, described pre-set magnetic disk of virtual machine according to virtual machine template before, also include: judge described
Whether the Spatial Residual value of the residual memory space of data storage carrier is less than the first residue preset
Threshold value;When determining described Spatial Residual value not less than described first residue threshold value, perform described
The step of magnetic disk of virtual machine is pre-set according to virtual machine template.
In conjunction with the 4th kind of possible implementation of first aspect, the 5th kind of possible implementation
In, also include after determining described Spatial Residual value and remaining threshold value less than described first: judge
Whether described Spatial Residual value is less than the second residue threshold value preset, wherein, and described first residue threshold
Value is more than described second residue threshold value;If judging, described Spatial Residual value is less than described second residue threshold
During value, delete the magnetic disk of virtual machine pre-set described at least one.
In conjunction with the implementation that the first or the second of first aspect, first aspect are possible,
In six kinds of possible implementations, described when virtual machine provided by needs, by described magnetic disk of virtual machine
The step being mounted on the virtual machine that immediately creates specifically includes: when virtual machine provided by needs, obtain
Take the appointment data storage carrier of input and specify specifications parameter;Carry according to the storage of described appointment data
Body searches corresponding data storage carrier, and according to described appointment specifications parameter at the number of described correspondence
According to the magnetic disk of virtual machine searching correspondence in memory carrier;Obtain the instant virtual machine created, and by institute
The magnetic disk of virtual machine stating correspondence is mounted on described virtual machine.
For solving the problems referred to above, embodiment of the present invention second aspect provides a kind of Cloud Server, described
Cloud Server includes detection module, the first judge module, performs module, pre-sets module and granting
Module.Described detection module is for detecting the real-time number of the magnetic disk of virtual machine in data storage carrier
Amount;Described first judge module is for judging that the described instant number that described detection module detects is
No less than predetermined threshold value;Described execution module is for determining described reality at described first judge module
Time quantity less than described predetermined threshold value time, pre-set module according to virtual machine template in advance described in notice
Magnetic disk of virtual machine is set;The described module that pre-sets is for pre-setting virtual machine according to virtual machine template
Disk, and store on predetermined data storage carrier;Described granting module is for providing at needs
During virtual machine, described magnetic disk of virtual machine is mounted on the virtual machine that immediately creates.
In conjunction with second aspect, in the implementation that the first is possible, described in pre-set module concrete
For the attribute information according to the storage resource shared by the virtual machine specified in virtual machine template, in advance
First in the storage device of Cloud Server, create described magnetic disk of virtual machine.
In conjunction with the first possible implementation of second aspect, in the implementation that the second is possible
In, the attribute information of the storage resource shared by the virtual machine specified in described virtual machine template includes
Any one or a combination thereof below: virtual machine storage capacity information, virtual machine operating system shared by
Storage capacity information, or virtual machine load the memory capacity shared by application program letter
Breath.
In conjunction with second aspect, in the implementation that the third is possible, described Cloud Server also includes
Acquisition module and module is set.Described acquisition module is used for obtaining described data storage carrier to be preset
The discharging quantity of the virtual machine corresponding with described virtual machine template provided in the time;Described mould is set
Block arranges described predetermined threshold value for the described discharging quantity got according to described acquisition module.
In conjunction with the third possible implementation of second aspect, the 4th kind of possible implementation
In, described first judge module is additionally operable to judge the residual memory space of described data storage carrier
Whether Spatial Residual value is less than the first residue threshold value preset.Described execution module specifically for:
When described first judge module determines described Spatial Residual value not less than described first residue threshold value,
Pre-set module described in notice and pre-set magnetic disk of virtual machine according to virtual machine template.
In conjunction with the 4th kind of possible implementation of second aspect, the 5th kind of possible implementation
In, described Cloud Server also includes the second judge module and processing module.Described second judge module,
For determining described Spatial Residual value less than described first residue threshold at described first judge module
After value, it is judged that whether described Spatial Residual value is less than the second residue threshold value preset, wherein, institute
State the first residue threshold value more than described second residue threshold value.Described processing module, for described the
When two judge modules judge described Spatial Residual value less than described second residue threshold value, delete at least one
The magnetic disk of virtual machine pre-set described in individual.
In conjunction with the implementation that the first or the second of second aspect, second aspect are possible,
In six kinds of possible implementations, described granting module specifically include acquiring unit, search unit and
Carry unit.Described acquiring unit, for when virtual machine provided by needs, obtaining the appointment of input
Data storage carrier and appointment specifications parameter;Described lookup unit, for according to described acquiring unit
The described appointment data storage carrier obtained searches corresponding data storage carrier, and obtains according to described
Take unit obtain described appointment specifications parameter search in the data storage carrier of described correspondence right
The magnetic disk of virtual machine answered;Described carry unit, for obtaining the virtual machine of instant establishment, and by institute
The magnetic disk of virtual machine stating the described correspondence that lookup unit finds is mounted on described virtual machine.
The embodiment of the present invention carries out pre-setting obtaining magnetic disk of virtual machine before virtual machine provided by needs,
Then immediately create virtual machine when needing and providing virtual machine and be mounted to pre-set the void obtained
On plan machine disk and immediately provide virtual machine, the present invention improves granting by the way of pre-setting
The speed of virtual machine.Specifically, needing during the embodiment of the present invention efficiently solves prior art
Just start setting up magnetic disk of virtual machine during virtual machine to be provided, and the process needs such as magnetic disk of virtual machine are set
The substantial amounts of time, and then cause the technical problem that can not provide virtual machine in time, the embodiment of the present invention
Pre-set the magnetic disk of virtual machine identical with virtual machine template, it is to avoid just start when providing virtual machine
Arrange, be therefore effectively improved the speed providing virtual machine, it is ensured that the work effect of Cloud Server
Rate and service behaviour, improve the experience of user.
Accompanying drawing explanation
Figure 1A is the schematic flow sheet of virtual machine management method the first embodiment of the present invention;
Figure 1B be the virtual machine management method shown in Figure 1A realize process schematic;
Fig. 2 is the schematic flow sheet of virtual machine management method the second embodiment of the present invention;
Fig. 3 is the schematic flow sheet of virtual machine management method the 3rd embodiment of the present invention;
Fig. 4 is the module diagram of Cloud Server the first embodiment of the present invention;
Fig. 5 is the module diagram of Cloud Server the second embodiment of the present invention;
Fig. 6 is the part of module schematic diagram of the Cloud Server shown in Fig. 5;
Fig. 7 is the specific implementation schematic diagram of the granting module of the Cloud Server shown in Fig. 5;With
And
Fig. 8 is the module diagram of Cloud Server the 3rd embodiment of the present invention.
Detailed description of the invention
In below describing, in order to illustrate rather than in order to limit, it is proposed that such as particular system structure,
The detail of interface, technology etc, in order to thoroughly cut and understand the present invention.But, the skill of this area
Art personnel are it should be clear that can also realize this in other embodiment do not have these details
Invention.In other situation, omit to well-known device, circuit and method specifically
It is bright, in order to avoid unnecessary details hinders description of the invention.
Illustrate with specific embodiment below in conjunction with the accompanying drawings.
Refer to Figure 1A and Figure 1B, present embodiment virtual machine management method include but not limited to
Lower step.
Step S100, pre-sets magnetic disk of virtual machine according to virtual machine template, and stores predetermined
On data storage carrier.
In the step s 100, present embodiment specifically can be virtual according to specifying in virtual machine template
The attribute information of the storage resource shared by machine such as virtual machine memory capacity specification etc. pre-sets void
Plan machine disk.The virtual machine memory capacity in described virtual machine template is taken the most in advance in resource pool
The disk that specification is identical.Preferably, the magnetic disk of virtual machine pre-set can be with virtual machine masterplate
Memory capacity specification consistent, it is also possible to consider further virtual machine template specifies (or loading)
Operating system and/or application program shared by storage capacity information.In other embodiments,
Can also set according to practical situation random or change storage capacity information, example regularly by predetermined
Virtual machine is adjusted intelligently such as the size of the real surplus memory space according to data storage carrier
The storage capacity information etc. of disk, in this no limit.
It should be noted that the data storage carrier of present embodiment is to deposit depositing of magnetic disk of virtual machine
Storage space, it can be one or more, furthermore, between different data storage carriers
Different virtual machine template can be deposited respectively and pre-set the magnetic disk of virtual machine obtained, it is also possible to
Same data storage carrier is only deposited a type of virtual machine template and is pre-set and obtain
Magnetic disk of virtual machine, its specifically can according to service scenario, work efficiency etc. carry out difference arrange,
This is not construed as limiting.The magnetic disk of virtual machine that present embodiment pre-sets can store with virtual machine template
In same data storage carrier (efficiency of the process of pre-setting can be improved), it is also possible to storage
On the data storage carriers such as the local memory device in Cloud Server (as shown in Figure 1B);Certainly,
Data storage carrier can also be external storage device in other embodiments, such as can be
IP SAN (IP-Storage Area Network, the storage area network with IP network as transmission medium),
FC SAN (Fibre Channel-Storage Area Network, the storage area network of optical-fibre channel
Network), NAS (Network Attached Storage, network attached storage) etc., do not limit at this
Fixed.
Wherein, virtual machine template can use other virtual machines having been used for using or service as mould
Plate, it is also possible to obtain beforehand through manually installed.Present embodiment is retouched as a example by manual installation
State: create virtual machine, it is intended that the CPU core number of virtual machine, memory size, memory capacity etc., wound
In data storage carrier, above-mentioned information and the magnetic disk of virtual machine of virtual machine is preserved after building;For create
Virtual machine is installed operating system and application software and stores in this magnetic disk of virtual machine, as WEB takes
Business and database;After completing above-mentioned establishment installation process, can be according to the operation of user or intelligence
Can judge and as the follow-up virtual machine template pre-set.
Step S101, when virtual machine provided by needs, is mounted to magnetic disk of virtual machine immediately to create
On virtual machine.
In step S101, present embodiment can pass through interrupt requests, or according to cluster,
The service load situation of server and judge whether " needing to provide virtual machine ", and receiving interruption
Request or determine need provide virtual machine time, the most first create virtual machine (without according to virtual machine
The attribute information of the storage resource shared by the virtual machine specified in template is in the storage of Cloud Server
Create magnetic disk of virtual machine on equipment, then directly step S100 is arranged the magnetic disk of virtual machine obtained
It is mounted on the virtual machine that immediately creates.
It should be noted that in prior art when virtual machine provided by needs, needed for virtual machine is set
The time wanted is also the most relevant to the memory capacity of magnetic disk of virtual machine: the memory capacity of magnetic disk of virtual machine
The biggest, its required time is the longest, causes the speed providing virtual machine the slowest.It is not difficult to find out,
The process arranging magnetic disk of virtual machine is carried out by present embodiment in advance, and can when needs are provided
Shi Fafang.And need to be to be noted that mutually that what present embodiment carried " will arrange magnetic disk of virtual machine
Process carry out in advance " can also for receive during magnetic disk of virtual machine is set needs send out
Put " interrupt requests " of virtual machine or determine according to cluster, the service load situation of server
" needing to provide virtual machine ", now, the magnetic disk of virtual machine arranged is after completing setting up procedure
Carry can be carried out and for servicing with the virtual machine created, for prior art,
This kind of mode still has the effect accelerating to provide virtual machine.
Wherein, the instant virtual machine provided can be provided according to cluster, the loading condition of server
Service in corresponding extra-heavy cluster, server, it is also possible to refer to according to the operation of user
Surely it is issued in corresponding cluster, server service, certainly, in concrete work process,
Also include the processes such as related network, in the range of those skilled in the art understands, the most carefully state.
If additionally, present embodiment virtual machine management method needs provide virtual machine and one or
During the magnetic disk of virtual machine being not previously set in multiple data storage carriers, it is also possible to immediately set
Put (online arrange), during to avoid instant available virtual machine, produce unnecessary trouble,
And then guarantee to provide for carrying out the virtual machine serviced.
In sum, present invention efficiently solves in prior art when virtual machine provided by needs
Start setting up magnetic disk of virtual machine, and the processes such as magnetic disk of virtual machine are set and need the substantial amounts of time, and then
Causing the technical problem that can not provide virtual machine in time, the present invention improves the speed providing virtual machine
Degree, it is ensured that work efficiency and service behaviour, improves the experience of user.
Refer to Fig. 2, be the schematic flow sheet of virtual machine management method the second embodiment of the present invention,
The virtual machine management method of present embodiment includes but not limited to following steps.
Step S200, the instant number of the magnetic disk of virtual machine in detection data storage carrier.
Being with earlier embodiments difference, present embodiment virtual machine management method needs elder generation
Perform step S200 to carry out again pre-setting magnetic disk of virtual machine.For example, specify a certain
May have existed for certain in data storage carrier or in all available data storage carriers
The magnetic disk of virtual machine pre-set of quantity, its quantity may reach and/or exceed certain
Scope, or be likely to be due to quantity too much have impact on the virtual machine serviced duty and
Service quality, it is also possible to reduce the service behaviour of system owing to unrestrictedly pre-setting, this
Outward, pre-set the too much magnetic disk of virtual machine of quantity and also result in the storage of waste data storage carrier
Space, therefore, present embodiment detects the storage of one or more data by step S200 and carries
The instant number of internal magnetic disk of virtual machine, to control according to instant number, to switch to use intelligence
Pre-set pattern.
Step S201, it is judged that whether instant number is less than predetermined threshold value.Little determining instant number
When (i.e. "Yes") predetermined threshold value, perform step S202, and the least determining instant number
When (i.e. "No") predetermined threshold value, wait pending step S203.
Wherein, predetermined threshold value can be configured before step S200, and detailed process can be wrapped
Include: obtain the virtual machine corresponding with virtual machine template that data storage carrier is provided in Preset Time
Discharging quantity;According to discharging quantity, predetermined threshold value is set.Being not difficult to find out, present embodiment is passed through
Obtain the discharging quantity in Preset Time and the mode of predetermined threshold value is set, it is possible to achieve data store
The dynamic equilibrium of the quantity of the magnetic disk of virtual machine in carrier, and then ensure to protect all the time in Preset Time
Hold pending carry, the processes of granting such as the individual magnetic disk of virtual machine of predetermined threshold value.Additionally, preset
Threshold value can also use artificial setting, such as needs according to actual work, service and arranges,
This is not construed as limiting.
Furthermore, after predetermined threshold value is set, can by user-machine interface or other
Aptitude manner and entrance of automatically switching pre-set pattern (the most automatically performing step S200).
Step S202, pre-sets magnetic disk of virtual machine according to virtual machine template, and stores predetermined
On data storage carrier.
Step S203, when virtual machine provided by needs, is mounted to magnetic disk of virtual machine immediately to create
On virtual machine.
Step S202 of present embodiment and step S203 can be closed refering to earlier embodiments respectively
In step S100 and the description of step S101, easily combine the model of understanding those skilled in the art
In enclosing, do not repeat.
Referring to Fig. 3, Fig. 3 incorporated by reference to earlier embodiments is virtual machine management method the 3rd of the present invention
The schematic flow sheet of embodiment, the virtual machine management method of present embodiment include but not limited to
Under several steps.
Step S300, the instant number of the magnetic disk of virtual machine in detection data storage carrier.
In step S300, in a certain data storage carrier specified or all available numbers
According to having existed for a number of magnetic disk of virtual machine pre-set in memory carrier, its number
Amount may reach and/or exceed certain scope, or be likely to be due to quantity and too much affect
The duty of the virtual machine serviced and service quality, it is also possible to due to the most in advance
Arrange and reduce the service behaviour of system, additionally, pre-set the magnetic disk of virtual machine that quantity is too much
Also resulting in the memory space of waste data storage carrier, therefore, present embodiment passes through step
S300 detects the instant number of the magnetic disk of virtual machine in one or more data storage carrier, with reality
The most intelligent pre-sets pattern.
Step S301, it is judged that whether instant number is less than predetermined threshold value.Little determining instant number
When (i.e. "Yes") predetermined threshold value, perform step S302, and the least determining instant number
When (i.e. "No") predetermined threshold value, wait pending step S306.
As it was previously stated, predetermined threshold value can be arranged by following process: obtain data storage carrier and exist
The discharging quantity of the virtual machine corresponding with virtual machine template provided in Preset Time;According to providing number
Amount arranges predetermined threshold value.It is not difficult to find out, arranges pre-by the discharging quantity in acquisition Preset Time
If the mode of threshold value, it is possible to achieve dynamically putting down of the quantity of the magnetic disk of virtual machine in data storage carrier
Weighing apparatus, and then ensure to have remained in Preset Time that predetermined threshold value magnetic disk of virtual machine etc. is pending
Carry, the process of granting.Additionally, predetermined threshold value can also use artificial setting, such as according to reality
The work on border, service need and arrange, in this no limit.
Step S302, it is judged that whether Spatial Residual value is less than the first residue threshold value preset.Judging
To Spatial Residual value not less than (i.e. "No") first residue threshold value time, perform step S305,
When determining Spatial Residual value less than (i.e. "Yes") first residue threshold value, perform step S303.
Wherein, the embodiment at other can also omit follow-up step S303 and step S304, and
When determining Spatial Residual value less than (i.e. "Yes") first residue threshold value, directly etc. pending
Step S306, different situations is only explained in detail by present embodiment, the art people
In the range of member understands, it is not used to constitute the restriction to present embodiment.
It should be noted that present embodiment is determining the instant number situation less than predetermined threshold value
Under, need the Spatial Residual value determining whether the residual memory space of data storage carrier the least
In the first default residue threshold value.Specifically, in step s 302, in order to ensure that data are deposited
The service behaviour of storage carrier and the virtual machine etc. of carry and service performance, need to ensure that data are deposited
I/O port (i.e. I/O mouth) between storage carrier and virtual machine is unimpeded, or ensures that data are deposited
Storage carrier has enough residual memory spaces and stores the redundant digit that the virtual machine of carry produces
According to, or be beneficial to the virtual machine of carry be expanded, extends (as expanded CPU core number, expansion
Fill memory size and memory capacity etc.), therefore, present embodiment needs according to Spatial Residual value
Size and determine the need for pre-setting magnetic disk of virtual machine.
It should be noted that the Spatial Residual value of present embodiment can be a data storage carrier
Residual memory space or multiple data storage carrier the size of residual memory space altogether, example
As when needs pre-set magnetic disk of virtual machine to data storage carrier A, data storage carrier A's
The Spatial Residual value of residual memory space is less than the first residue threshold value, then stopping is pre-set void
Plan machine disk is to data storage carrier A, and the residual memory space of simultaneously data storage carrier B
Spatial Residual value not less than the first residue threshold value, then can pre-set during pre-setting
Magnetic disk of virtual machine is to data storage carrier B.
Step S303, it is judged that whether Spatial Residual value is less than the second residue threshold value preset.Judging
To Spatial Residual value less than (i.e. "Yes") second residue threshold value time, perform step S304, and
When determining Spatial Residual value not less than (i.e. "No") second residue threshold value, wait pending step
S306, wherein, the first residue threshold value is more than (or being more than or equal to) the second residue threshold value.
Step S304, deletes at least one magnetic disk of virtual machine pre-set.
Integrating step S303 and step S304 are not difficult to find out, if present embodiment is special due to some
Different reason (detection instant number mistake or system poisoning etc.) and cause always according to virtual machine mould
Plate pre-sets magnetic disk of virtual machine, and now, the instant number pre-setting magnetic disk of virtual machine will be disliked
Meaning increases, and even has a strong impact on carry and carries out the service behaviour of the virtual machine serviced, or causes
There is confusion etc. in the data for the data storage carrier of storage virtual machine disk;Therefore, this enforcement
Mode judges in real time by step S303 whether Spatial Residual value is maintained at the second residue threshold value
Near and be in the state of dynamic equilibrium, it is to avoid the generation of the problems referred to above simultaneously can also be the most clear
Reason falls the unnecessary magnetic disk of virtual machine pre-set.Furthermore, by step S304, also may be used
With dispose in time pre-set certain time (such as one week, two weeks or one month) and always
The magnetic disk of virtual machine not used by carry, the most a certain CPU core number, memory size, memory capacity
Equal-specification parameter cannot be used for carry and service;It is of course also possible to virtual according to a certain type
Whether machine template is used by low frequency ground carry, and is determining Spatial Residual value less than the preset
During two residue threshold values, the magnetic disk of virtual machine pre-setting out by the virtual machine template of the type is deleted
Fall.Present embodiment can be cleaned out by step S304 so that limited data storage carrier
Can effectively be used, and can prevent from thus resulting in magnetic disk of virtual machine owing to mistake, poisoning etc. are former
Caused problem is set in a large number.
Step S305, pre-sets magnetic disk of virtual machine according to virtual machine template, and stores predetermined
On data storage carrier.
In step S305,
Present embodiment specifically can be according to the storage shared by designated virtual machine in virtual machine template
The attribute information of resource such as virtual machine memory capacity specification etc. pre-sets magnetic disk of virtual machine.The most in advance
The disk that the virtual machine memory capacity specification in described virtual machine template is identical is taken in resource pool.
Preferably, the magnetic disk of virtual machine pre-set can be with the memory capacity specification one of virtual machine masterplate
Cause, it is also possible to consider further specify the operating system of (or loading) in virtual machine template and/or answer
By the storage capacity information shared by program.In other embodiments, it is also possible to according to actual feelings
Condition and set random or change storage capacity information regularly by predetermined, such as carry according to data storage
The size of the real surplus memory space of body and adjust the memory capacity letter of magnetic disk of virtual machine intelligently
Breath etc., in this no limit.
It should be noted that the data storage carrier of present embodiment is to deposit depositing of magnetic disk of virtual machine
Storage space, it can be one or more, furthermore, between different data storage carriers
Different virtual machine template can be deposited respectively and pre-set the magnetic disk of virtual machine obtained, it is also possible to
Same data storage carrier is only deposited a type of virtual machine template and is pre-set and obtain
Magnetic disk of virtual machine, its specifically can according to service scenario, work efficiency etc. carry out difference arrange,
This is not construed as limiting.The magnetic disk of virtual machine that present embodiment pre-sets can store with virtual machine template
In same data storage carrier (efficiency of the process of pre-setting can be improved), it is also possible to storage
On the data storage carriers such as the storage device that Cloud Server is local;Certainly, at other embodiments
Middle data storage carrier can also be external storage device, in this no limit.
Step S306, when virtual machine provided by needs, is mounted to magnetic disk of virtual machine immediately to create
On virtual machine.
In step S306, present embodiment can by interrupt requests or according to cluster,
The service load situation of server and judge whether " needing to provide virtual machine ", and receiving interruption
Request or determine need provide virtual machine time, the most first create virtual machine (without according to virtual machine
The attribute information of the storage resource shared by the virtual machine specified in template is in the storage of Cloud Server
Magnetic disk of virtual machine etc. is created on equipment), then directly step S305 is arranged the virtual machine magnetic obtained
Dish is mounted on the virtual machine that immediately creates.
It should be noted that in prior art when virtual machine provided by needs, needed for virtual machine is set
The time wanted concrete the most also with the kind of memory capacity, application program and the operating system of magnetic disk of virtual machine
Relevant: the biggest or application program and operating system the kind of the memory capacity of magnetic disk of virtual machine is the most multiple
Miscellaneous, its required time is the longest, causes the speed providing virtual machine the slowest.It is not difficult to find out, this
The process pre-set is carried out by embodiment in advance, and can immediately provide when needs are provided.
And need to be to be noted that " process pre-set being carried out in advance " that present embodiment is carried mutually
Can also be for receiving " interrupt requests " needing to provide virtual machine during pre-setting
Or " needing to provide virtual machine " is determined according to cluster, the service load situation of server, this
Time, the magnetic disk of virtual machine arranged can be with the virtual machine created after completing setting up procedure
Carrying out carry, for prior art, this kind of mode still has the effect accelerating to provide virtual machine
Really.
During concrete implementation, step S306 can include following process:
S1: when virtual machine provided by needs, obtains the appointment data storage carrier of input and specifies rule
Lattice parameter;
S2: according to specifying data storage carrier to search corresponding data storage carrier, and according to appointment
Specifications parameter searches the magnetic disk of virtual machine of correspondence in corresponding data storage carrier;
S3: obtain the instant virtual machine created, and corresponding magnetic disk of virtual machine is mounted to virtual machine
On.
Be not difficult to find out from S1 to S3, Cloud Server etc. for the system of service be simultaneously used for one or
Servicing in multiple clusters, server, therefore user (manager) needs in advance or in real time
The different magnetic disk of virtual machine specifying the different size parameter in different pieces of information memory carrier is used for not
Service in same cluster or server.Such as present embodiment can be according to cluster or server
COS, network type etc. and the magnetic disk of virtual machine set by virtual machine template needed for specifying
Service.Present embodiment realizes the optimization process of " retrieval-coupling " by S1 to S3,
It is more conducive to service behaviour and the optimization of service quality.
In addition it should be pointed out that, prior art, when virtual machine provided by needs, creates virtual machine,
Then virtual machine is connected with the magnetic disk of virtual machine carry of virtual machine template, and deposits in another data simultaneously
Creating the difference disk being used for preserving the data of amendment in storage carrier, in other words, prior art will
The virtual machine created is mounted on magnetic disk of virtual machine and the difference disk of virtual machine template simultaneously, and with
Time need and two memory carriers between carry out data cube computation, transmission, this mode needs to account for simultaneously
With the I/O mouth of two data storage carriers, if the virtual machine of carry work simultaneously too much or goes out
The situation that existing I/O mouth blocks up, will have a strong impact on work efficiency and the service performance of the virtual machine of granting.
And present embodiment is by the way of pre-setting magnetic disk of virtual machine, service at magnetic disk of virtual machine carry
Time, virtual machine only and carries out I/O mouth between the magnetic disk of virtual machine pre-set and is connected and realizes data
Connect, transmit, thus ensure work efficiency and the service performance of the virtual machine after providing.
Present invention efficiently solves in prior art and just start setting up when virtual machine provided by needs
Magnetic disk of virtual machine, and the process such as magnetic disk of virtual machine is set and needs the substantial amounts of time, and then cause can not
Providing the technical problem of virtual machine in time, the present invention avoids just starting setting up when providing virtual machine,
Therefore it is effectively improved the speed providing virtual machine, it is ensured that work efficiency and service behaviour, changes
It is apt to the experience of user.
Incorporated by reference to Figure 1B refering to Fig. 4, it it is the module signal of Cloud Server the first embodiment of the present invention
Figure, the Cloud Server of present embodiment includes but not limited to pre-set module 41 and provide module 42.
Pre-set module 41 for pre-setting magnetic disk of virtual machine according to virtual machine template, and store
On predetermined data storage carrier.
As it was previously stated, present embodiment pre-set module 41 specifically can be according in virtual machine template
The attribute information of the storage resource shared by designated virtual machine such as virtual machine memory capacity specifications etc. are pre-
Magnetic disk of virtual machine is first set.The virtual machine in described virtual machine template is taken the most in advance in resource pool
The disk that memory capacity specification is identical.Preferably, the magnetic disk of virtual machine pre-set can be with void
The memory capacity specification of plan machine masterplate is consistent, it is also possible to consider further to specify in virtual machine template
Storage capacity information shared by the operating system of (or loading) and/or application program.Real at other
Execute in mode, pre-set module 41 and can also set according to practical situation random or establish rules by pre-
Rule ground changes storage capacity information, such as according to the real surplus memory space of data storage carrier
Size and adjust the storage capacity information etc. of magnetic disk of virtual machine intelligently, in this no limit.
It should be noted that the data storage carrier of present embodiment is to deposit depositing of magnetic disk of virtual machine
Storage space, it can be one or more, furthermore, between different data storage carriers
Different virtual machine template can be deposited respectively and pre-set the magnetic disk of virtual machine obtained, it is also possible to
Same data storage carrier is only deposited a type of virtual machine template and is pre-set and obtain
Magnetic disk of virtual machine, its specifically can according to service scenario, work efficiency etc. carry out difference arrange,
This is not construed as limiting.The magnetic disk of virtual machine that present embodiment pre-sets can store with virtual machine template
In same data storage carrier (efficiency of the process of pre-setting can be improved), it is also possible to storage
On the data storage carriers such as the storage device that Cloud Server is local (as shown in Figure 1B);Certainly,
Data storage carrier can also be external storage device in other embodiments, such as can be
IP SAN, FC SAN, NAS etc., in this no limit.
Wherein, virtual machine template can use other virtual machines having been used for using or service as mould
Plate, it is also possible to obtain beforehand through manually installed.Present embodiment is retouched as a example by manual installation
State: create virtual machine, it is intended that the CPU core number of virtual machine, memory size, memory capacity etc., wound
In data storage carrier, above-mentioned information and the magnetic disk of virtual machine of virtual machine is preserved after building;For create
Virtual machine is installed operating system and application software and stores in this magnetic disk of virtual machine, as WEB takes
Business and database;After completing above-mentioned establishment installation process, can be according to the operation of user or intelligence
Can judge and as the follow-up virtual machine template pre-set.
Provide module 42 for when virtual machine provided by needs, magnetic disk of virtual machine being mounted to immediately
On the virtual machine created.
Present embodiment provides module 42 can be by interrupt requests or according to cluster, service
The service load situation of device and judge whether " needing to provide virtual machine ", and receiving interrupt requests
Or determine need provide virtual machine time, provide module 42 the most first create virtual machine (without root
According to the attribute information of the storage resource shared by the virtual machine specified in virtual machine template in cloud service
Magnetic disk of virtual machine is created in the storage device of device), then directly will pre-set module 41 setting and obtain
Magnetic disk of virtual machine be mounted on the virtual machine that immediately creates.
It should be noted that in prior art when virtual machine provided by needs, needed for providing virtual machine
The time wanted concrete the most also with the kind of memory capacity, application program and the operating system of magnetic disk of virtual machine
Relevant: the biggest or application program and operating system the kind of the memory capacity of magnetic disk of virtual machine is the most multiple
Miscellaneous, its required time is the longest, causes the speed providing virtual machine the slowest.It is not difficult to find out, this
Embodiment pre-sets module 41 to be carried out in advance by the process of setting, and provides when needs are provided
Module 42 can be provided immediately.And need to be to be noted that present embodiment pre-sets module mutually
41 " process of setting being carried out in advance " carried can also be for connecing during pre-setting
Receive " interrupt requests " needing to provide virtual machine or according to cluster, the service load feelings of server
Condition and determine " need provide virtual machine ", now, the magnetic disk of virtual machine pre-set exists
Carry can be carried out, compared to prior art with the virtual machine created after completing setting up procedure
Speech, this kind of mode still has the effect accelerating to provide virtual machine.
Wherein, the instant virtual machine provided can be provided according to cluster, the loading condition of server
Service in corresponding extra-heavy cluster, server, it is also possible to refer to according to the operation of user
Surely it is issued in corresponding cluster, server service, certainly, in concrete work process,
Also include the processes such as related network, in the range of those skilled in the art understands, the most carefully state.
If additionally, present embodiment pre-set module 41 needs provide virtual machine and one or
During the magnetic disk of virtual machine being not previously set in multiple data storage carriers, it is also possible to immediately set
Put (online arrange), during to avoid instant available virtual machine, produce unnecessary trouble,
And then guarantee to provide for carrying out the virtual machine serviced.
In sum, Cloud Server of the present invention efficiently solves in prior art and provides void at needs
Just start setting up magnetic disk of virtual machine during plan machine, and the processes such as magnetic disk of virtual machine are set when needing substantial amounts of
Between, and then causing the technical problem that can not provide virtual machine in time, the present invention pre-sets with virtual
The magnetic disk of virtual machine that machine template is identical, improves the speed providing virtual machine, it is ensured that Cloud Server
Work efficiency and service behaviour, improve the experience of user.
Refer to the module diagram that Fig. 5, Fig. 5 are Cloud Server the second embodiments of the present invention,
Present embodiment Cloud Server includes but not limited to pre-set module 51, provide module 52, detection
Module the 53, first judge module the 54, second judge module 55, processing module 56 and execution module
57。
As it was previously stated, pre-set module 51 for pre-setting virtual machine magnetic according to virtual machine template
Dish, and store on predetermined data storage carrier.
Provide module 52 for when virtual machine provided by needs, magnetic disk of virtual machine being mounted to immediately
On the virtual machine created.
It should be noted that in the present embodiment, detection module 53 is used for detecting data storage
The instant number of the magnetic disk of virtual machine in carrier.For example, carry in the storage of a certain data specified
May have existed in internal or all available data storage carrier a number of in advance
The magnetic disk of virtual machine arranged, its quantity may reach and/or exceed certain scope, or
It is likely to be due to quantity and too much have impact on duty and the service quality of the virtual machine serviced,
Possibly also owing to unrestrictedly pre-set and reduce the service behaviour of system, additionally, set in advance
Put the too much magnetic disk of virtual machine of quantity and also result in the memory space of waste data storage carrier, because of
This, present embodiment detects the void in one or more data storage carrier by detection module 53
The instant number of plan machine disk, with realize intelligence pre-set pattern.
First judge module 54 is for judging whether the instant number that detection module 53 detects is less than
Predetermined threshold value.Wherein, the predetermined threshold value of present embodiment can preset according to data storage carrier
The discharging quantity (or providing frequency) of the virtual machine provided in the time is configured, thus realizes number
According to the dynamic equilibrium of the quantity of the magnetic disk of virtual machine in memory carrier, and ensure to begin in Preset Time
Maintain pending carry, the processes of granting such as predetermined threshold value magnetic disk of virtual machine eventually.Additionally, it is pre-
If threshold value can also use artificial setting, such as need according to actual work, service and arrange,
In this no limit.Now, module 57 is performed for determining in real time at the first judge module 54
When quantity is less than predetermined threshold value, notice pre-sets module 51 and pre-sets void according to virtual machine template
Plan machine disk is when the first judge module 54 determines instant number not less than predetermined threshold value, logical
Know and provide the void that magnetic disk of virtual machine is mounted to when needing and providing virtual machine immediately create by module 52
On plan machine.
Furthermore, the first judge module 54 of present embodiment can be also used for judging data
Whether the Spatial Residual value of the residual memory space of memory carrier is less than the first residue threshold value preset.
Wherein, the first residue threshold value can be arranged by artificial, it is also possible to automatic by cloud server system
Arrange, in this no limit.Present embodiment is in order to ensure data storage carrier and carry
The service behaviour of virtual machine etc. and service performance, need to ensure between data storage carrier and virtual machine
I/O port (i.e. I/O mouth) unimpeded, or it is enough surplus to ensure that data storage carrier has
Remaining memory space stores the redundant data that the virtual machine of carry produces, or is beneficial to carry
Virtual machine carry out expanding, extend (as expanded CPU core number, Extended RAM size and memory capacity
Deng), therefore, present embodiment by the first judge module 54 according to the size of Spatial Residual value
Determine the need for pre-setting magnetic disk of virtual machine.
Additionally, the residue that the Spatial Residual value of present embodiment can be a data storage carrier is deposited
Storage space or multiple data storage carrier the size of residual memory space altogether, such as work as needs
When pre-setting magnetic disk of virtual machine to data storage carrier A, the residue storage of data storage carrier A
The Spatial Residual value in space is less than the first residue threshold value, then stopping is pre-set magnetic disk of virtual machine
To data storage carrier A, and the Spatial Residual of the residual memory space of data storage carrier B simultaneously
Value not less than the first residue threshold value, then can pre-set virtual machine magnetic during pre-setting
Dish is to data storage carrier B.
Correspondingly, perform module 57 specifically to may be used for determining in real time at the first judge module 54
When quantity remains threshold value less than predetermined threshold value and Spatial Residual value not less than first, notice pre-sets mould
Block 51 pre-sets magnetic disk of virtual machine according to virtual machine template, determines at the first judge module 54
When instant number remains threshold value less than predetermined threshold value but Spatial Residual value less than first, notice provides mould
Magnetic disk of virtual machine is mounted on the virtual machine that immediately creates by block 52 when needing and providing virtual machine,
When the first judge module 54 determines instant number not less than predetermined threshold value, notice provides module
Magnetic disk of virtual machine is mounted on the virtual machine that immediately creates by 52 when needing and providing virtual machine.
It should be noted that the second judge module 55 of present embodiment is for judging mould first
Block 54 determine Spatial Residual value less than first residue threshold value after, it is judged that whether Spatial Residual value
Less than the second residue threshold value preset, wherein, the first residue threshold value is more than the second residue threshold value.
It can be appreciated that in the system of Cloud Server, it is understood that there may be some cause specific (detection mould
Block 53 detects instant number mistake or cloud server system poisoning etc.) and cause always according to void
Plan machine template pre-sets magnetic disk of virtual machine, now, pre-sets the instant number of magnetic disk of virtual machine
Will maliciously increase, even have a strong impact on carry and carry out the service behaviour of the virtual machine serviced, or
Person causes the data of the data storage carrier for storage virtual machine disk that confusion etc. occurs.Therefore,
By the second judge module 55, present embodiment judges whether Spatial Residual value is maintained at the in real time
Two remain Near Thresholds and are in the state of dynamic equilibrium, it is to avoid the generation of the problems referred to above simultaneously can also
Enough clean out the unnecessary magnetic disk of virtual machine pre-set in time.
Processing module 56 remains less than second for determining Spatial Residual value at the second judge module 55
During remaining threshold value, delete at least one magnetic disk of virtual machine pre-set, and notify to provide module 52
When needing and providing virtual machine magnetic disk of virtual machine is mounted on the virtual machine that immediately creates, second
When judge module 55 determines Spatial Residual value not less than the second residue threshold value, notice provides module
Magnetic disk of virtual machine is mounted on the virtual machine that immediately creates by 52 when needing and providing virtual machine.
Pre-set as it was previously stated, present embodiment can be disposed in time by processing module 56
And house certain time (such as one week or one month) and the virtual machine that do not used by carry
Disk, the most a certain CPU core number, memory size, memory capacity equal-specification parameter cannot be used for hanging
It is loaded into row service;It is of course also possible to according to the virtual machine template of a certain type whether by low frequency ground
Carry uses, and when determining Spatial Residual value less than the second residue threshold value preset, by such
The magnetic disk of virtual machine that the virtual machine template of type pre-sets out is deleted.Present embodiment passes through intelligence
The mode of the magnetic disk of virtual machine pre-set is deleted on energy ground so that limited data storage carrier can
Effectively used, and can be prevented owing to the former magnetic disk of virtual machine that thus result in such as mistake, poisoning are by greatly
Amount arranges caused problem.
Incorporated by reference to Fig. 5 refering to Fig. 6, in a preferred embodiment, Cloud Server can also include
Acquisition module 58 and module 59 is set.
Acquisition module 58 is for obtaining data storage carrier is provided in Preset Time and virtual machine
The discharging quantity of the virtual machine that template is corresponding.Present embodiment is obtained by acquisition module 58 and presets
Discharging quantity in time and the mode of predetermined threshold value is set, it is possible to achieve in data storage carrier
The dynamic equilibrium of the quantity of magnetic disk of virtual machine, and then ensure in Preset Time, remained default
Pending carry, the processes of granting such as threshold value magnetic disk of virtual machine.
Module 59 is set default threshold is set for the discharging quantity got according to acquisition module 58
Value.
Incorporated by reference to Fig. 5 refering to Fig. 7, in a preferred embodiment, module 52 is provided the most permissible
Including acquiring unit 520, search unit 521 and carry unit 522.
Acquiring unit 520, for when virtual machine provided by needs, obtains the appointment data storage of input
Carrier and appointment specifications parameter.
Search unit 521 to search for the appointment data storage carrier obtained according to acquiring unit 520
Corresponding data storage carrier, and the appointment specifications parameter obtained according to acquiring unit 520 is in correspondence
Data storage carrier in search corresponding magnetic disk of virtual machine.
Carry unit 522 is for obtaining the virtual machine of instant establishment, and is searched by lookup unit 521
To corresponding magnetic disk of virtual machine be mounted on virtual machine.
In the present embodiment, Cloud Server may be simultaneously used for one or more cluster, server
Inside servicing, therefore user (manager) needs in advance or specifies different pieces of information storage in real time
The different magnetic disk of virtual machine of the different size parameter in carrier is used for different clusters or server
Inside service.Such as present embodiment can be according to cluster or the COS of server, network
Magnetic disk of virtual machine out set by type etc. and virtual machine template needed for specifying services.This
Embodiment realizes the distribution process optimized by " retrieval-coupling ", more conducively service behaviour and
The optimization of service quality.
Present invention efficiently solves in prior art and just start setting up when virtual machine provided by needs
Magnetic disk of virtual machine, and the process such as magnetic disk of virtual machine is set and needs the substantial amounts of time, and then cause can not
Providing in time the technical problem of virtual machine, the present invention pre-sets identical with virtual machine template virtual
Machine disk, improves the speed providing virtual machine, it is ensured that work efficiency and service behaviour, improves
The experience of user.
Refer to Fig. 8, be the module diagram of Cloud Server the 3rd embodiment of the present invention, this reality
The mode Cloud Server of executing includes but not limited to processor 61, random access memory 62, read-only deposits
Reservoir 63 and bus 64, wherein, processor 61 by bus 64 respectively with random access memory
Device 62 and read only memory 63 couple.
The processor 61 of present embodiment is used for pre-setting magnetic disk of virtual machine according to virtual machine template,
And store on predetermined data storage carrier, and when virtual machine provided by needs, by virtual machine magnetic
Dish is mounted on the virtual machine that immediately creates.
Wherein, processor 61 specifically can be according to shared by designated virtual machine in virtual machine template
The attribute information such as virtual machine memory capacity specification etc. of storage resource pre-sets magnetic disk of virtual machine.I.e.
The virtual machine memory capacity specification in described virtual machine template is taken in advance identical in resource pool
Disk.Preferably, the magnetic disk of virtual machine pre-set can be with the memory capacity of virtual machine masterplate
Specification is consistent, it is also possible to consider to specify in virtual machine template the operating system of (or loading) further
And/or the storage capacity information shared by application program.In other embodiments, it is also possible to according to
Practical situation and set random or change storage capacity information regularly, such as according to data by predetermined
The size of the real surplus memory space of memory carrier and adjust the storage of magnetic disk of virtual machine intelligently
Capacity information etc., in this no limit.
In a particular embodiment, processor 61 can be also used for detecting in data storage carrier
The instant number of magnetic disk of virtual machine;Judge that whether instant number is less than predetermined threshold value;Determining
Pre-set magnetic disk of virtual machine according to virtual machine template when instant number is less than predetermined threshold value, and sentencing
Break to instant number not less than predetermined threshold value and need provide virtual machine time, by magnetic disk of virtual machine carry
On the instant virtual machine created.
Additionally, other detailed description of the invention of the Cloud Server of present embodiment also refer to the most real
Execute the associated description of mode, easily combine in the range of understanding those skilled in the art, the most one by one
Repeat.
Present invention efficiently solves in prior art and just start setting up when virtual machine provided by needs
Magnetic disk of virtual machine, and the process such as magnetic disk of virtual machine is set and needs the substantial amounts of time, and then cause can not
Providing in time the technical problem of virtual machine, the present invention pre-sets identical with virtual machine template virtual
Machine disk, improves the speed providing virtual machine, it is ensured that work efficiency and service behaviour, improves
The experience of user.
In several embodiments provided by the present invention, it should be understood that disclosed system,
Apparatus and method, can realize by another way.Such as, device described above is implemented
Mode is only schematically, such as, described module or the division of unit, it is only a kind of logic
Function divides, and actual can have other dividing mode when realizing, and the most multiple unit or assembly can
To combine or to be desirably integrated into another system, or some features can be ignored, or does not performs.
Another point, shown or discussed coupling each other or direct-coupling or communication connect
INDIRECT COUPLING or communication by some interfaces, device or unit connect, and can be electrical, machinery
Or other form.
The described unit illustrated as separating component can be or may not be physically separate
, the parts shown as unit can be or may not be physical location, i.e. may be located at
One place, or can also be distributed on multiple NE.Can select according to the actual needs
Select some or all of unit therein to realize the purpose of present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a process
In unit, it is also possible to be that unit is individually physically present, it is also possible to two or more unit
Integrated in a unit.Above-mentioned integrated unit both can realize to use the form of hardware, it is possible to
To use the form of SFU software functional unit to realize.
If described integrated unit realizes and as independent product using the form of SFU software functional unit
When product are sold or use, can be stored in a computer read/write memory medium.Based on so
Understanding, part that prior art is contributed by technical scheme the most in other words or
Completely or partially can embodying with the form of software product of this technical scheme of person, this computer
Software product is stored in a storage medium, including some instructions with so that a computer sets
Standby (can be personal computer, management server, or the network equipment etc.) or processor
(processor) all or part of step of method described in each embodiment of the present invention is performed.And
Aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or
The various media that can store program code such as person's CD.
The foregoing is only embodiments of the present invention, not thereby limit the protection model of the present invention
Enclosing, every equivalent structure utilizing description of the invention and accompanying drawing content to be made or equivalence flow process become
Change, or be directly or indirectly used in other relevant technical fields, be the most in like manner included in the present invention's
In scope of patent protection.
Claims (14)
1. a virtual machine management method, it is characterised in that including:
The instant number of the magnetic disk of virtual machine in detection data storage carrier;
Judge that whether described instant number is less than predetermined threshold value;
When determining described instant number less than described predetermined threshold value, according to virtual machine template in advance
Magnetic disk of virtual machine is set, and stores on predetermined data storage carrier;
When virtual machine provided by needs, described magnetic disk of virtual machine is mounted to the virtual machine immediately created
On.
Virtual machine management method the most according to claim 1, it is characterised in that described
Magnetic disk of virtual machine is pre-set according to virtual machine template, including:
According to the attribute information of the storage resource shared by the virtual machine specified in virtual machine template, in advance
First in the storage device of Cloud Server, create described magnetic disk of virtual machine.
Virtual machine management method the most according to claim 2, it is characterised in that described void
The attribute information of the storage resource shared by virtual machine specified in plan machine template include following arbitrarily
One or a combination thereof: virtual machine storage capacity information, the storage shared by operating system of virtual machine
Capacity information, or the storage capacity information shared by application program that virtual machine loads.
Virtual machine management method the most according to claim 1, it is characterised in that described inspection
Also wrap before the step of the instant number surveying the described magnetic disk of virtual machine in described data storage carrier
Include:
Obtain described data storage carrier that provide in Preset Time with described virtual machine template pair
The discharging quantity of the virtual machine answered;
Discharging quantity according to described virtual machine arranges described predetermined threshold value.
Virtual machine management method the most according to claim 4, it is characterised in that described
Before pre-setting magnetic disk of virtual machine according to virtual machine template, also include:
Judge that whether the Spatial Residual value of residual memory space of described data storage carrier is less than pre-
If first residue threshold value;
When determining described Spatial Residual value not less than described first residue threshold value, perform described
The step of magnetic disk of virtual machine is pre-set according to virtual machine template.
Virtual machine management method the most according to claim 5, it is characterised in that judging
Also include to described Spatial Residual value less than after described first residue threshold value:
Judge described Spatial Residual value whether less than the second residue threshold value preset, wherein, described the
One residue threshold value is more than described second residue threshold value;
If judge described Spatial Residual value less than described second residue threshold value, delete at least one institute
State the magnetic disk of virtual machine pre-set.
7. according to the virtual machine management method described in any one of claim 1-3, it is characterised in that
Described when virtual machine provided by needs, described magnetic disk of virtual machine is mounted to the virtual machine immediately created
On, including:
When virtual machine provided by needs, obtain the appointment data storage carrier of input and specify specification ginseng
Number;
Corresponding data storage carrier is searched according to described appointment data storage carrier, and according to described
Specifications parameter is specified to search the magnetic disk of virtual machine of correspondence in the data storage carrier of described correspondence;
Obtain the instant virtual machine created, and the magnetic disk of virtual machine of described correspondence is mounted to described void
On plan machine.
8. a Cloud Server, it is characterised in that described Cloud Server includes:
Detection module, for detecting the instant number of the magnetic disk of virtual machine in data storage carrier;
First judge module, for judging described instant number that described detection module detects whether
Less than predetermined threshold value;
Perform module, for determining described instant number less than described at described first judge module
During predetermined threshold value, notice pre-sets module and pre-sets magnetic disk of virtual machine according to virtual machine template;
Described pre-set module, for pre-setting magnetic disk of virtual machine according to virtual machine template, and deposit
Store up on predetermined data storage carrier;
Provide module, for when virtual machine provided by needs, described magnetic disk of virtual machine being mounted to i.e.
Time create virtual machine on.
Cloud Server the most according to claim 8, it is characterised in that described in pre-set mould
Block is specifically for the attribute according to the storage resource shared by the virtual machine specified in virtual machine template
Information, creates described magnetic disk of virtual machine in advance in the storage device of Cloud Server.
Cloud Server the most according to claim 9, it is characterised in that described virtual machine mould
The attribute information of the storage resource shared by the virtual machine specified in plate include following any one or
A combination thereof: virtual machine storage capacity information, the letter of the memory capacity shared by operating system of virtual machine
Breath, or the storage capacity information shared by application program that virtual machine loads.
11. Cloud Servers according to claim 8, it is characterised in that described Cloud Server
Also include:
Acquisition module, for obtain that described data storage carrier provides in Preset Time with described
The discharging quantity of the virtual machine that virtual machine template is corresponding;
Arranging module, the described discharging quantity for getting according to described acquisition module arranges described
Predetermined threshold value.
12. Cloud Servers according to claim 11, it is characterised in that:
Described first judge module is additionally operable to judge the residual memory space of described data storage carrier
Spatial Residual value whether less than the first residue threshold value preset;
Described execution module specifically for: determine described Spatial Residual at described first judge module
When value is not less than described first residue threshold value, pre-set module described in notice pre-according to virtual machine template
Magnetic disk of virtual machine is first set.
13. Cloud Servers according to claim 12, it is characterised in that described cloud service
Device also includes:
Second judge module is little for determining described Spatial Residual value at described first judge module
After described first remains threshold value, it is judged that whether described Spatial Residual value remains less than second preset
Remaining threshold value, wherein, described first residue threshold value is more than described second residue threshold value;
At described second judge module, processing module, for judging that described Spatial Residual value is less than described
During the second residue threshold value, delete the magnetic disk of virtual machine pre-set described at least one.
14. Cloud Servers described in-10 any one according to Claim 8, it is characterised in that described
Granting module specifically includes:
Acquiring unit, for when virtual machine provided by needs, the appointment data storage obtaining input carries
Body and appointment specifications parameter;
Search unit, look into for the described appointment data storage carrier obtained according to described acquiring unit
Look for the data storage carrier of correspondence, and the described appointment specifications parameter obtained according to described acquiring unit
The magnetic disk of virtual machine of correspondence is searched in the data storage carrier of described correspondence;
Carry unit, for obtaining the virtual machine of instant establishment, and finds described lookup unit
The magnetic disk of virtual machine of described correspondence be mounted on described virtual machine.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310335456.9A CN103399781B (en) | 2013-08-02 | 2013-08-02 | Cloud Server and virtual machine management method thereof |
PCT/CN2014/072058 WO2015014117A1 (en) | 2013-08-02 | 2014-02-13 | Cloud server and virtual machine management method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310335456.9A CN103399781B (en) | 2013-08-02 | 2013-08-02 | Cloud Server and virtual machine management method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103399781A CN103399781A (en) | 2013-11-20 |
CN103399781B true CN103399781B (en) | 2016-08-17 |
Family
ID=49563415
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310335456.9A Active CN103399781B (en) | 2013-08-02 | 2013-08-02 | Cloud Server and virtual machine management method thereof |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103399781B (en) |
WO (1) | WO2015014117A1 (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103399781B (en) * | 2013-08-02 | 2016-08-17 | 华为技术有限公司 | Cloud Server and virtual machine management method thereof |
CN104252378A (en) * | 2014-05-14 | 2014-12-31 | 温武少 | Virtual computer experience classroom system |
CN107426294A (en) * | 2017-06-08 | 2017-12-01 | 郑州云海信息技术有限公司 | A kind of method and device for disposing load-balancing device |
CN107479837A (en) * | 2017-08-30 | 2017-12-15 | 郑州云海信息技术有限公司 | The method and apparatus of virtual machine dilatation in cloud data system |
CN107562520A (en) * | 2017-09-07 | 2018-01-09 | 郑州云海信息技术有限公司 | The method and apparatus of the internal memory of dilatation virtual machine |
CN107861790B (en) * | 2017-10-27 | 2020-05-15 | 新华三云计算技术有限公司 | Virtual machine disk space expansion method and device, host machine and readable storage medium |
CN107885578A (en) * | 2017-11-13 | 2018-04-06 | 新华三云计算技术有限公司 | A kind of resources of virtual machine distribution method and device |
CN108984266B (en) * | 2018-06-15 | 2021-09-03 | 华为技术有限公司 | Virtual machine management method, device and system |
CN109379412A (en) * | 2018-09-27 | 2019-02-22 | 郑州云海信息技术有限公司 | A kind of method and apparatus for deleting cloud host |
CN112346649B (en) * | 2019-08-09 | 2024-08-23 | 北京国双科技有限公司 | Method and device for configuring magnetic disk |
CN113986124B (en) * | 2021-10-25 | 2024-02-23 | 深信服科技股份有限公司 | User configuration file access method, device, equipment and medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101840346A (en) * | 2009-12-30 | 2010-09-22 | 北京世纪互联宽带数据中心有限公司 | Method and system for deploying cloud host computer |
CN102981929A (en) * | 2012-11-05 | 2013-03-20 | 曙光云计算技术有限公司 | Management method and system for disk mirror images |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8429651B2 (en) * | 2010-01-20 | 2013-04-23 | International Business Machines Corporation | Enablement and acceleration of live and near-live migration of virtual machines and their associated storage across networks |
US8813065B2 (en) * | 2010-04-26 | 2014-08-19 | Vmware, Inc. | Microcloud platform delivery system |
CN102096596B (en) * | 2010-11-29 | 2013-11-06 | 华中科技大学 | Cloud computing service Cache system based on internal memory template of virtual machine |
CN102799464B (en) * | 2012-06-25 | 2015-11-11 | 北京奇虎科技有限公司 | Virtual machine creation method and system, virtual machine reloading method and system |
CN103399781B (en) * | 2013-08-02 | 2016-08-17 | 华为技术有限公司 | Cloud Server and virtual machine management method thereof |
-
2013
- 2013-08-02 CN CN201310335456.9A patent/CN103399781B/en active Active
-
2014
- 2014-02-13 WO PCT/CN2014/072058 patent/WO2015014117A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101840346A (en) * | 2009-12-30 | 2010-09-22 | 北京世纪互联宽带数据中心有限公司 | Method and system for deploying cloud host computer |
CN102981929A (en) * | 2012-11-05 | 2013-03-20 | 曙光云计算技术有限公司 | Management method and system for disk mirror images |
Also Published As
Publication number | Publication date |
---|---|
CN103399781A (en) | 2013-11-20 |
WO2015014117A1 (en) | 2015-02-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103399781B (en) | Cloud Server and virtual machine management method thereof | |
US11200526B2 (en) | Methods and systems to optimize server utilization for a virtual data center | |
CN103365700B (en) | A kind of facing cloud calculates monitoring resource and the adjustment System of virtualized environment | |
CN102694868B (en) | A kind of group system realizes and task dynamic allocation method | |
CN105049268A (en) | Distributed computing resource allocation system and task processing method | |
CN104272266A (en) | Management system which manages computer system having plurality of devices to be monitored | |
US20160380862A1 (en) | Methods and systems to evaluate data center resource allocation costs | |
CN103455363B (en) | Command processing method, device and physical host of virtual machine | |
CN109271257A (en) | A kind of method and apparatus of virtual machine (vm) migration deployment | |
CN104486255A (en) | Service resource dispatching method and device | |
CN111625383B (en) | Process exception event processing method and device, electronic equipment and storage medium | |
US20110126219A1 (en) | Middleware for Extracting Aggregation Statistics to Enable Light-Weight Management Planners | |
CN111309440B (en) | Method and equipment for managing and scheduling multiple types of GPUs | |
CN102929769A (en) | Virtual machine internal-data acquisition method based on agency service | |
CN110389843A (en) | A kind of business scheduling method, device, equipment and readable storage medium storing program for executing | |
CN103473115A (en) | Virtual machine placing method and device | |
CN109873714A (en) | Cloud computing node configures update method and terminal device | |
CN103763126A (en) | System and method for monitoring database and database monitoring device | |
CN109597764A (en) | A kind of test method and relevant apparatus of catalogue quota | |
CN101827120A (en) | Cluster storage method and system | |
CN102096606A (en) | Virtual machine migration method, device and system | |
CN108563787A (en) | A kind of data interaction management system and method for data center's total management system | |
CN106961440A (en) | The method that monitoring management platform is run based on enterprise-level resource | |
CN107679423A (en) | Partition integrity inspection method and device | |
US10282223B2 (en) | Methods and systems to assess efficient usage of data-center resources by virtual machines |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |