CN104111859A - Method for automatically managing mirror images of virtual machines in cloud computing platforms - Google Patents
Method for automatically managing mirror images of virtual machines in cloud computing platforms Download PDFInfo
- Publication number
- CN104111859A CN104111859A CN201310140002.6A CN201310140002A CN104111859A CN 104111859 A CN104111859 A CN 104111859A CN 201310140002 A CN201310140002 A CN 201310140002A CN 104111859 A CN104111859 A CN 104111859A
- Authority
- CN
- China
- Prior art keywords
- mirror image
- virtual machine
- cloud computing
- mirror images
- virtual machines
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Abstract
The invention belongs to the field of resource management of data centers, and particularly relates to a method for automatically managing mirror images of virtual machines in cloud computing platforms. The method includes regularly acquiring the numbers of residual mirror images in the cloud computing platforms; judging whether current moments are user operation peak periods or idle periods according to time points of the current moments; replenishing corresponding numbers of mirror images. The method has the advantages that the mirror images of the virtual machines are regularly replenished, so that certain numbers of the mirror images can be kept, and the virtual machine starting efficiency can be guaranteed; the mirror images are assuredly deleted after the virtual machines are used, and accordingly the privacy of users can be guaranteed.
Description
Technical field
The invention belongs to data center's resource management field, be specifically related to the method for virtual machine image automatic management in a kind of cloud computing platform.
Background technology
Cloud computing is the technical term when previous hot topic.A lot of people believe firmly: cloud computing meeting changes the technical foundation of internet, even affects whole industrial pattern.And the fact is also like this, the large-scale esbablished corporation of lot of domestic and international is all in research cloud computing and the service based on cloud computing, and the IT giants such as Amazon, Google, Microsoft, IBM, Alibaba therein.And Intel Virtualization Technology has been realized Resource Abstract and the unified representation of IT resource, aspect large-scale data centre management and solution payment, bringing into play huge effect, be to support the most important technology foundation stone of cloud computing.The important channel of using now, discharge cloud computing resources starts and stops virtual machine exactly.Start a virtual machine, first will from cloud catalogue, select a virtual image.When you are disposing one during with the relevant application of Apache Web server, preferably select a mirror image that installs in advance these assemblies.Once you have chosen mirror image, next step disposes this mirror image exactly in cloud.
Existing virtual management software is all similar to the management method of mirror image, and the virtual management software OpenNebula of take is below example, and existing mirror image management method is described.
In OpenNebula, mirror image can be divided into two kinds of Persistent mirror image and non-persistent mirror images.
The meaning that Persistent mirror image: Persistent " continues consistent ", represent that virtual machine is directly from this image starting, during virtual machine operation, caused various changes all can remain in mirror image, even if virtual machine life cycle is ended, change is also can be kept in mirror image, and mirror image can be not deleted along with the termination of virtual machine.
Non-persistent mirror image: represent that this mirror image is equivalent to a mirror image " female parent ", virtual machine of every startup, all need to, from a duplicate of this mirror image " female parent " copy, then start virtual machine from duplicate.After virtual machine is closed, this duplicate can be deleted, and the operation change of virtual machine can not be saved.
The advantage of Persistent mirror image is, while starting virtual machine, needn't copy mirror image, and starting efficiency is more much higher than Non-persistent mirror image; Shortcoming is, each Persistent mirror image can only start a virtual machine, unlike Non-persistent mirror image, can start a plurality of, and user's information before easily leaking.
In order to guarantee privacy of user and data security, we will determine that each mirror image can only start a virtual machine, and in this case, it is rational using non-persistent mirror image.But non-persistent mirror image has a serious shortcoming, that is exactly while passing through non-persistent image starting virtual machine at every turn, all to generate a mirror image duplicate, and mirror image itself can be very large, cause this process very slow, so start the time of a virtual machine, greatly extend.
In order to guarantee the efficiency of virtual machine activation, reduce user's stand-by period, we must manage to avoid to copy mirror image when starting virtual machine, so we can only choice for use persistent mirror image.Once and after having used persistent mirror image, during next virtual machine activation, just not have vacant mirror image to provide.
From OpenNebula, to the management of mirror image, can find out, existing mirror image management method or starting efficiency are too low; Can only start a virtual machine, and easily reveal user's information in the past.
Summary of the invention
For the managerial deficiency of existing image, the invention provides the method for virtual machine image automatic management in a kind of cloud computing platform, the mechanism that the method has realized a kind of " mirror image automatic management ", not only avoided the inefficiency of mirror image duplicate copies when starting virtual machine, but also supplement by the robotization of mirror image, guaranteed the demand of system to mirror image.
In order to solve the problems of the technologies described above, the present invention is solved by following technical proposals:
The method of virtual machine image automatic management in cloud computing platform, method is as follows:
Step a: obtain current mirror image number C, wherein do not comprise the mirror image being used;
Step b: obtain server current time T;
Step c: judge whether server current time T equals H, H is used the less time of cloud computing platform for user;
Steps d: if T equals H, enter step e; Otherwise, enter step f;
Step e: if C is less than N, mirror image number is supplemented to N;
Step f: if C is less than M, mirror image number is supplemented to M, wherein M is far smaller than N;
Step g: wait for after a time period P, again enter step a.Show that this management method is the process of an infinite loop.
As preferably, in described step a, C is available mirror image number, does not wherein comprise the mirror image just being used by virtual machine.
As preferably, in described step b, the unit of server current time T is hour.
As preferably, in described step c, the unit of time H is hour.
In described steps d, according to judge whether the time is the busy time, carries out different processing this moment.
In described step e and f, while equaling H due to T, for user operates free time, therefore can allow reproduction process more for a long time; And T is while being not equal to H, user's operation is more frequent, if carry out massive duplication, can affect user's operation.Therefore, M
<<n.
The present invention adopts said persistent mirror image in OpenNebula, and creates in advance a plurality of persistent mirror images for use.Yet, the persistent mirror image creating in advance, a day of having come in bandy.So the present invention will realize a kind of automatic decision mirror image number, and real-time supplementary strategy, assurance mirror image is enough used.And the time of this supplementary mirror image will stagger with the rush hour of system, be conventionally chosen between 0 o'clock to 5 o'clock.Meanwhile, in order to guarantee privacy of user and data security, the present invention also will delete its corresponding mirror image when deleting virtual machine, avoids this mirror image to be reused by later virtual machine.
The present invention, owing to having adopted above technical scheme, has significant technique effect:
(1) improved virtual machine activation efficiency: in the present invention, because we are always uninterruptedly in inquiry mirror image surplus, and mended.When no matter so just guaranteed, available free mirror image all in mirror site, has avoided copying mirror image when starting virtual machine, thereby has improved the efficiency of virtual machine activation.User is experienced greatly to be promoted.
(2) guaranteed that user data is not revealed: in the present invention, new virtual machine of every startup, all needs a brand-new mirror image, then from this mirror image, starts virtual machine.After virtual machine is closed, this mirror image will be deleted, and the operation change of virtual machine can not be saved.Mode by " machine one mirror image ", has guaranteed privacy of user and data security.
(3) well balance maintain mirror image number and improve the relation of system effectiveness: in the present invention, during user's frequent operation, mirror image number is maintained in to M; And in system free time, mirror image number is supplemented to N(N and is greater than M).So just avoided system when user's frequent operation, system causes system load excessive owing to copying a large amount of mirror images, thereby causes user to experience the situation of variation.
Accompanying drawing explanation
Fig. 1 is the inventive method process flow diagram.
Embodiment
Below in conjunction with accompanying drawing 1, with embodiment, the present invention is described in further detail:
embodiment 1
In cloud computing platform, a method for virtual machine image automatic management, comprises the steps:
About storage operation
A, obtain current system and can use mirror image number C, wherein do not comprise the mirror image being used;
B, obtain server current time T, when this chronomere is;
C, judge whether server current time T equals H, H is used the less time of cloud computing platform for user, and experience shows, we are taken as 0 o'clock morning by this H;
If d T equals at 0 o'clock, enter step e; Otherwise, enter step f;
If e C is less than 20, mirror image number is supplemented to 20;
If f C is less than 10, mirror image number is supplemented to 10;
G, wait, after ten minutes, enter step a again.
The present invention is by the method for virtual machine image automatic management in cloud computing platform, realized the mechanism of a kind of " mirror image automatic management ", not only avoided the inefficiency of mirror image duplicate copies when starting virtual machine, but also supplement by the robotization of mirror image, guaranteed the demand of system to mirror image.
In a word, the foregoing is only preferred embodiment of the present invention, all equalizations of doing according to the present patent application the scope of the claims change and modify, and all should belong to the covering scope of patent of the present invention.
Claims (4)
1. a method for virtual machine image automatic management in cloud computing platform, is characterized in that, method is as follows:
Step a: obtain current mirror image number C, wherein do not comprise the mirror image being used;
Step b: obtain server current time T;
Step c: judge whether server current time T equals H, H is used the less time of cloud computing platform for user;
Steps d: if T equals H, enter step e; Otherwise, enter step f;
Step e: if C is less than N, mirror image number is supplemented to N;
Step f: if C is less than M, mirror image number is supplemented to M, wherein M is far smaller than N;
Step g: wait for after a time period P, again enter step a.
2. the method for virtual machine image automatic management in cloud computing platform according to claim 1, is characterized in that: in described step a, C is available mirror image number, does not wherein comprise the mirror image just being used by virtual machine.
3. the method for virtual machine image automatic management in cloud computing platform according to claim 1, is characterized in that: in described step b, the unit of server current time T is hour.
4. the method for virtual machine image automatic management in cloud computing platform according to claim 1, is characterized in that: in described step c, the unit of time H is hour.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310140002.6A CN104111859B (en) | 2013-04-22 | 2013-04-22 | The method of virtual machine image automatic management in cloud computing platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310140002.6A CN104111859B (en) | 2013-04-22 | 2013-04-22 | The method of virtual machine image automatic management in cloud computing platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104111859A true CN104111859A (en) | 2014-10-22 |
CN104111859B CN104111859B (en) | 2017-08-25 |
Family
ID=51708658
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310140002.6A Active CN104111859B (en) | 2013-04-22 | 2013-04-22 | The method of virtual machine image automatic management in cloud computing platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104111859B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102185928A (en) * | 2011-06-01 | 2011-09-14 | 广州杰赛科技股份有限公司 | Method for creating virtual machine in cloud computing system and cloud computing system |
CN102307241A (en) * | 2011-09-27 | 2012-01-04 | 上海忠恕物联网科技有限公司 | Cloud calculation resource disposition method based on dynamic prediction |
-
2013
- 2013-04-22 CN CN201310140002.6A patent/CN104111859B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102185928A (en) * | 2011-06-01 | 2011-09-14 | 广州杰赛科技股份有限公司 | Method for creating virtual machine in cloud computing system and cloud computing system |
CN102307241A (en) * | 2011-09-27 | 2012-01-04 | 上海忠恕物联网科技有限公司 | Cloud calculation resource disposition method based on dynamic prediction |
Non-Patent Citations (2)
Title |
---|
叶可江,吴朝晖,姜晓红,何钦铭: "《虚拟化云计算平台的功耗管理》", 《计算机学报》 * |
郑婷婷,武延军,贺也平: "《云计算环境下的虚拟机快速克隆技术》", 《计算机工程与应用》 * |
Also Published As
Publication number | Publication date |
---|---|
CN104111859B (en) | 2017-08-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103067425B (en) | Virtual machine creation method, virtual machine management system and relevant device | |
CN102246152B (en) | Saving program execution state | |
CN104461744A (en) | Resource allocation method and device | |
CN103064717B (en) | A kind of apparatus and method of parallel installation of software for cluster system | |
CN105630488A (en) | Docker container technology-based continuous integration realizing method | |
CN104079434A (en) | Device and method for managing physical devices in cloud computing system | |
CN105610923A (en) | Data processing system and method based on cloud computing | |
WO2020082611A1 (en) | Method for carrying out deep learning on basis of blockchain platform and electronic device | |
CN113515350A (en) | Hybrid cloud computing management platform | |
CN102541538A (en) | Picture displaying method and device based on mobile terminal | |
CN104113576A (en) | Method and device for updating client | |
CN103942992A (en) | Microscope online instructional interaction method and system based on cloud technology | |
CN103049317A (en) | Highly-concurrent data fast write system and method based on queues in cloud environment | |
CN104216802B (en) | Memory database recovery method and device | |
CN104283970A (en) | Cloud computing service device and system and cloud computing method | |
CN105306581A (en) | Router and cloud disk based data synchronization method | |
CN105933154A (en) | Management method of cloud calculation resources | |
CN107948259A (en) | A kind of collocation method of Cloud Server resource and configuration system | |
CN103810258A (en) | Data aggregation scheduling method based on data warehouse | |
CN103109515A (en) | Business deploy method and device | |
CN103473634A (en) | Digital audio-video library maintenance monitoring method | |
CN104111859A (en) | Method for automatically managing mirror images of virtual machines in cloud computing platforms | |
CN116089040A (en) | Service flow scheduling method and device, electronic equipment and storage medium | |
CN110688259B (en) | Private cloud backup recovery system and backup recovery method thereof | |
GB2552357A (en) | Computing system and method of operating the computing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |