CN110018883A - A kind of virtual machine delet method, device, equipment and storage medium - Google Patents
A kind of virtual machine delet method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN110018883A CN110018883A CN201910290923.8A CN201910290923A CN110018883A CN 110018883 A CN110018883 A CN 110018883A CN 201910290923 A CN201910290923 A CN 201910290923A CN 110018883 A CN110018883 A CN 110018883A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- target virtual
- logicality
- deletion
- completed
- 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.)
- Pending
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
Abstract
The invention discloses a kind of virtual machine delet methods, comprising the following steps: the deletion received for target virtual machine instructs;Logicality delete operation is carried out to target virtual machine;In the deletion trigger condition for reaching setting, complete deletion operation is carried out to the completed target virtual machine of logicality delete operation.Using technical solution provided by the embodiment of the present invention, logicality delete operation first is carried out to target virtual machine, discharge Internet resources, cpu resource and the memory source of target virtual machine, not direct complete deletion target virtual machine, but in the deletion trigger condition for reaching setting, complete deletion operation is carried out to the completed target virtual machine of logicality delete operation again, safely, the resource of virtual machine is discharged step by step, it can carry out restoring operation in time when accidentally deleting, the occurrence of reduction is accidentally deleted, avoids the normal operation for influencing other virtual machines.The invention also discloses a kind of virtual machines to delete device, equipment and storage medium, has relevant art effect.
Description
Technical field
The present invention relates to field of cloud computer technology, more particularly to a kind of virtual machine delet method, device, equipment and storage
Medium.
Background technique
With the fast development of cloud computing technology, cloud computing applications in various fields is more and more extensive.Cloud computing enhances
Cooperation, agility, scalability, availability, and by optimization, calculating more efficiently reduce the potential of cost.More specifically
Say, cloud computing describes service, application, information and the basis being made of the calculating of " recycling ", network, information and storage etc.
The use of facility etc..These components can plan rapidly, purchase, disposing and retired, and can expand or reduce rapidly.
Why cloud computing system can automatically control the resource use of certain service of optimization, be because being utilized by certain
The abstract measurement capability of kind degree.In cloud computing, virtualization technology is one of the important technology for being abstracted resource.It is virtualizing
It is different according to the entity of virtual machine in technology, different types of virtualization can be divided into.Wherein, system virtualization technology be by
A kind of virtualization technology recognized extensively.
The core concept of system virtualization is that virtualization software fictionalizes one or more virtual machine in a physical machine.
Virtual machine operates in an isolation environment, is to have the logic computer system of complete hardware function, including guest operation system
System and application program therein.In virtual machine system, multiple operating systems can be independent of each other in same physical machine
It runs simultaneously, multiplexed physical resource.
In the prior art, when needing to delete some virtual machine, user is needed to be manually operated.But because same
Multiple virtual machines may be run in physical machine simultaneously, user carries out virtual machine delete operation manually, and safety is not high, may go out
Situation is now accidentally deleted, the normal operation of other virtual machines is influenced.
Summary of the invention
The object of the present invention is to provide a kind of virtual machine delet method, device, equipment and storage medium, with safely, point
The occurrence of step discharges the resource of virtual machine, and reduction is accidentally deleted, avoids the normal operation for influencing other virtual machines.
In order to solve the above technical problems, the invention provides the following technical scheme:
A kind of virtual machine delet method, comprising:
The deletion received for target virtual machine instructs;
Logicality delete operation is carried out to the target virtual machine;
In the deletion trigger condition for reaching setting, the target virtual machine completed to logicality delete operation is carried out
Complete deletion operation.
It is described that logicality delete operation is carried out to the target virtual machine in a kind of specific embodiment of the invention,
Include:
The operating status of the target virtual machine is deleted into state in operation labeled as logicality;
The network interface card of the target virtual machine is unloaded, and power-off operation is executed to the target virtual machine after unloading successfully,
So that the cpu resource and memory source of the target virtual machine release busy;
The operating status of the target virtual machine is updated to logicality deletion, state is completed.
In a kind of specific embodiment of the invention, after described receive for the deletion instruction of target virtual machine,
Before the progress logicality delete operation to the target virtual machine, further includes:
Determine the target virtual machine with the presence or absence of unfinished operation task;
If it is not, then executing described the step of carrying out logicality delete operation to the target virtual machine.
In a kind of specific embodiment of the invention, to the target virtual machine carry out logicality delete operation it
Afterwards, further includes:
Obtain cpu resource and memory source occupied information in the metadata of the target virtual machine;
According to the cpu resource and memory source occupied information, the cpu resource of the host of the target virtual machine is updated
With the remaining information of memory source.
In a kind of specific embodiment of the invention, logicality delete operation is carried out to the target virtual machine described
Later, before the target virtual machine progress complete deletion operation completed to logicality delete operation, further includes:
The reduction received for the target virtual machine is requested;
It is requested according to the reduction, application distributes the cpu resource and memory source of the target virtual machine again;
Operation is booted up to the target virtual machine.
It is described in the deletion trigger condition for reaching setting in a kind of specific embodiment of the invention, to logicality
The completed target virtual machine of delete operation carries out complete deletion operation, comprising:
Logicality delete operation is being carried out to the target virtual machine, after operation is completed, if reach setting reservation
It is long, then complete deletion operation is carried out to the target virtual machine.
It is described in the deletion trigger condition for reaching setting in a kind of specific embodiment of the invention, to logicality
The completed target virtual machine of delete operation carries out complete deletion operation, comprising:
Logicality delete operation is being carried out to the target virtual machine, after operation is completed, if monitoring that logicality is deleted
Reach setting capacity threshold except the memory space that completed all virtual machines occupy host is operated, then to the destination virtual
Machine carries out complete deletion operation.
A kind of virtual machine deletion device, comprising:
Instruction receiving unit is deleted, for receiving the deletion instruction for being directed to target virtual machine;
Logicality deletes unit, for carrying out logicality delete operation to the target virtual machine;
Complete deletion unit, it is completed to logicality delete operation in the deletion trigger condition for reaching setting
The target virtual machine carries out complete deletion operation.
In a kind of specific embodiment of the invention, the logicality deletes unit, is specifically used for:
The operating status of the target virtual machine is deleted into state in operation labeled as logicality;
The network interface card of the target virtual machine is unloaded, and power-off operation is executed to the target virtual machine after unloading successfully,
So that the cpu resource and memory source of the target virtual machine release busy;
The operating status of the target virtual machine is updated to logicality deletion, state is completed.
In a kind of specific embodiment of the invention, further includes operation task determination unit, is used for:
It is described receive for target virtual machine deletion instruction after, it is described to the target virtual machine carry out logicality
Before delete operation, further includes:
Determine the target virtual machine with the presence or absence of unfinished operation task;
If it is not, then triggering, the logicality deletion unit execution is described to carry out logicality deletion to the target virtual machine
The step of operation.
In a kind of specific embodiment of the invention, further includes remaining information updating unit, is used for:
After carrying out logicality delete operation to the target virtual machine, in the metadata that obtains the target virtual machine
Cpu resource and memory source occupied information;
According to the cpu resource and memory source occupied information, the cpu resource of the host of the target virtual machine is updated
With the remaining information of memory source.
In a kind of specific embodiment of the invention, further includes reduction unit, is used for:
It is described to the target virtual machine carry out logicality delete operation after, it is described complete to logicality delete operation
At the target virtual machine carry out complete deletion operation before, receive for the target virtual machine reduction request;
It is requested according to the reduction, application distributes the cpu resource and memory source of the target virtual machine again;
Operation is booted up to the target virtual machine.
In a kind of specific embodiment of the invention, the complete deletion unit is specifically used for:
Logicality delete operation is being carried out to the target virtual machine, after operation is completed, if reach setting reservation
It is long, then complete deletion operation is carried out to the target virtual machine.
In a kind of specific embodiment of the invention, the complete deletion unit is specifically used for:
Logicality delete operation is being carried out to the target virtual machine, after operation is completed, if monitoring that logicality is deleted
Reach setting capacity threshold except the memory space that completed all virtual machines occupy host is operated, then to the destination virtual
Machine carries out complete deletion operation.
A kind of virtual machine sweep equipment, comprising:
Memory, for storing computer program;
Processor realizes the step of virtual machine delet method described in any of the above-described when for executing the computer program
Suddenly.
A kind of computer readable storage medium is stored with computer program on the computer readable storage medium, described
The step of virtual machine delet method described in any of the above-described is realized when computer program is executed by processor.
Using technical solution provided by the embodiment of the present invention, when receiving the deletion instruction for target virtual machine,
Logicality delete operation is carried out to target virtual machine, in the deletion trigger condition for reaching setting, to logicality delete operation
The target virtual machine of completion carries out complete deletion operation.Logicality delete operation first is carried out to target virtual machine, release target is empty
Internet resources, cpu resource and the memory source of quasi- machine, not direct complete deletion target virtual machine, but reaching setting
When deleting trigger condition, then complete deletion operation is carried out to the completed target virtual machine of logicality delete operation, safely, divided
The occurrence of step discharges the resource of virtual machine, can carry out restoring operation in time when accidentally deleting, and reduction is accidentally deleted, avoids influencing
The normal operation of other virtual machines.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of implementation flow chart of virtual machine delet method in the embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of virtual machine deletion device in the embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of virtual machine sweep equipment in the embodiment of the present invention.
Specific embodiment
Core of the invention is to provide a kind of virtual machine delet method, and this method can be applied to Virtual Machine Manager module,
The Virtual Machine Manager module may operate on the host where virtual machine.Multiple virtual machines can be run on the host.
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description
The present invention is described in further detail.Obviously, described embodiments are only a part of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Under every other embodiment obtained, shall fall within the protection scope of the present invention.
It is shown in Figure 1, it is a kind of implementation flow chart of virtual machine delet method provided by the embodiment of the present invention, the party
Method may comprise steps of:
S110: the deletion received for target virtual machine instructs.
In practical applications, according to actual business requirement, it might have the deletion demand to virtual machine.
In embodiments of the present invention, monitor of virtual machine can be monitored each virtual machine, receive for target void
After the deletion instruction of quasi- machine, first target virtual machine is authenticated, certification will delete instruction after passing through and be transmitted to Virtual Machine Manager
Module.
Virtual Machine Manager module can continue to execute step S120 when receiving the deletion instruction for target virtual machine
Operation.
S120: logicality delete operation is carried out to target virtual machine.
After receiving for the deletion instruction of target virtual machine, logicality first can be carried out to target virtual machine and delete behaviour
Make.
In a kind of specific embodiment of the invention, step S120 be may comprise steps of:
Step 1: the operating status of target virtual machine is deleted into state in operation labeled as logicality;
Step 2: unloading the network interface card of target virtual machine, and executes power-off operation to target virtual machine after unloading successfully, with
Make the cpu resource and memory source of target virtual machine release busy;
Step 3: the operating status of target virtual machine is updated to logicality deletion, state is completed.
It is illustrated for ease of description, above three step is combined.
It, can be first in virtual machine operations task by destination virtual after receiving for the deletion instruction of target virtual machine
The operating status of machine deletes state in operation labeled as logicality, deletes the target virtual machine of state in operation not in logicality
It can receive other operation requests again.Then the network interface card for unloading target virtual machine, makes its releasing network resource, can after unloading successfully
With to target virtual machine execute power-off operation, target virtual machine shutdown after, the cpu resource of the host releasably originally occupied and
Memory source recycles the cpu resource of target virtual machine release and memory source.And then it can be by the operation shape of target virtual machine
State is updated to logicality deletion and state is completed, and shows that the logicality delete operation of target virtual machine is completed.
S130: in the deletion trigger condition for reaching setting, it is thorough that completed target virtual machine progress is deleted to logicality
Bottom delete operation.
The virtual condition of the completed target virtual machine of logicality delete operation is off-mode, metadata, mirror image text
Part etc. still occupies the memory space of the disk of host.
In embodiments of the present invention, deletion trigger condition can be preset, in the deletion trigger condition for reaching setting,
Completed target virtual machine can be deleted to logicality and carry out complete deletion operation, the metadata of complete deletion target virtual machine
Information, configuration file, disk file etc., and cannot be reduced.Target virtual machine is occupied before releasable by after complete deletion
Memory space.
In a kind of specific embodiment of the invention, step S130 be may comprise steps of:
Logicality delete operation is being carried out to target virtual machine, after operation is completed, if reaching setting retains duration,
Complete deletion operation is carried out to target virtual machine.
Retaining duration can be set and be adjusted according to the actual situation, and the embodiment of the present invention is without limitation.
Logicality delete operation is being carried out to target virtual machine, after operation is completed, if reaching setting retains duration,
It is believed that having reached the deletion trigger condition of setting, show to be not received by the reduction request to target virtual machine during this period
Deng, can to target virtual machine carry out complete deletion operation.
After carrying out logic delete operation to target virtual machine, target virtual machine is practically in off-mode, at this time simultaneously
Not direct complete deletion target virtual machine, but have certain reservation duration, it, then can be in the guarantor if there is accidentally delete operation
It stays within the scope of duration, restoring operation is executed to target virtual machine.
In another specific embodiment of the invention, step S130 be may comprise steps of:
Logicality delete operation is being carried out to target virtual machine, after operation is completed, if monitoring that logicality deletes behaviour
Make the memory space that completed all virtual machines occupy host and reach setting capacity threshold, then target virtual machine is carried out thorough
Bottom delete operation.
In practical applications, may run in host has multiple virtual machines, for each virtual machine, as long as having to the void
The deletion instruction of quasi- machine can carry out logicality delete operation to the virtual machine according to step S120.It carries out logicality and deletes behaviour
Metadata, image file of the virtual machine of work etc. still occupy the memory space of the disk of host.If logicality deletes behaviour
Make the memory space that completed virtual machine occupies excessive host, it will influence the operation of other virtual machines in host.
So a capacity threshold can be preset.
Logicality delete operation is being carried out to target virtual machine, after operation is completed, if monitoring that logicality deletes behaviour
Make the memory space that completed all virtual machines occupy host and reaches the setting capacity threshold, then it can be to target virtual machine
Carry out complete deletion operation, while can other virtual machines completed to current logic delete operation carry out complete deletion
Operation.
Using method provided by the embodiment of the present invention, when receiving the deletion instruction for target virtual machine, to mesh
Mark virtual machine carries out logicality delete operation and logicality delete operation is completed in the deletion trigger condition for reaching setting
Target virtual machine carry out complete deletion operation.Logicality delete operation first is carried out to target virtual machine, discharges target virtual machine
Internet resources, cpu resource and memory source, not direct complete deletion target virtual machine, but in the deletion for reaching setting
When trigger condition, then complete deletion operation is carried out to the completed target virtual machine of logicality delete operation, safely, step by step
The occurrence of resource for discharging virtual machine can carry out restoring operation in time when accidentally deleting, and reduction is accidentally deleted, avoids influencing other
The normal operation of virtual machine.
In one embodiment of the invention, after step silo, before step S120, this method can also include with
Lower step:
Determine target virtual machine with the presence or absence of unfinished operation task;If not, thening follow the steps the operation of S120.
It is understood that in target virtual machine there is also in the case where unfinished operation task, if by target void
Quasi- machine is deleted, it will causes the operation task to be unable to complete, traffic affecting is normally carried out.
So can first determine that target virtual machine whether there is after receiving for the deletion instruction of target virtual machine
Unfinished operation task, if it does not exist, then the operation of step S120 can be continued to execute.If it does, can reach
Behind setting time interval, the step of determining target virtual machine is with the presence or absence of unfinished operation task is repeated.Or it can be with
Ignore the deletion instruction received, after being received again for the deletion instruction of target virtual machine, then executes determining target void
The step of quasi- machine is with the presence or absence of unfinished operation task.Traffic affecting is avoided to be normally carried out.
In one embodiment of the invention, after step S120, this method may also comprise the following steps::
First step: cpu resource and memory source occupied information in the metadata of target virtual machine are obtained;
Second step: according to cpu resource and memory source occupied information, the CPU of the host of target virtual machine is updated
The remaining information of resource and memory source.
For ease of understanding, above-mentioned two step is combined and is illustrated.
After carrying out logicality delete operation to target virtual machine, CPU in the metadata of available target virtual machine
Resource and memory source occupied information, the cpu resource that will acquire and memory source occupied information increase to target virtual machine
On the remaining cpu resource and memory source of host, corresponding remaining information is updated, so as to when there is new virtual machine creating
Cpu resource and memory source are allocated according to updated remaining information.
In one embodiment of the invention, after step S120, before step S130, this method can also include with
Lower step:
Step 1: the reduction received for target virtual machine is requested;
Step 2: requesting according to reduction, again the cpu resource and memory source of application distribution target virtual machine;
Step 3: operation is booted up to target virtual machine.
It is illustrated for ease of description, above three step is combined.
Logicality delete operation is being carried out to target virtual machine, after the completion of operation, if received for target virtual machine
Reduction request, then can request according to the reduction, again application distribute target virtual machine cpu resource and memory source.Such as
Fruit, which has, is marked the operating status of target virtual machine, then can delete the logicality of target virtual machine and state solution is completed
It removes.
After executing aforesaid operations, operation can be booted up to target virtual machine.So that target virtual machine restores normal work
Make state.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of virtual machines to delete device, hereafter retouches
A kind of virtual machine for stating, which deletes device, can correspond to each other reference with a kind of above-described virtual machine delet method.
Shown in Figure 2, which includes with lower unit:
Instruction receiving unit 210 is deleted, for receiving the deletion instruction for being directed to target virtual machine;
Logicality deletes unit 220, for carrying out logicality delete operation to target virtual machine;
Complete deletion unit 230, in the deletion trigger condition for reaching setting, logicality delete operation to be completed
Target virtual machine carry out complete deletion operation.
Using device provided by the embodiment of the present invention, when receiving the deletion instruction for target virtual machine, to mesh
Mark virtual machine carries out logicality delete operation and logicality delete operation is completed in the deletion trigger condition for reaching setting
Target virtual machine carry out complete deletion operation.Logicality delete operation first is carried out to target virtual machine, discharges target virtual machine
Internet resources, cpu resource and memory source, not direct complete deletion target virtual machine, but in the deletion for reaching setting
When trigger condition, then complete deletion operation is carried out to the completed target virtual machine of logicality delete operation, safely, step by step
The occurrence of resource for discharging virtual machine can carry out restoring operation in time when accidentally deleting, and reduction is accidentally deleted, avoids influencing other
The normal operation of virtual machine.
In a kind of specific embodiment of the invention, logicality deletes unit 220, is specifically used for:
The operating status of target virtual machine is deleted into state in operation labeled as logicality;
The network interface card of target virtual machine is unloaded, and power-off operation is executed to target virtual machine after unloading successfully, so that target
The cpu resource and memory source of virtual machine release busy;
The operating status of target virtual machine is updated to logicality deletion, state is completed.
In a kind of specific embodiment of the invention, further includes operation task determination unit, is used for:
Receive for target virtual machine deletion instruction after, to target virtual machine carry out logicality delete operation it
Before, further includes:
Determine target virtual machine with the presence or absence of unfinished operation task;
If it is not, then triggering logicality, which deletes unit 220, executes the step for carrying out logicality delete operation to target virtual machine
Suddenly.
In a kind of specific embodiment of the invention, further includes remaining information updating unit, is used for:
After carrying out logicality delete operation to target virtual machine, cpu resource in the metadata of target virtual machine is obtained
With memory source occupied information;
According to cpu resource and memory source occupied information, the cpu resource and memory money of the host of target virtual machine are updated
The remaining information in source.
In a kind of specific embodiment of the invention, further includes reduction unit, is used for:
After carrying out logicality delete operation to target virtual machine, to the completed destination virtual of logicality delete operation
Before machine carries out complete deletion operation, the reduction received for target virtual machine is requested;
It is requested according to reduction, again the cpu resource and memory source of application distribution target virtual machine;
Operation is booted up to target virtual machine.
In a kind of specific embodiment of the invention, complete deletion unit 230 is specifically used for:
Logicality delete operation is being carried out to target virtual machine, after operation is completed, if reaching setting retains duration,
Complete deletion operation is carried out to target virtual machine.
In a kind of specific embodiment of the invention, complete deletion unit 230 is specifically used for:
Logicality delete operation is being carried out to target virtual machine, after operation is completed, if monitoring that logicality deletes behaviour
Make the memory space that completed all virtual machines occupy host and reach setting capacity threshold, then target virtual machine is carried out thorough
Bottom delete operation.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of virtual machine sweep equipments, such as Fig. 3 institute
Show, comprising:
Memory 310, for storing computer program;
Processor 320, the step of above-mentioned virtual machine delet method is realized when for executing computer program.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of computer readable storage medium, meters
It is stored with computer program on calculation machine readable storage medium storing program for executing, realizes that above-mentioned virtual machine is deleted when computer program is executed by processor
The step of method.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other
The difference of embodiment, same or similar part may refer to each other between each embodiment.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
Used herein a specific example illustrates the principle and implementation of the invention, and above embodiments are said
It is bright to be merely used to help understand technical solution of the present invention and its core concept.It should be pointed out that for the common of the art
, without departing from the principle of the present invention, can be with several improvements and modifications are made to the present invention for technical staff, these
Improvement and modification are also fallen within the protection scope of the claims of the present invention.
Claims (10)
1. a kind of virtual machine delet method characterized by comprising
The deletion received for target virtual machine instructs;
Logicality delete operation is carried out to the target virtual machine;
In the deletion trigger condition for reaching setting, the target virtual machine completed to logicality delete operation carries out thorough
Delete operation.
2. the method according to claim 1, wherein described carry out logicality deletion behaviour to the target virtual machine
Make, comprising:
The operating status of the target virtual machine is deleted into state in operation labeled as logicality;
The network interface card of the target virtual machine is unloaded, and power-off operation is executed to the target virtual machine after unloading successfully, so that
The cpu resource and memory source of the target virtual machine release busy;
The operating status of the target virtual machine is updated to logicality deletion, state is completed.
3. the method according to claim 1, wherein instructing it for the deletion of target virtual machine in the reception
Afterwards, before the progress logicality delete operation to the target virtual machine, further includes:
Determine the target virtual machine with the presence or absence of unfinished operation task;
If it is not, then executing described the step of carrying out logicality delete operation to the target virtual machine.
4. the method according to claim 1, wherein carrying out logicality delete operation to the target virtual machine
Later, further includes:
Obtain cpu resource and memory source occupied information in the metadata of the target virtual machine;
According to the cpu resource and memory source occupied information, the cpu resource of the host of the target virtual machine and interior is updated
Deposit the remaining information of resource.
5. the method according to claim 1, wherein carrying out logicality deletion to the target virtual machine described
After operation, before the target virtual machine progress complete deletion operation completed to logicality delete operation, also wrap
It includes:
The reduction received for the target virtual machine is requested;
It is requested according to the reduction, application distributes the cpu resource and memory source of the target virtual machine again;
Operation is booted up to the target virtual machine.
6. according to claim 1 to described in any item methods among 5, which is characterized in that described in the deletion for reaching setting touching
When clockwork spring part, the target virtual machine completed to logicality delete operation carries out complete deletion operation, comprising:
Logicality delete operation is being carried out to the target virtual machine, after operation is completed, if reaching setting retains duration,
Complete deletion operation is carried out to the target virtual machine.
7. according to claim 1 to described in any item methods among 5, which is characterized in that described in the deletion for reaching setting touching
When clockwork spring part, the target virtual machine completed to logicality delete operation carries out complete deletion operation, comprising:
Logicality delete operation is being carried out to the target virtual machine, after operation is completed, if monitoring that logicality deletes behaviour
Make completed all virtual machines and occupy the memory space of host to reach setting capacity threshold, then to the target virtual machine into
The operation of row complete deletion.
8. a kind of virtual machine deletes device characterized by comprising
Instruction receiving unit is deleted, for receiving the deletion instruction for being directed to target virtual machine;
Logicality deletes unit, for carrying out logicality delete operation to the target virtual machine;
Complete deletion unit, it is completed to logicality delete operation described in the deletion trigger condition for reaching setting
Target virtual machine carries out complete deletion operation.
9. a kind of virtual machine sweep equipment characterized by comprising
Memory, for storing computer program;
Processor realizes the virtual machine delet method as described in any one of claim 1 to 7 when for executing the computer program
The step of.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program, realizing the virtual machine delet method as described in any one of claim 1 to 7 when the computer program is executed by processor
Step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910290923.8A CN110018883A (en) | 2019-04-11 | 2019-04-11 | A kind of virtual machine delet method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910290923.8A CN110018883A (en) | 2019-04-11 | 2019-04-11 | A kind of virtual machine delet method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110018883A true CN110018883A (en) | 2019-07-16 |
Family
ID=67191087
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910290923.8A Pending CN110018883A (en) | 2019-04-11 | 2019-04-11 | A kind of virtual machine delet method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110018883A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110377616A (en) * | 2019-07-30 | 2019-10-25 | 北京金山云网络技术有限公司 | A kind of data-erasure method, device, electronic equipment and storage medium |
CN111124750A (en) * | 2019-11-05 | 2020-05-08 | 国家电网有限公司 | Data rapid deleting method based on source-end deduplication |
CN112000429A (en) * | 2020-08-06 | 2020-11-27 | 北京浪潮数据技术有限公司 | Connection tracking deletion method, device and equipment of cloud platform management platform |
CN112181590A (en) * | 2020-09-25 | 2021-01-05 | 烽火通信科技股份有限公司 | Method, device and equipment for deleting resources in cloud platform and readable storage medium |
CN113672562A (en) * | 2020-05-14 | 2021-11-19 | 北京字节跳动网络技术有限公司 | Data deleting method, device, equipment and storage medium |
WO2022151776A1 (en) * | 2021-01-12 | 2022-07-21 | 华云数据控股集团有限公司 | Cloud platform virtual machine recycling method and computer device |
CN111124750B (en) * | 2019-11-05 | 2024-04-30 | 国家电网有限公司 | Quick data deleting method based on source terminal deleting |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8296759B1 (en) * | 2006-03-31 | 2012-10-23 | Vmware, Inc. | Offloading operations to a replicate virtual machine |
CN103699419A (en) * | 2013-12-31 | 2014-04-02 | 曙光云计算技术有限公司 | Method and system for processing virtual machine resources |
CN104424015A (en) * | 2013-09-11 | 2015-03-18 | 华为技术有限公司 | Virtual machine management method and virtual machine management device |
CN107766125A (en) * | 2017-11-06 | 2018-03-06 | 国云科技股份有限公司 | A kind of delet method of cloud platform virtual machine |
CN108509252A (en) * | 2018-03-26 | 2018-09-07 | 新华三云计算技术有限公司 | Virtual machine starter, method and host |
-
2019
- 2019-04-11 CN CN201910290923.8A patent/CN110018883A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8296759B1 (en) * | 2006-03-31 | 2012-10-23 | Vmware, Inc. | Offloading operations to a replicate virtual machine |
CN104424015A (en) * | 2013-09-11 | 2015-03-18 | 华为技术有限公司 | Virtual machine management method and virtual machine management device |
CN103699419A (en) * | 2013-12-31 | 2014-04-02 | 曙光云计算技术有限公司 | Method and system for processing virtual machine resources |
CN107766125A (en) * | 2017-11-06 | 2018-03-06 | 国云科技股份有限公司 | A kind of delet method of cloud platform virtual machine |
CN108509252A (en) * | 2018-03-26 | 2018-09-07 | 新华三云计算技术有限公司 | Virtual machine starter, method and host |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110377616A (en) * | 2019-07-30 | 2019-10-25 | 北京金山云网络技术有限公司 | A kind of data-erasure method, device, electronic equipment and storage medium |
CN111124750A (en) * | 2019-11-05 | 2020-05-08 | 国家电网有限公司 | Data rapid deleting method based on source-end deduplication |
CN111124750B (en) * | 2019-11-05 | 2024-04-30 | 国家电网有限公司 | Quick data deleting method based on source terminal deleting |
CN113672562A (en) * | 2020-05-14 | 2021-11-19 | 北京字节跳动网络技术有限公司 | Data deleting method, device, equipment and storage medium |
CN113672562B (en) * | 2020-05-14 | 2024-01-16 | 抖音视界有限公司 | Data deleting method, device, equipment and storage medium |
CN112000429A (en) * | 2020-08-06 | 2020-11-27 | 北京浪潮数据技术有限公司 | Connection tracking deletion method, device and equipment of cloud platform management platform |
CN112181590A (en) * | 2020-09-25 | 2021-01-05 | 烽火通信科技股份有限公司 | Method, device and equipment for deleting resources in cloud platform and readable storage medium |
WO2022151776A1 (en) * | 2021-01-12 | 2022-07-21 | 华云数据控股集团有限公司 | Cloud platform virtual machine recycling method and computer device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110018883A (en) | A kind of virtual machine delet method, device, equipment and storage medium | |
JP5510556B2 (en) | Method and system for managing virtual machine storage space and physical hosts | |
US10117253B2 (en) | Mobile terminal and resource management method of mobile terminal | |
US9652271B2 (en) | Autonomously managed virtual machine anti-affinity rules in cloud computing environments | |
US9384035B2 (en) | Virtual computer system, management computer, and virtual computer management method | |
US10241836B2 (en) | Resource management in a virtualized computing environment | |
US10241681B2 (en) | Management of physical extents for space efficient storage volumes | |
US9397953B2 (en) | Operation managing method for computer system, computer system and computer-readable storage medium having program thereon | |
US20170017511A1 (en) | Method for memory management in virtual machines, and corresponding system and computer program product | |
CN110196770B (en) | Cloud system memory data processing method, device, equipment and storage medium | |
CN111796908A (en) | System and method for automatic elastic expansion and contraction of resources and cloud platform | |
CN109583222A (en) | Distributed file system metadata service device recycles client jurisdiction method and device | |
EP3358795B1 (en) | Method and apparatus for allocating a virtual resource in network functions virtualization (nfv) network | |
KR102168994B1 (en) | How to delete a cloud host in a cloud computing environment, devices, servers and storage media | |
US10552318B2 (en) | Working set adjustment in a managed environment | |
CN109032762B (en) | Virtual machine backtracking method and related equipment | |
US20170109211A1 (en) | Automatically and dynamically reclaiming resources during virtual machine decommission | |
US10606681B2 (en) | Incremental dump with fast reboot | |
CN111090627A (en) | Log storage method and device based on pooling, computer equipment and storage medium | |
CN110380894A (en) | The management method and device of cloud platform medium cloud host | |
WO2016090608A1 (en) | Method and apparatus for determining virtual machine resource and program product | |
CN115827157A (en) | Container management method and device based on container arrangement engine and storage medium | |
KR20230057084A (en) | Apparatus and method for optimizing blockchain resources | |
CN109495403A (en) | A kind of method and apparatus for clearing up Internet resources | |
CN115269109A (en) | Memory recovery method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190716 |
|
RJ01 | Rejection of invention patent application after publication |