CN106201693A - Dispatching method in a kind of virtualized environment and system - Google Patents

Dispatching method in a kind of virtualized environment and system Download PDF

Info

Publication number
CN106201693A
CN106201693A CN201610547373.XA CN201610547373A CN106201693A CN 106201693 A CN106201693 A CN 106201693A CN 201610547373 A CN201610547373 A CN 201610547373A CN 106201693 A CN106201693 A CN 106201693A
Authority
CN
China
Prior art keywords
virtual machine
migrated
list
machine
destination host
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
Application number
CN201610547373.XA
Other languages
Chinese (zh)
Other versions
CN106201693B (en
Inventor
荆帅帅
颜秉珩
闫冬冬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201610547373.XA priority Critical patent/CN106201693B/en
Publication of CN106201693A publication Critical patent/CN106201693A/en
Application granted granted Critical
Publication of CN106201693B publication Critical patent/CN106201693B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • G06F9/4856Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5077Logical partitioning of resources; Management or configuration of virtualized resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/503Resource availability
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses the dispatching method in a kind of virtualized environment and system, including: the resource utilization of each physical machine is compared with predetermined normal utility scope;If being in normal utility scope, the physical machine of the virtual machine migrating not having virtual machine to carry out and not being currently running is placed in holding state;If there is the physical machine not in the range of normal utility, then generating dispatch request, generating source host list and destination host list according to dispatch request;Determine the virtual machine to be migrated of each source host, from destination host list, determine the transportable destination host of each virtual machine to be migrated, generate the first corresponding migration information;Whether detect the transportable destination host in the first migration information for being in holding state;The most then open the destination host being in holding state, and call the corresponding interface that migrates and respond the first migration information;Visible, this programme is dynamic dispatching virtual machine in virtualized environment, reaches energy-conservation effect.

Description

Dispatching method in a kind of virtualized environment and system
Technical field
The present invention relates to virtualized environment technical field, more particularly, it relates to the dispatching party in a kind of virtualized environment Method and system.
Background technology
At present, along with the appearance of Intel Virtualization Technology, the dynamically distribution adjustment for resource provides technical foundation, but in reality In the build environment of border, dynamically distribution adjustment is still applied the most perfect, it may appear that owing to dynamically distributing adjustment, make multiple physical machine Work, it may appear that the problem that energy-saving effect is bad simultaneously.
Therefore, how on the basis of dynamically adjusting, strengthening energy-saving effect is that those skilled in the art need solve to ask Topic.
Summary of the invention
It is an object of the invention to provide the dispatching method in a kind of virtualized environment and system, to realize dynamically adjusting On the basis of strengthen energy-saving effect.
For achieving the above object, following technical scheme is embodiments provided:
A kind of dispatching method in virtualized environment, including:
Obtain each virtual machine and the resource utilization of physical machine in virtualized environment;
The resource utilization of each physical machine is compared with predetermined normal utility scope;If all physical machine In the range of resource utilization is in described normal utility, then will virtual machine not had to carry out migrate and be not currently running The physical machine of virtual machine is placed in holding state;
If there is the resource utilization of physical machine not in the range of described normal utility, then generating corresponding scheduling please Ask, and according to described dispatch request, physical machine be divided into source host and destination host, and be ranked up according to predetermined ordering rule, Generate source host list and destination host list;
Determine the virtual machine to be migrated of each source host in described source host list successively, generate the first virtual machine to be migrated List, and according to the resource utilization of virtual machine to be migrated, from described destination host list, determine each virtual machine to be migrated Transportable destination host, generate the first corresponding migration information;
Whether detect the transportable destination host in described first migration information for being in holding state;The most then open It is in the destination host of holding state, and calls corresponding migration interface described first migration information of response;If it is not, the most directly adjust Described first migration information is responded with the corresponding interface that migrates.
Wherein, each virtual machine and the resource utilization of physical machine in described acquisition virtualized environment, including:
Obtain cpu busy percentage and the memory usage of each virtual machine in virtualized environment;Obtain in virtualized environment every The cpu busy percentage of individual physical machine and memory usage.
Wherein, if the described resource utilization of physical machine that exists is not in the range of described normal utility, then generate corresponding Dispatch request, including:
If the resource utilization that there is the first physical machine is higher than described normal utility scope, then generating the first scheduling please Ask;Wherein, described first dispatch request is used for migrating out the virtual machine of described first physical machine, until described first physical machine The utilization of resources is in described normal utility scope;
If the resource utilization that there is the second physical machine is less than described normal utility scope, then generating the second scheduling please Ask;Wherein, described second dispatch request is for migrating out all of virtual machine of described second physical machine.
Wherein, it is ranked up generating source host list according to predetermined ordering rule, including:
Resource utilization according to source host is ranked up, and generates source host list.
Wherein, it is ranked up generating destination host list according to predetermined ordering rule, including:
Whether can be powered down according to destination host, destination host is divided into the destination host that can close power supply, and not The destination host of power supply can be closed;
Total capacity according to the described destination host that can close power supply is ranked up, and generates the first destination host list;Root It is ranked up according to the active volume of the described destination host that can not close power supply, generates the second destination host list.
Wherein, described determine the virtual machine to be migrated of each source host in described source host list successively, generate first and treat Migrate virtual machine list, including:
Use knapsack algorithm, determine the most preferably side of placement when each source host utilization rate is in described normal utility scope Case, and using the virtual machine in addition to the virtual machine of described optimal placement schemes as virtual machine to be migrated, generate described first and treat Migrate virtual machine list.
Wherein, the described resource utilization according to virtual machine to be migrated, from described destination host list, determine each treating Migrate the transportable destination host of virtual machine, generate the first corresponding migration information, including:
According to the resource utilization of virtual machine to be migrated, meet the law at first is used to determine from described destination host list often The transportable destination host of individual virtual machine to be migrated, generates the first corresponding migration information, and from described first void to be migrated Plan machine list is removed the virtual machine to be migrated determining transportable destination host.
Wherein, also include:
If detecting there is not virtual machine to be migrated in described first virtual machine list to be migrated, and virtualization ring detected Border exists the resource utilization physical machine higher than described normal utility scope, then detects whether to there is the thing being powered down Reason machine;
If existing, then the physical machine closing power supply being ranked up, generating candidate physical machine list;
Determine that resource utilization is higher than the virtual machine to be migrated of the physical machine of described normal utility scope, generate second and treat Migrate virtual machine list, and according to the resource utilization of virtual machine to be migrated in described second virtual machine list to be migrated, from institute State candidate physical machine list and choose optimal main frame, generate the second corresponding migration information;
Open the power supply of described optimal main frame, call the corresponding interface that migrates after the power is turned and respond described second migration Information.
A kind of dispatching patcher in virtualized environment, including:
Utilization rate acquisition module, for obtaining each virtual machine and the resource utilization of physical machine in virtualized environment;
Utilization rate comparison module, for carrying out the resource utilization of each physical machine with predetermined normal utility scope Relatively;If in the range of the resource utilization of all physical machine is in described normal utility, then trigger the first execution module;If There is the resource utilization of physical machine not in the range of described normal utility, then trigger dispatch request generation module;
Described first performs module, the thing of the virtual machine for will virtual machine not had to carry out migrate and be not currently running Reason machine is placed in holding state;
Described dispatch request generation module, is used for generating corresponding dispatch request, and according to described dispatch request by physics Machine is divided into source host and destination host, and is ranked up according to predetermined ordering rule, generates source host list and destination host row Table;
First virtual machine List Generating Module to be migrated, for determining each source host in described source host list successively Virtual machine to be migrated, generates the first virtual machine list to be migrated;
First migration information generation module, for and according to the resource utilization of virtual machine to be migrated, from described purpose master Machine list determines the transportable destination host of each virtual machine to be migrated, generates the first corresponding migration information;
First detection module, the most standby for being in for detecting the transportable destination host in described first migration information State;After the most then triggering the second execution module opens the destination host being in holding state, trigger calling module;If it is not, then Trigger described calling module.
Described second performs module, for opening the destination host being in holding state;
Described calling module, is used for calling the corresponding interface that migrates and responds described first migration information.
Wherein, also include:
For there is not virtual machine to be migrated when described first virtual machine list to be migrated and empty in the second detection module When planization environment exists the physical machine that resource utilization is higher than described normal utility scope, detect whether that existence is closed electricity The physical machine in source;If existing, then trigger candidate physical machine List Generating Module;
Described candidate physical machine List Generating Module, for being ranked up according to the capacity of the physical machine closing power supply, raw Become candidate physical machine list;
Second virtual machine List Generating Module to be migrated, is used for determining that resource utilization is higher than described normal utility scope The virtual machine to be migrated of physical machine, generate the second virtual machine list to be migrated;
Second migration information generation module, for according to virtual machine to be migrated in described second virtual machine list to be migrated Resource utilization, chooses optimal main frame from described candidate physical machine list, generates the second corresponding migration information;
3rd performs module, for opening the power supply of described optimal main frame, and is being turned on the power by described calling module After call the corresponding interface that migrates and respond described second migration information.
By above scheme, the dispatching method in a kind of virtualized environment that the embodiment of the present invention provides and system, Including: obtain each virtual machine and the resource utilization of physical machine in virtualized environment;Resource utilization by each physical machine Compare with predetermined normal utility scope;If the resource utilization of all physical machine is in described normal utility model In enclosing, then the physical machine of the virtual machine not having virtual machine to carry out migrating and not being currently running is placed in holding state;If depositing In the resource utilization of physical machine not in the range of described normal utility, then generate corresponding dispatch request, and according to described Physical machine is divided into source host and destination host by dispatch request, and is ranked up according to predetermined ordering rule, generates source host row Table and destination host list;Determine the virtual machine to be migrated of each source host in described source host list successively, generate first and treat Migrate virtual machine list, and according to the resource utilization of virtual machine to be migrated, from described destination host list, determine each treating Migrate the transportable destination host of virtual machine, generate the first corresponding migration information;Detect in described first migration information Whether transportable destination host is for being in holding state;The most then open the destination host being in holding state, and call corresponding Migration interface respond described first migration information;If it is not, then directly invoke the corresponding interface that migrates to respond described first migration Information;Visible, in the present embodiment, by dynamic dispatching virtual machine in virtualized environment, reach energy-conservation effect.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to Other accompanying drawing is obtained according to these accompanying drawings.
Fig. 1 is the dispatching method schematic flow sheet in a kind of virtualized environment disclosed in the embodiment of the present invention;
Fig. 2 is dispatching method schematic diagram concrete disclosed in the embodiment of the present invention;
Fig. 3 is the dispatching patcher structural representation in a kind of virtualized environment disclosed in the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise Embodiment, broadly falls into the scope of protection of the invention.
The embodiment of the invention discloses the dispatching method in a kind of virtualized environment and system, to realize in dynamically adjustment On the basis of strengthen energy-saving effect.
See Fig. 1, the dispatching method in a kind of virtualized environment that the embodiment of the present invention provides, including:
Each virtual machine and the resource utilization of physical machine in S101, acquisition virtualized environment;
Wherein, each virtual machine and the resource utilization of physical machine in described acquisition virtualized environment, including:
Obtain cpu busy percentage and the memory usage of each virtual machine in virtualized environment;Obtain in virtualized environment every The cpu busy percentage of individual physical machine and memory usage.
Concrete, in the present embodiment by periodically gathering virtual machine and the monitoring performance of physical machine, to collecting Monitoring data point resource utilization be weighted averagely, choose monitoring data point meansigma methods come approximate reverse answer virtual machine and The resource utilization of physical machine, predominantly CPU and internal memory.
S102, the resource utilization of each physical machine is compared with predetermined normal utility scope;If property In the range of the resource utilization of reason machine is in described normal utility, then virtual machine will not had to carry out migrating and the most The physical machine of the virtual machine run is placed in holding state;
Concrete, if current virtual machine environmental resource can make all resource utilizations be higher than after passing through scheduling Within the main frame of normal range drops to normal range, then close and there is no the electricity of virtual machine and the main frame that do not has virtual machine to move into Source.
If S103 exists the resource utilization of physical machine not in the range of described normal utility, then generate corresponding tune Degree request, and according to described dispatch request, physical machine is divided into source host and destination host, and carry out according to predetermined ordering rule Sequence, generates source host list and destination host list;
Wherein, if the described resource utilization of physical machine that exists is not in the range of described normal utility, then generate corresponding Dispatch request, including:
If the resource utilization that there is the first physical machine is higher than described normal utility scope, then generating the first scheduling please Ask;Wherein, described first dispatch request is used for migrating out the virtual machine of described first physical machine, until described first physical machine The utilization of resources is in described normal utility scope;
If the resource utilization that there is the second physical machine is less than described normal utility scope, then generating the second scheduling please Ask;Wherein, described second dispatch request is for migrating out all of virtual machine of described second physical machine.
Concrete, the resource utilization got management platform in the present embodiment is estimated, by property The physical resource utilization rate of reason machine compares with previously according to the normal utility scope set;Utilize if there is physical machine Rate is higher than normal range, then produce scheduling virtual machine request of moving out, and the content of configuration scheduling request is: migrate on this main frame Virtual machine, until the resource utilization of this main frame is reduced to normal range;If there is no physical machine utilization rate higher than normal profit Use rate scope, and there is host computer rate less than normal range, then utilization rate is moved out void less than the main frame of normal range Plan machine dispatch request, and configuration scheduling request content be: on all of virtual machine migrating on this main frame to other main frame.
Wherein, it is ranked up generating source host list according to predetermined ordering rule, including:
Resource utilization according to source host is ranked up, and generates source host list.
Wherein, it is ranked up generating destination host list according to predetermined ordering rule, including:
Whether can be powered down according to destination host, destination host is divided into the destination host that can close power supply, and not The destination host of power supply can be closed;
Total capacity according to the described destination host that can close power supply is ranked up, and generates the first destination host list;Root It is ranked up according to the active volume of the described destination host that can not close power supply, generates the second destination host list.
Concrete, distinguish source and destination main frame according to dispatch request in the present embodiment, and source, destination host are carried out excellent First level sequence:
Source host: sequence carries out prioritization with resource utilization, and the main frame high for utilization rate carries out priority scheduling Process;
Destination host: owing to the main frame in actual virtualized environment is often by constraint, it is impossible to be powered down, carry out Energy-conservation, therefore destination host is carried out classification and ordination.The main frame that can not be powered down: be ranked up with main frame active volume; The main frame that can be powered down: be ranked up with total capacity.
S104, determine the virtual machine to be migrated of each source host in described source host list successively, generate first to be migrated Virtual machine list, and according to the resource utilization of virtual machine to be migrated, determine each to be migrated from described destination host list The transportable destination host of virtual machine, generates the first corresponding migration information;
Wherein, described determine the virtual machine to be migrated of each source host in described source host list successively, generate first and treat Migrate virtual machine list, including:
Use knapsack algorithm, determine the most preferably side of placement when each source host utilization rate is in described normal utility scope Case, and using the virtual machine in addition to the virtual machine of described optimal placement schemes as virtual machine to be migrated, generate described first and treat Migrate virtual machine list.
Concrete, the best visual machine on source host of choosing is moved out scheme, and optimal scheduling scheme with minimum transition cost is Purpose, migrates cost and approximates replacement with the internal memory usage amount of virtual machine.Use knapsack algorithm, solve host computer rate and be in normally Optimal placement schemes during scope (main frame for knapsack, virtual machine is article), then the void in addition to optimal placement schemes virtual machine Plan machine is the virtual machine to be migrated selected.
Wherein, the described resource utilization according to virtual machine to be migrated, from described destination host list, determine each treating Migrate the transportable destination host of virtual machine, generate the first corresponding migration information, including:
According to the resource utilization of virtual machine to be migrated, meet the law at first is used to determine from described destination host list often The transportable destination host of individual virtual machine to be migrated, generates the first corresponding migration information, and from described first void to be migrated Plan machine list is removed the virtual machine to be migrated determining transportable destination host.
Concrete, select a virtual machine from virtual machine list to be migrated, use meet the law at first to carry out choosing having arranged The destination host of sequence, if this virtual machine schedulable, then generates a migration information, and from the first virtual machine list to be migrated Deleting the virtual machine selected, and repeat the above steps, until having processed all dispatch request, or scheduling virtual machine list is Empty.
Whether S105, the transportable destination host detected in described first migration information be for being in holding state;The most then Open the destination host being in holding state, and call corresponding migration interface described first migration information of response;If it is not, it is the most straight Connect and call corresponding migration interface described first migration information of response.
Based on technique scheme, this programme also includes:
If detecting there is not virtual machine to be migrated in described first virtual machine list to be migrated, and virtualization ring detected Border exists the resource utilization physical machine higher than described normal utility scope, then detects whether to there is the thing being powered down Reason machine;
If existing, then the physical machine closing power supply being ranked up, generating candidate physical machine list;
Determine that resource utilization is higher than the virtual machine to be migrated of the physical machine of described normal utility scope, generate second and treat Migrate virtual machine list, and according to the resource utilization of virtual machine to be migrated in described second virtual machine list to be migrated, from institute State candidate physical machine list and choose optimal main frame, generate the second corresponding migration information;
Open the power supply of described optimal main frame, call the corresponding interface that migrates after the power is turned and respond described second migration Information.
Concrete, if current virilization environment inadequate resource is so that all utilization rates are higher than the profit of the main frame of normal range Within being reduced to normal range by rate, and there is not schedulable virtual machine (vm) migration list, then check whether that existence is closed The main frame of power supply.If it is present for the purpose of the main frame being powered down main frame, assessment is chosen an optimal main frame and is opened Host power supply, carries out supplemental resources.Concrete optimal main frame choosing method is: entered according to capacity by the main frame of all closedown power supplys Row descending sort, chooses a host computer successively, has checked whether that virtual machine can move on this main frame, if can, Terminate inquiry, and to choose this main frame be optimal main frame.See Fig. 2, the concrete dispatching method schematic diagram provided for the present embodiment.
The dispatching patcher provided the embodiment of the present invention below is introduced, and dispatching patcher described below is with described above Dispatching method can be cross-referenced.
See Fig. 3, the dispatching patcher in a kind of virtualized environment that the embodiment of the present invention provides, including:
Utilization rate acquisition module 100, for obtaining each virtual machine and the resource utilization of physical machine in virtualized environment;
Utilization rate comparison module 200, for by the resource utilization of each physical machine and predetermined normal utility scope Compare;If in the range of the resource utilization of all physical machine is in described normal utility, then trigger the first execution mould Block 300;If there is the resource utilization of physical machine not in the range of described normal utility, then trigger dispatch request generation module 400;
Described first performs module 300, for virtual machine not had to carry out the virtual machine migrating and not being currently running Physical machine be placed in holding state;
Described dispatch request generation module 400, is used for generating corresponding dispatch request, and according to described dispatch request by thing Reason machine is divided into source host and destination host, and is ranked up according to predetermined ordering rule, generates source host list and destination host List;
First virtual machine List Generating Module 500 to be migrated, for determining each source master in described source host list successively The virtual machine to be migrated of machine, generates the first virtual machine list to be migrated;
First migration information generation module 600, for and according to the resource utilization of virtual machine to be migrated, from described purpose Host List determines the transportable destination host of each virtual machine to be migrated, generates the first corresponding migration information;
Whether first detection module 700, for detecting the transportable destination host in described first migration information for being in Holding state;After the most then triggering the second execution module 800 opens the destination host being in holding state, trigger calling module 900;If it is not, then trigger calling module 900.
Described second performs module 800, for opening the destination host being in holding state;
Described calling module 900, is used for calling the corresponding interface that migrates and responds described first migration information.
Based on technique scheme, this programme also includes:
For there is not virtual machine to be migrated when described first virtual machine list to be migrated and empty in the second detection module When planization environment exists the physical machine that resource utilization is higher than described normal utility scope, detect whether that existence is closed electricity The physical machine in source;If existing, then trigger candidate physical machine List Generating Module;
Described candidate physical machine List Generating Module, for being ranked up according to the capacity of the physical machine closing power supply, raw Become candidate physical machine list;
Second virtual machine List Generating Module to be migrated, is used for determining that resource utilization is higher than described normal utility scope The virtual machine to be migrated of physical machine, generate the second virtual machine list to be migrated;
Second migration information generation module, for according to virtual machine to be migrated in described second virtual machine list to be migrated Resource utilization, chooses optimal main frame from described candidate physical machine list, generates the second corresponding migration information;
3rd performs module, for opening the power supply of described optimal main frame, and is being turned on the power by described calling module After call the corresponding interface that migrates and respond described second migration information.
Dispatching method in a kind of virtualized environment that the embodiment of the present invention provides and system, including: obtain virtualization ring Each virtual machine and the resource utilization of physical machine in border;By the resource utilization of each physical machine and predetermined normal utility Scope compares;If in the range of the resource utilization of all physical machine is in described normal utility, then will be the most virtual Machine carries out migrating and not existing the physical machine of the virtual machine being currently running and is placed in holding state;If there is the utilization of resources of physical machine Rate not in the range of described normal utility, then generates corresponding dispatch request, and physical machine is divided according to described dispatch request For source host and destination host, and it is ranked up according to predetermined ordering rule, generates source host list and destination host list;Depend on Secondary determine the virtual machine to be migrated of each source host in described source host list, generate the first virtual machine list to be migrated, and root According to the resource utilization of virtual machine to be migrated, from described destination host list, determine the transportable mesh of each virtual machine to be migrated Main frame, generate the first corresponding migration information;Whether detect the transportable destination host in described first migration information is It is in holding state;The most then open the destination host being in holding state, and call and corresponding migrate interface response described the One migration information;If it is not, then directly invoke the corresponding interface that migrates to respond described first migration information;Visible, at the present embodiment In, by dynamic dispatching virtual machine in virtualized environment, reach energy-conservation effect.
In this specification, each embodiment uses the mode gone forward one by one to describe, and what each embodiment stressed is and other The difference of embodiment, between each embodiment, identical similar portion sees mutually.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses the present invention. Multiple amendment to these embodiments will be apparent from for those skilled in the art, as defined herein General Principle can realize without departing from the spirit or scope of the present invention in other embodiments.Therefore, the present invention It is not intended to be limited to the embodiments shown herein, and is to fit to and principles disclosed herein and features of novelty phase one The widest scope caused.

Claims (10)

1. the dispatching method in a virtualized environment, it is characterised in that including:
Obtain each virtual machine and the resource utilization of physical machine in virtualized environment;
The resource utilization of each physical machine is compared with predetermined normal utility scope;If the resource of all physical machine In the range of utilization rate is in described normal utility, then virtual by do not have virtual machine to carry out to migrate and be not currently running The physical machine of machine is placed in holding state;
If there is the resource utilization of physical machine not in the range of described normal utility, then generate corresponding dispatch request, and According to described dispatch request, physical machine is divided into source host and destination host, and is ranked up according to predetermined ordering rule, generate Source host list and destination host list;
Determine the virtual machine to be migrated of each source host in described source host list successively, generate the first virtual machine to be migrated row Table, and according to the resource utilization of virtual machine to be migrated, from described destination host list, determine each virtual machine to be migrated Transportable destination host, generates the first corresponding migration information;
Whether detect the transportable destination host in described first migration information for being in holding state;The most then open and be in The destination host of holding state, and call corresponding migration interface described first migration information of response;If it is not, then directly invoke phase The migration interface answered responds described first migration information.
Dispatching method the most according to claim 1, it is characterised in that in described acquisition virtualized environment each virtual machine and The resource utilization of physical machine, including:
Obtain cpu busy percentage and the memory usage of each virtual machine in virtualized environment;Obtain each thing in virtualized environment The cpu busy percentage of reason machine and memory usage.
Dispatching method the most according to claim 2, it is characterised in that if the described resource utilization that there is physical machine does not exists In the range of described normal utility, then generate corresponding dispatch request, including:
If the resource utilization that there is the first physical machine is higher than described normal utility scope, then generate the first dispatch request;Its In, described first dispatch request is for migrating out the virtual machine of described first physical machine, until the resource of described first physical machine Utilization is in described normal utility scope;
If the resource utilization that there is the second physical machine is less than described normal utility scope, then generate the second dispatch request;Its In, described second dispatch request is for migrating out all of virtual machine of described second physical machine.
Dispatching method the most according to claim 3, it is characterised in that be ranked up generation source master according to predetermined ordering rule Machine list, including:
Resource utilization according to source host is ranked up, and generates source host list.
Dispatching method the most according to claim 4, it is characterised in that be ranked up generating purpose according to predetermined ordering rule Host List, including:
Whether can be powered down according to destination host, destination host is divided into the destination host that can close power supply, and can not close Close the destination host of power supply;
Total capacity according to the described destination host that can close power supply is ranked up, and generates the first destination host list;According to institute The active volume stating the destination host that can not close power supply is ranked up, and generates the second destination host list.
Dispatching method the most according to claim 1, it is characterised in that described determine successively in described source host list each The virtual machine to be migrated of source host, generates the first virtual machine list to be migrated, including:
Use knapsack algorithm, determine optimal placement schemes when each source host utilization rate is in described normal utility scope, And using the virtual machine in addition to the virtual machine of described optimal placement schemes as virtual machine to be migrated, generate described first to be migrated Virtual machine list.
Dispatching method the most according to claim 6, it is characterised in that the described utilization of resources according to virtual machine to be migrated Rate, determines the transportable destination host of each virtual machine to be migrated from described destination host list, generates corresponding first Migration information, including:
According to the resource utilization of virtual machine to be migrated, meet the law at first is used to determine each treating from described destination host list Migrate the transportable destination host of virtual machine, generate the first corresponding migration information, and from described first virtual machine to be migrated List is removed the virtual machine to be migrated determining transportable destination host.
8. according to the dispatching method described in any one in claim 1-7, it is characterised in that also include:
If detecting there is not virtual machine to be migrated in described first virtual machine list to be migrated, and detects in virtualized environment There is the resource utilization physical machine higher than described normal utility scope, then detect whether to there is the physics being powered down Machine;
If existing, then the physical machine closing power supply being ranked up, generating candidate physical machine list;
Determine that resource utilization is higher than the virtual machine to be migrated of the physical machine of described normal utility scope, generate second to be migrated Virtual machine list, and according to the resource utilization of virtual machine to be migrated in described second virtual machine list to be migrated, from described time Select physical machine list to choose optimal main frame, generate the second corresponding migration information;
Open the power supply of described optimal main frame, call the corresponding interface that migrates after the power is turned and respond described second migration letter Breath.
9. the dispatching patcher in a virtualized environment, it is characterised in that including:
Utilization rate acquisition module, for obtaining each virtual machine and the resource utilization of physical machine in virtualized environment;
Utilization rate comparison module, for comparing the resource utilization of each physical machine with predetermined normal utility scope Relatively;If in the range of the resource utilization of all physical machine is in described normal utility, then trigger the first execution module;If depositing In the resource utilization of physical machine not in the range of described normal utility, then trigger dispatch request generation module;
Described first performs module, the physical machine of the virtual machine for will virtual machine not had to carry out migrate and be not currently running It is placed in holding state;
Described dispatch request generation module, is used for generating corresponding dispatch request, and physical machine is divided according to described dispatch request For source host and destination host, and it is ranked up according to predetermined ordering rule, generates source host list and destination host list;
First virtual machine List Generating Module to be migrated, for determine successively each source host in described source host list wait move Move virtual machine, generate the first virtual machine list to be migrated;
First migration information generation module, for and according to the resource utilization of virtual machine to be migrated, arrange from described destination host Table determines the transportable destination host of each virtual machine to be migrated, generates the first corresponding migration information;
Whether first detection module, for detecting the transportable destination host in described first migration information for being in standby shape State;After the most then triggering the second execution module opens the destination host being in holding state, trigger calling module;If it is not, then touch Send out calling module described.
Described second performs module, for opening the destination host being in holding state;
Described calling module, is used for calling the corresponding interface that migrates and responds described first migration information.
Dispatching patcher the most according to claim 9, it is characterised in that also include:
, for there is not virtual machine to be migrated, and virtualization when described first virtual machine list to be migrated in the second detection module When environment existing resource utilization higher than the physical machine of described normal utility scope, detect whether to exist and be powered down Physical machine;If existing, then trigger candidate physical machine List Generating Module;
Described candidate physical machine List Generating Module, for being ranked up according to the capacity of the physical machine closing power supply, generates and waits Select physical machine list;
Second virtual machine List Generating Module to be migrated, for determining that resource utilization is higher than the thing of described normal utility scope The virtual machine to be migrated of reason machine, generates the second virtual machine list to be migrated;
Second migration information generation module, for according to the resource of virtual machine to be migrated in described second virtual machine list to be migrated Utilization rate, chooses optimal main frame from described candidate physical machine list, generates the second corresponding migration information;
3rd performs module, for opening the power supply of described optimal main frame, and is adjusted after the power is turned by described calling module Described second migration information is responded with the corresponding interface that migrates.
CN201610547373.XA 2016-07-12 2016-07-12 Dispatching method and system in a kind of virtualized environment Active CN106201693B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610547373.XA CN106201693B (en) 2016-07-12 2016-07-12 Dispatching method and system in a kind of virtualized environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610547373.XA CN106201693B (en) 2016-07-12 2016-07-12 Dispatching method and system in a kind of virtualized environment

Publications (2)

Publication Number Publication Date
CN106201693A true CN106201693A (en) 2016-12-07
CN106201693B CN106201693B (en) 2019-01-25

Family

ID=57477251

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610547373.XA Active CN106201693B (en) 2016-07-12 2016-07-12 Dispatching method and system in a kind of virtualized environment

Country Status (1)

Country Link
CN (1) CN106201693B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897137A (en) * 2017-04-19 2017-06-27 南京大学 A kind of physical machine based on live migration of virtual machine and virtual machine mapping conversion method
CN107220106A (en) * 2017-06-27 2017-09-29 郑州云海信息技术有限公司 A kind of resource regulating method and device
CN107729149A (en) * 2017-10-16 2018-02-23 郑州云海信息技术有限公司 A kind of virtual machine migration method and device
CN109002348A (en) * 2018-07-26 2018-12-14 郑州云海信息技术有限公司 Load-balancing method and device in a kind of virtualization system
CN115858135A (en) * 2023-03-03 2023-03-28 天津卓朗昆仑云软件技术有限公司 Cloud computing dynamic resource scheduling method and device and electronic equipment
CN117573373A (en) * 2024-01-15 2024-02-20 中诚华隆计算机技术有限公司 CPU virtualization scheduling method and system based on cloud computing

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077082A (en) * 2013-01-08 2013-05-01 中国科学院深圳先进技术研究院 Method and system for distributing data center load and saving energy during virtual machine migration
CN104270430A (en) * 2014-09-19 2015-01-07 国云科技股份有限公司 Server remote dispatching method suitable for cloud computing
CN105138408A (en) * 2015-09-28 2015-12-09 浪潮(北京)电子信息产业有限公司 Virtual machine migration method and device based on Open Stack
CN105279008A (en) * 2014-07-21 2016-01-27 华为技术有限公司 Virtual machine migration method for energy saving of virtual machine cluster and virtual machine migration device for energy saving of virtual machine cluster
CN105302632A (en) * 2015-11-19 2016-02-03 国家电网公司 Cloud computing working load dynamic integration method
CN105740074A (en) * 2016-01-26 2016-07-06 中标软件有限公司 Cloud computing based virtual machine load balancing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077082A (en) * 2013-01-08 2013-05-01 中国科学院深圳先进技术研究院 Method and system for distributing data center load and saving energy during virtual machine migration
CN105279008A (en) * 2014-07-21 2016-01-27 华为技术有限公司 Virtual machine migration method for energy saving of virtual machine cluster and virtual machine migration device for energy saving of virtual machine cluster
CN104270430A (en) * 2014-09-19 2015-01-07 国云科技股份有限公司 Server remote dispatching method suitable for cloud computing
CN105138408A (en) * 2015-09-28 2015-12-09 浪潮(北京)电子信息产业有限公司 Virtual machine migration method and device based on Open Stack
CN105302632A (en) * 2015-11-19 2016-02-03 国家电网公司 Cloud computing working load dynamic integration method
CN105740074A (en) * 2016-01-26 2016-07-06 中标软件有限公司 Cloud computing based virtual machine load balancing method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897137A (en) * 2017-04-19 2017-06-27 南京大学 A kind of physical machine based on live migration of virtual machine and virtual machine mapping conversion method
CN106897137B (en) * 2017-04-19 2020-05-19 南京大学 Physical machine and virtual machine mapping conversion method based on virtual machine live migration
CN107220106A (en) * 2017-06-27 2017-09-29 郑州云海信息技术有限公司 A kind of resource regulating method and device
CN107729149A (en) * 2017-10-16 2018-02-23 郑州云海信息技术有限公司 A kind of virtual machine migration method and device
CN109002348A (en) * 2018-07-26 2018-12-14 郑州云海信息技术有限公司 Load-balancing method and device in a kind of virtualization system
CN115858135A (en) * 2023-03-03 2023-03-28 天津卓朗昆仑云软件技术有限公司 Cloud computing dynamic resource scheduling method and device and electronic equipment
CN117573373A (en) * 2024-01-15 2024-02-20 中诚华隆计算机技术有限公司 CPU virtualization scheduling method and system based on cloud computing
CN117573373B (en) * 2024-01-15 2024-03-26 中诚华隆计算机技术有限公司 CPU virtualization scheduling method and system based on cloud computing

Also Published As

Publication number Publication date
CN106201693B (en) 2019-01-25

Similar Documents

Publication Publication Date Title
CN106201693A (en) Dispatching method in a kind of virtualized environment and system
CN102981910B (en) The implementation method of scheduling virtual machine and device
CN108829494A (en) Container cloud platform intelligence method for optimizing resources based on load estimation
CN103885831B (en) The system of selection of virtual machine host machine and device
CN103916438B (en) Cloud testing environment scheduling method and system based on load forecast
CN107291550B (en) A kind of Spark platform resource dynamic allocation method and system for iterated application
CN101169731A (en) Multiple-path multiple-core server and its CPU virtualization processing method
Ali et al. A study of efficient energy management techniques for cloud computing environment
CN106020934A (en) Optimized deploying method based on virtual cluster online migration
CN103700041A (en) Cloud computation-based smart grid load prediction management platform
CN102779075A (en) Method, device and system for scheduling in multiprocessor nuclear system
CN106686136A (en) Cloud resource scheduling method and device
Liu et al. A survey on virtual machine scheduling in cloud computing
Dong et al. A ‘joint-me’task deployment strategy for load balancing in edge computing
CN104023042B (en) Cloud platform resource scheduling method
CN105868004A (en) Cloud computing based business system scheduling method and apparatus
CN105426241A (en) Cloud computing data center based unified resource scheduling energy-saving method
CN103605578A (en) Load balance scheduling method based on virtual machine migration
CN104572279B (en) A kind of virtual machine dynamic dispatching method of supporting node binding
CN105824686A (en) Selecting method and selecting system of host machine of virtual machine
CN107203255A (en) Power-economizing method and device are migrated in a kind of network function virtualized environment
Padoin et al. Saving energy by exploiting residual imbalances on iterative applications
Jiang et al. An energy-aware virtual machine migration strategy based on three-way decisions
CN107589980A (en) A kind of dispatching method of cloud computing resources
CN109800084A (en) Discharge the method and terminal device of resources of virtual machine

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