CN105740067A - Cloud computing based virtual machine batch starting method and control system - Google Patents

Cloud computing based virtual machine batch starting method and control system Download PDF

Info

Publication number
CN105740067A
CN105740067A CN201610051043.1A CN201610051043A CN105740067A CN 105740067 A CN105740067 A CN 105740067A CN 201610051043 A CN201610051043 A CN 201610051043A CN 105740067 A CN105740067 A CN 105740067A
Authority
CN
China
Prior art keywords
virtual machine
priority
batch
batches
starts
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
Application number
CN201610051043.1A
Other languages
Chinese (zh)
Inventor
杨清玉
李轩
兰雨晴
李金丽
胡敏杰
申利飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Standard Software Co Ltd
Original Assignee
China Standard Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Standard Software Co Ltd filed Critical China Standard Software Co Ltd
Priority to CN201610051043.1A priority Critical patent/CN105740067A/en
Publication of CN105740067A publication Critical patent/CN105740067A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked
    • G06F9/4818Priority circuits therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors

Abstract

The present invention discloses a cloud computing based virtual machine batch starting method and control system. The system comprises: a front-end management platform, wherein the platform comprises a display module, a setting module and an audit module, which are respectively used for providing virtual machine starting priority display, setting and auditing functions for a user; and a back-end execution platform, which comprises a database for storing a virtual machine starting priority attribute and a batch starting module for starting a virtual machine in batches according to the priority from high to low. By means of the method and system provided by the present invention, the virtual machine can be started in batches according to the priority from high to low, and the number of the started virtual machine in each batch is smaller than or equal to a preset upper limit of the started virtual machine in each batch, and after each batch of virtual machines are started, a next batch of virtual machines are started after waiting for a preset starting time interval, so as to effectively solve the problem of a virtual machine starting storm in the prior art.

Description

A kind of virtual machine based on cloud computing starting method in batches and control system
Technical field
The present invention relates to field of cloud computer technology, particularly relate to a kind of virtual machine based on cloud computing starting method in batches and control system.
Background technology
Cloud computing is a kind of method of emerging shared architecture, and its core is will to calculate task distribution on the resource pool that a large amount of computers are constituted, enable various application system to obtain computing power, memory space and various software service as required.The bottom of cloud computing needs Intel Virtualization Technology support.By Intel Virtualization Technology, cloud computing can realize using flexibly and efficiently resource, thus providing the user quality services.
Virtual machine scale in cloud computing platform is generally large, even more sometimes up to hundreds.If opening a large amount of virtual machine within the same time to there will be the problem starting storm so that virtualization related service cannot respond to or process collapse, ultimately results in the failure of a part of virtual machine activation, it is impossible to meet user's request.
Summary of the invention
For above-mentioned technical problem, the present invention proposes a kind of virtual machine based on cloud computing starting method in batches and control system.Wherein, start virtual machine according to priority from high to low in batches, and the quantity of the virtual machine of every batch initiation is less than or equal to the higher limit of default every batch initiation virtual machine.
The method in batches started based on the virtual machine of cloud computing provided by the invention, comprises the following steps:
Start virtual machine from high to low in batches according to priority, wherein, the quantity of the virtual machine of every batch initiation is less than or equal to the higher limit of default every batch initiation virtual machine.
According to embodiments of the invention, after every batch of virtual machine activation, wait the startup interval preset, then restart next group virtual machine.
According to embodiments of the invention, the method that above-mentioned virtual machine starts in batches specifically includes following steps:
1) virtual machine to be launched that current priority is the highest is determined;
2) judge whether the number of the virtual machine to be launched that current priority is the highest exceedes the higher limit of every batch initiation virtual machine:
If so, start the virtual machine to be launched that the current priority of upper limit quantity is the highest simultaneously;
Otherwise, start the virtual machine to be launched that all of current priority is the highest simultaneously;
3) wait the startup interval preset, be then back to step 1).
According to embodiments of the invention, above-mentioned priority can be divided into high, medium and low three kinds.
Additionally, the present invention also provides for a kind of control system started based on the virtual machine of cloud computing in batches, it is characterised in that including:
Front end management platform, it includes display module, arranges module and Audit Module, provides the user virtual machine activation priority respectively and shows, arranges and audit function;
Rear end performs platform, and it includes starting the data base of priority attribute for storage virtual machine and starting the batch startup module of virtual machine according to priority from high to low in batches;
Wherein, described batch starts the quantity higher limit less than or equal to default every batch initiation virtual machine of the virtual machine of the module every batch initiation of control.
According to embodiments of the invention, above-mentioned batch startup module waits the startup interval preset, then restarts next group virtual machine after also controlling every batch of virtual machine activation.
According to embodiments of the invention, above-mentioned front end management platform also includes upper limit configuration module, can be arranged the higher limit of every batch initiation virtual machine by its user.
According to embodiments of the invention, above-mentioned front end management platform also includes interval configuration module, can arrange startup interval by its user.
According to embodiments of the invention, the priority set by above-mentioned control system can be divided into high, medium and low three kinds.
Further, virtual machine acquiescence starts during priority is.
Compared with prior art, one or more embodiments of the invention can have the advantage that
1, the invention solves a large amount of virtual machines in prior art and when starting, there will be the technical problem starting storm and cause virtual machine activation easily failed simultaneously, disclosure satisfy that again the demand that emphasis virtual machine preferentially starts.
2, the startup priority of virtual machine can be preferably set to high, medium and low three kinds by manager.When management platform sends batch startup virtual machine order, virtualized server arranges according to the priority of virtual machine and starts virtual machine in batches.First start the virtual machine that priority is high in batches, then start the virtual machine in priority in batches, finally start the virtual machine that priority is low in batches.
3, manager can by the upper limit of the every batch initiation virtual machine of set-up of control system and every batch of virtual machine activation interval, and system can arrange according to virtual machine priority and start in batches, is finally completed the start-up course of all virtual machines.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from description, or understand by implementing the present invention.The purpose of the present invention and other advantages can be realized by structure specifically noted in description, claims and accompanying drawing and be obtained.
Accompanying drawing explanation
Accompanying drawing is for providing a further understanding of the present invention, and constitutes a part for description, is provided commonly for explaining the present invention with embodiments of the invention, is not intended that limitation of the present invention.In the accompanying drawings:
Fig. 1 is the structural representation of the control system that virtual machine provided by the invention starts in batches;
Fig. 2 is the workflow diagram of the control system that virtual machine provided by the invention starts in batches;
Fig. 3 is the workflow diagram that the present invention exemplarily virtual machine starts from high to low according to priority in batches;
Fig. 4 is the workflow diagram that in the embodiment of the present invention one, 20 virtual machines start successively in batches;
Fig. 5 is the workflow diagram that in the embodiment of the present invention two, 10 virtual machines start successively in batches.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the present invention is described in further detail.
It is divided into front end management platform and rear end to perform platform as it is shown in figure 1, the control system that the virtual machine of the present invention starts is broadly divided in batches.Wherein:
Front end management platform 100, it includes display module 110, arranges module 120 and Audit Module 130, provides the user virtual machine activation priority respectively and shows, arranges and audit function;
Rear end performs platform 200, and it includes starting the data base 210 of priority attribute for storage virtual machine and starting the batch startup module 220 of virtual machine according to priority from high to low in batches;
Wherein, batch startup module 220 controls the quantity higher limit less than or equal to default every batch initiation virtual machine of the virtual machine of every batch initiation.
Fig. 2 shows the workflow diagram of the control system that above-mentioned virtual machine starts in batches, wherein:
In virtual machine priority management function, data stream is from WEB interface to WEB service end, then performs platform to rear end, is finally performed, by virtualized server, the function that virtual machine according to priority starts in batches.When manager is after virtual machine interface arranges virtual machine activation priority, WEB service end can receive this request and call virtual machine activation priority interface and send data to the back-end, virtual machine priority field in the virtual machine table in data base can be revised after receiving request in rear end, judge that whether operation is successful, and correspondingly update the information of WEB page.
The startup of virtual machine is finally performed by virtualized server, before batch starts virtual machine, QEMU-KVM judges the boot sequence of virtual machine according to the priority of virtual machine in data base, and according to the upper limit of default every batch initiation virtual machine with start interval and start the virtual machine of each rank in batches, thus completing batch to start function.
Additionally, the manager's virtual machine activation upper limit configuration module 140 that can pass through to be arranged on front end management platform and virtual machine activation interval configuration module 150 are respectively provided with the higher limit of every batch of virtual machine activation quantity and every batch of virtual machine activation interval.
In addition, the control system that above-mentioned virtual machine starts in batches needs to be stored in data base 210 using the priority of virtual machine as an indispensable attributes of virtual machine, for instance use similar " bootpriority " field to represent the startup priority of virtual machine in the virtual machine table of data base 210.Specifically, bootpriority can be varchar type, and is preferably set up three values: high, middle, low are to characterize the high, medium and low Three Estate of priority.During when virtual machine acquiescence starts, priority is.
For above-mentioned situation, when manager logs in management platform and starts multiple stage virtual machine simultaneously, the flow chart that virtual machine batch starts is as shown in Figure 3, it is possible to perform in three steps:
(1) judge whether that startup priority is high virtual machine: if existed, then continue to judge that startup priority is that high virtual machine quantity is whether less than or equal to the upper limit of every batch initiation virtual machine quantity, if less than being equal to, it is high virtual machine that virtualized server starts all startup priority simultaneously, after waiting every batch of virtual machine activation interval, perform step 2;If it does, virtualized server starts every batch initiation virtual machine upper limit simultaneously, to start priority be high virtual machine, after waiting every batch of virtual machine activation interval, continues to repeat step 1;If there is no startup priority is high virtual machine, then directly perform step 2.
(2) judge whether to start the virtual machine during priority is: if existed, then continue to judge startup priority be in virtual machine quantity whether less than or equal to the upper limit of every batch initiation virtual machine quantity, if less than being equal to, virtualized server starts the virtual machine during all startup priority is simultaneously, after waiting every batch of virtual machine activation interval, perform step 3;If it does, virtualized server starts every batch initiation virtual machine upper limit starts the virtual machine during priority is simultaneously, after waiting every batch of virtual machine activation interval, continue to repeat step 2;If there is no start the virtual machine during priority is, then directly perform step 3.
(3) judge whether that startup priority is low virtual machine: if existed, then continue to judge that startup priority is that low virtual machine quantity is whether less than or equal to the upper limit of every batch initiation virtual machine quantity, if less than being equal to, it is low virtual machine that virtualized server starts all startup priority simultaneously, then terminates this batch start-up course;If it does, virtualized server starts every batch initiation virtual machine upper limit simultaneously, to start priority be low virtual machine, after waiting every batch of virtual machine activation interval, continues to repeat step 3;If there is no startup priority is low virtual machine, then terminate this batch start-up course.
In other words, said process can be summarized as following process:
1) virtual machine to be launched that current priority is the highest is determined;
2) judge whether the number of the virtual machine to be launched that current priority is the highest exceedes the higher limit of every batch initiation virtual machine:
If so, start the virtual machine to be launched that the current priority of upper limit quantity is the highest simultaneously;
Otherwise, start the virtual machine to be launched that all of current priority is the highest simultaneously;
3) wait the startup interval preset, be then back to step 1).
Operated by above-mentioned circulation, it is achieved the startup in batches of high-volume virtual machine such that it is able to be effectively prevented from startup storm problem of the prior art.
Illustrate further below.
First embodiment
As shown in Figure 4, there are 20 virtual machines, state is for shut down.Starting priority is high virtual machine 4, and the virtual machine started during priority is is 6, and starting the virtual machine that priority is low is 10, and every batch initiation virtual machine upper limit is 4, the every batch of virtual machine activation interval 2 minutes.Manager logs in management platform, starts 30 virtual machines simultaneously.The Booting sequence figure of virtual machine is as shown in Figure 4.The first step, starting 4, to start priority be high virtual machine, waits 2 minutes, and the virtual machine activation that now all startup priority are high completes.Second step, starts 4 virtual machines started during priority is, waits 2 minutes.3rd step, start 2 start priority be in virtual machines, wait 2 minutes, now all startup priority be in virtual machine activation complete.4th step, starting 4, to start priority be low virtual machine, waits 2 minutes.5th step, starting 4, to start priority be low virtual machine, waits 2 minutes.6th step, starting 2, to start priority be low virtual machine, and the virtual machine activation that now all startup priority are low completes, and 30 virtual machines have all started.
Second embodiment
As it is shown in figure 5, there are 10 virtual machines, state is for shut down.Starting priority is high virtual machine 7, and starting the virtual machine that priority is low is 3, and every batch initiation virtual machine upper limit is 5, the every batch of virtual machine activation interval 2 minutes.Manager logs in management platform, starts 10 virtual machines simultaneously.The Booting sequence figure of virtual machine is as shown in Figure 5.The first step, starting 5, to start priority be high virtual machine, waits 2 minutes.Second step, starting 2, to start priority be high virtual machine, waits 2 minutes, and the virtual machine activation that now all startup priority are high completes.3rd step, starting 3, to start priority be low virtual machine, and the virtual machine activation that now all startup priority are low completes, and 10 virtual machines have all started.
The above, be only specific embodiment of the invention case, and protection scope of the present invention is not limited thereto, and any is familiar with those skilled in the art in technical specification of the present invention, and amendment or the replacement to the present invention all should within protection scope of the present invention.

Claims (10)

1. the method in batches started based on the virtual machine of cloud computing, comprises the following steps:
Start virtual machine from high to low in batches according to priority, wherein, the quantity of the virtual machine of every batch initiation is less than or equal to the higher limit of default every batch initiation virtual machine.
2. the method that virtual machine as claimed in claim 1 starts in batches, it is characterised in that:
After every batch of virtual machine activation, wait the startup interval preset, then restart next group virtual machine.
3. the method that virtual machine as claimed in claim 2 starts in batches, it is characterised in that comprise the following steps:
1) virtual machine to be launched that current priority is the highest is determined;
2) judge whether the number of the virtual machine to be launched that current priority is the highest exceedes the higher limit of every batch initiation virtual machine:
If so, start the virtual machine to be launched that the current priority of upper limit quantity is the highest simultaneously;
Otherwise, start the virtual machine to be launched that all of current priority is the highest simultaneously;
3) wait the startup interval preset, be then back to step 1).
4. the method that virtual machine as described in any one starts in batches in claims 1 to 3, it is characterised in that:
Described priority is divided into high, medium and low three kinds.
5. the control system in batches started based on the virtual machine of cloud computing, it is characterised in that including:
Front end management platform, it includes display module, arranges module and Audit Module, provides the user virtual machine activation priority respectively and shows, arranges and audit function;
Rear end performs platform, and it includes starting the data base of priority attribute for storage virtual machine and starting the batch startup module of virtual machine according to priority from high to low in batches;
Wherein, described batch starts the quantity higher limit less than or equal to default every batch initiation virtual machine of the virtual machine of the module every batch initiation of control.
6. the control system that virtual machine as claimed in claim 5 starts in batches, it is characterised in that:
Described batch startup module waits the startup interval preset, then restarts next group virtual machine after also controlling every batch of virtual machine activation.
7. the control system that virtual machine as claimed in claim 5 starts in batches, it is characterised in that:
Described front end management platform also includes upper limit configuration module, can be arranged the higher limit of every batch initiation virtual machine by its user.
8. the control system that virtual machine as claimed in claim 6 starts in batches, it is characterised in that:
Described front end management platform also includes interval configuration module, can arrange startup interval by its user.
9. the control system that the virtual machine as described in any one in claim 5 to 8 starts in batches, it is characterised in that:
Described priority is divided into high, medium and low three kinds.
10. the control system that virtual machine as claimed in claim 9 starts in batches, it is characterised in that:
Virtual machine acquiescence starts during priority is.
CN201610051043.1A 2016-01-26 2016-01-26 Cloud computing based virtual machine batch starting method and control system Pending CN105740067A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610051043.1A CN105740067A (en) 2016-01-26 2016-01-26 Cloud computing based virtual machine batch starting method and control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610051043.1A CN105740067A (en) 2016-01-26 2016-01-26 Cloud computing based virtual machine batch starting method and control system

Publications (1)

Publication Number Publication Date
CN105740067A true CN105740067A (en) 2016-07-06

Family

ID=56246606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610051043.1A Pending CN105740067A (en) 2016-01-26 2016-01-26 Cloud computing based virtual machine batch starting method and control system

Country Status (1)

Country Link
CN (1) CN105740067A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108845868A (en) * 2018-04-28 2018-11-20 华为技术有限公司 A kind of mission dispatching method and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294494A (en) * 2012-02-29 2013-09-11 中兴通讯股份有限公司 Automatic deployment method and system of virtual system
CN103902310A (en) * 2012-12-27 2014-07-02 鸿富锦精密工业(深圳)有限公司 Scheduling system and method for starting of virtual machines
CN103970555A (en) * 2013-01-31 2014-08-06 中兴通讯股份有限公司 Self-adapting virtual machine start control method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294494A (en) * 2012-02-29 2013-09-11 中兴通讯股份有限公司 Automatic deployment method and system of virtual system
CN103902310A (en) * 2012-12-27 2014-07-02 鸿富锦精密工业(深圳)有限公司 Scheduling system and method for starting of virtual machines
CN103970555A (en) * 2013-01-31 2014-08-06 中兴通讯股份有限公司 Self-adapting virtual machine start control method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108845868A (en) * 2018-04-28 2018-11-20 华为技术有限公司 A kind of mission dispatching method and apparatus

Similar Documents

Publication Publication Date Title
EP3761170B1 (en) Virtual machine creation method and apparatus
JP5401922B2 (en) Virtual system control program, method and apparatus
US20160328241A1 (en) Data processing method for multiple operating systems and terminal equipment
CN109634718B (en) Method and system for creating mirror image by cloud platform
CN103699398A (en) Terminal equipment and starting control method thereof
CN103235725A (en) Linux-based rapid deployment method for Oracle database in cloud computing
CN102214118A (en) Method, system and device for controlling virtual machine (VM)
US20130024857A1 (en) Method and system for flexible resource mapping for virtual storage appliances
CN103294494B (en) A kind of method and system of virtual system automatically dispose
CN109634659A (en) Method, apparatus, equipment and the storage medium that a kind of couple of BMC is controlled
CN102262555A (en) Method and device for loading different versions of JAVA three-party library
CN105389190A (en) Operating system starting method, apparatus and system
CN111338756A (en) GPU pooling method, device, equipment and computer readable storage medium
US20130024856A1 (en) Method and apparatus for flexible booting virtual storage appliances
CN112328297B (en) Method and device for upgrading Android system running compatibly on Linux
US11907728B2 (en) Bios-based multi-user management method and system
CN108234174B (en) Management method and device of virtual network function
JP2021131897A (en) Scheduling method, device, equipment, storage equipment, and program
CN106131020B (en) Firewall virtualization module and management method
CN105740067A (en) Cloud computing based virtual machine batch starting method and control system
CN109284137B (en) Hypervisor-based QNX operating system starting method and device
CN100458696C (en) System and method for realizing multiple CPU loading
CN105204876A (en) System starting method and electronic equipment
CN115113975A (en) Cluster management method and device, electronic equipment and storage medium
CN110968852B (en) Virtual machine password management method, system, equipment and computer storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160706

RJ01 Rejection of invention patent application after publication